Skip to content

Suggested

API Dashboard
POST /checkout-sessions

Creates a checkout session for a payment link.

POST/checkout-sessions
Create checkout session

Bearer access token returned by the authentication endpoint.

The API key used for authentication when making requests to the API Gateway.

API version selector for Conomy endpoints. Use 24-04-2025 for the current version.

Identifies the application making the request.

Reference for checkout url

List of items to pay for

preTaxAmountstringrequired

The amount of the item

totalAmountstringrequired

amount + tax.amount, if no tax it's equal to amount

descriptionstringrequired

The description of the item

taxobjectnullable

Specifies the currency used, following the ISO 4217 standard for fiat currencies (e.g., CLP, ARS, MXN). Go to the currencies page for the complete list of supported values.

Allowed payment methods.

Optional customer to pass into the checkout session

idstring

Unique identifier for the internal service.

firstNamestring

Payer's name

emailstring

Payer's email

lastNamestring

Payer's last name

phoneNumberstring

Payer's phone number without prefix

phoneNumberPrefixstring

Phone number prefix (e.g., +57)

documentTypestring

Documeny type of the entity (e.g., RUT, CURP, CURL). Go to the Supported Identity document types page for the complete list of supported values.

documentNumberstring

The document number associated with the documentType

addressobject

The entity’s address information.

A list of destinations for the transaction.

namestring

The name of the source or destination of the transaction.

typestringrequired
ACCOUNT
externalIdstring

External reference identifier for integrations.

amountstringrequired

The amount involved in the transaction.

metadataobject

Additional metadata related to the transaction source or destination.

accountobjectrequired

Amount of seconds for payment link to be inactivated after creation

Identity reference object used inside account nodes.

identityIdstringrequired

User unique identifier

namestring

User name

lastnamestring

User lastname

nicknamestring

User nickname

documentNumberstring

User DNI

entityTypestring

Entity type of identity

The URL to which the end user will be redirected after successful payment completion.

The URL to which the end user will be redirected after failed payment or cancellation.

idstringrequired

Unique identifier for the internal service.

paymentLinkIdstring

Reference Payment Link ID

checkoutTokenstring

Reference for checkout url

paymentConfigsobject[]required
createdAtstringdate-timerequired

When the link expires

statusstringrequired
ATTEMPTACTIVEEXPIREDFINISHEDPROCESSING_PAYMENTFAILED
itemsobject[]required

List of items to pay for

currencystringrequired

Specifies the currency used, following the ISO 4217 standard for fiat currencies (e.g., CLP, ARS, MXN). Go to the currencies page for the complete list of supported values.

preTaxAmountstringrequired

Addition of all items preTaxAmounts

totalAmountstringrequired

Addition of all items totalAmounts

urlstringrequired

Url to open checkout flow

paymentMethodsAllowedstring[]min 1 itemsrequired

Allowed payment methods.

customerobjectnullable

Optional customer to pass into the checkout session

redirectUrlstring

The URL to which the end user will be redirected after completing the payment.

destinationsobject[]min 1 itemsrequired

A list of destinations for the transaction.

customerRequirementsstring[]
expiresAtstringdate-timerequired
ownerobjectrequired

Identity reference object used inside account nodes.

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

{
  "checkoutToken": "string",
  "items": [
    {
      "preTaxAmount": "string",
      "totalAmount": "string",
      "description": "string"
    }
  ],
  "currency": "string",
  "paymentMethodsAllowed": [
    "CARD"
  ],
  "customer": {},
  "destinations": [
    {
      "type": "ACCOUNT",
      "amount": "string",
      "account": {
        "type": null,
        "currency": null,
        "accountNumber": null,
        "accountHolder": null
      }
    }
  ],
  "duration": 30,
  "customerRequirements": [
    "firstName"
  ],
  "owner": {
    "identityId": "string"
  },
  "successUrl": "string"
}
Response
{
  "id": "string",
  "paymentLinkId": "string",
  "checkoutToken": "string",
  "paymentConfigs": [
    {
      "currency": "string",
      "product": "string",
      "exchangeRate": "string",
      "paymentMethods": [
        null
      ]
    }
  ],
  "createdAt": "2024-01-15T10:30:00.000Z",
  "status": "ATTEMPT",
  "items": [
    {
      "preTaxAmount": "string",
      "totalAmount": "string",
      "description": "string"
    }
  ],
  "currency": "string",
  "preTaxAmount": "string",
  "totalAmount": "string"
}