Skip to main content
PATCH
Update Payment Method

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

The idempotency key that will be used to ensure the request is only performed once

Path Parameters

company_id
string
required

The company ID with the prefix 'cmp_'.

customer_id
string
required

customer_id or identifier

id
string
required

The resource ID

Body

application/json
default
string

This will change the customer's default payment method'

update_subscriptions_non_default_payment
boolean

If the customer had specified a payment method when subscribing, we will update the subscription the provided payment method

Response

200 - application/json

OK

method
object
subscription_customer_pm
object[] | null