POST
/
checkout
/
sessions
/
{sessionId}
/
cancel
Cancel a checkout session
curl --request POST \
  --url https://api.simiz.io/v1/checkout/sessions/{sessionId}/cancel
{
  "id": "cs_abc123",
  "url": "https://pay.simiz.io/cs/abc123",
  "amount": 5000,
  "currency": "XAF",
  "description": "<string>",
  "status": "idle",
  "expiresAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "merchantName": "<string>",
  "merchantLogo": "<string>",
  "successUrl": "<string>",
  "cancelUrl": "<string>",
  "paymentMethod": "ORANGE_MONEY",
  "paymentId": "<string>",
  "customer": {
    "email": "<string>",
    "phone": "<string>"
  }
}

Path Parameters

sessionId
string
required

Checkout session ID (format: cs_xxx)

Example:

"cs_abc123"

Response

Session cancelled successfully

id
string

Checkout session ID

Example:

"cs_abc123"

url
string<uri>

Payment URL for the customer

Example:

"https://pay.simiz.io/cs/abc123"

amount
number
Example:

5000

currency
string
Example:

"XAF"

description
string | null
status
enum<string>

Checkout session lifecycle:

  • idle — Session created, waiting for payment initiation
  • processing — Payment being processed
  • pending_ussd — Waiting for USSD confirmation from payer
  • success — Payment completed
  • failed — Payment failed
  • expired — Session expired
  • cancelled — Session cancelled
Available options:
idle,
processing,
pending_ussd,
success,
failed,
expired,
cancelled
expiresAt
string<date-time>
createdAt
string<date-time>
merchantName
string
merchantLogo
string<uri> | null
successUrl
string<uri>
cancelUrl
string<uri>
paymentMethod
enum<string>

Checkout-specific payment methods (broader than core):

  • ORANGE_MONEY, MTN_MOMO, WAVE, MOOV_MONEY
Available options:
ORANGE_MONEY,
MTN_MOMO,
WAVE,
MOOV_MONEY
paymentId
string | null

Payment ID once payment is initiated

customer
object