Create a payment
Creates a new payment using the specified provider. Azoryx handles routing, provider communication, and returns a unified response regardless of the underlying payment method.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| amount | integer | yes | Amount in cents (e.g. 2990 = R$29.90) |
| currency | string | yes | ISO 4217 currency code. Supported: BRL, MXN, COP, USD |
| provider | string | yes | Payment provider slug. Options: pix, oxxo, mercadopago, paypal |
| description | string | optional | A description or order reference for the payment |
| metadata | object | optional | Custom key-value pairs for your own reference |
Example Request
Responses
Payment created successfully
The payment has been initiated. Check the status field for the current state.
Invalid parameters
The request could not be processed due to invalid or missing parameters.
List payments
Returns a paginated list of payments. Results are sorted by creation date, newest first. Use the query parameters to filter by status, provider, or date range.
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| status | string | optional | Filter by status: pending, completed, failed, refunded |
| provider | string | optional | Filter by provider slug: pix, oxxo, mercadopago, paypal |
| page | integer | optional | Page number for pagination. Defaults to 1. |
| per_page | integer | optional | Results per page. Defaults to 20, max 100. |
Example Request
Responses
List of payments
Returns a paginated array of payment objects.
Retrieve a payment
Returns the details of a single payment by its unique identifier. Use this endpoint to check the current status of a payment or retrieve provider-specific metadata.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | yes | The unique identifier of the payment (e.g. pay_abc123) |
Example Request
Responses
Payment details
Returns the full payment object with provider-specific details.
Payment not found
The specified payment ID does not exist or has been deleted.
Confirm a payment
Confirms a pending payment. Some providers require explicit confirmation to capture the funds after the customer authorizes the payment.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| amount | integer | optional | Partial amount to capture (in cents). Defaults to full amount. |
Example Request
Responses
Payment confirmed
The payment has been confirmed and captured.
List payment methods
Returns the available payment methods for a given market. Use the
market query parameter to filter by country or region.
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| market | string | yes | Market code. Options: br, mx, co, us |
Example Request
Responses
Available payment methods
Returns the list of active payment methods for the specified market.
Webhooks
When a payment status changes, azoryx sends a webhook to the URL configured in your dashboard. All webhooks include a signature header for verification.