Recaudo Docs

Store

Orders

Create and manage orders for your customers. Creating an order automatically generates an invoice and a payment link. Prices are taken directly from the product catalog.

List orders

GET /v1/orders

Optional parameters: status, payment_status, customer (UUID), search, limit, page

Status: pending, confirmed, processing, shipped, delivered, completed, canceled, refunded

Payment status: pending, paid, partially_paid, refunded

New filters for reconciling: source (store = online store, manual, api, ai_agent), created_after and updated_after (ISO 8601 date with time zone, e.g. 2026-10-26T00:00:00Z). With updated_after the list goes from oldest to newest; keep the updated_at of the last one you processed and ask from there.

Create order

POST /v1/orders
Body
{
  "customer_id": "uuid-del-cliente",
  "items": [
    { "product_id": "uuid-producto-1", "quantity": 2 },
    { "product_id": "uuid-producto-2", "quantity": 1 }
  ],
  "notes": "Entregar antes de las 5pm",
  "shipping_name": "Juan Pérez",
  "shipping_phone": "+5215512345678",
  "shipping_address": "Av. Reforma 123, CDMX"
}
Field Type Required Description
customer_iduuidYesCustomer UUID
itemsarrayYesList of products with product_id and quantity
notesstringNoNotes visible to the customer
internal_notesstringNoInternal notes
currencystringNoISO 4217 currency
shipping_namestringNoRecipient name
shipping_phonestringNoRecipient phone
shipping_addressstringNoShipping address
metadataobjectNoCustom metadata

Get order

GET /v1/orders/{'{id}'}

Includes the customer, items with products and the associated invoice.

What each order includes

GET /v1/orders, GET /v1/orders/{id} and order webhooks return the full order: line items with sku, quantity, unit price before tax, tax rate and tax amount; the customer with fiscal_data; payment (status, method, date) and einvoice (the order CFDI, or null if it has not been stamped yet).

Sync orders with your ERP

So your system hears about every sale without polling, subscribe to webhooks when you connect (POST /v1/webhook-endpoints) and use the list with updated_after only to reconcile if a notice is lost.

  • order.paid: the customer paid the order. This is the signal to create it in your ERP.
  • order.invoiced: the order CFDI was stamped (only if the customer asked for an invoice). Includes einvoice with UUID, series, folio and links to the XML and PDF.
  • order.invoice_cancelled: the order CFDI was cancelled with the SAT.
  • order.cancelled: the order was cancelled.
  • Use id (UUID) as the external identifier: it never changes and the same order can arrive in several events.

Order lifecycle

POST /v1/orders/{'{id}'}/cancel — Cancel order (restores stock)
POST /v1/orders/{'{id}'}/ship — Mark as shipped
POST /v1/orders/{'{id}'}/deliver — Mark as delivered
POST /v1/orders/{'{id}'}/complete — Mark as completed

Typical flow: pending → confirmed → shipped → delivered → completed

Order items

GET /v1/orders/{'{id}'}/items

Returns the order items with details of each product.

PDF receipt

GET /v1/orders/{'{id}'}/ticket.pdf

Sales receipt as a PDF (80 mm roll) with the business logo and color.

Was this page helpful? Thanks for letting us know.
Esc