post /v1/customers/{customer}

Update a customer

PostCustomersCustomer

<p>Updates the specified customer by setting the values of the parameters passed. Any parameters not provided are left unchanged. For example, if you pass the <strong>source</strong> parameter, that becomes the customer’s active source (such as a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the <strong>source</strong> parameter: for each of the customer’s current subscriptions, if the subscription bills automatically and is in the <code>past_due</code> state, then the latest open invoice for the subscription with automatic collection enabled is retried. This retry doesn’t count as an automatic retry, and doesn’t affect the next regularly scheduled payment for the invoice. Changing the <strong>default_source</strong> for a customer doesn’t trigger this behavior.</p> <p>This request accepts mostly the same arguments as the customer creation call.</p>

Parameters

Name In Type Required Description
customer path string yes

Request Body

application/x-www-form-urlencoded

Responses

200 Successful response.
default Error response.