Skip to content

Suggested

API Dashboard

RecipesCreate a checkout session

Create a checkout session

Start a short-lived checkout context from a payment link or checkout token.

Checkout sessions give a payer a temporary context to complete a hosted payment. Use them when the same payment link can be opened by different customers, when customer details are collected at checkout time, or when your frontend needs to refresh an expired session token.

Note

Use the payment link as the reusable commercial offer. Use the checkout session as the individual payer session.

01
Create link

Define amount, allowed methods, destination, and URLs.

02
Create session

Attach customer context to the checkout token.

03
Submit payment

The payer chooses a method and creates the checkout payment.

04
Refresh if needed

Refresh the checkout token when the UI expires.

Request
POST /sandbox/checkout-sessions HTTP/1.1
Host: api.conomyhq.com
x-api-key: {YOUR_API_KEY}
Authorization: Bearer {ACCESS_TOKEN}
conomyhq-api-version: 24-04-2025
User-Agent: MyApp/1.0
Content-Type: application/json
Accept: application/json

{
  "checkoutToken": "<CHECKOUT_TOKEN>",
  "customer": {
    "firstName": "Jane",
    "lastName": "Doe",
    "email": "jane@example.com",
    "documentType": "CC",
    "documentNumber": "1000000000"
  }
}
Response
{
  "id": "<CHECKOUT_SESSION_ID>",
  "checkoutToken": "<CHECKOUT_TOKEN>",
  "status": "ATTEMPT",
  "currency": "CLP",
  "url": "https://checkout.conomyhq.com/<CHECKOUT_TOKEN>"
}
Request
POST /sandbox/checkout-sessions/{CHECKOUT_SESSION_ID}/payments HTTP/1.1
Host: api.conomyhq.com
x-api-key: {YOUR_API_KEY}
Authorization: Bearer {ACCESS_TOKEN}
conomyhq-api-version: 24-04-2025
User-Agent: MyApp/1.0
Content-Type: application/json
Accept: application/json

{
  "paymentMethod": "ETPAY",
  "customer": {
    "firstName": "Jane",
    "email": "jane@example.com"
  }
}
Response
{
  "id": "<CHECKOUT_PAYMENT_ID>",
  "checkoutSessionId": "<CHECKOUT_SESSION_ID>",
  "status": "CREATED"
}
Request
POST /sandbox/checkout-sessions/token/{CHECKOUT_TOKEN}/refresh HTTP/1.1
Host: api.conomyhq.com
x-api-key: {YOUR_API_KEY}
Authorization: Bearer {ACCESS_TOKEN}
conomyhq-api-version: 24-04-2025
User-Agent: MyApp/1.0
Accept: application/json
Response
{
  "id": "<CHECKOUT_SESSION_ID>",
  "checkoutToken": "<CHECKOUT_TOKEN>",
  "status": "ATTEMPT"
}