Created
September 8, 2016 23:28
-
-
Save dvnkshl/baf2c7e19f5ed2fa14c516cbccaa0cbf to your computer and use it in GitHub Desktop.
Commerce.js Example Token
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "chkt_O5kryNBAYKvEYo", | |
"created": 1473375464, | |
"expires": 1473548264, | |
"analytics": { | |
"google": { | |
"settings": { | |
"tracking_id": null, | |
"linked_domains": null | |
} | |
} | |
}, | |
"conditionals": { | |
"collects_fullname": true, | |
"collects_shipping_address": false, | |
"collects_billing_address": false, | |
"has_physical_delivery": false, | |
"has_digital_delivery": true, | |
"has_available_discounts": false, | |
"has_pay_what_you_want": false, | |
"collects_extrafields": true, | |
"is_cart_free": false | |
}, | |
"collects": { | |
"fullname": true, | |
"shipping_address": false, | |
"billing_address": false, | |
"extrafields": true | |
}, | |
"has": { | |
"physical_delivery": false, | |
"digital_delivery": true, | |
"available_discounts": false, | |
"pay_what_you_want": false | |
}, | |
"is": { | |
"cart_free": false | |
}, | |
"line_items": [ | |
{ | |
"id": "item_7RyWOwmK5nEa2V", | |
"product_id": "prod_L1vOoZzb4oRa8Z", | |
"name": "Test Product", | |
"image": null, | |
"description": "<p>This is a test product</p>", | |
"quantity": 1, | |
"price": { | |
"raw": 49, | |
"formatted": "49.00", | |
"formatted_with_symbol": "$49.00", | |
"formatted_with_code": "49.00 USD" | |
}, | |
"subtotal": { | |
"raw": 49, | |
"formatted": "49.00", | |
"formatted_with_symbol": "$49.00", | |
"formatted_with_code": "49.00 USD" | |
}, | |
"variants": [ | |
{ | |
"id": "vrnt_p6dP5g0WKRln7k", | |
"name": "Color", | |
"options": [ | |
{ | |
"id": "optn_ypbroE66858n4e", | |
"name": "Blue", | |
"price": { | |
"raw": 0, | |
"formatted": "0.00", | |
"formatted_with_symbol": "$0.00", | |
"formatted_with_code": "0.00 USD" | |
} | |
}, | |
{ | |
"id": "optn_Kvg9l6AA251bB7", | |
"name": "Red", | |
"price": { | |
"raw": 0, | |
"formatted": "0.00", | |
"formatted_with_symbol": "$0.00", | |
"formatted_with_code": "0.00 USD" | |
} | |
}, | |
{ | |
"id": "optn_NqKE50bb1wdgBL", | |
"name": "Green", | |
"price": { | |
"raw": 0, | |
"formatted": "0.00", | |
"formatted_with_symbol": "$0.00", | |
"formatted_with_code": "0.00 USD" | |
} | |
} | |
] | |
}, | |
{ | |
"id": "vrnt_O3bR5XB7Nkwnzd", | |
"name": "Size", | |
"options": [ | |
{ | |
"id": "optn_kpnNwAyyzwmXB3", | |
"name": "Small", | |
"price": { | |
"raw": 0, | |
"formatted": "0.00", | |
"formatted_with_symbol": "$0.00", | |
"formatted_with_code": "0.00 USD" | |
} | |
}, | |
{ | |
"id": "optn_8XO3wpWWAlYAzQ", | |
"name": "Medium", | |
"price": { | |
"raw": 1, | |
"formatted": "1.00", | |
"formatted_with_symbol": "$1.00", | |
"formatted_with_code": "1.00 USD" | |
} | |
}, | |
{ | |
"id": "optn_bO6J5app2oEjpK", | |
"name": "Large", | |
"price": { | |
"raw": 2, | |
"formatted": "2.00", | |
"formatted_with_symbol": "$2.00", | |
"formatted_with_code": "2.00 USD" | |
} | |
} | |
] | |
} | |
], | |
"conditionals": { | |
"is_active": true, | |
"is_free": false, | |
"is_pay_what_you_want": false, | |
"is_preorder": false, | |
"is_quantity_limited": false, | |
"is_sold_out": false, | |
"has_digital_delivery": true, | |
"has_physical_delivery": false, | |
"has_images": false, | |
"has_video": false, | |
"has_rich_embed": false, | |
"collects_fullname": true, | |
"collects_shipping_address": false, | |
"collects_billing_address": false, | |
"collects_extrafields": true | |
}, | |
"is": { | |
"active": true, | |
"free": false, | |
"pay_what_you_want": false, | |
"preorder": false, | |
"quantity_limited": false, | |
"sold_out": false | |
}, | |
"has": { | |
"digital_delivery": true, | |
"physical_delivery": false, | |
"images": false, | |
"video": false, | |
"rich_embed": false | |
}, | |
"collects": { | |
"fullname": true, | |
"shipping_address": false, | |
"billing_address": false, | |
"extrafields": true | |
} | |
} | |
], | |
"merchant": { | |
"id": 11013, | |
"business_name": "Commerce.js Test Account", | |
"business_description": "Commerce.js is a full-stack eCommerce api for designers and developers", | |
"currency": { | |
"symbol": "$", | |
"code": "USD" | |
}, | |
"support_email": "sandbox@commercejs.com", | |
"logo": "https://s3-us-west-2.amazonaws.com/chec-cdn/merchants/11013/images/icon/22cef3acab8fb6ca004f388df18066cdf851603357d1d54e251b5|csj.logo.white.png", | |
"logo_shape": "circle", | |
"cover": "https://s3-us-west-2.amazonaws.com/chec-cdn/merchants/11013/images/cover/ba3250991947bff6c6d55e044d150644b1a16ee157d1d54e25278|Comjs.Twitter.Header.png", | |
"statement_descriptor": null, | |
"has": { | |
"logo": true, | |
"cover": true, | |
"business_description": true | |
} | |
}, | |
"extrafields": [ | |
{ | |
"id": "extr_375vRZyqQMk5rM", | |
"name": "Website", | |
"required": true | |
} | |
], | |
"gateways": { | |
"available": { | |
"test_gateway": true, | |
"stripe": false, | |
"chec": false, | |
"paypal": true | |
}, | |
"available_count": 2, | |
"test_gateway": { | |
"type": "card", | |
"settings": [] | |
}, | |
"paypal": { | |
"type": "third_party", | |
"settings": { | |
"email": "paypal@trychec.com" | |
} | |
} | |
}, | |
"shipping_methods": [], | |
"live": { | |
"merchant_id": 11013, | |
"currency": { | |
"code": "USD", | |
"symbol": "$" | |
}, | |
"line_items": [ | |
{ | |
"id": "item_7RyWOwmK5nEa2V", | |
"product_id": "prod_7RyWOwmK5nEa2V", | |
"product_name": "Test Product", | |
"quantity": 1, | |
"price": { | |
"raw": 49, | |
"formatted": "49.00", | |
"formatted_with_symbol": "$49.00", | |
"formatted_with_code": "49.00 USD" | |
}, | |
"line_total": { | |
"raw": 49, | |
"formatted": "49.00", | |
"formatted_with_symbol": "$49.00", | |
"formatted_with_code": "49.00 USD" | |
}, | |
"variants": [], | |
"tax": { | |
"is_taxable": false, | |
"taxable_amount": null, | |
"amount": null, | |
"breakdown": null | |
} | |
} | |
], | |
"subtotal": { | |
"raw": 49, | |
"formatted": "49.00", | |
"formatted_with_symbol": "$49.00", | |
"formatted_with_code": "49.00 USD" | |
}, | |
"discount": [], | |
"shipping": { | |
"price": { | |
"raw": 0, | |
"formatted": "0.00", | |
"formatted_with_symbol": "$0.00", | |
"formatted_with_code": "0.00 USD" | |
} | |
}, | |
"tax": { | |
"amount": { | |
"raw": 0, | |
"formatted": "0.00", | |
"formatted_with_symbol": "$0.00", | |
"formatted_with_code": "0.00 USD" | |
} | |
}, | |
"total": { | |
"raw": 49, | |
"formatted": "49.00", | |
"formatted_with_symbol": "$49.00", | |
"formatted_with_code": "49.00 USD" | |
}, | |
"total_with_tax": { | |
"raw": 49, | |
"formatted": "49.00", | |
"formatted_with_symbol": "$49.00", | |
"formatted_with_code": "49.00 USD" | |
}, | |
"pay_what_you_want": { | |
"enabled": false, | |
"minimum": null, | |
"customer_set_price": null | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment