curl --request POST \
--url https://api.sandbox.z2pay.com/transactions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"referenceCode": "<string>",
"items": [
{
"description": "<string>",
"quantity": 2,
"amount": 2,
"code": "<string>",
"type": "<string>",
"imageUrl": "<string>"
}
],
"customerId": "<string>",
"currency": "<string>",
"payments": [
{
"amount": 2,
"installments": 1,
"additionalInfo": {},
"creditCard": {
"id": "<string>",
"token": "<string>",
"statementDescriptor": "<string>",
"billingAddress": {
"street": "<string>",
"number": "<string>",
"complement": "<string>",
"neighborhood": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
}
},
"boleto": {
"expirationDate": "2023-11-07T05:31:56Z",
"instructions": "<string>"
},
"pix": {
"expirationDate": "2023-11-07T05:31:56Z"
},
"splitId": "<string>",
"split": [
{
"recipientId": "<string>",
"value": 1.01,
"type": "sale",
"processingFee": true,
"liable": true
}
]
}
],
"redirectUrl": "<string>",
"postbackUrl": "<string>",
"ip": "<string>",
"additionalInfo": {},
"maxInstallments": 2,
"routerConfigId": "<string>"
}
'