Update customer details
Use a valid access token and send a PUT request to/v1/commerce/billing/customers/{id}
with the modified request parameters such as customer name, email, address, phone, payment method token, and metadata.
Path parameter: id
is the customer’s unique identifier returned by PayPal when you registered the customer.
On successful request processing, PayPal returns the updated customer information.
Note: For the exhaustive list of request and response parameter descriptions, see API reference.
Change payment method
Use a valid access token and send a PUT request to/v1/commerce/billing/customers/{id}
with the modified payment method token.
Path parameter: id
is the customer’s unique identifier returned by PayPal when you registered the customer.
There are two scenarios for updating a customer’s payment method:
Scenario 1: Customer adding a new payment method
- Generate a payment method token.
- Use the following sample request to 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.
- Use the following sample request to update customer details with the retrieved token.
Note: For the exhaustive list of request and response parameter descriptions, see API reference.
Delete customer information
Use a valid access token and send a DELETE request to/v1/commerce/billing/customers/{id}
.
Path parameter: id
is the customer’s unique identifier returned by PayPal when you registered the customer.
On successful request processing, PayPal returns a 204 status code confirming the customer information has been removed.