v1
latestOpenAPI 3.0.02026-07-26167441.9 MBReassign a Payment Method to Another Customer
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.
patch/payment-methods/{payment_method_id}
Path parameters
payment_method_idstring required
The unique identifier of the payment_method. This is the vaulted_token received when enrolling a payment method with Enroll Payment Method (UUID).
Headers
X-account-codestring required
The unique identifier of your account (UUID).
Request body
Response
The reassigned payment method, including the new owner in the customer_id field.
Example response
{
"idempotency_key": "a0000000-0000-4000-8000-000000000010",
"name": "VISA ****1111",
"description": "VISA ****1111",
"type": "CARD",
"category": "CARD",
"country": "US",
"status": "ENROLLED",
"sub_status": "ENROLLED",
"vaulted_token": "b0000000-0000-4000-8000-000000000002",
"created_at": "2024-06-04T12:47:46.992602Z",
"updated_at": "2024-06-04T12:47:46.992603Z",
"card_data": {
"iin": "41111111",
"lfd": "1111",
"holder_name": "JOHN DOE",
"expiration_month": 3,
"expiration_year": 26,
"number_length": 16,
"security_code_length": 3,
"brand": "VISA",
"issuer": "JPMORGAN CHASE BANK N A",
"country_code": "US",
"category": "CREDIT",
"type": "CREDIT",
"fingerprint": "55a7fe38-cdc3-45dc-8c5f-820751799c76"
},
"customer_id": "b3f2c1a0-1234-4a5b-9c8d-000000000001"
}