Retrieves charges by ID, external reference, paginated listing, and payment attempts.
Documentation Index
Fetch the complete documentation index at: https://docs.gates2b.com/llms.txt
Use this file to discover all available pages before exploring further.
PENDING, PAID, EXPIRED, CANCELED).GET /charge/list?page=1&limit=10
Returns a paginated list of charges for the authenticated user.
| Parameter | Type | Description |
|---|---|---|
page | number | Page number (default: 1) |
limit | number | Records per page (default: 10) |
GET /charge?externalReference=order-123
Finds a charge by the external reference from your system.
| Parameter | Type | Description |
|---|---|---|
externalReference | string | External reference used at creation |
GET /charge/{chargeId}/attempts
Returns all payment attempts associated with a charge. Each attempt contains:
| Field | Type | Description |
|---|---|---|
id | string | Attempt ID |
chargeId | string | Charge ID |
paymentMethod | string | Method used (PIX, CREDIT_CARD, INTERNATIONAL) |
status | string | Attempt status |
checkoutMeta | object | Gateway metadata |
GET /charge/attempts/{attemptId}
Returns the details of a specific attempt, including gateway status and checkoutMeta.