POST
/
transaction
curl --request POST \
  --url https://gateway.3xpay.co/transaction \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --header 'api_secret: <api-key>' \
  --data '{
  "transaction": {
    "customer_infos": {
      "name": "<string>",
      "email": "<string>",
      "document": "<string>",
      "phone": "<string>"
    },
    "address": {
      "zipcode": "<string>",
      "street": "<string>",
      "number": "<string>",
      "district": "<string>",
      "adjunct": "<string>",
      "city": "<string>",
      "state": "<string>"
    },
    "payment_method": "PIX",
    "installments": 123,
    "card_payment_method_id": "<string>",
    "card_number": "<string>",
    "expiration_date": "<string>",
    "cvv": "<string>",
    "holder_name": "<string>",
    "callback_url": "<string>",
    "products": [
      {
        "name": "<string>",
        "price": 123,
        "quantity": 123
      }
    ]
  }
}'
{
  "status": "success",
  "payment": {
    "status": "PROCESSING",
    "transaction_id": "ScEEPm9jzOgL1FbU2J673JDaNMqMV7S",
    "payment_code": "<string>",
    "link": "<string>",
    "due_date": "2023-11-07T05:31:56Z",
    "total": 123
  }
}

Authorizations

api_key
string
header
required
api_secret
string
header
required

Body

application/json
transaction
object
required

Response

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

Status da transação

Example:

"success"

payment
object