merchant_config

POST /api/me/merchants/:id/gateways

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.

post/api/me/merchants/{id}/gateways

Request

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

Path parameters

idstring required

Server-issued identifier

Request body

idstring
namestring required
slugstring required
type'hosted_x402' required
enabled_intentboolean required
priorityinteger required
upstream_base_urlstring uri required
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.