question

ravirajagopal avatar image
ravirajagopal asked ravirajagopal answered

Email-Address and Telephone number of an online order

I would like to know how to retrieve the email-address and/or telephone number of an online order. This information prints on the ticket at our kitchen-printer. We need this data to text/email the customer that their order is ready for pick-up. Please advise.


REST APIe-commerce apiAPI TokenDeveloper Pay APIinaccurate_api_docs
8 comments
10 |2000

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

bryanvargas avatar image bryanvargas ♦♦ commented ·

If this is a merchant support issue you should contact Clover Support, but if you are using the Clover Online Ordering, when a customer puts in their information to pay for the order, their contact information is saved in the Customer's app.

If you are a developer, you can use the /v3/merchants/{mId}/orders?expand

To read the customer information on an order.

0 Likes 0 ·
ravirajagopal avatar image ravirajagopal commented ·

Would this apply to someone who places an order as a "GUEST" as well ? Please advise !!

0 Likes 0 ·
bryanvargas avatar image bryanvargas ♦♦ ravirajagopal commented ·
If this is through Clover Online Order website, then yes
0 Likes 0 ·
ravirajagopal avatar image ravirajagopal commented ·

Also in this I was able to see customers.elements which had only firstName and lastName but i didn't get the emailAddress and telephone number

0 Likes 0 ·
bryanvargas avatar image bryanvargas ♦♦ ravirajagopal commented ·
Do you mind showing the payload code where you are only seeing this, I am having trouble understanding if you are using Clover Online Ordering or using our APIs.
-1 Like -1 ·
ravirajagopal avatar image ravirajagopal bryanvargas ♦♦ commented ·

Excerpt from the JSON response after making the call to the API :
https://api.clover.com/v3/merchants/XXXXXXXXXXXXX/orders/YYYYYYYYYYYYY?expand=onlineOrder,employee,payments,lineItems,customers,orderType,categories

"customers": {

"elements": [

{

"href": "https://www.clover.com/v3/merchants/XXXXXXXXXXXXX/customers/ZZZZZZZZZZZZZ",

"id": "ZZZZZZZZZZZZZ",

"orderRef": {

"href": "https://www.clover.com/v3/merchants/XXXXXXXXXXXXX/orders/YYYYYYYYYYYY",

"id": "YYYYYYYYYYYY",

"currency": "USD",

"employee": {

"id": "6T1J3AXQP6EDJ"

},

"total": 4295,

"note": "",

"orderType": {

"id": "3S94B68NHS118"

},

"taxRemoved": false,

"isVat": false,

"state": "locked",

"manualTransaction": false,

"groupLineItems": true,

"testMode": false,

"payType": "FULL",

"createdTime": 1676098806000,

"clientCreatedTime": 1676098806000,

"modifiedTime": 1678706213000

},

"firstName": "John",

"lastName": "Doe",

"marketingAllowed": true,

"customerSince": 1676098806000

}

]

},


0 Likes 0 ·
Show more comments
mickalkalso234 avatar image mickalkalso234 commented ·

When placing an online order, it is important to provide accurate and up-to-date contact information, including your email address and telephone number. The email address you provide will be used to confirm your order, provide updates on its status, and send a receipt once your order has been processed. It may also be used for promotional emails and newsletters if you have opted-in to receive them. Similarly, providing a valid telephone number is important in case there are any issues with your order that need to be resolved quickly to. The merchant may need to contact you to verify your order, update you on any delays, or arrange for delivery. It is always a good idea to double-check your contact information before submitting an online order to ensure that you receive all necessary updates and notifications.

0 Likes 0 ·

1 Answer

·
ravirajagopal avatar image
ravirajagopal answered

Excerpt from the JSON response after making the call to the API :
https://api.clover.com/v3/merchants/XXXXXXXXXXXXX/orders/YYYYYYYYYYYYY?expand=onlineOrder,employee,payments,lineItems,customers,orderType,categories

"customers": {

"elements": [

{

"href": "https://www.clover.com/v3/merchants/XXXXXXXXXXXXX/customers/ZZZZZZZZZZZZZ",

"id": "ZZZZZZZZZZZZZ",

"orderRef": {

"href": "https://www.clover.com/v3/merchants/XXXXXXXXXXXXX/orders/YYYYYYYYYYYY",

"id": "YYYYYYYYYYYY",

"currency": "USD",

"employee": {

"id": "6T1J3AXQP6EDJ"

},

"total": 4295,

"note": "",

"orderType": {

"id": "3S94B68NHS118"

},

"taxRemoved": false,

"isVat": false,

"state": "locked",

"manualTransaction": false,

"groupLineItems": true,

"testMode": false,

"payType": "FULL",

"createdTime": 1676098806000,

"clientCreatedTime": 1676098806000,

"modifiedTime": 1678706213000

},

"firstName": "John",

"lastName": "Doe",

"marketingAllowed": true,

"customerSince": 1676098806000

}

]

},


10 |2000

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

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