Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
docs(openapi): document X-Connected-Merchant-Id header on platform-capable v1 endpoints (#14221)
Apoorv Dixit329f7d7d3d3d
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.jsonindex a87b66ae10..90782d158b 100644--- a/api-reference/v1/openapi_spec_v1.json+++ b/api-reference/v1/openapi_spec_v1.json@@ -42,6 +42,17 @@"nullable": true},"example": "server"+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -775,6 +786,17 @@"nullable": true},"example": "server"+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -988,6 +1010,17 @@"type": "boolean","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -1032,6 +1065,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -1118,6 +1162,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -1233,6 +1288,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -1294,6 +1360,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -1360,6 +1437,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -1408,6 +1496,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -1536,6 +1635,17 @@"format": "date-time","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -1580,6 +1690,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -1648,6 +1769,17 @@"type": "string","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -1683,6 +1815,19 @@"summary": "Payment Link - List","description": "To list the payment links across all profiles for a merchant","operationId": "List Payment Links",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -1745,6 +1890,19 @@"summary": "Payment Link - Profile List","description": "To list payment links scoped to the authenticated business profile","operationId": "List Profile Payment Links",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -1986,6 +2144,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -2178,6 +2347,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -2253,6 +2433,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -2288,6 +2479,19 @@"summary": "Refunds - Create","description": "Creates a refund against an already processed payment. In case of some processors, you can even opt to refund only a partial amount multiple times until the original charge amount has been refunded","operationId": "Create a Refund",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -2367,6 +2571,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -2406,6 +2621,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -2462,6 +2688,19 @@"summary": "Refunds - List","description": "Lists all the refunds associated with the merchant, or for a specific payment if payment_id is provided","operationId": "List all Refunds",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -4939,6 +5178,17 @@"type": "boolean","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -5085,6 +5335,17 @@"format": "date-time","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -5234,6 +5495,17 @@"format": "date-time","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -5269,6 +5541,19 @@"summary": "Disputes - Disputes Filters","description": "Lists all the filters associated with disputes","operationId": "List all filters for disputes",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"responses": {"200": {"description": "List of filters",@@ -5299,6 +5584,19 @@"summary": "Disputes - Disputes Filters Profile","description": "Lists all the filters associated with disputes for the given profiles","operationId": "List all filters for disputes for the given Profiles",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"responses": {"200": {"description": "List of filters",@@ -5338,6 +5636,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -5380,7 +5689,20 @@"summary": "Disputes - Uploads Dispute Evidence","description": "Uploads evidence for a dispute","operationId": "Submit Dispute Evidence",- "requestBody": {+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],+ "requestBody": {"content": {"application/json": {"schema": {@@ -5428,6 +5750,19 @@"summary": "Disputes - Attach Evidence to Dispute","description": "Attaches an uploaded evidence file to a dispute","operationId": "Attach Evidence to Dispute",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"description": "A multipart/form-data request with a `file` field containing the evidence file.","content": {@@ -5477,6 +5812,19 @@"summary": "Disputes - Delete Evidence attached to a Dispute","description": "Deletes an evidence file attached to a dispute","operationId": "Delete Evidence attached to a Dispute",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -5522,6 +5870,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -5576,6 +5935,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -5617,6 +5987,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -5649,6 +6030,19 @@"summary": "Routing - Create","description": "Create a routing config","operationId": "Create a routing config",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -5736,6 +6130,17 @@"type": "string","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -5783,6 +6188,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -5833,6 +6249,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -5874,6 +6301,19 @@"summary": "Routing - Deactivate","description": "Deactivates a routing config","operationId": "Deactivate a routing config",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -5926,6 +6366,19 @@"summary": "Routing - Update Default Config","description": "Update default fallback config","operationId": "Update default fallback config",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -5979,6 +6432,19 @@"summary": "Routing - Retrieve Default Config","description": "Retrieve default fallback config","operationId": "Retrieve default fallback config",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"responses": {"200": {"description": "Successfully retrieved default config",@@ -6025,6 +6491,17 @@"type": "string","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -6066,6 +6543,19 @@"summary": "Routing - Retrieve Default For Profile","description": "Retrieve default config for profiles","operationId": "Retrieve default configs for all profiles",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"responses": {"200": {"description": "Successfully retrieved default config",@@ -6111,6 +6601,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -6198,6 +6699,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -6430,6 +6942,17 @@"schema": {"$ref": "#/components/schemas/DynamicRoutingFeatures"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -6514,6 +7037,17 @@"schema": {"$ref": "#/components/schemas/DynamicRoutingFeatures"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -6598,6 +7132,17 @@"schema": {"$ref": "#/components/schemas/DynamicRoutingFeatures"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -6682,6 +7227,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -6739,6 +7295,19 @@"summary": "Routing - Evaluate","description": "Evaluate routing rules","operationId": "Evaluate routing rules",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -6791,6 +7360,19 @@"summary": "Routing - Feedback","description": "Update gateway scores for dynamic routing","operationId": "Update gateway scores",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -6843,6 +7425,19 @@"summary": "Routing - Rule Evaluate","description": "Evaluate routing rules","operationId": "Evaluate routing rules (alternative)",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -6895,6 +7490,19 @@"summary": "Offers - Browse","description": "Lists the offers currently available to the merchant. Offers that are not eligible are\nexcluded, so the response contains only offers that can be used.","operationId": "Browse offers",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -6952,6 +7560,17 @@"type": "string","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -7015,6 +7634,17 @@"type": "string","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -7059,6 +7689,17 @@"type": "string","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -7111,6 +7752,17 @@"schema": {"type": "boolean"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -7163,6 +7815,17 @@"type": "string","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -7215,6 +7878,17 @@"type": "string","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -7258,6 +7932,17 @@"type": "string","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {@@ -7348,6 +8033,17 @@"type": "string","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -7387,6 +8083,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -7430,6 +8137,17 @@"type": "string","nullable": true}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"responses": {@@ -8502,6 +9220,19 @@"summary": "Profile Acquirer - Create","description": "Create a new Profile Acquirer for accessing our APIs from your servers.","operationId": "Create a Profile Acquirer",+ "parameters": [+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"+ }+ ],"requestBody": {"content": {"application/json": {@@ -8560,6 +9291,17 @@"schema": {"type": "string"}+ },+ {+ "name": "X-Connected-Merchant-Id",+ "in": "header",+ "description": "Merchant ID of the connected merchant on whose behalf the operation is performed. Required when authenticating with a platform merchant's API key. Standard and connected merchants must not send it.",+ "required": false,+ "schema": {+ "type": "string",+ "nullable": true+ },+ "example": "merchant_abc"}],"requestBody": {diff --git a/crates/openapi/src/routes/blocklist.rs b/crates/openapi/src/routes/blocklist.rsindex cae55b5f72..f6b040c312 100644--- a/crates/openapi/src/routes/blocklist.rs+++ b/crates/openapi/src/routes/blocklist.rs@@ -7,6 +7,13 @@belonging to this business profile, plus entries with no profile. If omitted, the \merchant's default profile is used; merchants with more than one profile have no default \and will receive an error asking for this header."),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Blocklist entry counts", body = BlocklistCountResponse),@@ -27,6 +34,13 @@ pub async fn get_blocklist_count() {}belonging to this business profile, plus entries with no profile. If omitted, the \merchant's default profile is used; merchants with more than one profile have no default \and will receive an error asking for this header."),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Blocklist lookup result", body = BlocklistLookupResponse),@@ -43,6 +57,13 @@ pub async fn lookup_blocklist_entry() {}path = "/blocklist/toggle",params (("status" = bool, Query, description = "Boolean value to enable/disable blocklist"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Blocklist guard enabled/disabled", body = ToggleBlocklistResponse),@@ -63,6 +84,13 @@ pub async fn toggle_blocklist_guard() {}entry under. Ignored when authenticating with a JWT, which carries its own profile. If \omitted, the merchant's default profile is used; merchants with more than one profile have \no default and will receive an error asking for this header."),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Fingerprint Blocked", body = BlocklistResponse),@@ -83,6 +111,13 @@ pub async fn add_entry_to_blocklist() {}this entry from. Only entries belonging to that profile, or entries with no profile, are \removed - an entry blocked under a different profile is not affected and the request \returns 404. Resolution follows the same rules as blocking."),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Fingerprint Unblocked", body = BlocklistResponse),@@ -104,6 +139,13 @@ pub async fn remove_entry_from_blocklist() {}belonging to this business profile, plus entries with no profile. When no profile can be \resolved - as with publishable-key authentication - all of the merchant's entries are \returned, as before."),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Blocked Fingerprints", body = BlocklistResponse),@@ -132,6 +174,13 @@ pub async fn list_blocked_payment_methods() {}("X-Profile-Id" = Option<String>, Header, description = "The business profile every entry \in this upload is blocked under. Resolution follows the same rules as blocking a single \entry."),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 202, description = "Batch blocklist job initiated", body = BatchBlocklistUploadResponse),@@ -149,6 +198,13 @@ pub async fn upload_batch_blocklist() {}params(("job_id" = String, Path, description = "The job ID returned by the batch upload endpoint, \or the export ID returned by `POST /blocklist/export`"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Batch blocklist job status. For a completed export whose file \@@ -173,6 +229,13 @@ pub async fn get_batch_blocklist_job_status() {}("X-Profile-Id" = Option<String>, Header, description = "Restricts the listing to jobs run \for this business profile, plus jobs that predate profile scoping. When no profile can be \resolved, all of the merchant's jobs are returned, as before."),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "List of batch blocklist jobs. Rows report `downloadable`, but \@@ -191,6 +254,13 @@ pub async fn list_batch_blocklist_jobs() {}params (("X-Profile-Id" = Option<String>, Header, description = "The business profile whose \blocklist is exported. Resolution follows the same rules as blocking a single entry."),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 202, description = "Blocklist export started", body = BlocklistExportResponse),diff --git a/crates/openapi/src/routes/disputes.rs b/crates/openapi/src/routes/disputes.rsindex b4ca6cf605..bb080431fa 100644--- a/crates/openapi/src/routes/disputes.rs+++ b/crates/openapi/src/routes/disputes.rs@@ -6,6 +6,13 @@params(("dispute_id" = String, Path, description = "The identifier for dispute"),("force_sync" = Option<bool>, Query, description = "Decider to enable or disable the connector call for dispute retrieve request"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "The dispute was retrieved successfully", body = DisputeResponse),@@ -33,6 +40,13 @@ pub async fn retrieve_dispute() {}("received_time.gt" = Option<PrimitiveDateTime>, Query, description = "Time greater than the dispute received time"),("received_time.lte" = Option<PrimitiveDateTime>, Query, description = "Time less than or equals to the dispute received time"),("received_time.gte" = Option<PrimitiveDateTime>, Query, description = "Time greater than or equals to the dispute received time"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "The dispute list was retrieved successfully", body = Vec<DisputeResponse>),@@ -50,7 +64,14 @@ pub async fn retrieve_disputes_list() {}post,path = "/disputes/accept/{dispute_id}",params(- ("dispute_id" = String, Path, description = "The identifier for dispute")+ ("dispute_id" = String, Path, description = "The identifier for dispute"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "The dispute was accepted successfully", body = DisputeResponse),@@ -76,6 +97,15 @@ pub async fn accept_dispute() {}(status = 200, description = "Evidence attached to dispute", body = CreateFileResponse),(status = 400, description = "Bad Request", body = GenericErrorResponseOpenApi),),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Disputes",operation_id = "Attach Evidence to Dispute",security(("api_key" = []), ("jwt_key" = []))@@ -92,6 +122,15 @@ pub async fn attach_dispute_evidence() {}(status = 200, description = "The dispute evidence submitted successfully", body = DisputeResponse),(status = 404, description = "Dispute does not exist in our records", body = GenericErrorResponseOpenApi)),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Disputes",operation_id = "Submit Dispute Evidence",security(("api_key" = []), ("jwt_key" = []))@@ -104,7 +143,14 @@ pub async fn submit_dispute_evidence() {}get,path = "/disputes/evidence/{dispute_id}",params(- ("dispute_id" = String, Path, description = "The identifier for dispute")+ ("dispute_id" = String, Path, description = "The identifier for dispute"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "The dispute evidence was retrieved successfully", body = Vec<DisputeEvidenceBlock>),@@ -126,6 +172,15 @@ pub async fn retrieve_dispute_evidence() {}(status = 200, description = "Evidence deleted from a dispute"),(status = 400, description = "Bad Request")),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Disputes",operation_id = "Delete Evidence attached to a Dispute",security(("api_key" = []), ("jwt_key" = []))@@ -138,7 +193,14 @@ pub async fn delete_dispute_evidence() {}get,path = "/disputes/aggregate",params(- ("start_time" = String, Query, description = "The start time for the aggregate query")+ ("start_time" = String, Query, description = "The start time for the aggregate query"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Disputes aggregate retrieved successfully", body = DisputesAggregateResponse),@@ -155,7 +217,14 @@ pub async fn get_disputes_aggregate() {}get,path = "/disputes/profile/aggregate",params(- ("start_time" = String, Query, description = "The start time for the aggregate query")+ ("start_time" = String, Query, description = "The start time for the aggregate query"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Disputes aggregate retrieved successfully", body = DisputesAggregateResponse),@@ -182,6 +251,13 @@ pub async fn get_disputes_aggregate_profile() {}("received_time.gt" = Option<PrimitiveDateTime>, Query, description = "Time greater than the dispute received time"),("received_time.lte" = Option<PrimitiveDateTime>, Query, description = "Time less than or equals to the dispute received time"),("received_time.gte" = Option<PrimitiveDateTime>, Query, description = "Time greater than or equals to the dispute received time"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "The dispute list was retrieved successfully", body = Vec<DisputeResponse>),@@ -201,6 +277,15 @@ pub async fn retrieve_disputes_list_profile() {}responses((status = 200, description = "List of filters", body = DisputeListFilters),),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Disputes",operation_id = "List all filters for disputes",security(("api_key" = []), ("jwt_key" = []))@@ -215,6 +300,15 @@ pub async fn get_disputes_filters() {}responses((status = 200, description = "List of filters", body = DisputeListFilters),),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Disputes",operation_id = "List all filters for disputes for the given Profiles",security(("api_key" = []), ("jwt_key" = []))diff --git a/crates/openapi/src/routes/offer_engine.rs b/crates/openapi/src/routes/offer_engine.rsindex 47786cb744..c85e97281c 100644--- a/crates/openapi/src/routes/offer_engine.rs+++ b/crates/openapi/src/routes/offer_engine.rs@@ -17,6 +17,15 @@(status = 200, description = "Offers available to the merchant", body = BrowseOffersResponse),(status = 403, description = "Offer Engine is not enabled for this merchant")),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Offers",operation_id = "Browse offers",security(("api_key" = []))diff --git a/crates/openapi/src/routes/payment_link.rs b/crates/openapi/src/routes/payment_link.rsindex a5c36bad6b..2486fdd594 100644--- a/crates/openapi/src/routes/payment_link.rs+++ b/crates/openapi/src/routes/payment_link.rs@@ -7,6 +7,13 @@params(("payment_link_id" = String, Path, description = "The identifier for payment link"),("client_secret" = Option<String>, Query, description = "This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Gets details regarding payment link", body = RetrievePaymentLinkResponse),@@ -50,6 +57,15 @@ pub async fn payment_link_retrieve() {}(status = 401, description = "Unauthorized"),(status = 500, description = "Internal server error"),),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Payment Links",operation_id = "List Payment Links",security(("api_key" = []), ("jwt_key" = []))@@ -87,6 +103,15 @@ pub async fn payments_link_list() {}(status = 401, description = "Unauthorized"),(status = 500, description = "Internal server error"),),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Payment Links",operation_id = "List Profile Payment Links",security(("api_key" = []), ("jwt_key" = []))diff --git a/crates/openapi/src/routes/payments.rs b/crates/openapi/src/routes/payments.rsindex 00f81af29a..a761987612 100644--- a/crates/openapi/src/routes/payments.rs+++ b/crates/openapi/src/routes/payments.rs@@ -639,7 +639,14 @@("X-Integration-Type" = Option<String>, Header, description = "Selects the response shape. `server` returns the payment together with \`payment_method_list` and `session_tokens`, so a server-to-server integration can render \its checkout from one call; it is honoured only with merchant API key authentication. \- `client`, or no header, returns the payment response unchanged.", example = "server")+ `client`, or no header, returns the payment response unchanged.", example = "server"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),tag = "Payments",operation_id = "Create a Payment",@@ -659,6 +666,13 @@ pub fn payments_create() {}("client_secret" = Option<String>, Query, description = "This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK"),("expand_attempts" = Option<bool>, Query, description = "If enabled provides list of attempts linked to payment intent"),("expand_captures" = Option<bool>, Query, description = "If enabled provides list of captures linked to latest attempt"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Gets the payment with final status", body = PaymentsResponse),@@ -681,7 +695,14 @@ pub fn payments_retrieve() {}("X-Integration-Type" = Option<String>, Header, description = "Selects the response shape. `server` returns the payment together with \`payment_method_list` and `session_tokens`, so a server-to-server integration can render \its checkout from one call; it is honoured only with merchant API key authentication. \- `client`, or no header, returns the payment response unchanged.", example = "server")+ `client`, or no header, returns the payment response unchanged.", example = "server"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),request_body(content = PaymentsUpdateRequest,@@ -823,7 +844,14 @@ pub fn payments_update() {}post,path = "/payments/{payment_id}/confirm",params(- ("payment_id" = String, Path, description = "The identifier for payment")+ ("payment_id" = String, Path, description = "The identifier for payment"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),request_body(content = PaymentsConfirmRequest,@@ -879,7 +907,14 @@ pub fn payments_confirm() {}post,path = "/payments/{payment_id}/capture",params(- ("payment_id" = String, Path, description = "The identifier for payment")+ ("payment_id" = String, Path, description = "The identifier for payment"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),request_body (content = PaymentsCaptureRequest,@@ -967,7 +1002,14 @@ pub fn payments_connector_session() {})),params(- ("payment_id" = String, Path, description = "The identifier for payment")+ ("payment_id" = String, Path, description = "The identifier for payment"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Payment canceled"),@@ -1001,7 +1043,14 @@ pub fn payments_cancel() {})),params(- ("payment_id" = String, Path, description = "The identifier for payment")+ ("payment_id" = String, Path, description = "The identifier for payment"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Payment canceled post capture", body = PaymentsResponse),@@ -1020,7 +1069,14 @@ pub fn payments_cancel_post_capture() {}get,path = "/payments/{payment_id}/cancel_post_capture",params(- ("payment_id" = String, Path, description = "The identifier for payment")+ ("payment_id" = String, Path, description = "The identifier for payment"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Payment canceled post capture", body = PaymentsResponse),@@ -1048,7 +1104,14 @@ pub fn payments_cancel_post_capture_retrieve() {}("created_lt" = Option<PrimitiveDateTime>, Query, description = "Time less than the payment created time"),("created_gt" = Option<PrimitiveDateTime>, Query, description = "Time greater than the payment created time"),("created_lte" = Option<PrimitiveDateTime>, Query, description = "Time less than or equals to the payment created time"),- ("created_gte" = Option<PrimitiveDateTime>, Query, description = "Time greater than or equals to the payment created time")+ ("created_gte" = Option<PrimitiveDateTime>, Query, description = "Time greater than or equals to the payment created time"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Successfully retrieved a payment list", body = Vec<PaymentListResponse>),@@ -1095,7 +1158,14 @@ pub async fn profile_payments_list() {}path = "/payments/{payment_id}/incremental_authorization",request_body=PaymentsIncrementalAuthorizationRequest,params(- ("payment_id" = String, Path, description = "The identifier for payment")+ ("payment_id" = String, Path, description = "The identifier for payment"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Payment authorized amount incremented", body = PaymentsResponse),@@ -1115,7 +1185,14 @@ pub fn payments_incremental_authorization() {}post,path = "/payments/{payment_id}/extend_authorization",params(- ("payment_id" = String, Path, description = "The identifier for payment")+ ("payment_id" = String, Path, description = "The identifier for payment"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Extended authorization for the payment"),@@ -1205,7 +1282,14 @@ pub fn payments_post_session_tokens() {}post,path = "/payments/{payment_id}/update_metadata",params(- ("payment_id" = String, Path, description = "The identifier for payment")+ ("payment_id" = String, Path, description = "The identifier for payment"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),request_body=PaymentsUpdateMetadataRequest,responses(diff --git a/crates/openapi/src/routes/profile_acquirer.rs b/crates/openapi/src/routes/profile_acquirer.rsindex 3270eff846..2a885d9186 100644--- a/crates/openapi/src/routes/profile_acquirer.rs+++ b/crates/openapi/src/routes/profile_acquirer.rs@@ -10,6 +10,15 @@(status = 200, description = "Profile Acquirer created", body = ProfileAcquirerResponse),(status = 400, description = "Invalid data")),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Profile Acquirer",operation_id = "Create a Profile Acquirer",security(("api_key" = []))@@ -26,7 +35,14 @@ pub async fn profile_acquirer_create() { /* … */path = "/profile_acquirers/{profile_id}/{profile_acquirer_id}",params (("profile_id" = String, Path, description = "The unique identifier for the Profile"),- ("profile_acquirer_id" = String, Path, description = "The unique identifier for the Profile Acquirer")+ ("profile_acquirer_id" = String, Path, description = "The unique identifier for the Profile Acquirer"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),request_body = ProfileAcquirerUpdate,responses(diff --git a/crates/openapi/src/routes/refunds.rs b/crates/openapi/src/routes/refunds.rsindex 83e37b283f..a719d555d9 100644--- a/crates/openapi/src/routes/refunds.rs+++ b/crates/openapi/src/routes/refunds.rs@@ -40,6 +40,15 @@(status = 200, description = "Refund created", body = RefundResponse),(status = 400, description = "Missing Mandatory fields", body = GenericErrorResponseOpenApi)),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Refunds",operation_id = "Create a Refund",security(("api_key" = []))@@ -54,7 +63,14 @@ pub async fn refunds_create() {}get,path = "/refunds/{refund_id}",params(- ("refund_id" = String, Path, description = "The identifier for refund")+ ("refund_id" = String, Path, description = "The identifier for refund"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Refund retrieved", body = RefundResponse),@@ -90,7 +106,14 @@ pub async fn refunds_retrieve_with_body() {}post,path = "/refunds/{refund_id}",params(- ("refund_id" = String, Path, description = "The identifier for refund")+ ("refund_id" = String, Path, description = "The identifier for refund"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),request_body(content = RefundUpdateRequest,@@ -125,6 +148,15 @@ pub async fn refunds_update() {}responses((status = 200, description = "List of refunds", body = RefundListResponse),),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Refunds",operation_id = "List all Refunds",security(("api_key" = []))diff --git a/crates/openapi/src/routes/relay.rs b/crates/openapi/src/routes/relay.rsindex dc5b56296b..cd9540bae5 100644--- a/crates/openapi/src/routes/relay.rs+++ b/crates/openapi/src/routes/relay.rs@@ -28,7 +28,14 @@),params(("X-Profile-Id" = String, Header, description = "Profile ID for authentication"),- ("X-Idempotency-Key" = String, Header, description = "Idempotency Key for relay request")+ ("X-Idempotency-Key" = String, Header, description = "Idempotency Key for relay request"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),tag = "Relay",operation_id = "Relay Request",@@ -43,7 +50,15 @@ pub async fn relay() {}#[utoipa::path(get,path = "/relay/{relay_id}",- params (("relay_id" = String, Path, description = "The unique identifier for the Relay"), ("X-Profile-Id" = String, Header, description = "Profile ID for authentication")),+ params (("relay_id" = String, Path, description = "The unique identifier for the Relay"), ("X-Profile-Id" = String, Header, description = "Profile ID for authentication"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),responses((status = 200, description = "Relay Retrieved", body = RelayResponse),(status = 404, description = "Relay details was not found")diff --git a/crates/openapi/src/routes/routing.rs b/crates/openapi/src/routes/routing.rsindex d7daf8b7db..bbcd717ae3 100644--- a/crates/openapi/src/routes/routing.rs+++ b/crates/openapi/src/routes/routing.rs@@ -14,6 +14,15 @@(status = 422, description = "Unprocessable request"),(status = 403, description = "Forbidden"),),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Routing",operation_id = "Create a routing config",security(("api_key" = []), ("jwt_key" = []))@@ -51,6 +60,13 @@ pub async fn routing_create_config() {}path = "/routing/{routing_algorithm_id}/activate",params(("routing_algorithm_id" = String, Path, description = "The unique identifier for a config"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Routing config activated", body = RoutingDictionaryRecord),@@ -73,6 +89,13 @@ pub async fn routing_link_config() {}path = "/routing/{routing_algorithm_id}",params(("routing_algorithm_id" = String, Path, description = "The unique identifier for a config"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Successfully fetched routing config", body = MerchantRoutingAlgorithm),@@ -119,6 +142,13 @@ pub async fn routing_retrieve_config() {}("limit" = Option<u16>, Query, description = "The number of records to be returned"),("offset" = Option<u8>, Query, description = "The record offset from which to start gathering of results"),("profile_id" = Option<String>, Query, description = "The unique identifier for a merchant profile"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Successfully fetched routing configs", body = RoutingKind),@@ -146,6 +176,15 @@ pub async fn list_routing_configs() {}(status = 403, description = "Malformed request"),(status = 422, description = "Unprocessable request")),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Routing",operation_id = "Deactivate a routing config",security(("api_key" = []), ("jwt_key" = []))@@ -166,6 +205,15 @@ pub async fn routing_unlink_config() {}(status = 400, description = "Malformed request"),(status = 422, description = "Unprocessable request")),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Routing",operation_id = "Update default fallback config",security(("api_key" = []), ("jwt_key" = []))@@ -183,6 +231,15 @@ pub async fn routing_update_default_config() {}(status = 200, description = "Successfully retrieved default config", body = Vec<RoutableConnectorChoice>),(status = 500, description = "Internal server error")),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Routing",operation_id = "Retrieve default fallback config",security(("api_key" = []), ("jwt_key" = []))@@ -198,6 +255,13 @@ pub async fn routing_retrieve_default_config() {}path = "/routing/active",params(("profile_id" = Option<String>, Query, description = "The unique identifier for a merchant profile"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Successfully retrieved active config", body = LinkedRoutingConfigRetrieveResponse),@@ -223,6 +287,15 @@ pub async fn routing_retrieve_linked_config() {}(status = 500, description = "Internal server error"),(status = 404, description = "Resource missing")),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Routing",operation_id = "Retrieve default configs for all profiles",security(("api_key" = []), ("jwt_key" = []))@@ -239,6 +312,13 @@ pub async fn routing_retrieve_default_config_for_profiles() {}request_body = Vec<RoutableConnectorChoice>,params(("profile_id" = String, Path, description = "The unique identifier for a profile"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Successfully updated default config for profile", body = ProfileDefaultRoutingConfig),@@ -292,6 +372,13 @@ pub async fn toggle_success_based_routing() {}("account_id" = String, Path, description = "Merchant id"),("profile_id" = String, Path, description = "Profile id under which Dynamic routing needs to be created"),("enable" = DynamicRoutingFeatures, Query, description = "Feature to enable for success based routing"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Routing Algorithm created", body = RoutingDictionaryRecord),@@ -318,6 +405,13 @@ pub async fn create_success_based_routing() {}("account_id" = String, Path, description = "Merchant id"),("profile_id" = String, Path, description = "Profile id under which Dynamic routing needs to be toggled"),("algorithm_id" = String, Path, description = "Success based routing algorithm id which was last activated to update the config"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),request_body = SuccessBasedRoutingConfig,responses(@@ -372,6 +466,13 @@ pub async fn toggle_elimination_routing() {}("account_id" = String, Path, description = "Merchant id"),("profile_id" = String, Path, description = "Profile id under which Dynamic routing needs to be created"),("enable" = DynamicRoutingFeatures, Query, description = "Feature to enable for elimination based routing"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),responses((status = 200, description = "Routing Algorithm created", body = RoutingDictionaryRecord),@@ -398,6 +499,13 @@ pub async fn create_elimination_routing() {}("account_id" = String, Path, description = "Merchant id"),("profile_id" = String, Path, description = "Profile id under which Dynamic routing needs to be toggled"),("enable" = DynamicRoutingFeatures, Query, description = "Feature to enable for contract based routing"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),request_body = ContractBasedRoutingConfig,responses(@@ -425,6 +533,13 @@ pub async fn contract_based_routing_setup_config() {}("account_id" = String, Path, description = "Merchant id"),("profile_id" = String, Path, description = "Profile id under which Dynamic routing needs to be toggled"),("algorithm_id" = String, Path, description = "Contract based routing algorithm id which was last activated to update the config"),+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )),request_body = ContractBasedRoutingConfig,responses(@@ -457,6 +572,15 @@ pub async fn contract_based_routing_update_configs() {}(status = 422, description = "Unprocessable request"),(status = 403, description = "Forbidden"),),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Routing",operation_id = "Evaluate routing rules",security(("api_key" = []))@@ -479,6 +603,15 @@ pub async fn call_decide_gateway_open_router() {}(status = 422, description = "Unprocessable request"),(status = 403, description = "Forbidden"),),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Routing",operation_id = "Update gateway scores",security(("api_key" = []))@@ -501,6 +634,15 @@ pub async fn call_update_gateway_score_open_router() {}(status = 422, description = "Unprocessable request"),(status = 403, description = "Forbidden"),),+ params(+ (+ "X-Connected-Merchant-Id" = Option<String>, Header,+ description = "Merchant ID of the connected merchant on whose behalf the operation is performed. \+ Required when authenticating with a platform merchant's API key. \+ Standard and connected merchants must not send it.",+ example = "merchant_abc"+ )+ ),tag = "Routing",operation_id = "Evaluate routing rules (alternative)",security(("api_key" = []))