Skip to navigation

Update Payment Method Mapping

View as Markdown

Deactivate, activate or replace ONE of a payment method’s processor mappings.

is_active alone deactivates or activates this mapping in place. A new their_payment_method_id replaces it: this mapping is deactivated and a new active mapping takes the id; the response is the new mapping. Activating or replacing needs a live payment method and processor and, for every provider type but PayPal, an active customer mapping for the payment method’s customer on the processor (422 otherwise). It is refused (409) while another mapping of the payment method on that processor is active. Deactivating or replacing a mapping that carries a live mandate (for example an India e-mandate) is refused (409).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

payment_method_idstringRequired
mapping_external_idstringRequired
account_idstringRequired

Request

This endpoint expects an object.
their_payment_method_idstring or nullOptional1-255 characters
Replace the mapping with one that points at this processor payment method id. The response is the new mapping.
is_activeboolean or nullOptional
Activate or deactivate this mapping

Response

Successful Response
idstring
processor_idstring
their_payment_method_idstring
is_activeboolean
processor_namestring or nullOptional

Errors

422
Unprocessable Entity Error