MessageContentPayment
{
"type": "object",
"properties": {
"reference_id": {
"type": "string",
"description": "Referência do pedido."
},
"amount": {
"type": "number",
"description": "Valor."
},
"currency": {
"type": "string",
"description": "Moeda."
},
"text": {
"type": "string",
"description": "A nota da cobrança."
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Item."
},
"quantity": {
"type": "number",
"description": "Quantidade."
},
"amount": {
"type": "number",
"description": "Valor do item."
}
},
"required": [
"name"
],
"additionalProperties": false
},
"description": "Itens."
},
"pix": {
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Chave PIX."
},
"key_type": {
"type": "string",
"description": "Tipo da chave."
},
"merchant_name": {
"type": "string",
"description": "Recebedor."
}
},
"additionalProperties": false
},
"boleto": {
"type": "string",
"description": "Linha digitável do boleto."
},
"link": {
"type": "string",
"description": "Link de pagamento."
},
"card": {
"type": "boolean",
"description": "Pagamento por cartão."
},
"payment_status": {
"type": "string",
"description": "Status do pagamento, quando informado."
}
},
"x-only": "whatsapp",
"title": "cobrança"
}