Skip to content

Instantly share code, notes, and snippets.

@legendpeng
Created October 24, 2017 21:33
Show Gist options
  • Save legendpeng/590de043d78c8905d3668f643b7464ca to your computer and use it in GitHub Desktop.
Save legendpeng/590de043d78c8905d3668f643b7464ca to your computer and use it in GitHub Desktop.
sample-response-has-import-charge.json
{
"checkoutSessionId": "728974898",
"lineItems": [
{
"itemId": "252715456954",
"title": "Late 2015 Retina 5K iMac 27\" 3.3GHz i5/8GB/2TB Fusion/R9 M395/MK482LL/A Warranty",
"summary": {
"shippingCost": {
"value": 109.02,
"currency": "USD"
},
"importCharge": {
"value": 330.98,
"currency": "USD"
}
},
"imageUrl": "https://i.ebayimg.com/images/g/eYUAAOSwuLRZwUvJ/s-l96.png",
"image": {
"title": "Late 2015 Retina 5K iMac 27\" 3.3GHz i5/8GB/2TB Fusion/R9 M395/MK482LL/A Warranty",
"imageId": "eYUAAOSwuLRZwUvJ",
"imageIdType": "ZOOM_GUID",
"URL": "https://i.ebayimg.com/images/g/eYUAAOSwuLRZwUvJ/s-l96.png"
},
"price": {
"value": 1699,
"currency": "USD"
},
"seller": {
"sellerId": "ipowerresale"
},
"quantity": 1,
"lineItemId": "BId-{\"ItemId\":252715456954};Domain-ebay;LId-420002",
"logistics": [
{
"selected": true,
"logisticsId": "420014",
"name": "International Priority Shipping",
"cost": {
"value": 109.02,
"currency": "USD"
},
"estimate": "Oct 17 – 27",
"minDeliveryEstimate": "2017-10-18T00:44:01.000Z",
"maxDeliveryEstimate": "2017-10-28T00:44:01.000Z"
}
]
}
],
"shippingAddress": {
"addressId": "5800430952016",
"contactName": "*",
"addressLine1": "*",
"stateOrProvince": "上海",
"city": "Shanghai",
"country": "CN",
"postalCode": "*",
"email": "*",
"phoneNumber": "*"
},
"availablePaymentMethods": [
{
"paymentMethodId": "PAYPAL",
"selected": false,
"available": true,
"paymentDetailsComplete": false
},
{
"paymentMethodId": "CC",
"selected": false,
"available": true,
"paymentDetailsComplete": false,
"paymentInstruments": []
}
],
"incentives": {},
"pricingSummary": {
"priceSubtotal": {
"value": 1699,
"currency": "USD"
},
"shippingCost": {
"value": 109.02,
"currency": "USD"
},
"tax": {
"value": 0,
"currency": "USD"
},
"deduction": {
"value": 0,
"currency": "USD"
},
"importCharge": {
"value": 330.98,
"currency": "USD"
},
"total": {
"value": 2139,
"currency": "USD"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment