Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save viggin543/5cbe800b4c182c15227a148e5d87891f to your computer and use it in GitHub Desktop.
Save viggin543/5cbe800b4c182c15227a148e5d87891f to your computer and use it in GitHub Desktop.
{
"version": 18,
"totalPrice": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 77600
},
"taxRoundingMode": "HalfEven",
"taxMode": "External",
"taxCalculationMode": "LineItemLevel",
"store": {
"typeId": "store",
"key": "test_store"
},
"refusedGifts": [],
"origin": "Customer",
"lineItems": [
{
"variant": {
"sku": "slug-idclip-black-s-498081",
"scopedPriceDiscounted": false,
"prices": [
{
"value": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 666
},
"id": "f9945dac-dd20-464d-a891-b6c2441e88d8",
"country": "US",
"channel": {
"typeId": "channel",
"id": "3adf70cf-7047-4b05-a0d6-77ea0a5aabac"
}
}
],
"key": "key-idclip-black-s-727887",
"isMatchingVariant": false,
"id": 1,
"availability": {
"isOnStock": false,
"channels": {
"fff3e19c-f565-42b3-b0be-be66f4343145": {
"availableQuantity": 100,
"isOnStock": true
}
}
},
"attributes": [
{
"value": {
"key": "search",
"label": "search"
},
"name": "visibility"
},
{
"value": "53121600A0000",
"name": "us_tax_code"
},
{
"value": false,
"name": "isArchived"
},
{
"value": "CN",
"name": "manufacturerCountry"
},
{
"value": "uranium",
"name": "material"
},
{
"value": 500,
"name": "weight"
},
{
"value": {
"key": "adika",
"label": "adika"
},
"name": "vendor"
},
{
"value": {
"key": "black",
"label": {
"en": "black"
}
},
"name": "color"
},
{
"value": {
"key": "s",
"label": "s"
},
"name": "size"
}
]
},
"totalPrice": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 31270
},
"state": [
{
"state": {
"typeId": "state",
"id": "8a39e467-348c-4217-839f-a3a55452ec92"
},
"quantity": 100
}
],
"quantity": 100,
"productType": {
"typeId": "product-type",
"id": "4a5ac10c-8324-4358-bf65-4143a40f7a34"
},
"productSlug": {
"en": "slug-idclip"
},
"productId": "3f536d24-4fc9-4912-adf7-bb50e619f0c1",
"priceMode": "Platform",
"price": {
"value": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 666
},
"id": "f9945dac-dd20-464d-a891-b6c2441e88d8",
"country": "US",
"channel": {
"typeId": "channel",
"id": "3adf70cf-7047-4b05-a0d6-77ea0a5aabac"
}
},
"name": {
"en": "a very top"
},
"lineItemMode": "Standard",
"id": "ad93c226-e2b5-42eb-87ab-7c9bf2ea48d3",
"distributionChannel": {
"typeId": "channel",
"id": "3adf70cf-7047-4b05-a0d6-77ea0a5aabac"
},
"discountedPricePerQuantity": [
{
"quantity": 70,
"discountedPrice": {
"value": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 313
},
"includedDiscounts": [
{
"discountedAmount": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 40
},
"discount": {
"typeId": "cart-discount",
"id": "e6bddbb2-60a5-4169-8ca0-1c6f8eab9802"
}
},
{
"discountedAmount": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 313
},
"discount": {
"typeId": "cart-discount",
"id": "08e7bfe0-782c-4813-be51-437bdda68da4"
}
}
]
}
},
{
"quantity": 30,
"discountedPrice": {
"value": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 312
},
"includedDiscounts": [
{
"discountedAmount": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 41
},
"discount": {
"typeId": "cart-discount",
"id": "e6bddbb2-60a5-4169-8ca0-1c6f8eab9802"
}
},
{
"discountedAmount": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 313
},
"discount": {
"typeId": "cart-discount",
"id": "08e7bfe0-782c-4813-be51-437bdda68da4"
}
}
]
}
}
],
"addedAt": "2021-04-19T10:48:49.883Z"
},
{
"variant": {
"sku": "slug-iddq1d-black-stone",
"scopedPriceDiscounted": false,
"prices": [
{
"value": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 987
},
"id": "49e11024-b1e5-4627-9560-a4a792d44826",
"country": "US",
"channel": {
"typeId": "channel",
"id": "3adf70cf-7047-4b05-a0d6-77ea0a5aabac"
}
}
],
"key": "key-iddq1d-black-stone",
"isMatchingVariant": false,
"id": 1,
"availability": {
"isOnStock": false,
"channels": {
"fff3e19c-f565-42b3-b0be-be66f4343145": {
"availableQuantity": 97,
"isOnStock": true
}
}
},
"attributes": [
{
"value": {
"key": "search",
"label": "search"
},
"name": "visibility"
},
{
"value": "53121600A0000",
"name": "us_tax_code"
},
{
"value": false,
"name": "isArchived"
},
{
"value": "CN",
"name": "manufacturerCountry"
},
{
"value": "stone",
"name": "material"
},
{
"value": 500,
"name": "weight"
},
{
"value": {
"key": "adika",
"label": "adika"
},
"name": "vendor"
},
{
"value": {
"key": "black",
"label": {
"en": "black"
}
},
"name": "color"
}
]
},
"totalPrice": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 46330
},
"state": [
{
"state": {
"typeId": "state",
"id": "8a39e467-348c-4217-839f-a3a55452ec92"
},
"quantity": 100
}
],
"quantity": 100,
"productType": {
"typeId": "product-type",
"id": "72bbdeab-0c62-42df-91d0-361015375c84"
},
"productSlug": {
"en": "slug-iddq1d"
},
"productId": "164cfbdc-3087-4ff4-af6d-6a52b6f14da9",
"priceMode": "Platform",
"price": {
"value": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 987
},
"id": "49e11024-b1e5-4627-9560-a4a792d44826",
"country": "US",
"channel": {
"typeId": "channel",
"id": "3adf70cf-7047-4b05-a0d6-77ea0a5aabac"
}
},
"name": {
"en": "a very nice bag"
},
"lineItemMode": "Standard",
"id": "e41e049d-eb2e-4cf3-bbc9-cf1d96fb6327",
"distributionChannel": {
"typeId": "channel",
"id": "3adf70cf-7047-4b05-a0d6-77ea0a5aabac"
},
"discountedPricePerQuantity": [
{
"quantity": 30,
"discountedPrice": {
"value": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 464
},
"includedDiscounts": [
{
"discountedAmount": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 59
},
"discount": {
"typeId": "cart-discount",
"id": "e6bddbb2-60a5-4169-8ca0-1c6f8eab9802"
}
},
{
"discountedAmount": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 464
},
"discount": {
"typeId": "cart-discount",
"id": "08e7bfe0-782c-4813-be51-437bdda68da4"
}
}
]
}
},
{
"quantity": 70,
"discountedPrice": {
"value": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 463
},
"includedDiscounts": [
{
"discountedAmount": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 60
},
"discount": {
"typeId": "cart-discount",
"id": "e6bddbb2-60a5-4169-8ca0-1c6f8eab9802"
}
},
{
"discountedAmount": {
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 464
},
"discount": {
"typeId": "cart-discount",
"id": "08e7bfe0-782c-4813-be51-437bdda68da4"
}
}
]
}
}
],
"addedAt": "2021-04-19T10:48:50.323Z"
}
],
"lastModifiedBy": {
"clientId": "eJCWl209M2WeNpLPhcwDVKvk"
},
"lastModifiedAt": "2021-04-19T10:48:51.403Z",
"inventoryMode": "None",
"id": "7617c738-67ce-49cd-9b95-282f008902a5",
"discountCodes": [
{
"state": "MatchesCart",
"discountCode": {
"typeId": "discount-code",
"id": "8d67273b-2985-4861-a03a-2a0b24493980",
"obj": {
"version": 6,
"references": [],
"name": {
"en": "test_discount_code DONT DELETE ME",
"he": ""
},
"lastModifiedBy": {},
"lastModifiedAt": "2021-04-19T06:34:04.206Z",
"isActive": true,
"id": "8d67273b-2985-4861-a03a-2a0b24493980",
"groups": [],
"description": {
"en": "DONT DELETE ME",
"he": ""
},
"createdBy": {},
"createdAt": "2021-03-04T11:57:42.54Z",
"code": "test_discount_code_50_percent_off",
"cartDiscounts": [
{
"typeId": "cart-discount",
"id": "08e7bfe0-782c-4813-be51-437bdda68da4",
"obj": {
"version": 6,
"value": {
"type": "relative",
"permyriad": 5000
},
"target": {
"type": "lineItems",
"predicate": "1 = 1"
},
"stackingMode": "Stacking",
"sortOrder": "0.99",
"requiresDiscountCode": true,
"references": [],
"name": {
"en": "test discount DONT DELETE ME",
"he": ""
},
"lastModifiedBy": {},
"lastModifiedAt": "2021-04-19T05:05:22.243Z",
"isActive": true,
"id": "08e7bfe0-782c-4813-be51-437bdda68da4",
"description": {
"en": "test discount 50%",
"he": ""
},
"createdBy": {},
"createdAt": "2021-03-04T11:57:02.032Z",
"cartPredicate": "1 = 1"
}
}
]
}
}
},
{
"state": "MatchesCart",
"discountCode": {
"typeId": "discount-code",
"id": "719badc2-7ccd-408b-b60a-1074dbb3a6cc",
"obj": {
"version": 3,
"references": [],
"name": {
"en": "customer_service_compensation_100_usd DONT DELETE ME",
"he": ""
},
"maxApplicationsPerCustomer": 1,
"lastModifiedBy": {},
"lastModifiedAt": "2021-04-19T05:05:41.008Z",
"isActive": true,
"id": "719badc2-7ccd-408b-b60a-1074dbb3a6cc",
"groups": [],
"description": {
"en": "customer_service_compensation_100_usd",
"he": ""
},
"createdBy": {},
"createdAt": "2021-04-18T11:38:58.804Z",
"code": "customer_service_compensation_100_usd",
"cartDiscounts": [
{
"typeId": "cart-discount",
"id": "e6bddbb2-60a5-4169-8ca0-1c6f8eab9802",
"obj": {
"version": 6,
"value": {
"type": "absolute",
"money": [
{
"type": "centPrecision",
"fractionDigits": 2,
"currencyCode": "USD",
"centAmount": 10000
}
]
},
"target": {
"type": "lineItems",
"predicate": "1 = 1"
},
"stackingMode": "Stacking",
"sortOrder": "0.999999",
"requiresDiscountCode": true,
"references": [],
"name": {
"en": "customer_service_compensation_100_usd DONT DELETE ME",
"he": ""
},
"lastModifiedBy": {},
"lastModifiedAt": "2021-04-19T06:34:37.225Z",
"key": "customer_service_compensation_100_usd",
"isActive": true,
"id": "e6bddbb2-60a5-4169-8ca0-1c6f8eab9802",
"description": {
"en": "customer_service_compensation_100_usd",
"he": ""
},
"createdBy": {},
"createdAt": "2021-04-18T11:38:37.353Z",
"cartPredicate": "1 = 1"
}
}
]
}
}
}
],
"deleteDaysAfterLastModification": 90,
"customLineItems": [],
"createdBy": {
"clientId": "0bqrNAj0vFBHsTIlPvd2Wxm9",
"anonymousId": "9376b5d2-5be5-4e20-85c9-0ecf8e5ac66f"
},
"createdAt": "2021-04-19T10:48:49.889Z",
"country": "US",
"cartState": "Active",
"anonymousId": "9376b5d2-5be5-4e20-85c9-0ecf8e5ac66f"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment