Appmaker cart sample json

{
	"data": {
		"node": {
			"id": "Z2lkOi8vc2hvcGlmeS9DaGVja291dC80ODZkNDYwMGE5OTBlZjVmOGRkOWM1ODZhMGJhZDkxNT9rZXk9N2U1MWMxNzc3MTNhMTkyM2VmYjQ3MGE3MjhkNTVlZDE=",
			"webUrl": "https:\\/\\/iamcaffeine.myshopify.com\\/14545188\\/checkouts\\/486d4600a990ef5f8dd9c586a0bad915?key=7e51c177713a1923efb470a728d55ed1",
			"email": null,
			"order": null,
			"customAttributes": [{
				"key": "appmaker_platform",
				"value": "android"
			}, {
				"key": "appmaker_checkout_version",
				"value": "v1"
			}],
			"shippingLine": null,
			"shippingAddress": null,
			"lineItems": {
				"edges": [{
					"node": {
						"id": "Z2lkOi8vc2hvcGlmeS9DaGVja291dExpbmVJdGVtLzM5NzQzNzY0NjYwMzE3MD9jaGVja291dD00ODZkNDYwMGE5OTBlZjVmOGRkOWM1ODZhMGJhZDkxNQ==",
						"title": "Coffee Lip Balm for Dry \\u0026 Pigmented Lips | 100% Vegan | 12gm",
						"customAttributes": [],
						"unitPrice": null,
						"variant": {
							"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8zOTc0Mzc2NDY2MDMxNw==",
							"image": {
								"url": "https:\\/\\/cdn.shopify.com\\/s\\/files\\/1\\/1454\\/5188\\/products\\/1_5_250x.jpg?v=1649996844"
							},
							"product": {
								"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0LzY2OTQ1MDAyNzAxNzM=",
								"vendor": "mCaffeine ",
								"handle": "coffee-lip-balm-for-dry-pigmented-lips-100-vegan-12gm",
								"productType": "",
								"tags": ["__New Launch", "category__Face", "coffee", "facecarecollection", "flexibox", "range__Coffee", "type__Single", "Upsell__priority1--quick-coffee-sip-scrub-balm-kit", "Upsell__priority2--coffee-lip-kit-for-chapped-pigmented-lips", "Upsell__priority3--coffee-addiction-lip-gift-kit", "Upsell__priority4--lip-polishing-kit", "winter care"],
								"product_sku": null
							},
							"compareAtPriceV2": {
								"amount": "299.0",
								"currencyCode": "INR"
							},
							"priceV2": {
								"amount": "299.0",
								"currencyCode": "INR"
							},
							"title": "Default Title"
						},
						"quantity": 1,
						"discountAllocations": []
					}
				}, {
					"node": {
						"id": "Z2lkOi8vc2hvcGlmeS9DaGVja291dExpbmVJdGVtLzM5NzQzNzY4NTU5NzA5MD9jaGVja291dD00ODZkNDYwMGE5OTBlZjVmOGRkOWM1ODZhMGJhZDkxNQ==",
						"title": "Coffee Lip Scrub for Chapped \\u0026 Pigmented Lips - 12gm",
						"customAttributes": [],
						"unitPrice": null,
						"variant": {
							"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8zOTc0Mzc2ODU1OTcwOQ==",
							"image": {
								"url": "https:\\/\\/cdn.shopify.com\\/s\\/files\\/1\\/1454\\/5188\\/products\\/1_3_42fca501-976e-47e3-87aa-3a51a9aa29a0_250x.jpg?v=1649996845"
							},
							"product": {
								"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0LzY2OTQ1MDIzMDE3ODk=",
								"vendor": "mCaffeine ",
								"handle": "coffee-lip-scrub-for-chapped-pigmented-lips-12gm",
								"productType": "",
								"tags": ["__bestseller", "__New Launch", "bestseller", "category__Face", "coffee", "facecarecollection", "flexibox", "range__Coffee", "type__Single", "Upsell__priority1--quick-coffee-sip-scrub-balm-kit", "Upsell__priority2--coffee-lip-kit-for-chapped-pigmented-lips", "Upsell__priority3--coffee-addiction-lip-gift-kit", "Upsell__priority4--lip-polishing-kit", "winter care"],
								"product_sku": null
							},
							"compareAtPriceV2": {
								"amount": "299.0",
								"currencyCode": "INR"
							},
							"priceV2": {
								"amount": "299.0",
								"currencyCode": "INR"
							},
							"title": "Default Title"
						},
						"quantity": 1,
						"discountAllocations": [{
							"allocatedAmount": {
								"amount": "299.0",
								"currencyCode": "INR"
							},
							"discountApplication": {
								"__typename": "ScriptDiscountApplication",
								"title": "FREE",
								"targetType": "LINE_ITEM",
								"targetSelection": "EXPLICIT",
								"allocationMethod": "ACROSS",
								"value": {
									"__typename": "MoneyV2",
									"amount": "299.0",
									"currencyCode": "INR"
								}
							}
						}]
					}
				}, {
					"node": {
						"id": "Z2lkOi8vc2hvcGlmeS9DaGVja291dExpbmVJdGVtLzM5NzQ3NDkwMjE4MDc3MD9jaGVja291dD00ODZkNDYwMGE5OTBlZjVmOGRkOWM1ODZhMGJhZDkxNQ==",
						"title": "Quick Coffee Sip - Scrub + Balm Kit",
						"customAttributes": [],
						"unitPrice": null,
						"variant": {
							"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8zOTc0NzQ5MDIxODA3Nw==",
							"image": {
								"url": "https:\\/\\/cdn.shopify.com\\/s\\/files\\/1\\/1454\\/5188\\/products\\/1_25_250x.jpg?v=1649996851"
							},
							"product": {
								"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0LzY2OTU0Njg4OTIyNTM=",
								"vendor": "mCaffeine ",
								"handle": "quick-coffee-sip-scrub-balm-kit",
								"productType": "",
								"tags": ["__bestseller", "__New Launch", "bestseller", "category__Face", "coffee", "facecarecollection", "range__Coffee", "type__Combo", "winter care"],
								"product_sku": null
							},
							"compareAtPriceV2": {
								"amount": "598.0",
								"currencyCode": "INR"
							},
							"priceV2": {
								"amount": "478.0",
								"currencyCode": "INR"
							},
							"title": "Default Title"
						},
						"quantity": 1,
						"discountAllocations": []
					}
				}]
			},
			"discountApplications": {
				"edges": [{
					"node": {
						"allocationMethod": "ACROSS",
						"targetSelection": "EXPLICIT",
						"targetType": "LINE_ITEM",
						"value": {
							"__typename": "MoneyV2",
							"amount": "299.0",
							"currencyCode": "INR"
						},
						"__typename": "ScriptDiscountApplication",
						"title": "FREE"
					}
				}]
			},
			"appliedGiftCards": [],
			"lineItemsSubtotalPrice": {
				"amount": "1076.0",
				"currencyCode": "INR"
			},
			"subtotalPriceV2": {
				"amount": "777.0",
				"currencyCode": "INR"
			},
			"totalPriceV2": {
				"amount": "777.0",
				"currencyCode": "INR"
			}
		}
	}
}

Addition to data available on above json, if user is logged in we can send user details / accessToken

Details required to complete initial integration:

  1. Mapping function which takes above cart json as input and provides data in required format by provider
  2. API endpoint (Which will respond with WebView url on posting cart data)
  3. Thank you page url of provider (Needed this to take user back to app)