HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Discussions

Discussions

Ask a Question
Back to All

What is cartItem snapshop?

I have read the Api Guides and I have some questions.

Order object includes Subtotal_items and Subtotal_items includes item_data object.

Description of Item_data object is CartItem SnapShot according to Api Guides.

What does the mean "CartItem SnapShop"?

It means the real Order Information(includes promotion information) about the customer's Order? or It just only means the customer's Cart information?

It makes me very confused.

I would get ShopLine Order information that includes promotion information and I will insert that information into this company ERP system.

so, I need the exact mapping info between Order and Promotion.

And I'm also curious about the "custom_discount_items" that is included to Order Object

below thing is an example of "custom_discount_items"

custom_discount_items": [
{
"id": "aaaa",
"item_type": "CustomDiscount",
"item_data": {
"discount_special_flag": 0,
"discount_id": "bbbb",
"discount_type": 2,
"name": "Promotion1",
"discount_level": 1
},

I want know What is promotion ID.

"discount_id" is promotion ID? or "id" is promotions ID?

The Api Guides's everythings is not clear and it makes hard to interface with ShopLine.

Please, somebody help me about the CartItem meaning and custom_discount_items.