question

developer-1 avatar image
developer-1 asked David Marginian Deactivated commented

How to get Customer details from Orders API

The API docs show I can expand 'customers', however I am still not returning any customer data.

Ideas?

This is my API request:
https://scl.clover.com/v1/orders?created[gte]=2022-03-28T05%3A17%3A05-07%3A00&created[lte]=2022-04-27T05%3A17%3A05-07%3A00&limit=25&expand=customers

Here is a sample order ID: PFJFJS1JQ4WTG

REST API
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian Deactivated answered

You are using the wrong API, the ecomm API doesn't support expansions. You need to use: https://docs.clover.com/reference/ordergetorders.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

developer-1 avatar image
developer-1 answered David Marginian Deactivated commented

Thanks David,

I tried the Platform API and am still not getting customer data:



1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image David Marginian ♦♦ commented ·
Posting the entire response is not necessary. expand=customers will return the customer for each order if a customer has been set. I checked a few of the orders in the response you pasted and they did not have a customer set. I would highly recommend you test your integration in sandbox, not production.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community