d
Topic
KenW Member
Posts:
2
4 months ago

API Order - what is the difference between billing_address, customer, shipping_address?

Hey all,

We're building an interface to translate the JSON to EDI format for some customers. 

Can you tell me what's the difference between the billing_address, customer, and shipping_address objects and more specifically, how does the customer differ from the other 2? (It seems to me that if you have the billing and shipping addresses, you have the customer info)

Thanks!

i
Replies
Posts:
4
4 months ago

Hey KenW, 

The customer property contains details about the customer tied to that order (most importantly, the customer id). That's how the order is related to that customer. This property is not guarateed to exist, some orders can be processed without a customer object (Shopify POS does this). 

In regards to the other two, as the sames suggest, billing_address and shipping_address are just addresses associated for billing and shipping. 

KenW Member
Posts:
2
4 months ago

thanks very much!