curl --request POST \
--url https://api.pagou.ai/pix/v1/payment \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--data '
{
"type": "PIX",
"payer": {
"fullName": "<string>",
"document": "<string>",
"contact": {
"mail": "[email protected]",
"phone": "<string>"
},
"address": {
"zipCode": "<string>",
"street": "<string>",
"number": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"neighboor": "<string>",
"neighborhood": "<string>"
}
},
"transaction": {
"value": 1,
"description": "<string>",
"expirationTime": 123,
"dueDate": "<string>",
"externalId": "<string>"
},
"splits": [
{
"pixKey": "<string>",
"pixKeyType": "DOCUMENT",
"document": "<string>",
"percent": 50,
"amount": 1,
"externalId": "<string>"
}
]
}
'