Skip to main content
POST
The Authorization needs to be in the following format:Authorization: Token <YOUR_API_KEY>
Process both payments and withdrawals through a single API call. This unified endpoint handles all transaction types based on the operation_type field.

Additional Information

This endpoint supports multiple payment methods including:
  • Card Payments: Credit and debit cards with optional 3D Secure
  • SPEI: Mexican bank transfers (24/7 availability)
  • OXXO Pay: Cash payments at OXXO convenience stores
  • Mercado Pago: Digital wallet payments
  • SafetyPay: Cash payments at participating locations
For detailed information about each payment method, see the Payment Methods Overview.

Authorizations

Authorization
string
header
required

Body

application/json
operation_type
enum<string>
required

Type of transaction to process

Available options:
payment,
withdrawal
amount
number<decimal>
required

Transaction amount

Required range: 0.01 <= x <= 15000000Must be a multiple of 0.01
customer
object
required
currency
enum<string>
default:MXN

Currency code

Available options:
MXN,
USD
client_reference
string

Your reference identifier

Maximum string length: 255
metadata
object

Additional data for your records

return_url
string<uri>

URL for redirection after 3DS processing

payment_method
object
transfer_method
enum<string>

Transfer method for withdrawals

Available options:
SPEI,
DEBIT_CARD
reference
string

Your withdrawal reference

description
string

Withdrawal description

Maximum string length: 500
beneficiary
object

Response

Transaction processed successfully

id
string<uuid>

Unique transaction identifier

operation_type
enum<string>

Type of transaction

Available options:
payment,
withdrawal
status
enum<string>

Current transaction status

Available options:
pending,
on_hold,
processing,
sent_to_provider,
success,
paid_full,
in_transit,
authorized,
canceled,
declined,
rejected,
failed,
Unknown,
expired
amount
number<decimal>

Transaction amount

currency
string

Currency code

client_reference
string

Your reference identifier

payment_id
integer

Payment ID (for payments)

transaction_id
string

Provider transaction ID

provider
string

Payment provider used

created_at
string<date-time>

ISO 8601 timestamp of creation

status_code
integer

HTTP status code

next_action
object
payment_instructions
object