Skip to main content
WEBHOOK
/
webhooks
/
checkout
{
  "id": "evt_01HR7PB4Q4G33AYM1V7BTRC0FC",
  "type": "checkout.created",
  "createdAt": "2023-11-07T05:31:56Z",
  "livemode": false,
  "data": {
    "checkout": {
      "id": "chk_01HR7P8Z5N7A8Q2P8Y7F2D8Q6J",
      "livemode": false,
      "status": "PENDING",
      "amount": 12990,
      "currency": "BRL",
      "createdAt": "2023-11-07T05:31:56Z",
      "expiresAt": "2023-11-07T05:31:56Z",
      "pix": {
        "copyPaste": "00020101021226840014br.gov.bcb.pix...",
        "qrCodeUrl": "https://api.troqpay.com/qrcode/chk_01HR7P8Z5N7A8Q2P8Y7F2D8Q6J.png"
      },
      "settlement": {
        "currency": "USDT",
        "status": "PENDING",
        "amount": "24.560000"
      },
      "description": "Plano Pro",
      "externalId": "order_1001",
      "checkoutUrl": "https://pay.troqpay.com/c/chk_01HR7P8Z5N7A8Q2P8Y7F2D8Q6J",
      "paidAt": "2023-11-07T05:31:56Z",
      "customer": {
        "name": "Maria Santos",
        "email": "maria@example.com",
        "document": "12345678909"
      },
      "metadata": {}
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
string
required
Example:

"evt_01HR7PB4Q4G33AYM1V7BTRC0FC"

type
enum<string>
required
Available options:
checkout.created,
checkout.paid,
checkout.expired
createdAt
string<date-time>
required
livemode
boolean
required
Example:

false

data
object
required

Response

200

Retorne qualquer status 2xx para confirmar o recebimento do webhook.