palbaseDocs

Palbase Payments · API

POST/payments/subscriptions/{subscription_id}/extend

Extend subscription

Extends a subscription's billing period or trial by 1 to 90 days.

Called by your server, with the project's secret key.

Path

subscription_idstring · requiredSubscription UUID.

Request body

daysinteger (int32) · requiredDays to extend the subscription (1-90).
curl
curl -X POST "https://<your-ref>.palbase.studio/payments/subscriptions/<subscription_id>/extend" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"days":0}'

Responses

200OK

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation ExtendSubscription of payments's contract.