Understanding Pending Orders
A pending order is a payment order created without a payment method attached. Instead of charging immediately, you create the order up front inPENDING status and collect the payment later.
This is useful when you know what the customer owes but they aren’t ready to pay yet, when you want to send an invoice, or when you’d rather let the customer pay on a Cheqpay-hosted page than handle card data yourself.
There are two ways to collect payment on a pending order:
- Charge it yourself — your backend calls the charge endpoint with the customer’s payment method.
- Share a hosted link — send the customer a hosted payment page and let them complete the payment. No charge call from your side.
When to Use Pending Orders
Charge via API
You collect the customer’s payment details and charge the pending order from your backend when they’re ready to pay.
Share a Hosted Link
You send the customer a hosted payment page link. They complete the payment on Cheqpay’s UI — no charge call required.
Create a Pending Order
Create a pending order by sendingpending: true. No payment method is required — the order is created in PENDING status, ready to be charged later or paid through a hosted link.
Request Example
When
pending is true, paymentMethod is not required. You attach the payment method later when you charge the order.Response
The order is returned withstatus: "PENDING" and no payment method attached.
Required Fields
| Field | Type | Required | Description |
|---|---|---|---|
externalId | string | Yes | Your unique order ID |
pending | boolean | Yes | Set to true to create the order without charging |
amount | integer | Yes | Amount in cents (10000 = $100.00) |
currency | string | Yes | ISO currency code (MXN, USD) |
customer.firstName | string | Yes | Customer’s first name |
customer.lastName | string | Yes | Customer’s last name |
customer.email | string | Yes | Customer’s email address |
Charge a Pending Order
When the customer is ready to pay, charge the pending order by attaching a payment method. This processes the payment and moves the order towardCOMPLETED.
How It Works
Create the Pending Order
Create the order with
pending: true. It starts in PENDING status with no payment method.Charge the Order
Call the charge endpoint with the payment method. Cheqpay attaches it and processes the payment.
Card Payment Example
paymentMethod.type to spei, cie_cash_net, paycash, or payment_method_id (to reuse a saved card).
Card Payments
Accept credit and debit cards
SPEI Transfers
Bank transfers in Mexico
Example Request
Response
Only orders in
PENDING, PROCESSING, or FAILED status can be charged. If a charge is declined the order moves to FAILED — you can charge it again with a different payment method to retry.Share as a Hosted Payment Link
For clients who want Cheqpay’s hosted checkout UI, you don’t need to charge the order yourself. Create the pending order and share its hosted payment page link — the customer completes the payment on Cheqpay’s page. The hosted link follows this pattern:<payment-order-id> is the id returned when you create the pending order. Drop it into the URL and send the link to your customer.In this flow the merchant does not call the charge endpoint. Payment is completed by the customer on the hosted page, and the order status updates automatically.
Hosted Payment Page
Learn more about Cheqpay’s hosted checkout experience
Next Steps
Payment Orders
Track status and prevent duplicate charges
Card Payments
Accept credit and debit cards
Hosted Payment Page
Let customers pay on Cheqpay’s UI
Refunds
Issue full or partial refunds