Skip to main content
POST
/
api
/
v1
/
checkout
/
sessions
Create a checkout session [V1]
curl --request POST \
  --url https://api.loops.fi/api/v1/checkout/sessions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "paymentLinkId": "<string>",
  "externalCustomerId": "<string>",
  "metadata": {}
}'
{
  "id": "<string>",
  "url": "<string>",
  "status": "PENDING",
  "amount": 123,
  "currency": "<string>",
  "productName": "<string>",
  "externalCustomerId": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z",
  "completedAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

API Key authentication using Bearer token

Body

application/json

Payment link ID to use for session creation

externalCustomerId
string

External customer identifier

metadata
object

Additional metadata

Response

Default Response

id
string
required

Unique session identifier

url
string<uri>
required

URL to redirect customer to complete checkout

status
enum<string>
required

Session status

Available options:
PENDING,
COMPLETED,
EXPIRED,
CANCELLED
amount
number
required

Amount to be charged

currency
string
required

Currency code (e.g., USD)

productName
string
required

Name of the product

createdAt
string<date-time>
required

Session creation time

externalCustomerId
string

External customer identifier

expiresAt
string<date-time>

Session expiration time

completedAt
string<date-time>

Session completion time

metadata
object

Additional metadata

I