Send interactive order details message
curl --request POST \
--url https://messenger-public-api.cogfy.com/messages/interactive/order_details \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"from": "<string>",
"to": "<string>",
"interactive": {
"type": "order_details",
"header": {},
"body": {
"text": "<string>"
},
"footer": {
"text": "<string>"
},
"action": {
"name": "review_and_pay",
"parameters": {
"reference_id": "<string>",
"payment_type": "br",
"payment_settings": [
{
"pix_dynamic_code": {
"code": "<string>",
"merchant_name": "<string>",
"key": "<string>"
},
"payment_link": {
"uri": "<string>"
},
"boleto": {
"digitable_line": "<string>"
}
}
],
"currency": "BRL",
"total_amount": {
"value": 123,
"offset": 100,
"description": "<string>"
},
"order": {
"status": "pending",
"catalog_id": "<string>",
"expiration": {
"timestamp": "<string>",
"description": "<string>"
},
"items": [
{
"retailer_id": "<string>",
"name": "<string>",
"amount": {
"value": 123,
"offset": 100,
"description": "<string>"
},
"quantity": 123,
"sale_amount": {
"value": 123,
"offset": 100,
"description": "<string>"
}
}
],
"subtotal": {
"value": 123,
"offset": 100,
"description": "<string>"
},
"tax": {
"value": 123,
"offset": 100,
"description": "<string>"
},
"shipping": {
"value": 123,
"offset": 100,
"description": "<string>"
},
"discount": {
"value": 123,
"offset": 100,
"description": "<string>",
"discount_program_name": "<string>"
}
}
}
}
}
}
'{
"id": "<string>"
}Messages
Send interactive order details message
Sends an interactive order details message for review and payment. Requires that the recipient has messaged the business in the last 24 hours.
POST
/
messages
/
interactive
/
order_details
Send interactive order details message
curl --request POST \
--url https://messenger-public-api.cogfy.com/messages/interactive/order_details \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"from": "<string>",
"to": "<string>",
"interactive": {
"type": "order_details",
"header": {},
"body": {
"text": "<string>"
},
"footer": {
"text": "<string>"
},
"action": {
"name": "review_and_pay",
"parameters": {
"reference_id": "<string>",
"payment_type": "br",
"payment_settings": [
{
"pix_dynamic_code": {
"code": "<string>",
"merchant_name": "<string>",
"key": "<string>"
},
"payment_link": {
"uri": "<string>"
},
"boleto": {
"digitable_line": "<string>"
}
}
],
"currency": "BRL",
"total_amount": {
"value": 123,
"offset": 100,
"description": "<string>"
},
"order": {
"status": "pending",
"catalog_id": "<string>",
"expiration": {
"timestamp": "<string>",
"description": "<string>"
},
"items": [
{
"retailer_id": "<string>",
"name": "<string>",
"amount": {
"value": 123,
"offset": 100,
"description": "<string>"
},
"quantity": 123,
"sale_amount": {
"value": 123,
"offset": 100,
"description": "<string>"
}
}
],
"subtotal": {
"value": 123,
"offset": 100,
"description": "<string>"
},
"tax": {
"value": 123,
"offset": 100,
"description": "<string>"
},
"shipping": {
"value": 123,
"offset": 100,
"description": "<string>"
},
"discount": {
"value": 123,
"offset": 100,
"description": "<string>",
"discount_program_name": "<string>"
}
}
}
}
}
}
'{
"id": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://messenger-docs.cogfy.com/llms.txt
Use this file to discover all available pages before exploring further.
⌘I