merchant_config

PATCH /api/me/merchants/:id/gateways/:gateway

Owned configuration control-plane. Fresh ownership, Cache-Control no-store. Strict raw UTF8 JSON <=1MiB/depth12/duplicate and unknown keys rejected. Preview does not probe DNS/HTTP. Atomic marker publication; ambiguous completion resolves by idempotency/owned operation lookup. No settlement/network activation.

patch/api/me/merchants/{id}/gateways/{gateway}

Request

  • Base URL: https://api.aifinpay.io
  • URL: https://api.aifinpay.io/api/me/merchants/{id}/gateways/{gateway}
  • Auth: API key in cookie aifinpay_session

Path parameters

idstring required

Server-issued identifier

gatewaystring required

Request body

idstring
namestring
slugstring
type'hosted_x402'
enabled_intentboolean
priorityinteger
upstream_base_urlstring uri
descriptionstring
metadataobject
chainsstring[]
payment_assetsstring[]
revisionstring required
context_revisionstring required
default_gateway_idstring nullable
legacy_gateway_idstring nullable

Response

Owned authoritative sanitized result.

operation_idstring required
revisionstring required

Changes

No recorded changes to this operation across all 1 revision of this API.