Overview
Colombia cash-in uses hosted checkout only. There is noPOST /api/v1/co/transactions/inbound.
Create a session with POST /api/v1/checkouts and country: "CO". The response includes checkoutUrl. The payer opens that HG page, pays on the hosted page, and returns to the HG success page. Your successUrl is used only after payment is confirmed.
The account must use currency COP and be Operativa. Payment rails are configured on the account. The create request does not choose them.
Prerequisites
- Bearer API token with access to the COP account
- A Colombia COP account with status
Operativa
Create body
Required:country—"CO"amountsuccessUrl
accountId, cancelUrl, webhookUrl, metadata, reference, idempotencyKey, locale.
Flow
POST /api/v1/checkoutswithcountry: "CO",amount, andsuccessUrl- Send
checkoutUrlfrom the response to the payer - The payer pays on the HG hosted page and lands on the HG success page
- After payment is confirmed, HG.Cash redirects the payer to your
successUrl - Optionally set
webhookUrl— see Receiving webhooks and Create checkouts
Example request
pending and moves to completed when payment is confirmed.
Account status
The account must beOperativa. Requests against Bloqueada or Cerrada accounts return 403 with code: ACCOUNT_NOT_OPERATIVE. A Restringida account returns 403 with code: RESTRICTED.
