curl -X POST "https://api-sandbox.paywithsoap.com/api/v1/subscriptions/sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG/pause" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"reason": "customer travelling"}'
{
"error": "A renewal of this subscription is due or being charged: pause it once that renewal is paid.",
"hint": "GET /api/v1/subscriptions/sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG shows its status and next_billing_at."
}
Subscriptions
Pause a Subscription
Stop billing a subscription until you resume it
POST
/
api
/
v1
/
subscriptions
/
{id}
/
pause
curl -X POST "https://api-sandbox.paywithsoap.com/api/v1/subscriptions/sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG/pause" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"reason": "customer travelling"}'
{
"error": "A renewal of this subscription is due or being charged: pause it once that renewal is paid.",
"hint": "GET /api/v1/subscriptions/sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG shows its status and next_billing_at."
}
Pause a subscription to stop charging its renewals, for example while the customer is away. The customer keeps the period they already paid for. No renewal is charged until you resume the subscription.
Behavior
- Only an
activesubscription with a renewal scheduled (next_billing_atset) can be paused. A subscription that ispast_due,incompleteor canceled returns a 422. - A renewal Soap has already started (waiting for its charge or being charged) must finish first: pausing then returns a 422, and you can pause once the renewal is paid. A renewal that is due but not started yet is skipped: the paused time is never billed.
- On success the subscription reads
status: "paused", withpaused_atset andnext_billing_atnull. - Pausing a subscription that is already paused changes nothing and keeps the first
paused_at. - The body is optional.
reason(up to 500 characters) is recorded and sent on the opt-insubscription.pausedwebhook. - Canceling a paused subscription ends the pause; the subscription stays active until the end of the period the customer paid for.
curl -X POST "https://api-sandbox.paywithsoap.com/api/v1/subscriptions/sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG/pause" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"reason": "customer travelling"}'
{
"error": "A renewal of this subscription is due or being charged: pause it once that renewal is paid.",
"hint": "GET /api/v1/subscriptions/sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG shows its status and next_billing_at."
}
Authorizations
Path Parameters
Body
application/json
Response
The subscription, with status: "paused", paused_at set and next_billing_at null.
A subscription as the merchant API returns it.
Derived from the billing dates each time you read it. incomplete until the first payment succeeds. active while billing runs, when the first payment went through while renewals were off for your account, and for a subscription canceled for the end of its paid period, until ends_at. past_due after a renewal failed, or while a declined renewal waits for its retry. paused while the merchant has paused billing: nothing renews until it is resumed. canceled once a canceled subscription's ends_at has passed.
Available options:
incomplete, active, past_due, paused, canceled 
