DELETE
/
subscriptions
/
{subscriptionId}
/
paymentmethods
/
{id}
curl --request DELETE \
  --url https://api.smokeball.com/subscriptions/{subscriptionId}/paymentmethods/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json-patch+json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "newDefaultPaymentMethodId": "<string>"
}'
This response does not have an example.

Authorizations

x-api-key
string
header
required
Authorization
string
header
required

Path Parameters

subscriptionId
string
required

The unique identifier of the subscription

id
string
required

The ID of the payment method to remove

Body

Optional request containing new default payment method ID

The body is of type object.

Response

200

Successfully removed the payment method