Manage Subscribers
List active subscribers, and control their subscriptions with pause, resume, cancel, and retry actions.
List subscribers
Retrieve all subscriptions with optional filters for status and plan.
/subscriptionsList all subscriptions for your merchant account.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| plan_id | string | optional | Filter by plan ID. |
| status | string | optional | Filter by status: trialing, active, past_due, paused, canceled. |
| customer_id | string | optional | Filter by customer ID. |
| page | integer | optional | Page number. Default: 1. |
| per_page | integer | optional | Results per page (max 100). Default: 20. |
curl https://wallet.e-mazad.store/api/v1/subscriptions?status=active \
-H "Authorization: Bearer sk_sandbox_..."Pause a subscription
Temporarily stop billing. The subscriber retains their enrollment but will not be charged until resumed.
/subscriptions/{id}/pausePause an active subscription. No charges will occur until resumed.
curl -X POST https://wallet.e-mazad.store/api/v1/subscriptions/sub_001/pause \
-H "Authorization: Bearer sk_sandbox_..."Pause limitations
active status can be paused. Attempting to pause a past_due or canceled subscription will return a 422 error.Resume a subscription
Reactivate a paused subscription. The next billing date is recalculated from the resume date.
/subscriptions/{id}/resumeResume a paused subscription and restart the billing cycle.
curl -X POST https://wallet.e-mazad.store/api/v1/subscriptions/sub_001/resume \
-H "Authorization: Bearer sk_sandbox_..."Cancel a subscription
Permanently end a subscription. This action cannot be undone. The subscriber will not be charged again.
/subscriptions/{id}/cancelCancel a subscription permanently. No further charges will occur.
Request body
| Name | Type | Required | Description |
|---|---|---|---|
| reason | string | optional | Optional cancellation reason for your records. |
| cancel_at_period_end | boolean | optional | If true, cancel at end of current cycle instead of immediately. Default: false. |
curl -X POST https://wallet.e-mazad.store/api/v1/subscriptions/sub_001/cancel \
-H "Authorization: Bearer sk_sandbox_..." \
-H "Content-Type: application/json" \
-d '{
"reason": "Customer requested cancellation",
"cancel_at_period_end": true
}'Immediate vs end-of-period cancellation
cancel_at_period_end: false (default), the subscription is canceled immediately and access should be revoked. With true, the subscriber retains access until the current billing period ends.Retry a failed payment
Manually trigger a payment retry for a subscription in past_due status, outside of the automatic retry schedule.
/subscriptions/{id}/retryManually retry a failed subscription payment.
curl -X POST https://wallet.e-mazad.store/api/v1/subscriptions/sub_001/retry \
-H "Authorization: Bearer sk_sandbox_..."