Unable to push user data via HTTP post request

Unable to push user data via HTTP post request

emarkitpk
Shopify Partner
5 0 3

Hey, 

 

I am trying to send data to a third-party application using the HTTP post-request method. I managed to pass on most of the data, but the contact number returns blank values. I have tried using the following variables, but they don't pass the correct contact number.

 

{{customer.phone}}

{{shipping_address.phone}}

{{order.shippingAddress.phone}}

{{order.customer.phone}}

 

This is what it returns:

emarkitpk_2-1739286151289.png

and this is how the request is set.

emarkitpk_3-1739286410260.png

Someone please help me solve the issue, I contacted on chat support but they could not provide any solution to the issue.

 

The Hijab Company - Shop Abayas & Hijabs Online

 

Replies 2 (2)

paul_n
Shopify Staff
1677 184 385

Your order/customer is not guaranteed to have a phone attached to it. Flow is just pulling the data from the API. Are you sure this data is available for the order you used?

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
emarkitpk
Shopify Partner
5 0 3

it's a mandatory field, order won't be placed if the customer does not provide their phone numbers.