put
https://www.pelcro.com/api/v1/sdk/subscription/
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Update a subscription owned by the authenticated customer: pause or resume shipments (suspend + shipments_suspended_until), and set domains, ip_addresses, or merge metadata. Returns the customer resource with a fresh JWT.
Example:
curl --request PUT \
--url 'https://www.pelcro.com/api/v1/sdk/subscription/4055?site_id=1232' \
--header 'Authorization: Bearer <JWT>' \
--header 'Content-Type: application/json' \
--data '{ "suspend": true, "shipments_suspended_until": "2026-08-01" }'Notes
- Protected — requires the customer's JWT.
- An unknown/unowned subscription returns
404; validation failures (e.g.suspendwithoutshipments_suspended_until) are400.
