Paying an order in installments with Cashea (buy now, pay later). Cashea is a
financing option on top of the payment method: the order's payment_method
(Débito Inmediato or a Pago Móvil form) collects the down payment, and Cashea
finances the rest.
Paths are relative to the /api/v1 prefix; all routes require
Authorization: Bearer {token}.
Choosing Cashea is done with
financing=CASHEAonPOST /ordersorPATCH /orders/{orderId}/payment-method. Whether it is offered, and which methods support it, comes fromGET /payment-methods/available. The down payment is paid with Payments (Débito Inmediato) or Payment forms (Pago Móvil).
Admins switch it on or off with
PATCH /admin/settings/cashea_enabled(boolean).
See Common errors.
| Method | URI | Role | Description |
|---|---|---|---|
POST |
/payment-methods/cashea/plan |
CLIENT | Preview the installment plan for an amount |
GET |
/orders/{orderId}/cashea |
CLIENT | The order's Cashea financing |
GET |
/admin/cashea/orders |
Admin | Cashea financings, optionally by status (follow-up queue) |
GET |
/admin/orders/{orderId}/cashea |
Admin | The order's Cashea financing, with diagnostics |
POST |
/admin/orders/{orderId}/cashea/confirm |
Admin | Retry confirming a collected down payment to Cashea |
POST |
/admin/orders/{orderId}/cashea/cancellation |
Admin | Record a cancellation done by Cashea's support |
| Field | Type | Description |
|---|---|---|
status |
string | IN_PROGRESS (down payment pending), CONFIRMED, CONFIRM_FAILED (down payment collected, Cashea has not accepted it yet), CANCEL_PENDING (the order was cancelled; the financing still has to be cancelled by Cashea's support) or CANCELLED |
cashea_id_number |
string | Order id in Cashea |
identification_number |
string | ID number sent to Cashea, V-12345678 / E-12345678 |
total_usd |
number | Amount financed through Cashea (what the client is charged) |
down_payment_usd |
number | What the client pays now |
financed_usd |
number | What the client pays Cashea later |
installments |
array | [{ installment_number, amount_usd, scheduled_payment_date }]; may be empty |
The order object carries it as cashea in the CLIENT and ADMIN views (null for
orders not financed with Cashea, or before an offer is accepted). The DRIVER view never
includes it.
Preview of what Cashea would grant the client for an amount. Creates nothing.
Request body
| Field | Type | Required | Rules |
|---|---|---|---|
identification_number |
string | yes | V/E prefix optional, optional -, 6–10 digits |
amount_usd |
number | yes | > 0, ≤ 100000 |
Response 200
{
"plan": {
"identification_number": "V-12345678",
"total_usd": 25.0,
"down_payment_usd": 10.0,
"financed_usd": 15.0,
"installments": [
{ "installment_number": 1, "amount_usd": 10.0, "scheduled_payment_date": "2026-11-26T12:00:00.000Z" },
{ "installment_number": 2, "amount_usd": 15.0, "scheduled_payment_date": "2026-12-10T12:00:00.000Z" }
]
}
}
Errors
| Status | Body | When |
|---|---|---|
422 |
{ "error": "CasheaRejected", "message": "…" } |
Cashea refused the plan (client not registered, no credit, amount out of range), or Cashea is not available |
422 |
{ "error": "ValidationError", "details": { "fieldErrors": { … } } } |
Body fails the rules above |
Response 200 — { "cashea": { … } } (see The Cashea object), or
{ "cashea": null } when the order has none.
Errors
| Status | Body | When |
|---|---|---|
404 |
{ "error": "OrderNotFound", "message": "Orden no encontrada." } |
Unknown order or not owned by the caller |
Query parameters
| Field | Type | Required | Rules |
|---|---|---|---|
status |
string | no | one of the Cashea object statuses |
limit |
integer | no | 1–100, default 50 |
Response 200 — { "cashea_orders": [ … ] }, newest first, each with the
admin fields.
Errors
| Status | Body | When |
|---|---|---|
422 |
{ "error": "ValidationError", "details": { "fieldErrors": { … } } } |
Unknown status or limit out of range |
Response 200 — { "cashea": { … } } with The Cashea object
plus:
| Field | Type | Description |
|---|---|---|
id |
integer | Cashea record id |
order_id |
integer | AgĂĽita order id |
last_error |
string | null | Last error returned by Cashea |
confirmed_at |
string | null | ISO-8601 |
cancelled_at |
string | null | ISO-8601 |
cancellation_reference |
string | null | Cashea support ticket, when the cancellation was recorded by an admin |
cancellation_note |
string | null | Admin note on that cancellation |
cancelled_by_admin_id |
integer | null | Admin who recorded it |
{ "cashea": null } when the order has none.
Errors
| Status | Body | When |
|---|---|---|
404 |
{ "error": "OrderNotFound" } |
No order with that id |
Confirms the collected down payment to Cashea for an order still waiting for
payment (typically a Cashea order in CONFIRM_FAILED).
Response 200
{
"order_status": "CONFIRMED",
"cashea": { "status": "CONFIRMED", "…": "…" }
}
Errors
| Status | Body | When |
|---|---|---|
404 |
{ "error": "OrderNotFound" } |
No order with that id |
422 |
{ "error": "NotCashea", "message": "…" } |
The order is not financed with Cashea |
409 |
{ "error": "NotConfirmable", "message": "…" } |
The order is not WAITING_FOR_PAYMENT or its down payment is not CONFIRMED |
502 |
{ "error": "CasheaUnavailable", "message": "…" } |
Cashea rejected the confirmation or could not be reached |
Records that Cashea's support cancelled the order's financing. Required before refunding the down payment of a Cashea order whose financing could not be cancelled through Cashea's API.
Request body
| Field | Type | Required | Rules |
|---|---|---|---|
reference |
string | yes | Cashea support ticket / case number; ≤ 100 chars |
note |
string | null | no | ≤ 500 chars |
Response 200 — { "cashea": { … } } (admin fields) with status: "CANCELLED".
Errors
| Status | Body | When |
|---|---|---|
404 |
{ "error": "OrderNotFound" } |
No order with that id |
422 |
{ "error": "NotCashea", "message": "…" } |
The order has no Cashea financing |
409 |
{ "error": "AlreadyCancelled", "message": "…" } |
The financing is already CANCELLED |
409 |
{ "error": "OrderStillActive", "message": "…" } |
The order is not CANCELLED, EXPIRED or DELIVERED |
422 |
{ "error": "ValidationError", "details": { "fieldErrors": { … } } } |
Body fails the rules above |