
boleto object in the payment_settings attribute. You can optionally include an order object with itemized products, fees, and discounts, or send a simplified message with just the total amount and payment settings.

POST /{PHONE_NUMBER_ID}/messages
{ "recipient_type": "individual", "to": "<PHONE_NUMBER>", "type": "interactive", "interactive": { "type": "order_details", "body": { "text": "Your message content" }, "action": { "name": "review_and_pay", "parameters": { "reference_id": "unique-reference-id", "type": "digital-goods", "payment_type": "br", "payment_settings": [ { "type": "boleto", "boleto": { "digitable_line": "03399026944140000002628346101018898510000008848" } } ], "currency": "BRL", "total_amount": { "value": 50000, "offset": 100 }, "order": { "status": "pending", "tax": { "value": 0, "offset": 100, "description": "optional text" }, "items": [ { "retailer_id": "1234567", "name": "Cake", "amount": { "value": 50000, "offset": 100 }, "quantity": 1 } ], "subtotal": { "value": 50000, "offset": 100 } } } } } }
order object. This is useful when you don’t need to send itemized product details and only need to collect the total payment amount.{ "recipient_type": "individual", "to": "<PHONE_NUMBER>", "type": "interactive", "interactive": { "type": "order_details", "body": { "text": "Your message content" }, "action": { "name": "review_and_pay", "parameters": { "reference_id": "unique-reference-id", "type": "digital-goods", "payment_type": "br", "payment_settings": [ { "type": "boleto", "boleto": { "digitable_line": "03399026944140000002628346101018898510000008848" } } ], "currency": "BRL", "total_amount": { "value": 50000, "offset": 100 } } } } }
| Field Name | Optional? | Type | Description |
|---|---|---|---|
payment_settings | Optional | List of payment related configuration objects. |
| Field Name | Optional? | Type | Description |
|---|---|---|---|
type | Required | String | Must be boleto. |
boleto | Required | Boleto object that will be used to render the option to buyers during the checkout flow. |
| Field Name | Optional? | Type | Description |
|---|---|---|---|
digitable_line | Required | String | The Boleto digital line / code which will be copied to the clipboard, when user taps on the Boleto CTA button. |