POST
/{url}

Submit payer and payment-method-specific details for an existing cobru.

This operation is still classified as legacy-doc. Its field shape is corroborated by Cobru's original Spotlight materials, the compiled internal API notes, and later deep checkout research, but Cobru has not yet replayed every method variant end-to-end in this repo's sandbox evidence set.

Current confidence breakdown:

  • High confidence on the selector field name payment
  • High confidence on the PSE prerequisite GET /get_banks/1/ plus bankCode mapped into the bank field
  • Medium confidence on Nequi and Daviplata request shapes
  • Medium confidence on card and Bancolombia button payload fields
  • Known sandbox caveat: direct payment: "breb" has been observed as commercially gated or disabled in later research, even though Spotlight documents it as a supported method

Spotlight materials describe this endpoint as the checkout hub for Bre-B, PSE, Efecty, Corresponsal Bancolombia, Nequi, dale!, Botón Bancolombia, Daviplata, and credit-card flows.

Authorization

ApiKey BearerAuth
x-api-key<token>

In: header

AuthorizationBearer <token>

In: header

Path Parameters

url*string

Cobru slug returned by POST /cobru/

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

payment*string

Response Body

application/json

application/json

curl -X POST "https://prod.cobru.co/string" \  -H "Content-Type: application/json" \  -d '{    "payment": "breb"  }'

{
  "model": "api.paymentorder",
  "fields": {
    "method": "breb",
    "franchise": "breb",
    "state": "PENDIENTE",
    "qr_value": "9893839849384938434.COM.CRB.LLA04...",
    "key_value": "@llave0343"
  }
}

{
  "error": "Error en la creacion del cobru.",
  "detail": "payment_method_enabled must be a JSON string"
}