cURL
curl --request POST \ --url https://gateway.3xpay.co/transaction/cash-out \ --header 'Content-Type: application/json' \ --header 'api_key: <api-key>' \ --header 'api_secret: <api-key>' \ --data '{ "transaction": { "key": "<string>", "amount": 123, "callback_url": "<string>", "external_id": "<string>", "pixType": "CPF" } }'
{ "status": "success", "payment": { "status": "pending", "transaction_id": "3b7abeda-205a-4439-a078-957e3f37c330", "payment_code": "<string>", "link": "<string>", "total": 2 } }
Cria uma nova transação de saída (cash-out). O usuário deve incluir uma assinatura RSA no cabeçalho signature para autenticar a requisição.
signature
Transação criada com sucesso
The response is of type object.
object