Saltar al contenido principal
POST
/
transactions
/
{transactionId}
/
payments
/
process
Processar payments
curl --request POST \
  --url https://api.sandbox.z2pay.com/transactions/{transactionId}/payments/process \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "customer": {
    "name": "<string>",
    "email": "jsmith@example.com",
    "document": "<string>"
  },
  "creditCard": {
    "cardId": "<string>",
    "token": "<string>",
    "billingAddress": {
      "street": "<string>",
      "number": "<string>",
      "complement": "<string>",
      "neighborhood": "<string>",
      "city": "<string>",
      "state": "<string>",
      "country": "<string>",
      "zipCode": "<string>"
    }
  },
  "ip": "<string>",
  "metadata": {},
  "routerConfigId": "<string>",
  "availableGatewayConfigIds": [
    "<string>"
  ],
  "paymentIds": [
    "<string>"
  ]
}
'

Autorizaciones

x-api-key
string
header
requerido

API Key da Credential (gerada no Backoffice)

Encabezados

Idempotency-Key
string

Chave única para garantir idempotência da requisição

Parámetros de ruta

transactionId
string
requerido

ID da transação

Cuerpo

application/json
customer
object
requerido
creditCard
object
boleto
object
pix
object
ip
string
metadata
object
routerConfigId
string
availableGatewayConfigIds
string[]
paymentIds
string[]

Respuesta

Resultado do processamento dos payments