# The customer\_id is gone in the orders-api

**URL:** <https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603>\
**Category:** Questions\
**Tags:** orders-api\
**Created:** [November 15, 2022, 9:44pm UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603 "2022-11-15T21:44:05Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![user4233](https://avatars.discourse-cdn.com/v4/letter/u/48db29/32.png) [@user4233](https://developer.squareup.com/forums/u/user4233)\
**Post date:** [November 15, 2022, 9:44pm UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/1 "2022-11-15T21:44:05Z")

</div>

Hi @Bryan-Square, it was awesome we can get the information we needed thanks to you and your team, but now the customer\_id is not coming up any more in our orders-api retrieval. Is that how it’s supposed to be? any advise about how to find the customer\_id now? or how can we know the what customer is creating the order?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [November 15, 2022, 10:03pm UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/2 "2022-11-15T22:03:23Z")

</div>

Hmm, what’s the order\_id? 🙂

---

<div class="post-metadata">

**Author:** ![user4233](https://avatars.discourse-cdn.com/v4/letter/u/48db29/32.png) [@user4233](https://developer.squareup.com/forums/u/user4233)\
**Post date:** [November 15, 2022, 10:26pm UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/3 "2022-11-15T22:26:32Z")

</div>

Any order we retrieve now comes without customer\_id, but now it comes with delivery details, so the only think we guess is that the customer\_id was replaced with the delivery recipient details? but with no id we need to search Square customers-api to get it?  
This is the id of a recent order without customer\_id: BTck6U6Xe4G1PeyXrXgraLyYTMLZY

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [November 16, 2022, 1:07am UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/4 "2022-11-16T01:07:36Z")

</div>

Doesn’t look like a `customer_id` was set for that order. 🙂

---

<div class="post-metadata">

**Author:** ![user4233](https://avatars.discourse-cdn.com/v4/letter/u/48db29/32.png) [@user4233](https://developer.squareup.com/forums/u/user4233)\
**Post date:** [November 16, 2022, 2:23am UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/5 "2022-11-16T02:23:31Z")

</div>

What do you mean? there is a Recipient and a Contact look:

### Delivery details

**Recipient**  
Ali Sadeghi

**Contact**  
510-610-8536

[ali.sadeghi@me.com](mailto:ali.sadeghi@me.com)  
**Location**  
Lavender Bakery & Cafe

**Deliver to**  
Ali Sadeghi  
6602 Hagen Boulevard  
El Cerrito, CA 94530  
United States

how can that order not have a customer\_id set?  
and also these other orders with the same customer:  
1F21BHz1pDZQBYOWJThyiZ4PHcKZY  
NFQvi9ycQspc514mThorrSCGh3dZY  
9ZUmo5jTMkC1i28QyTpZFOK3IkPZY

---

<div class="post-metadata">

**Author:** ![user4233](https://avatars.discourse-cdn.com/v4/letter/u/48db29/32.png) [@user4233](https://developer.squareup.com/forums/u/user4233)\
**Post date:** [November 16, 2022, 8:47am UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/6 "2022-11-16T08:47:37Z")

</div>

@Bryan-Square, this order has a different customer Emma Whitson and also it has no customer\_id, can you take a look at it? and if there is a reason for these orders to have no customer\_id set? it’s very confusing for us?

order\_id = BH2wsoXbRqERi0kTWSCX9hiAq3UZY

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [November 16, 2022, 5:43pm UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/7 "2022-11-16T17:43:19Z")

</div>

I just checked `BH2wsoXbRqERi0kTWSCX9hiAq3UZY` and it has a `customer_id` in it. In the order `BTck6U6Xe4G1PeyXrXgraLyYTMLZY` did they checkout differently or use a new card? 🙂

---

<div class="post-metadata">

**Author:** ![user4233](https://avatars.discourse-cdn.com/v4/letter/u/48db29/32.png) [@user4233](https://developer.squareup.com/forums/u/user4233)\
**Post date:** [November 24, 2022, 11:45am UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/8 "2022-11-24T11:45:54Z")

</div>

@Bryan-Square, the issue happens randomly and is causing us some issues, so we have been monitoring when it happens and we found a pattern:

- Delivery orders are the ones missing the customer\_id.
- The customer\_id is missing in the webhook payload right when the payment is done.
- If we retrieve the order some time later the customer\_id comes up.
- So, that is the reason because you see the customer\_id and we don’t, because we see the payload right when the payment is done, but you see it days later.

So, to demonstrate the problem here are the payloads for 2 orders that we received without customer\_id at first and later when it came up. We are sending you the these points for 2 of these orders we got without customerID below:

1st order\_id  
1st order payload WITHOUT customer\_id  
1st order payload WITH customer\_id

2nd order\_id  
2nd order payload WITHOUT customer\_id  
2nd order payload WITH customer\_id

You can compare the versions between both payloads, and hopefully you can do something so we can get the customer\_id from the initial moment the webhook send us information as it works with Pickups. It’s important to mention again that Pickups work perfectly fine, and the issue affecting us is only for Deliveries:

1st order\_id: phDrp7seGsc586D0MsHKsJJtieDZY  
1st order payload WITHOUT customer\_id:  
{  
“order”:{  
“id”:“dPzQ0uMZLt6KAOFuabJHuddQTPTZY”,  
“location\_id”:“LXE4FC194XMVZ”,  
“line\_items”:[  
{  
“uid”:“CnRrqXU1ctjBtkNZYPWnUC”,  
“catalog\_object\_id”:“5ZICMFM6G4WET7XYVE4AYAAG”,  
“catalog\_version”:1668968232679,  
“quantity”:“1”,  
“name”:“Apple Pie”,  
“variation\_name”:“8 inch”,  
“base\_price\_money”:{  
“amount”:2400,  
“currency”:“USD”},  
“gross\_sales\_money”:{  
“amount”:2400,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_money”:{  
“amount”:2400,  
“currency”:“USD”},  
“variation\_total\_price\_money”:{  
“amount”:2400,  
“currency”:“USD”},  
“item\_type”:“ITEM”},  
{  
“uid”:“ixGv2ARfg7gLNbpzTJqbn”,  
“catalog\_object\_id”:“QKGI2HFXBRT7Q2K6QA3JZ5ET”,  
“catalog\_version”:1668968232679,  
“quantity”:“1”,  
“name”:“Chocolate Chip Cookie”,  
“variation\_name”:“Regular”,  
“base\_price\_money”:{  
“amount”:1450,  
“currency”:“USD”},  
“gross\_sales\_money”:{  
“amount”:1450,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_money”:{  
“amount”:1450,  
“currency”:“USD”},  
“variation\_total\_price\_money”:{  
“amount”:1450,  
“currency”:“USD”},  
“item\_type”:“ITEM”,  
“quantity\_unit”:{  
“measurement\_unit”:{  
“weight\_unit”:“IMPERIAL\_POUND”,  
“type”:“TYPE\_WEIGHT”},  
“precision”:3,  
“catalog\_object\_id”:“YMMEDAIREJCFHKLE6OFB5OUA”,  
“catalog\_version”:1668968232679}}],  
“fulfillments”:[  
{  
“uid”:“FZQjpIHaAF90aoJ5NNOv5”,  
“type”:“DELIVERY”,  
“state”:“PROPOSED”,  
“line\_item\_application”:“ALL”,  
“delivery\_details”:{  
“recipient”:{  
“display\_name”:“Customer Name”,  
“[email\_address":"customer.email@gmail.com](mailto:email_address%22:%22customer.email@gmail.com)”,  
“phone\_number”:“7773334444”,  
“address”:{  
“address\_line\_1”:“3434 customer ave”,  
“address\_line\_2”:“front house”,  
“locality”:“Miami”,  
“administrative\_district\_level\_1”:“FL”,  
“postal\_code”:“33333”,  
“country”:“US”}},  
“schedule\_type”:“ASAP”,  
“placed\_at”:“2022-11-23T02:14:40.843Z”,  
“deliver\_at”:“2022-11-25T00:00:00.000Z”,  
“prep\_time\_duration”:“PT10M”,  
“delivery\_window\_duration”:“PT10M”,  
“note”:“Delivery By Doordash. Courier pickup time: 11/24/2022 3:09pm - 3:19pm. For issues, contact 1(855) 599-7066 and provide the following delivery ID: 1498725463.\nTotal Fees Applied: $21.27”,  
“courier\_pickup\_at”:“2022-11-24T23:09:32.000Z”,  
“is\_no\_contact\_delivery”:false,  
“dropoff\_notes”:“”,  
“courier\_provider\_name”:“Doordash”,  
“courier\_support\_phone\_number”:“1(855) 599-7066”,  
“square\_delivery\_id”:“127i5yivuz58jw4hjwv3dzzle”,  
“external\_delivery\_id”:“1498725463”}}],  
“created\_at”:“2022-11-23T02:14:39.368Z”,  
“updated\_at”:“2022-11-23T02:14:42.000Z”,  
“state”:“OPEN”,  
“version”:4,  
“reference\_id”:“11ed6ad3d3299dbf9f3bac1f6bbbcc9c”,  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_tip\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_money”:{  
“amount”:5827,  
“currency”:“USD”},  
“tenders”:[  
{  
“id”:“35DKmBajUeHkcRqSm9YykhX4QL7YY”,  
“location\_id”:“LXE4FC194XMVZ”,  
“transaction\_id”:“dPzQ0uMZLt6KAOFuabJHuddQTPTZY”,  
“created\_at”:“2022-11-23T02:14:39Z”,  
“amount\_money”:{  
“amount”:5827,  
“currency”:“USD”},  
“type”:“CARD”,  
“card\_details”:{  
“status”:“CAPTURED”,  
“card”:{  
“card\_brand”:“VISA”,  
“last\_4”:“9585”,  
“fingerprint”:“sq-1-tnJWLtNnuHnG5x93zcNOmnzlkPObRghNts77rwFAr1CcKFzzBug3LKU2Tg64zkhBWA”},  
“entry\_method”:“KEYED”},  
“payment\_id”:“35DKmBajUeHkcRqSm9YykhX4QL7YY”}],  
“service\_charges”:[  
{  
“uid”:“gFeGS8LVhkaKFe94IvZRyC”,  
“name”:“Delivery”,  
“amount\_money”:{  
“amount”:1399,  
“currency”:“USD”},  
“applied\_money”:{  
“amount”:1399,  
“currency”:“USD”},  
“calculation\_phase”:“SUBTOTAL\_PHASE”,  
“taxable”:false,  
“total\_money”:{  
“amount”:1399,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“type”:“CUSTOM”},  
{  
“uid”:“Wl3k9ChCB7tGKlNPPVX13B”,  
“name”:“Courier Tip”,  
“amount\_money”:{  
“amount”:578,  
“currency”:“USD”},  
“applied\_money”:{  
“amount”:578,  
“currency”:“USD”},  
“calculation\_phase”:“SUBTOTAL\_PHASE”,  
“taxable”:false,  
“total\_money”:{  
“amount”:578,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“type”:“CUSTOM”}],  
“total\_service\_charge\_money”:{  
“amount”:1977,  
“currency”:“USD”},  
“net\_amounts”:{  
“total\_money”:{  
“amount”:5827,  
“currency”:“USD”},  
“tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“tip\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“service\_charge\_money”:{  
“amount”:1977,  
“currency”:“USD”}},  
“source”:{  
“name”:“Square Online”},  
“net\_amount\_due\_money”:{  
“amount”:0,  
“currency”:“USD”}}

}

1st order payload WITH customer\_id:  
{

“order”:{  
“id”:“dPzQ0uMZLt6KAOFuabJHuddQTPTZY”,  
“location\_id”:“LXE4FC194XMVZ”,  
“line\_items”:[  
{  
“uid”:“CnRrqXU1ctjBtkNZYPWnUC”,  
“catalog\_object\_id”:“5ZICMFM6G4WET7XYVE4AYAAG”,  
“catalog\_version”:1668968232679,  
“quantity”:“1”,  
“name”:“Apple Pie”,  
“variation\_name”:“8 inch”,  
“base\_price\_money”:{  
“amount”:2400,  
“currency”:“USD”},  
“gross\_sales\_money”:{  
“amount”:2400,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_money”:{  
“amount”:2400,  
“currency”:“USD”},  
“variation\_total\_price\_money”:{  
“amount”:2400,  
“currency”:“USD”},  
“item\_type”:“ITEM”},  
{  
“uid”:“ixGv2ARfg7gLNbpzTJqbn”,  
“catalog\_object\_id”:“QKGI2HFXBRT7Q2K6QA3JZ5ET”,  
“catalog\_version”:1668968232679,  
“quantity”:“1”,  
“name”:“Chocolate Chip Cookie”,  
“variation\_name”:“Regular”,  
“base\_price\_money”:{  
“amount”:1450,  
“currency”:“USD”},  
“gross\_sales\_money”:{  
“amount”:1450,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_money”:{  
“amount”:1450,  
“currency”:“USD”},  
“variation\_total\_price\_money”:{  
“amount”:1450,  
“currency”:“USD”},  
“item\_type”:“ITEM”,  
“quantity\_unit”:{  
“measurement\_unit”:{  
“weight\_unit”:“IMPERIAL\_POUND”,  
“type”:“TYPE\_WEIGHT”},  
“precision”:3,  
“catalog\_object\_id”:“YMMEDAIREJCFHKLE6OFB5OUA”,  
“catalog\_version”:1668968232679}}],  
“fulfillments”:[  
{  
“uid”:“FZQjpIHaAF90aoJ5NNOv5”,  
“type”:“DELIVERY”,  
“state”:“PROPOSED”,  
“line\_item\_application”:“ALL”,  
“delivery\_details”:{  
“recipient”:{  
“display\_name”:“Customer Name”,  
“[email\_address":"customer.email@gmail.com](mailto:email_address%22:%22customer.email@gmail.com)”,  
“phone\_number”:“7773334444”,  
“address”:{  
“address\_line\_1”:“3434 customer ave”,  
“address\_line\_2”:“front house”,  
“locality”:“Miami”,  
“administrative\_district\_level\_1”:“FL”,  
“postal\_code”:“33333”,  
“country”:“US”}},  
“schedule\_type”:“ASAP”,  
“placed\_at”:“2022-11-23T02:14:40.843Z”,  
“deliver\_at”:“2022-11-25T00:00:00.000Z”,  
“prep\_time\_duration”:“PT10M”,  
“delivery\_window\_duration”:“PT10M”,  
“note”:“Delivery By Doordash. Courier pickup time: 11/24/2022 3:09pm - 3:19pm. For issues, contact 1(855) 599-7066 and provide the following delivery ID: 1498725463.\nTotal Fees Applied: $21.27”,  
“courier\_pickup\_at”:“2022-11-24T23:09:32.000Z”,  
“is\_no\_contact\_delivery”:false,  
“dropoff\_notes”:“”,  
“courier\_provider\_name”:“Doordash”,  
“courier\_support\_phone\_number”:“1(855) 599-7066”,  
“square\_delivery\_id”:“127i5yivuz58jw4hjwv3dzzle”,  
“external\_delivery\_id”:“1498725463”}}],  
“created\_at”:“2022-11-23T02:14:39.368Z”,  
“updated\_at”:“2022-11-23T03:39:52.658Z”,  
“state”:“OPEN”,  
“version”:6,  
“reference\_id”:“11ed6ad3d3299dbf9f3bac1f6bbbcc9c”,  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_tip\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_money”:{  
“amount”:5827,  
“currency”:“USD”},  
“tenders”:[  
{  
“id”:“35DKmBajUeHkcRqSm9YykhX4QL7YY”,  
“location\_id”:“LXE4FC194XMVZ”,  
“transaction\_id”:“dPzQ0uMZLt6KAOFuabJHuddQTPTZY”,  
“created\_at”:“2022-11-23T02:14:39Z”,  
“amount\_money”:{  
“amount”:5827,  
“currency”:“USD”},  
“type”:“CARD”,  
“card\_details”:{  
“status”:“CAPTURED”,  
“card”:{  
“card\_brand”:“VISA”,  
“last\_4”:“9585”,  
“fingerprint”:“sq-1-tnJWLtNnuHnG5x93zcNOmnzlkPObRghNts77rwFAr1CcKFzzBug3LKU2Tg64zkhBWA”},  
“entry\_method”:“KEYED”},  
“payment\_id”:“35DKmBajUeHkcRqSm9YykhX4QL7YY”}],  
“service\_charges”:[  
{  
“uid”:“gFeGS8LVhkaKFe94IvZRyC”,  
“name”:“Delivery”,  
“amount\_money”:{  
“amount”:1399,  
“currency”:“USD”},  
“applied\_money”:{  
“amount”:1399,  
“currency”:“USD”},  
“calculation\_phase”:“SUBTOTAL\_PHASE”,  
“taxable”:false,  
“total\_money”:{  
“amount”:1399,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“type”:“CUSTOM”},  
{  
“uid”:“Wl3k9ChCB7tGKlNPPVX13B”,  
“name”:“Courier Tip”,  
“amount\_money”:{  
“amount”:578,  
“currency”:“USD”},  
“applied\_money”:{  
“amount”:578,  
“currency”:“USD”},  
“calculation\_phase”:“SUBTOTAL\_PHASE”,  
“taxable”:false,  
“total\_money”:{  
“amount”:578,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“type”:“CUSTOM”}],  
“total\_service\_charge\_money”:{  
“amount”:1977,  
“currency”:“USD”},  
“net\_amounts”:{  
“total\_money”:{  
“amount”:5827,  
“currency”:“USD”},  
“tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“tip\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“service\_charge\_money”:{  
“amount”:1977,  
“currency”:“USD”}},  
“source”:{  
“name”:“Square Online”},  
“customer\_id”:“C51RQ41T3D4RQ7QJN4SA1XAQ9G”,  
“net\_amount\_due\_money”:{  
“amount”:0,  
“currency”:“USD”}}

}

2nd order\_id: v26MuzX2JfWz7iLBrtQtYhIT4RfZY  
2nd order payload WITHOUT customer\_id:  
{

“order”:{  
“id”:“v26MuzX2JfWz7iLBrtQtYhIT4RfZY”,  
“location\_id”:“LXE4FC194XMVZ”,  
“line\_items”:[  
{  
“uid”:“TCEq1LDwjHPYZzMJFVrPQ”,  
“catalog\_object\_id”:“IAJZ3ZNGAE5WG3OA4EAJF5WY”,  
“catalog\_version”:1668968232679,  
“quantity”:“1”,  
“name”:“Pumpkin Pie”,  
“variation\_name”:“9 inch”,  
“base\_price\_money”:{  
“amount”:2600,  
“currency”:“USD”},  
“gross\_sales\_money”:{  
“amount”:2600,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_money”:{  
“amount”:2600,  
“currency”:“USD”},  
“variation\_total\_price\_money”:{  
“amount”:2600,  
“currency”:“USD”},  
“item\_type”:“ITEM”},  
{  
“uid”:“JUGVFfRKvAyA313s4tPCyB”,  
“catalog\_object\_id”:“KKWTWAWFIORFG4PRDPYDENK4”,  
“catalog\_version”:1668968232679,  
“quantity”:“1”,  
“name”:“Frangipane Tart”,  
“variation\_name”:“Apple”,  
“base\_price\_money”:{  
“amount”:695,  
“currency”:“USD”},  
“gross\_sales\_money”:{  
“amount”:695,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_money”:{  
“amount”:695,  
“currency”:“USD”},  
“variation\_total\_price\_money”:{  
“amount”:695,  
“currency”:“USD”},  
“item\_type”:“ITEM”}],  
“fulfillments”:[  
{  
“uid”:“jYnzCaPON6hcmkaySeltFD”,  
“type”:“DELIVERY”,  
“state”:“PROPOSED”,  
“line\_item\_application”:“ALL”,  
“delivery\_details”:{  
“recipient”:{  
“display\_name”:“Customer name”,  
“[email\_address":"customer.email@gmail.com](mailto:email_address%22:%22customer.email@gmail.com)”,  
“phone\_number”:“7773334444”,  
“address”:{  
“address\_line\_1”:“3434 customer ave”,  
“locality”:“Miami”,  
“administrative\_district\_level\_1”:“FL”,  
“postal\_code”:“33333”,  
“country”:“US”}},  
“schedule\_type”:“ASAP”,  
“placed\_at”:“2022-11-23T14:53:05.312Z”,  
“deliver\_at”:“2022-11-24T18:00:00.000Z”,  
“prep\_time\_duration”:“PT10M”,  
“delivery\_window\_duration”:“PT10M”,  
“note”:“Delivery By Doordash. Courier pickup time: 11/24/2022 9:32am - 9:42am. For issues, contact 1(855) 599-7066 and provide the following delivery ID: 1498832701.\nTotal Fees Applied: $18.73”,  
“courier\_pickup\_at”:“2022-11-24T17:32:41.000Z”,  
“is\_no\_contact\_delivery”:false,  
“dropoff\_notes”:“”,  
“courier\_provider\_name”:“Doordash”,  
“courier\_support\_phone\_number”:“1(855) 599-7066”,  
“square\_delivery\_id”:“127i6l4p0r6ghaileknbcvs36”,  
“external\_delivery\_id”:“1498832701”}}],  
“created\_at”:“2022-11-23T14:53:03.220Z”,  
“updated\_at”:“2022-11-23T14:53:06.000Z”,  
“state”:“OPEN”,  
“version”:4,  
“reference\_id”:“11ed6a80c0c6c1ac9f3bac1f6bbbcc9c”,  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_tip\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_money”:{  
“amount”:5018,  
“currency”:“USD”},  
“tenders”:[  
{  
“id”:“ThqpLPzmpJDqN6TGMYrEJvrbD4UZY”,  
“location\_id”:“LXE4FC194XMVZ”,  
“transaction\_id”:“v26MuzX2JfWz7iLBrtQtYhIT4RfZY”,  
“created\_at”:“2022-11-23T14:53:03Z”,  
“amount\_money”:{  
“amount”:5018,  
“currency”:“USD”},  
“type”:“CARD”,  
“card\_details”:{  
“status”:“CAPTURED”,  
“card”:{  
“card\_brand”:“VISA”,  
“last\_4”:“1673”,  
“fingerprint”:“sq-1-Kd2h9Cvl7\_hikxMN3dEXNMRWz6pbfvVr-Pg-FQip90bdtnia9PrbyOwT2PnSccg3cw”},  
“entry\_method”:“KEYED”},  
“payment\_id”:“ThqpLPzmpJDqN6TGMYrEJvrbD4UZY”}],  
“service\_charges”:[  
{  
“uid”:“DbotNghRktgaYaLW932E4C”,  
“name”:“Delivery”,  
“amount\_money”:{  
“amount”:899,  
“currency”:“USD”},  
“applied\_money”:{  
“amount”:899,  
“currency”:“USD”},  
“calculation\_phase”:“SUBTOTAL\_PHASE”,  
“taxable”:false,  
“total\_money”:{  
“amount”:899,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“type”:“CUSTOM”},  
{  
“uid”:“AYdep1QOIEYBDnAn6vrImB”,  
“name”:“Courier Tip”,  
“amount\_money”:{  
“amount”:824,  
“currency”:“USD”},  
“applied\_money”:{  
“amount”:824,  
“currency”:“USD”},  
“calculation\_phase”:“SUBTOTAL\_PHASE”,  
“taxable”:false,  
“total\_money”:{  
“amount”:824,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“type”:“CUSTOM”}],  
“total\_service\_charge\_money”:{  
“amount”:1723,  
“currency”:“USD”},  
“net\_amounts”:{  
“total\_money”:{  
“amount”:5018,  
“currency”:“USD”},  
“tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“tip\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“service\_charge\_money”:{  
“amount”:1723,  
“currency”:“USD”}},  
“source”:{  
“name”:“Square Online”},  
“net\_amount\_due\_money”:{  
“amount”:0,  
“currency”:“USD”}}

}

2nd order payload WITH customer\_id:  
{

“order”:{  
“id”:“v26MuzX2JfWz7iLBrtQtYhIT4RfZY”,  
“location\_id”:“LXE4FC194XMVZ”,  
“line\_items”:[  
{  
“uid”:“TCEq1LDwjHPYZzMJFVrPQ”,  
“catalog\_object\_id”:“IAJZ3ZNGAE5WG3OA4EAJF5WY”,  
“catalog\_version”:1668968232679,  
“quantity”:“1”,  
“name”:“Pumpkin Pie”,  
“variation\_name”:“9 inch”,  
“base\_price\_money”:{  
“amount”:2600,  
“currency”:“USD”},  
“gross\_sales\_money”:{  
“amount”:2600,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_money”:{  
“amount”:2600,  
“currency”:“USD”},  
“variation\_total\_price\_money”:{  
“amount”:2600,  
“currency”:“USD”},  
“item\_type”:“ITEM”},  
{  
“uid”:“JUGVFfRKvAyA313s4tPCyB”,  
“catalog\_object\_id”:“KKWTWAWFIORFG4PRDPYDENK4”,  
“catalog\_version”:1668968232679,  
“quantity”:“1”,  
“name”:“Frangipane Tart”,  
“variation\_name”:“Apple”,  
“base\_price\_money”:{  
“amount”:695,  
“currency”:“USD”},  
“gross\_sales\_money”:{  
“amount”:695,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_money”:{  
“amount”:695,  
“currency”:“USD”},  
“variation\_total\_price\_money”:{  
“amount”:695,  
“currency”:“USD”},  
“item\_type”:“ITEM”}],  
“fulfillments”:[  
{  
“uid”:“jYnzCaPON6hcmkaySeltFD”,  
“type”:“DELIVERY”,  
“state”:“PROPOSED”,  
“line\_item\_application”:“ALL”,  
“delivery\_details”:{  
“recipient”:{  
“display\_name”:“Customer name”,  
“[email\_address":"customer.email@gmail.com](mailto:email_address%22:%22customer.email@gmail.com)”,  
“phone\_number”:“7773334444”,  
“address”:{  
“address\_line\_1”:“3434 customer ave”,  
“locality”:“Miami”,  
“administrative\_district\_level\_1”:“FL”,  
“postal\_code”:“33333”,  
“country”:“US”}},  
“schedule\_type”:“ASAP”,  
“placed\_at”:“2022-11-23T14:53:05.312Z”,  
“deliver\_at”:“2022-11-24T18:00:00.000Z”,  
“prep\_time\_duration”:“PT10M”,  
“delivery\_window\_duration”:“PT10M”,  
“note”:“Delivery By Doordash. Courier pickup time: 11/24/2022 9:32am - 9:42am. For issues, contact 1(855) 599-7066 and provide the following delivery ID: 1498832701.\nTotal Fees Applied: $18.73”,  
“courier\_pickup\_at”:“2022-11-24T17:32:41.000Z”,  
“is\_no\_contact\_delivery”:false,  
“dropoff\_notes”:“”,  
“courier\_provider\_name”:“Doordash”,  
“courier\_support\_phone\_number”:“1(855) 599-7066”,  
“square\_delivery\_id”:“127i6l4p0r6ghaileknbcvs36”,  
“external\_delivery\_id”:“1498832701”}}],  
“created\_at”:“2022-11-23T14:53:03.220Z”,  
“updated\_at”:“2022-11-23T16:20:02.754Z”,  
“state”:“OPEN”,  
“version”:6,  
“reference\_id”:“11ed6a80c0c6c1ac9f3bac1f6bbbcc9c”,  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_tip\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“total\_money”:{  
“amount”:5018,  
“currency”:“USD”},  
“tenders”:[  
{  
“id”:“ThqpLPzmpJDqN6TGMYrEJvrbD4UZY”,  
“location\_id”:“LXE4FC194XMVZ”,  
“transaction\_id”:“v26MuzX2JfWz7iLBrtQtYhIT4RfZY”,  
“created\_at”:“2022-11-23T14:53:03Z”,  
“amount\_money”:{  
“amount”:5018,  
“currency”:“USD”},  
“type”:“CARD”,  
“card\_details”:{  
“status”:“CAPTURED”,  
“card”:{  
“card\_brand”:“VISA”,  
“last\_4”:“1673”,  
“fingerprint”:“sq-1-Kd2h9Cvl7\_hikxMN3dEXNMRWz6pbfvVr-Pg-FQip90bdtnia9PrbyOwT2PnSccg3cw”},  
“entry\_method”:“KEYED”},  
“payment\_id”:“ThqpLPzmpJDqN6TGMYrEJvrbD4UZY”}],  
“service\_charges”:[  
{  
“uid”:“DbotNghRktgaYaLW932E4C”,  
“name”:“Delivery”,  
“amount\_money”:{  
“amount”:899,  
“currency”:“USD”},  
“applied\_money”:{  
“amount”:899,  
“currency”:“USD”},  
“calculation\_phase”:“SUBTOTAL\_PHASE”,  
“taxable”:false,  
“total\_money”:{  
“amount”:899,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“type”:“CUSTOM”},  
{  
“uid”:“AYdep1QOIEYBDnAn6vrImB”,  
“name”:“Courier Tip”,  
“amount\_money”:{  
“amount”:824,  
“currency”:“USD”},  
“applied\_money”:{  
“amount”:824,  
“currency”:“USD”},  
“calculation\_phase”:“SUBTOTAL\_PHASE”,  
“taxable”:false,  
“total\_money”:{  
“amount”:824,  
“currency”:“USD”},  
“total\_tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“type”:“CUSTOM”}],  
“total\_service\_charge\_money”:{  
“amount”:1723,  
“currency”:“USD”},  
“net\_amounts”:{  
“total\_money”:{  
“amount”:5018,  
“currency”:“USD”},  
“tax\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“discount\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“tip\_money”:{  
“amount”:0,  
“currency”:“USD”},  
“service\_charge\_money”:{  
“amount”:1723,  
“currency”:“USD”}},  
“source”:{  
“name”:“Square Online”},  
“customer\_id”:“DADDRB9FJH79H3CED44FX7GPVW”,  
“net\_amount\_due\_money”:{  
“amount”:0,  
“currency”:“USD”}}

}

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [November 25, 2022, 7:37pm UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/9 "2022-11-25T19:37:43Z")

</div>

I’m checking with the team but I believe this is the expected behavior. The `customer_id` may not be immediately available when the order is first created and due to some asynchronous functions the `customer_id` is added later. 🙂

---

<div class="post-metadata">

**Author:** ![user4233](https://avatars.discourse-cdn.com/v4/letter/u/48db29/32.png) [@user4233](https://developer.squareup.com/forums/u/user4233)\
**Post date:** [November 26, 2022, 2:25pm UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/10 "2022-11-26T14:25:13Z")

</div>

@Bryan-Square, I understand, but shouldn’t these erratic behaviors be explained in some basic level in the documentation? The problem is that us as developers estimate a time and budget for each project and when done, we start finding all these issues due to erratic behaviors that are not supposed to happen based on what is documented. I mean, if the documentation says that the customer\_id is part of the response when an order is retrieved we as developers build the app to get it each time. When we start to find situations where the API behaves different to what is documented in different situations, the project itself starts to fail and it seems the application itself was not completed, but in reality it’s due to erratic behaviors missing in the documentation. Square is growing so fast and it seems there are not competitors at the same level, but building projects with Square APIs are very unreliable and it’s a huge toll when dealing with out customers. Is there some kind of ‘Known issues’ area, blog, site? Where we developers can explore those related to what we are building?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [November 28, 2022, 5:22pm UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/11 "2022-11-28T17:22:40Z")

</div>

I’ll definitely pass this feedback to the team. We do try to document all the limitations in the Requirements and Limitations of each API. In our Customers API we do document the behavior:

- Orders made from Square Online stores might not include a `customer_id` when retrieved from the Orders API, so you should not rely on this field for your integration. For more information about customer linking limitations with orders, [Customer assignments for orders and payments](https://developer.squareup.com/docs/customers-api/use-the-api/integrate-with-other-services#customer-assignments-for-orders-and-payments).  
🙂

---

<div class="post-metadata">

**Author:** ![user4233](https://avatars.discourse-cdn.com/v4/letter/u/48db29/32.png) [@user4233](https://developer.squareup.com/forums/u/user4233)\
**Post date:** [October 10, 2024, 9:29pm UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/12 "2024-10-10T21:29:11Z")

</div>

Hi @Bryan-Square, due to this known issue we were relying on the Display Name and Email coming on the recipient as part of the fulfillment information, but on Oct 7th (3 days ago), some orders started coming up without the “Display Name”. How can we tell who is the Customer in an Order? in a way that is reliable? and is it documented somewhere?

---

<div class="post-metadata">

**Author:** ![Lance-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/lance-square/32/2704_2.png) [@Lance-Square](https://developer.squareup.com/forums/u/Lance-Square)\
**Post date:** [October 10, 2024, 9:55pm UTC](https://developer.squareup.com/forums/t/the-customer-id-is-gone-in-the-orders-api/7603/13 "2024-10-10T21:55:14Z")

</div>

Hi there 👋 ,  
Could I get an example of what you were seeing?

- Order id with recipient display name
- Order id without display name  
How are the orders getting created? If it’s through your own integration, I’d like to take a look at the related [CreateOrder](https://developer.squareup.com/reference/square/orders-api/create-order) in the [API Logs](https://developer.squareup.com/docs/devtools/api-logs).
