Skip to content

Instantly share code, notes, and snippets.

@john-raymon
Created August 12, 2020 23:49
Show Gist options
  • Save john-raymon/6f897e1783c1d0e0bd74160fd344d7ec to your computer and use it in GitHub Desktop.
Save john-raymon/6f897e1783c1d0e0bd74160fd344d7ec to your computer and use it in GitHub Desktop.
{
"id":"ord_eN1ql9rxedwz3y",
"cart_id":"cart_mwDaOdrme0aeDo",
"checkout_token_id":"chkt_LwjBg6y3DPGLew",
"created":1597275873,
"redirect":false,
"customer_reference":"CMMRC-109163",
"status_payment":"paid",
"status_fulfillment":"fulfilled",
"customer":{
"email":"[email protected]",
"firstname":"John",
"lastname":"Doe"
},
"currency":{
"code":"USD",
"symbol":"$"
},
"extrafields":[
{
"id":"extr_j0YnEoqOPle7P6",
"name":"Order notes",
"value":null,
"type":"text",
"required":false
}
],
"shipping":{
"name":"John Doe",
"street":"318 Homer Street",
"street_2":null,
"town_city":"Vancouver",
"county_state":"BC",
"postal_zip_code":"V6B2V2",
"country":"CA"
},
"billing":[
],
"order":{
"line_items":[
{
"id":"item_7RyWOwmK5nEa2V",
"product_id":"prod_31q0o3Za2wDdjR",
"product_name":"Complexion Cream",
"type":"standard",
"quantity":1,
"price":{
"raw":32,
"formatted":"32.00",
"formatted_with_symbol":"$32.00",
"formatted_with_code":"32.00 USD"
},
"line_total":{
"raw":89,
"formatted":"89.00",
"formatted_with_symbol":"$89.00",
"formatted_with_code":"89.00 USD"
},
"variants":[
{
"variant_id":"vrnt_QG375v38xlrMOg",
"option_id":"optn_kpnNwAVnxomXB3",
"variant_name":"Size",
"option_name":"500ml",
"price":{
"raw":57,
"formatted":"57.00",
"formatted_with_symbol":"$57.00",
"formatted_with_code":"57.00 USD"
}
}
],
"tax":{
"is_taxable":false,
"taxable_amount":null,
"amount":null,
"breakdown":[
]
}
}
],
"subtotal":{
"raw":89,
"formatted":"89.00",
"formatted_with_symbol":"$89.00",
"formatted_with_code":"89.00 USD"
},
"discount":{
"type":"percentage",
"code":"CUSTOMCOMMERCE",
"value":"50.00",
"amount_saved":{
"raw":44.5,
"formatted":"44.50",
"formatted_with_symbol":"$44.50",
"formatted_with_code":"44.50 USD"
},
"product_id":null
},
"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"
},
"included_in_price":false,
"breakdown":[
],
"zone":{
"country":"CA",
"region":"BC",
"postal_zip_code":"V6B 2V2",
"ip_address":null
}
},
"total":{
"raw":44.5,
"formatted":"44.50",
"formatted_with_symbol":"$44.50",
"formatted_with_code":"44.50 USD"
},
"total_with_tax":{
"raw":44.5,
"formatted":"44.50",
"formatted_with_symbol":"$44.50",
"formatted_with_code":"44.50 USD"
},
"giftcard":[
],
"pay_what_you_want":{
"enabled":false,
"minimum":null,
"customer_set_price":null
},
"future_charges":[
],
"total_paid":{
"raw":0,
"formatted":"0.00",
"formatted_with_symbol":"$0.00",
"formatted_with_code":"0.00 USD"
}
},
"fulfillment":{
"physical":{
"items":[
],
"shipments":[
]
},
"digital":{
"downloads":[
],
"webhooks":[
]
}
},
"conditionals":{
"collects_fullname":true,
"collects_shipping_address":true,
"collects_billing_address":false,
"fulfill_shipping":false,
"fulfill_digital":false,
"has_available_discounts":true,
"has_pay_what_you_want":false,
"collects_extrafields":true,
"is_cart_free":false
},
"metadata":[
],
"fraud":[
],
"payments":[
{
"id":"trns_7ZAMo1QPY7oNJ4",
"type":"card",
"reference":"4242",
"card_type":"visa",
"gateway":"test_gateway",
"gateway_name":"Test Gateway",
"gateway_transaction_id":"1597275873",
"amount":{
"raw":44.5,
"formatted":"44.50",
"formatted_with_symbol":"$44.50",
"formatted_with_code":"44.50 USD"
},
"currency":{
"code":"USD",
"symbol":"$"
},
"created":1597275873,
"payment_source":{
"brand":"visa",
"country":"US",
"billing_zip_postal_code":"V6B 2V2"
},
"is_refunded":false,
"refund_date":null
}
],
"refunds":[
],
"pending_payments":[
],
"merchant":{
"id":17851,
"business_name":"Commerce",
"business_description":"",
"status":"active",
"timezone":"UM8",
"country":"CA",
"currency":{
"symbol":"$",
"code":"USD"
},
"support_email":"[email protected]",
"logo":"https:\/\/cdn.chec.io\/merchants\/17851\/images\/icon\/9241ac5a755b6165cbd7abdb18562544920c167c5ec8743028c72|Commerce_logo_glasses.png",
"logo_shape":"circle",
"cover":null,
"is_manifold":0,
"intercom":true,
"analytics":{
"google":{
"settings":{
"tracking_id":null,
"linked_domains":null
}
}
},
"has":{
"logo":true,
"cover":false,
"analytics":false,
"business_description":false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment