Reassign a Payment Method to Another Customer
Reassign an enrolled payment method to a different customer of the same account. Send the customer_id of the target customer in the request body. Only card payment methods can be reassigned. The response returns the payment method in the same shape as the Enroll Payment Method response, with the new owner in the customer_id field.
To reassign the payment method, you need to provide the payment_method_id, which is the vaulted_token received when using the Enroll Payment Method endpoint.
A payment method that is already assigned to a customer that has data cannot be reassigned, and the request is rejected with 409 CONFLICT.
After a payment method is reassigned, the merchant is responsible for updating the customer identifier wherever the payment method was already used. This includes any subscription created with it, the merchant’s own mapping between a user and the vaulted_token, and any stored pair of customer and payment method. WHITELABEL reassigns the payment method to the new customer, but it does not update those references on the merchant side.
/payment-methods/{payment_method_id}Reassigns an enrolled payment method to a different customer of the same account. Only card payment methods can be reassigned. The reassignment fails when the payment method is already assigned to a customer that has data. Returns the payment method in the same shape as the Enroll Payment Method response, with the new owner in the customer_id field.
Header Parameters
The unique identifier of your account (UUID).
Path Parameters
The unique identifier of the payment_method. This is the vaulted_token received when enrolling a payment method with Enroll Payment Method (UUID).
Body application/json
The unique identifier of the customer the payment method is reassigned to (UUID). The payment method can be reassigned only while its current customer has no data; otherwise the request returns 409 CONFLICT.
Response
The reassigned payment method, including the new owner in the customer_id field.
The unique identifier of the customer the payment method now belongs to. Returned by the reassignment response so you can confirm the new owner.
The request is invalid, the target customer does not exist, or the payment method is not a card.
Machine-readable error code.
Human-readable description of the error.
The payment method does not exist for this account.
Machine-readable error code.
Human-readable description of the error.
The payment method is already assigned to a customer that has data.
Machine-readable error code.
Human-readable description of the error.