Paying an order in installments with Krece (buy now, pay later). Krece is a
payment method (paymentMethod=KRECE): the client opens Krece's payment link
outside the app, picks the installments and authorizes there, then reports the
payment. An admin approves it from the
manual payments queue.
Paths are relative to the /api/v1 prefix; all routes require
Authorization: Bearer {token}.
Krece is chosen with
paymentMethod=KRECEonPOST /ordersorPATCH /orders/{orderId}/payment-method. It is listed byGET /payment-methods/availableonly while it is available. It cannot be combined withfinancing=CASHEAand is not accepted for surplus reservations.
Admins switch it on or off with
PATCH /admin/config/payment-methods/KRECE. The payment window of a Krece order is thekrece_payment_expiry_minutessetting (PATCH /admin/settings/krece_payment_expiry_minutes,integer).
See Common errors.
| Method | URI | Role | Description |
|---|---|---|---|
GET |
/orders/{orderId}/payment/krece |
CLIENT | Krece payment link for the order |
POST |
/orders/{orderId}/payment/krece/report |
CLIENT | Report that the order was paid in Krece |
The link to open outside the app (system browser or the Krece app). Calling it
sets expires_at to at least krece_payment_expiry_minutes from now while the
payment is unreported.
Response 200
{
"krece": {
"payment_url": "https://pagos.krece.example/q/bbbbbbbb?amount=25.25¤cy=USD&merchant_order_id=AGUITA-42",
"button_image_url": "https://pagos.krece.example/branding_assets/pagar-con-krece.png",
"merchant_order_id": "AGUITA-42",
"amount_usd": 25.25,
"currency": "USD",
"payment_status": "PENDING",
"expires_at": "2026-11-27T15:00:00+00:00"
}
}
| Field | Type | Description |
|---|---|---|
payment_url |
string | Krece link with the amount and order reference |
button_image_url |
string | null | Official "Pagar con Krece" image |
merchant_order_id |
string | Order reference Krece keeps with the sale |
amount_usd |
number | Amount to pay |
currency |
string | Always USD |
payment_status |
string | PENDING, or FAILED when a previous report was rejected |
expires_at |
string | null | ISO-8601 end of the payment window |
Errors
| Status | Body | When |
|---|---|---|
404 |
{ "error": "NotFound", "message": "Orden no encontrada." } |
Unknown order or not owned by the caller |
422 |
{ "error": "NotKrece", "message": "…" } |
The order's payment_method is not KRECE |
409 |
{ "error": "Conflict", "message": "…" } |
The order is not WAITING_FOR_PAYMENT, or its payment is already reported (PROCESSING) or CONFIRMED |
503 |
{ "error": "KreceUnavailable", "message": "…" } |
Krece is not configured |
Request body
| Field | Type | Required | Rules |
|---|---|---|---|
reference |
string | null | no | max 60; operation number on Krece's receipt |
Response 200
{
"payment": {
"id": 9,
"status": "PROCESSING",
"method": "KRECE",
"amount_usd": 25.25,
"currency": "USD",
"merchant_order_id": "AGUITA-42",
"reported_at": "2026-11-27T14:10:00+00:00"
}
}
Errors
| Status | Body | When |
|---|---|---|
404 |
{ "error": "NotFound", "message": "Orden no encontrada." } |
Unknown order or not owned by the caller |
422 |
{ "error": "NotKrece", "message": "…" } |
The order's payment_method is not KRECE |
409 |
{ "error": "Conflict", "message": "…" } |
The order is not WAITING_FOR_PAYMENT, or its payment is already reported (PROCESSING) or CONFIRMED |
503 |
{ "error": "KreceUnavailable", "message": "…" } |
Krece is not configured |
422 |
{ "error": "ValidationError", "details": { "fieldErrors": { … } } } |
Body fails the rules above |