Subscription Payments
Set default payment method
Sets or clears the default payment method on a subscription. The update is processed asynchronously.
Important considerations:
- Omitting the payment method id clears the subscription's default payment method
- Usage subscriptions must always have a default payment method, so clearing is not allowed for them
- For a usage subscription that doesn't exist yet, the payment method is kept and set as its default when it is created
put/subscriptions/{subscriptionId}/paymentmethods
Request
- Base URLhttps://api.smokeball.com
- URLhttps://api.smokeball.com/subscriptions/{subscriptionId}/paymentmethods
- AuthAPI key in header x-api-key and API key in header Authorization
Path parameters
subscriptionIdstring required
The unique identifier of the subscription
Request body
Response
When request is accepted. Returns a 'Link' object to the payment method, or to the subscription when clearing.
Changes
No recorded changes to this operation across all 15 revisions of this API.