Skip to content

Instantly share code, notes, and snippets.

@CarolHsu
Created October 30, 2019 19:08
Show Gist options
  • Save CarolHsu/40f0a943c94cacdeb5e7dc545cd548ca to your computer and use it in GitHub Desktop.
Save CarolHsu/40f0a943c94cacdeb5e7dc545cd548ca to your computer and use it in GitHub Desktop.
{
"req_body":{
"cart":{
"total_weight":254,
"item_count":1,
"requires_shipping":null,
"bold_cart_id":9643389,
"cart_token":"ca5c598902d2828a6d1405a6bd41d5ee",
"public_token":"1769fb7c418b104c75b73f955bcda565f7a939c7",
"attributes":null,
"line_items":[
{
"title":"NEW BOSE NOISE CANCELLING HEADPHONES 700",
"product_title":"NEW BOSE NOISE CANCELLING HEADPHONES 700",
"variant_title":null,
"image":"https://cdn.shopify.com/s/files/1/0262/2141/2461/products/Screenshot_2019-10-25_at_12.53.19_PM.png?v=1572022543",
"properties":null,
"quantity":1,
"price":1000,
"visible":1,
"taxable":true,
"line_item_key":"31006539415661:12f240ea32f34308bcf24a618cb62473",
"platform_variant_id":31006539415661,
"weight":254,
"weight_unit":null,
"requires_shipping":1,
"id":14811676,
"platform_variant":{
"id":31006539415661,
"barcode":"",
"compare_at_price":399,
"fulfillment_service":"manual",
"grams":254,
"inventory_management":"shopify",
"inventory_policy":"deny",
"option1":"Default Title",
"option2":"",
"option3":"",
"position":1,
"price":10,
"product_id":4315051720813,
"requires_shipping":1,
"sku":"BOSE_700",
"taxable":1,
"tax_code":"",
"title":"Default Title",
"inventory_quantity":99999998,
"old_inventory_quantity":99999998,
"image_id":0,
"created_at":"2019-10-25 16:55:43",
"updated_at":"2019-10-28 21:53:20",
"inventory_item_id":32475787821165,
"product":{
"id":4315051720813,
"myshopify_domain":"easyship-cashier-test.myshopify.com",
"handle":"new-bose-noise-cancelling-headphones-700",
"product_type":"",
"published_scope":"web",
"template_suffix":"",
"title":"NEW BOSE NOISE CANCELLING HEADPHONES 700",
"vendor":"easyship-cashier-test",
"tags":"",
"featured_image_id":13308435693677,
"created_at":"2019-10-25 16:55:43",
"updated_at":"2019-10-28 21:53:20"
}
}
}
],
"subtotal":1000
},
"cart_params":null,
"customer":{
"core_info":{
"first_name":"",
"last_name":"",
"tags":"",
"public_id":"",
"customer_id":0,
"email":"",
"billing_type":"same"
},
"shipping":{
"first_name":"",
"last_name":"",
"company":"",
"address":"",
"address2":"",
"city":"",
"country":"",
"country_code":"",
"province":"",
"province_code":"",
"postal_code":"",
"phone":""
},
"billing":{
"first_name":"",
"last_name":"",
"company":"",
"address":"",
"address2":"",
"city":"",
"country":"",
"country_code":"",
"province":"",
"province_code":"",
"postal_code":"",
"phone":""
},
"addresses":null
},
"discount_lines":null,
"idempotent_key":null,
"language_iso":"",
"order_id":9535340,
"properties":{
},
"shipping_lines":null,
"tax_lines":null,
"order":{
"currency":"USD",
"customer":{
"id":null,
"public_customer_id":null,
"platform_customer_id":null,
"core_info":{
"id":0,
"first_name":"",
"last_name":"",
"email":""
},
"shipping_address":{
"first_name":"",
"last_name":"",
"company":"",
"address1":"",
"address2":"",
"phone":"",
"city":"",
"province":"",
"province_code":"",
"country":"",
"country_code":"",
"zip":""
},
"billing_address":{
"first_name":"",
"last_name":"",
"company":"",
"address1":"",
"address2":"",
"phone":"",
"city":"",
"province":"",
"province_code":"",
"country":"",
"country_code":"",
"zip":""
}
},
"exchange_rate":"1.000000000000",
"fees":null,
"note":"",
"note_attributes":{
"_language_iso_code":""
},
"order_source":"cashier",
"order_source_name":"cashier",
"order_total":1000,
"public_order_id":"9L117bAFB6r1Y5qWwRnuNFwQhhqd7kNZ4nQ8471PBlTWn3SO6xFJbn2lxIFLO0DJ",
"resumable_url":"https://cashier.boldcommerce.com/shopify/easyship-cashier-test.myshopify.com/order/9L117bAFB6r1Y5qWwRnuNFwQhhqd7kNZ4nQ8471PBlTWn3SO6xFJbn2lxIFLO0DJ",
"shipping":null,
"tags":null
},
"event":"initialize_checkout",
"token":"bfb4af217afb5d3dcabc804cdd88acedfce9b629",
"shop":"easyship-cashier-test.myshopify.com",
"platform":"shopify",
"cashier":{
"cart":{
"total_weight":254,
"item_count":1,
"requires_shipping":null,
"bold_cart_id":9643389,
"cart_token":"ca5c598902d2828a6d1405a6bd41d5ee",
"public_token":"1769fb7c418b104c75b73f955bcda565f7a939c7",
"attributes":null,
"line_items":[
{
"title":"NEW BOSE NOISE CANCELLING HEADPHONES 700",
"product_title":"NEW BOSE NOISE CANCELLING HEADPHONES 700",
"variant_title":null,
"image":"https://cdn.shopify.com/s/files/1/0262/2141/2461/products/Screenshot_2019-10-25_at_12.53.19_PM.png?v=1572022543",
"properties":null,
"quantity":1,
"price":1000,
"visible":1,
"taxable":true,
"line_item_key":"31006539415661:12f240ea32f34308bcf24a618cb62473",
"platform_variant_id":31006539415661,
"weight":254,
"weight_unit":null,
"requires_shipping":1,
"id":14811676,
"platform_variant":{
"id":31006539415661,
"barcode":"",
"compare_at_price":399,
"fulfillment_service":"manual",
"grams":254,
"inventory_management":"shopify",
"inventory_policy":"deny",
"option1":"Default Title",
"option2":"",
"option3":"",
"position":1,
"price":10,
"product_id":4315051720813,
"requires_shipping":1,
"sku":"BOSE_700",
"taxable":1,
"tax_code":"",
"title":"Default Title",
"inventory_quantity":99999998,
"old_inventory_quantity":99999998,
"image_id":0,
"created_at":"2019-10-25 16:55:43",
"updated_at":"2019-10-28 21:53:20",
"inventory_item_id":32475787821165,
"product":{
"id":4315051720813,
"myshopify_domain":"easyship-cashier-test.myshopify.com",
"handle":"new-bose-noise-cancelling-headphones-700",
"product_type":"",
"published_scope":"web",
"template_suffix":"",
"title":"NEW BOSE NOISE CANCELLING HEADPHONES 700",
"vendor":"easyship-cashier-test",
"tags":"",
"featured_image_id":13308435693677,
"created_at":"2019-10-25 16:55:43",
"updated_at":"2019-10-28 21:53:20"
}
}
}
],
"subtotal":1000
},
"cart_params":null,
"customer":{
"core_info":{
"first_name":"",
"last_name":"",
"tags":"",
"public_id":"",
"customer_id":0,
"email":"",
"billing_type":"same"
},
"shipping":{
"first_name":"",
"last_name":"",
"company":"",
"address":"",
"address2":"",
"city":"",
"country":"",
"country_code":"",
"province":"",
"province_code":"",
"postal_code":"",
"phone":""
},
"billing":{
"first_name":"",
"last_name":"",
"company":"",
"address":"",
"address2":"",
"city":"",
"country":"",
"country_code":"",
"province":"",
"province_code":"",
"postal_code":"",
"phone":""
},
"addresses":null
},
"discount_lines":null,
"idempotent_key":null,
"language_iso":"",
"order_id":9535340,
"properties":{
},
"shipping_lines":null,
"tax_lines":null,
"order":{
"currency":"USD",
"customer":{
"id":null,
"public_customer_id":null,
"platform_customer_id":null,
"core_info":{
"id":0,
"first_name":"",
"last_name":"",
"email":""
},
"shipping_address":{
"first_name":"",
"last_name":"",
"company":"",
"address1":"",
"address2":"",
"phone":"",
"city":"",
"province":"",
"province_code":"",
"country":"",
"country_code":"",
"zip":""
},
"billing_address":{
"first_name":"",
"last_name":"",
"company":"",
"address1":"",
"address2":"",
"phone":"",
"city":"",
"province":"",
"province_code":"",
"country":"",
"country_code":"",
"zip":""
}
},
"exchange_rate":"1.000000000000",
"fees":null,
"note":"",
"note_attributes":{
"_language_iso_code":""
},
"order_source":"cashier",
"order_source_name":"cashier",
"order_total":1000,
"public_order_id":"9L117bAFB6r1Y5qWwRnuNFwQhhqd7kNZ4nQ8471PBlTWn3SO6xFJbn2lxIFLO0DJ",
"resumable_url":"https://cashier.boldcommerce.com/shopify/easyship-cashier-test.myshopify.com/order/9L117bAFB6r1Y5qWwRnuNFwQhhqd7kNZ4nQ8471PBlTWn3SO6xFJbn2lxIFLO0DJ",
"shipping":null,
"tags":null
},
"event":"initialize_checkout"
}
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment