Cancellation Behavior
| Current Status | Action | Result Status |
|---|---|---|
pending | Immediate cancel | canceled |
active | Cancel at period end (via PSP) | canceling -> canceled at period end |
- pending: Directly canceled, status becomes
canceled - active: PSP cancellation is triggered (takes effect at billing period end). Local status becomes
canceling, then updated tocanceledvia Webhook when the period ends
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
orderId | string | Yes | Subscription order ID (Short ID format ORD_xxx) |
Example Request
Success Response (200) — Active Subscription
Success Response (200) — Pending Subscription
Response Fields
| Field | Type | Description |
|---|---|---|
orderId | string | Order ID (Short ID) |
status | string | New order status (canceling or canceled) |
Error Responses
| Status | Description |
|---|---|
| 400 | Missing orderId / subscription not in pending or active status |
| 401 | Authentication failed |
| 403 | Order does not belong to current merchant (ownership check failed) |
| 404 | Order not found |
| 502 | PSP error (payment provider unavailable) |