Skip to navigation

Update Payment Intent Mapping

View as Markdown

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

is_active alone deactivates or activates this mapping in place. A new their_payment_intent_id replaces it: this mapping is deactivated and a new active mapping takes the id; the response is the new mapping. Charges that already reference this mapping keep refunding against it. Activating or replacing needs a succeeded payment intent and a live processor (422 otherwise); deactivating needs a succeeded or cancelled payment intent (422 otherwise), so no charge in flight loses its mapping. Deactivating or replacing is refused (409) while a charge attempt linked to this mapping is unresolved. Activating or replacing is refused (409) while an active mapping of the payment intent on the processor already holds the resulting processor payment intent id.

Authentication

AuthorizationBearer

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

Path parameters

payment_intent_idstringRequired
mapping_external_idstringRequired
account_idstringRequired

Request

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

Response

Successful Response
idstring
processor_idstring
their_payment_intent_idstring
is_activeboolean
processor_namestring or nullOptional

Errors

422
Unprocessable Entity Error