Archive a customer payment method
/v1/customers/{customerId}/payment-methods/{paymentMethodId}/archiveAuthorizationBearer token · headerrequiredPublic API key bearer token.
customerIdstringrequiredpaymentMethodIdstringrequiredenvironmentstringrequiredMerchant environment — key-bound keys resolve it from the credential; unbound callers default to sandbox.
sandboxproductionmerchantAccountIdstringrequiredIdempotency-KeystringRequired for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.
application/jsonbillingAccountIdstringreasonstringSuccess
dataobjectrequiredrequestIdstringrequiredBad request, including malformed JSON
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectMissing or invalid API key
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectConflict, including idempotency body drift
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectValidation failed
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectAPI key rate limit exceeded
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobjectError
errorobjectrequiredShow propertiesHide properties
codestringrequiredbad_requestunauthorizedforbiddennot_foundconflictrate_limitedvalidation_failurenot_implementedinternal_errormessagestringrequiredtypestringapi_errorauthentication_errorcard_erroridempotency_errorinvalid_request_errorpermission_errorrate_limit_errorparamstringThe request field that failed validation (dot path), when the error is field-attributable.
requestIdstringdocsUrlstringDeep link to the errors guide section for this code.
detailsobject