Pay Order
curl --request POST \
--url https://app.fliqr.ai/api/contacts/{contact_id}/pay/{order_id} \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-ACCESS-TOKEN: <api-key>' \
--data amount_received=123const options = {
method: 'POST',
headers: {
'X-ACCESS-TOKEN': '<api-key>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({amount_received: '123'})
};
fetch('https://app.fliqr.ai/api/contacts/{contact_id}/pay/{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}/pay/{order_id}"
payload = { "amount_received": "123" }
headers = {
"X-ACCESS-TOKEN": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"success": true
}Ecommerce
Pay order
Mark an order as Paid.
POST
/
contacts
/
{contact_id}
/
pay
/
{order_id}
Pay Order
curl --request POST \
--url https://app.fliqr.ai/api/contacts/{contact_id}/pay/{order_id} \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-ACCESS-TOKEN: <api-key>' \
--data amount_received=123const options = {
method: 'POST',
headers: {
'X-ACCESS-TOKEN': '<api-key>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({amount_received: '123'})
};
fetch('https://app.fliqr.ai/api/contacts/{contact_id}/pay/{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}/pay/{order_id}"
payload = { "amount_received": "123" }
headers = {
"X-ACCESS-TOKEN": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"success": true
}Authorizations
API access token from your Fliqr AI dashboard (Settings → API). Send it in the X-ACCESS-TOKEN header on every request.
Body
application/x-www-form-urlencoded
Total value the contact paid in cents.
Response
successful operation
Was this page helpful?
⌘I