POST
/
transaction
/
cash-out
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": "CREATED",
  "payment": {
    "status": "CREATED",
    "transaction_id": "3b7abeda-205a-4439-a078-957e3f37c330",
    "payment_code": "<string>",
    "link": "<string>",
    "total": 2
  }
}

Authorizations

api_key
string
header
required
api_secret
string
header
required

Body

application/json
transaction
object

Response

201 - application/json
Transação criada com sucesso
status
string

Status da transação

Example:

"CREATED"

payment
object