Customer Endpoint + Customer Address
in Development
Hello - We are looking for some clarification on the API endpoints to query the customer record that contains the following: Customer endpoint: https://developers.lightspeedhq.com/retail/endpoints/Customer/
- Customer First and Last Name
- Contact information, phone, email
- Customer Address for shipping
We are implementing an application to send their shipping information to Dispatch Track to trigger a shipping order.
Customer contact information and address should already appear when that endpoint is called with a customer id.
I have done that already but do not see it being returned. While checking Lightspeed retail online we can see all of the information pertaining to customers but are unable to return their contact and shipping information.
Please advise and thanks in advanced.
8 comments
Hi,
You can get this information from the "Customer" endpoint by loading the "Contact" relation.
Example;
Ali - Thanks for the reply and reference. I'll take a look using your example.
Cheers!
Hi - We have been able to retrieve the customer information from the "Customer" endpoint by loading the "Contact" relation.
However, while constructing our customer order data XML file for DispatchTrack. We found that some additional information is not coming through like:
Is this information available in another relations endpoint that needs to be constructed with the customer endpoint + contact relation + order items?
Source:
https://api.lightspeedapp.com/API/V3/Account/{AccountID}/Item?load_relations=["ItemShops"]&ItemShops.qoh=>,1
Thank you in advance.
Sounds like you will also be needing to hit the Sale endpoint (https://developers.lightspeedhq.com/retail/endpoints/Sale/), including the SaleLine relation. So there isn't a one-shot deal for pulling both customer details, sales details, and item details in a single API request. You will likely need to hit several endpoints to get all of the data you appear to be looking for.
Hello Gregarican - Per your reply outlining the various endpoints.
This would apply to retrieving Instructions/Notes from internal team members on orders, correct?
See attached, removed everything except one note example.
We need to query the instructions and send them over to dispatch track and are having difficulty locating it with in the Sales endpoint.
Bump. Thank you in advance.
Bump - This would apply to retrieving Instructions/Notes from internal team members on orders, correct?
If you are hitting the Sale endpoint as I mentioned, then there are additional relations you can include in the API response. Including the Sale note and SaleLines note. As was mentioned in the Retail API documentation link that I provided. These relations include: