Skip to main content
POST
/
v1
/
integrations
/
create-transaction
Gerar transação PIX
curl --request POST \
  --url https://api.axnpay.com.br/v1/integrations/create-transaction \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 500000.005,
  "description": "<string>",
  "productName": "<string>",
  "clientName": "<string>",
  "clientEmail": "jsmith@example.com",
  "clientPhone": "<string>",
  "clientCpf": "<string>",
  "pixKeyType": "CPF",
  "pixKey": "<string>",
  "referenceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "acquirer": "woovi",
  "paymentMethod": "<string>",
  "cardToken": "<string>",
  "installments": 1
}
'
{
  "transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "PENDING",
  "type": "CASHIN",
  "source": "<string>",
  "origin": "API",
  "amount": 123,
  "feeAmount": 123,
  "finalAmount": 123,
  "description": "<string>",
  "productName": "<string>",
  "pixCode": "<string>",
  "pixKeyType": "CPF",
  "pixKey": "<string>",
  "clientName": "<string>",
  "clientEmail": "<string>",
  "clientPhone": "<string>",
  "clientCpf": "<string>",
  "externalId": "<string>",
  "endToEndId": "<string>",
  "receiptUrl": "<string>",
  "transactionDate": "2023-11-07T05:31:56Z",
  "paidAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}
Cria uma cobrança e retorna transactionId público e pixCode quando aplicável.

Authorizations

Authorization
string
header
required

Use sua secret key: Bearer sk_live_prod_...

Body

application/json
amount
number
required
Required range: 0.01 <= x <= 1000000
description
string
productName
string
clientName
string
clientEmail
string<email>
clientPhone
string
clientCpf
string
pixKeyType
enum<string>
Available options:
CPF,
CNPJ,
EMAIL,
PHONE,
EVP
pixKey
string
referenceId
string<uuid>
acquirer
enum<string>
default:woovi
Available options:
woovi,
mercadopago
paymentMethod
string
cardToken
string
installments
integer
default:1
Required range: 1 <= x <= 12

Response

Transação criada

transactionId
string<uuid> | null
status
enum<string>
Available options:
PENDING,
PROCESSING,
COMPLETED,
FAILED,
REVERSED,
CANCELLED,
CHARGEBACK
type
enum<string>
Available options:
CASHIN,
CASHOUT,
INFRACTION
source
string
origin
enum<string>
Available options:
API,
PAINEL,
APP
amount
number
feeAmount
number
finalAmount
number
description
string | null
productName
string | null
pixCode
string | null
pixKeyType
enum<string>
Available options:
CPF,
CNPJ,
EMAIL,
PHONE,
EVP
pixKey
string | null
clientName
string | null
clientEmail
string | null
clientPhone
string | null
clientCpf
string | null
externalId
string | null
endToEndId
string | null
receiptUrl
string | null
transactionDate
string<date-time> | null
paidAt
string<date-time> | null
createdAt
string<date-time> | null
updatedAt
string<date-time> | null