POST
/
subscriptions
/
{subscriptionId}
/
paymentmethods
Add payment method
curl --request POST \
  --url https://api.smokeball.com/subscriptions/{subscriptionId}/paymentmethods \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json-patch+json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "paymentSystemId": "STRIPE",
  "paymentInformation": {},
  "isDefault": true,
  "chargeImmediately": true
}'
"<string>"

Authorizations

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

Path Parameters

subscriptionId
string<uuid>
required

The unique identifier of the subscription

Body

Payment method details including system and payment information

The body is of type object.

Response

200
application/json

Successfully added the payment method

The response is of type string.