Create
Authorizations
Body
Request body for creating a payment intent. Payment intents represent card-present payment requests that are processed by POS terminals.
The amount to charge in MXN. Must be a positive number.
350.5
Currency code. Must be MXN.
MXN "MXN"
Your unique identifier for this payment intent. Must be unique per organization.
"order_12345_pos"
Serial number of the target POS terminal. If provided, the payment intent is routed to that specific terminal and any other pending intents for that terminal are automatically cancelled. If omitted, the payment intent is available to any terminal in your organization.
"TERMINAL-001"
Android application id of the app the Compago POS app returns to after the payment finishes (successfully or cancelled). Overrides the integration configured locally on the terminal. If omitted, the terminal falls back to its local integration configuration. Requires the app to be installed on the terminal device.
255"com.mycompany.pos"
Response
Payment intent created successfully
The created payment intent object
Unique identifier of the payment intent
"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
Initial status is always PENDING
PENDING The payment amount
"MXN"
Your external identifier
Android application id the terminal returns to after the payment finishes, if provided at creation
"com.mycompany.pos"
The organization that owns this payment intent
"11111111-2222-3333-4444-555555555555"
The terminal associated with this payment intent, if any
"66666666-7777-8888-9999-000000000000"