MsgVariantPaymentRequest
paymentRequest objectrequired
Payment/order transformations require a compatible WhatsApp connection and active customer window. Match pix/boleto/paymentLink to paymentMethod and provide the required provider details. These conditional provider requirements are not enforced by the shared DTO.
Possible values: [pix, boleto, payment_link]
pix object
Complete valid Pix copy-and-paste code from your payment provider. Replace sample placeholders; Hub does not generate a payment code.
Merchant name for the supplied Pix payment. The equivalent provider field in template actions is merchant_name.
Actual registered Pix key matching keyType. PHONE uses an international phone with a leading plus and country code; EVP uses a random-key UUID. Never send a literal placeholder.
Must match the actual key. CPF and CNPJ use digits; EMAIL uses an email address; PHONE uses a phone number; EVP uses a random-key UUID. Hub validates the enum, not key registration or matching format. Template actions use key_type instead.
Possible values: [CPF, CNPJ, EMAIL, PHONE, EVP]
boleto object
paymentLink object
BRLPossible values: >= 0
Possible values: >= 0
100items object[]required
Possible values: <= 100
Possible values: >= 0
Possible values: >= 1
tax object
Possible values: >= 0
Possible values: >= 0
When omitted, calculated as the sum of item amountCents multiplied by quantity.
Possible values: >= 0
{
"paymentRequest": {
"bodyText": "string",
"referenceId": "string",
"paymentMethod": "pix",
"pix": {
"code": "string",
"merchantName": "string",
"key": "string",
"keyType": "CPF"
},
"boleto": {
"digitableLine": "string"
},
"paymentLink": {
"url": "string"
},
"currency": "BRL",
"totalAmountCents": 0,
"offset": 100,
"items": [
{
"retailerId": "string",
"name": "string",
"amountCents": 0,
"quantity": 0
}
],
"tax": {
"valueCents": 0,
"offset": 0,
"description": "string"
},
"subtotalCents": 0
}
}