Paycose Docs
Checkout
POST/checkouts/{checkout_session_id}/expire

Expire Checkout Session

Cancel an open checkout session.

Request

Example

curl -X POST 'https://api.paycose.com/api/v1/app1/platform/wallet/checkouts/{{checkout_session_id}}/expire' \
  -H 'X-Session-Token: {{session_token}}' \
  -H 'X-Country: {{country}}' \
  -d '{}'

Headers

NameValue
X-Session-Token{{session_token}}
X-Country{{country}}

Body

{}

Responses

200200 OK

Headers

NameValue
Content-Typeapplication/json

Body

{
  "id": null,
  "status": null
}
500500 Internal Server Error

Headers

NameValue
Content-Typeapplication/json

Body

{
  "object": "error",
  "code": "<string>",
  "key": "<string>",
  "i18n_key": "<string>",
  "message": "<string>",
  "request_id": "<string>"
}

On this page