Limited Release
Customer management helps you update an existing customer’s details and change their payment method. You can also remove customer information from PayPal when their business relationship ends.
Update customer details
Use a valid access token and make a PUT call to the/v1/commerce/billing/customers/{external_customer_id} endpoint with the modified request parameters such as customer name, email, address, phone, payment method token, and metadata.
Path parameter: external_customer_id is the external_id you provided when you registered the customer.
For information on all parameters, see API reference.
200 OK response with the updated customer information.
Change payment method
Use a valid access token and make a PUT call to the/v1/commerce/billing/customers/{external_customer_id} endpoint with the modified payment method token.
Path parameter: external_customer_id is the external_id you provided when you registered the customer.
For information on all parameters, see API reference.
There are two scenarios for updating a customer’s payment method:
Scenario 1: Customer adding a new payment method
- Generate a payment method token.
- Update customer details with the new token.
- Retrieve the payment method token associated with the selected payment method. For information on this, see Get saved payment method details for customer confirmation.
- Update customer details with the retrieved token.
200 OK response with the updated customer information.
Delete customer information
Use a valid access token and make a DELETE call to the/v1/commerce/billing/customers/{external_customer_id} endpoint.
Path parameter: external_customer_id is the external_id you provided when you registered the customer.
204 No Content response.