Bulk Replace Payment Method Mappings
PUT/api/magento2/integration-instances/:magento2IntegrationInstance/payment-method-mappings
Bulk-replaces the payment-method mapping set for this instance. Any persisted row whose magento_method is NOT in the supplied payload is deleted; the rest are upserted — so send the complete set of mappings you want kept, not a delta.
Body parameters:
mappings(array, required — may be empty to clear all mappings). Each row:mappings.*.magento_method(string, required, max 128) — the Magento 2 payment method code.mappings.*.sku_payment_type_id(integer or null) — the SKU.io payment type to map to; null records the method as known but unmapped.mappings.*.unpaid_disposition(string or null, optional) — per-method override for how orders arriving unpaid with this method are imported: null inherits the store-level payment-pending policy,openimports normally,draftimports without allocating stock,reserveallocates stock and holds fulfillment with an expiry per the store-level reservation settings.mappings.*.accounting_sync(string or null, optional) — per-method override for when this method's orders sync to the accounting provider: null inherits the store-level trigger,always,when_paid, ornever.
Returns the same payload as the list endpoint, rebuilt after the update.
Authenticated. Requires a Bearer token.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.