Skip to main content
POST
/
v1
/
checkout
/
{id}
/
expire
curl
curl -X POST https://api.paybridgenp.com/v1/checkout/cs_01j9x2k3m4n5p6q7r8s9t0u1v2/expire \
  -H "Authorization: Bearer pk_sandbox_your_key"
{
  "id": "cs_01j9x2k3m4n5p6q7r8s9t0u1v2",
  "status": "expired",
  "flow": "hosted",
  "provider": null,
  "expires_at": "2026-03-30T14:30:00.000Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.paybridgenp.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your PayBridge API key. Obtain one from the dashboard under Settings → API Keys. Prefix: pk_sandbox_ for testing, pk_live_ for production.

Path Parameters

id
string
required

The checkout session id (e.g. cs_01j9x2k3m4n5p6q7r8s9t0u1v2).

Response

Session expired (or was already terminal).

id
string
Example:

"cs_01j9x2k3m4n5p6q7r8s9t0u1v2"

status
enum<string>

The session's current status after the expire call.

Available options:
pending,
initiated,
success,
failed,
cancelled,
expired
flow
enum<string>
Available options:
hosted,
redirect
provider
enum<string> | null
Available options:
esewa,
khalti,
fonepay
expires_at
string<date-time>