Skip to main content
GET
/
v1
/
checkouts
/
{id}
Retrieve a checkout session
curl --request GET \
  --url https://api.kyren.top/v1/checkouts/{id} \
  --header 'x-api-key: <api-key>'
{
  "code": 0,
  "message": "success",
  "data": {
    "id": "<string>",
    "productId": "<string>",
    "amount": 123,
    "currency": "<string>",
    "status": "OPEN",
    "url": "<string>",
    "expiresAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

x-api-key
string
header
required

Your API key. Use kyren_live_* for production and kyren_test_* for testing.

Path Parameters

id
string
required

The unique identifier of the resource

Response

The checkout session object

code
integer
Example:

0

message
string
Example:

"success"

data
object