Get User Order
curl --request GET \
--url https://app.fliqr.ai/api/contacts/{contact_id}/order/{order_id} \
--header 'X-ACCESS-TOKEN: <api-key>'const options = {method: 'GET', headers: {'X-ACCESS-TOKEN': '<api-key>'}};
fetch('https://app.fliqr.ai/api/contacts/{contact_id}/order/{order_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.fliqr.ai/api/contacts/{contact_id}/order/{order_id}"
headers = {"X-ACCESS-TOKEN": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"order_id": "<string>",
"page_id": 123,
"user_id": 123,
"currency": "<string>",
"total": 123,
"subtotal": 123,
"total_items": 123,
"coupon_discount": 123,
"coupon": "<string>",
"line_items": [
{
"id": 123,
"name": "<string>",
"img": "<string>",
"price": 123,
"amount": 123,
"descr_min": "<string>",
"manufacturer": 123,
"variant": "<string>",
"user_msg": "<string>"
}
],
"contact": {
"id": 123,
"page_id": 123,
"first_name": "<string>",
"last_name": "<string>",
"channel": 123,
"profile_pic": "<string>",
"locale": "<string>",
"gender": 123,
"timezone": 123,
"last_sent": 123,
"last_delivered": 123,
"last_seen": 123,
"last_interaction": 123,
"subscribed_date": "<string>",
"subscribed": 123,
"tags": [
{
"id": 123,
"name": "<string>"
}
],
"custom_fields": [
{
"id": 123,
"name": "<string>",
"type": 0,
"value": "<string>"
}
]
}
}Ecommerce
Get user order
Get order information
GET
/
contacts
/
{contact_id}
/
order
/
{order_id}
Get User Order
curl --request GET \
--url https://app.fliqr.ai/api/contacts/{contact_id}/order/{order_id} \
--header 'X-ACCESS-TOKEN: <api-key>'const options = {method: 'GET', headers: {'X-ACCESS-TOKEN': '<api-key>'}};
fetch('https://app.fliqr.ai/api/contacts/{contact_id}/order/{order_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.fliqr.ai/api/contacts/{contact_id}/order/{order_id}"
headers = {"X-ACCESS-TOKEN": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"order_id": "<string>",
"page_id": 123,
"user_id": 123,
"currency": "<string>",
"total": 123,
"subtotal": 123,
"total_items": 123,
"coupon_discount": 123,
"coupon": "<string>",
"line_items": [
{
"id": 123,
"name": "<string>",
"img": "<string>",
"price": 123,
"amount": 123,
"descr_min": "<string>",
"manufacturer": 123,
"variant": "<string>",
"user_msg": "<string>"
}
],
"contact": {
"id": 123,
"page_id": 123,
"first_name": "<string>",
"last_name": "<string>",
"channel": 123,
"profile_pic": "<string>",
"locale": "<string>",
"gender": 123,
"timezone": 123,
"last_sent": 123,
"last_delivered": 123,
"last_seen": 123,
"last_interaction": 123,
"subscribed_date": "<string>",
"subscribed": 123,
"tags": [
{
"id": 123,
"name": "<string>"
}
],
"custom_fields": [
{
"id": 123,
"name": "<string>",
"type": 0,
"value": "<string>"
}
]
}
}Authorizations
API access token from your Fliqr AI dashboard (Settings → API). Send it in the X-ACCESS-TOKEN header on every request.
Response
200 - application/json
successful operation
All value related to money is in cents
Was this page helpful?
⌘I