API reference
The endpoints an online integration uses. All requests are authenticated with your
API key and made against https://api-live.kcpboundless.com. The
reads, the refunds, the webhook configuration and the error shape are shared with the in-store
channel; they are listed in the in-store API reference.
Payments
Open a checkout page
POST /api/online/payments
Opens a hosted checkout page for the amount and returns the payment in AWAITING_TERMINAL with
checkoutUrl and checkoutExpiresAt. See Accept a payment for the request
body and response. Repeating a request with the same reference returns the payment it opened
while that payment is waiting or paid; the same reference with different details is 409.
Refresh a payment from the page
POST /api/online/payments/{id}/sync-status
Asks the acquirer what happened on the page and returns the payment, advanced if the customer has finished. Safe to call repeatedly; a decided payment is returned as it is.
Cancel a payment the customer has not paid
POST /api/online/payments/{id}/cancel
Reads the acquirer's record, stops the page at the acquirer, and closes the payment CANCELLED. If
the customer completed the payment first, their payment stands and the response reports that. A
paid payment is refused with 409; refund it instead.
Read a payment, its history, and lists
GET /api/transactions/{id}
GET /api/transactions/by-payment/{paymentId}
GET /api/transactions?merchantExternalId=...
As for in-store. An online payment carries channel ONLINE, checkoutUrl while its page is
open, checkoutExpiresAt, pendingRefundAmount while a refund is on its way, and
checkoutLatePaidAt if it was paid after its page was closed.
Refunds
POST /api/transactions/{id}/refund body optional: { "refundReference": "..." }
POST /api/transactions/{id}/partial-refund body: { "amount": 10.00, "refundReference": "..." }
Open to API keys with the REFUND scope. See Refund a payment.
API key scopes
PUT /api/merchants/{merchantExternalId}/api-keys/{keyId}/scopes body: { "scopes": ["REFUND"] }
Replaces what a key may do beyond taking payments; an empty list takes every scope away.
Administrators only. The create call (POST /api/merchants/{merchantExternalId}/api-keys) takes
the same scopes field.
Online checkout settings
GET /api/merchants/{merchantExternalId}/online-checkout-config
PUT /api/merchants/{merchantExternalId}/online-checkout-config
Reads or replaces the checkout page expiry and the allowed return origins. Administrators only.
{
"expirySeconds": 120,
"allowedReturnOrigins": ["https://order.example.com"]
}
| Field | Description |
|---|---|
expirySeconds | How long a page takes payment, 60 to 1800. null means the default, 120. |
allowedReturnOrigins | Up to 20 origins a returnUrl may point at: https://host[:port], no path. |
The customer's return
GET|POST /api/online/returns/{paymentId}
Where the hosted page sends the customer's browser back. You never call it: Boundless receives the
return, confirms the outcome with the acquirer, and redirects the browser to your returnUrl with
paymentId appended.
Errors
The error shape and the status codes are the in-store ones. Two cases specific to this channel:
| Code | When |
|---|---|
400 Bad Request | The returnUrl is not on your allowed return origins, or is not an absolute https address. |
409 Conflict | The reference already belongs to a waiting or paid payment with different details; or the payment cannot be cancelled or refunded in its current state — the message says which. |