{"info":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","description":"<html><head></head><body><p>MidMetrics provides the leading chargeback management and payment accounts analytics solution by integrating chargeback prevention, dispute resolution, and payment accounts analytics into one platform.</p>\n<p>Our API has several parts:</p>\n<ol>\n<li><p><strong>Events API</strong> - Allows a merchant to subscribe to events that happen in midmetrics. The events are Chargeback, RDR, Alert, or Inform. When one of the events occurs, a webhook call will be made to inform the merchant of these events.</p>\n</li>\n<li><p><strong>Order API -</strong> Allows a merchant to upload the information about orders that occur in their CRM. The information is used to provide dispute resolution.</p>\n</li>\n<li><p>Resolve Alert API - Allows a merchant to externally resolve alerts.</p>\n</li>\n<li><p>Reperesntment API - Allows a merchant to get core infomration for use in submitting evidence and disputing chargebacks. It also allows the merchant to submit documents, pdfs and all fields for forming and submitting a dispute (representment) of a chargeback</p>\n</li>\n</ol>\n<p><strong>All requests to the API should be made to the base URL https://{EnterpriseName}.midmetircs.io/ where {EnterpriseName} is your enterprise name in MidMetrics. For example if your enterprise is named acme then API calls must be made to</strong> <a href=\"https://acme.midmetrics.io/\"><b>https://acme.midmetrics.io/</b></a><strong>. This URL is the same base URL that you access MidMetrics by.</strong></p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>curl --location --request POST 'https://{{YourEnterpriseName}}.midmetrics.io/api/EventSubscription' \\\n--header 'Authorization: Basic SecretAPIKey'\n\n</code></pre><p>Once you have been given rights to generate api keys you can go to <a href=\"https://acme.midmetrics.io/Home/About\">https://{{YourEnterpriseName}}.midmetrics.io/Home/About</a> to create a new key. You will then need to email your account manager to request specific rights for that key. Or email <a href=\"https://mailto:service@midmetrics.com\">service@midmetrics.com</a> for your rights. Once you get your secret apikey, and it is granted rights you can use it in the Authorization header with \"Basic \" (without quotes).</p>\n<p>**This is implementing HTTP Basic Authortization described in RFC 7617 <a href=\"https://datatracker.ietf.org/doc/html/rfc7617\">https://datatracker.ietf.org/doc/html/rfc7617</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"}],"owner":"8636185","collectionId":"448aebba-5df7-4b56-a283-b0bead561b19","publishedId":"UVXhqc18","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2025-08-21T11:57:16.000Z"},"item":[{"name":"Events API","item":[{"name":"Subscribe","id":"0a433468-8d99-4d9a-a6fe-0f9613a02c36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"Email\": \"jeff@midmetrics.io\",\r\n    \"ExternalUrl\": \"https://YourCallBackURL/api/ReceiveRDR\",\r\n    \"UserName\": \"YourCallbackUsername\",\r\n    \"Password\": \"YourCallbackPassword\",\r\n    \"EventType\": \"RDR\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://.midmetrics.io/api/EventSubscription","description":"<p>Subscribe an external system's HTTP endpoints to events that occur in MidMetrics. When the event fires, MidMetrics POSTs a JSON payload to the subscribed URL with the configured authentication scheme applied (e.g. a CRM receiving an API call on every Chargeback).</p>\n<p>Event Subscriptions can also be managed inside the MidMetrics portal via our UI:</p>\n<img src=\"https://content.pstmn.io/12f00db3-ccb4-4f15-83f3-7e770a074ee8/aW1hZ2UucG5n\" width=\"426\" height=\"228\" />\n\n<h2 id=\"payload-schema\">Payload Schema</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>EventType</code></td>\n<td>string/enum</td>\n<td>yes</td>\n<td>Event to subscribe to. One of: <code>Alert</code>, <code>Chargeback</code>, <code>RDR</code>, <code>Inform</code>, <code>ChargebackUpdate</code></td>\n</tr>\n<tr>\n<td><code>ExternalUrl</code></td>\n<td>string</td>\n<td>yes</td>\n<td>URL MidMetrics will POST the event JSON to</td>\n</tr>\n<tr>\n<td><code>Email</code></td>\n<td>string</td>\n<td>yes</td>\n<td>Address notified when a webhook delivery fails (e.g. after retries are exhausted)</td>\n</tr>\n<tr>\n<td><code>AuthType</code></td>\n<td>int</td>\n<td>no (default <code>1</code>)</td>\n<td>Authentication scheme. See <a href=\"#auth-types\">Auth Types</a>. Defaults to <code>1</code> (Basic)</td>\n</tr>\n<tr>\n<td><code>UserName</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Basic auth username. Also used as <code>client_id</code> when <code>AuthType = 6</code> (JWT)</td>\n</tr>\n<tr>\n<td><code>Password</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Basic auth password. Also used as <code>client_secret</code> when <code>AuthType = 6</code> (JWT)</td>\n</tr>\n<tr>\n<td><code>BearerToken</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Static bearer token. Used when <code>AuthType = 2</code></td>\n</tr>\n<tr>\n<td><code>ApiKeyName</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>API key header name or query-param name. Used when <code>AuthType = 3</code> or <code>4</code></td>\n</tr>\n<tr>\n<td><code>ApiKeyValue</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>API key value. Used when <code>AuthType = 3</code> or <code>4</code></td>\n</tr>\n<tr>\n<td><code>HmacSecret</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Shared secret used to sign the request body. Used when <code>AuthType = 5</code></td>\n</tr>\n<tr>\n<td><code>JwtTokenUrl</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>OAuth2 token endpoint. Used when <code>AuthType = 6</code>. Grant type: <code>client_credentials</code></td>\n</tr>\n<tr>\n<td><code>ExtraHeadersJson</code></td>\n<td>string (JSON object)</td>\n<td>no</td>\n<td>Extra headers applied to every webhook request regardless of <code>AuthType</code>. Example: <code>\"{\\\"X-Tenant\\\":\\\"acme\\\",\\\"X-Source\\\":\\\"MidMetrics\\\"}\"</code></td>\n</tr>\n<tr>\n<td><code>Disabled</code></td>\n<td>bool</td>\n<td>no</td>\n<td><code>true</code> disables delivery for this subscription</td>\n</tr>\n<tr>\n<td><code>CompaniesAndMidsThisIsFor</code></td>\n<td>string</td>\n<td>no</td>\n<td>Scope tokens controlling which MIDs trigger this subscription (see <strong>Get Companies and Mids</strong> for the token format). Omitted or <code>\"All\"</code> defaults to all-MIDs for unrestricted keys; restricted keys are automatically capped to their own scope.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"companiesandmidsthisisfor-behavior-on-create\">CompaniesAndMidsThisIsFor behavior on create</h2>\n<ul>\n<li><strong>Omitted or <code>\"All\"</code></strong> - an unrestricted API key creates an all-MIDs subscription. A restricted key automatically caps the scope to the key's own permitted MIDs.</li>\n<li><strong>Specific tokens</strong> (e.g. <code>\"7~42,12!\"</code>) - accepted if every token is within the key's scope; returns <code>403</code> if any token exceeds the key's permissions.</li>\n</ul>\n<p>Use <strong>Get Companies and Mids</strong> to discover valid token values for the authenticated key.</p>\n<h2 id=\"auth-types\">Auth Types</h2>\n<p>The <code>AuthType</code> integer on the payload selects how MidMetrics authenticates when calling <code>ExternalUrl</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><code>AuthType</code></th>\n<th>Name</th>\n<th>How the outbound webhook is authenticated</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>1</code></td>\n<td><code>Basic</code> <em>(default)</em></td>\n<td><code>Authorization: Basic base64(UserName:Password)</code></td>\n</tr>\n<tr>\n<td><code>2</code></td>\n<td><code>BearerToken</code></td>\n<td><code>Authorization: Bearer {BearerToken}</code> (static token)</td>\n</tr>\n<tr>\n<td><code>3</code></td>\n<td><code>ApiKeyHeader</code></td>\n<td>Custom header: <code>{ApiKeyName}: {ApiKeyValue}</code></td>\n</tr>\n<tr>\n<td><code>4</code></td>\n<td><code>ApiKeyQuery</code></td>\n<td>Adds <code>?{ApiKeyName}={ApiKeyValue}</code> to the URL</td>\n</tr>\n<tr>\n<td><code>5</code></td>\n<td><code>HmacSha256</code></td>\n<td>Signs <code>{unixTimestamp}.{body}</code> with <code>HmacSecret</code>. Sends <code>X-Timestamp: {ts}</code> and <code>X-Signature: sha256={hex}</code></td>\n</tr>\n<tr>\n<td><code>6</code></td>\n<td><code>Jwt</code></td>\n<td>POSTs <code>grant_type=client_credentials&amp;client_id={UserName}&amp;client_secret={Password}</code> to <code>JwtTokenUrl</code>, caches the returned <code>access_token</code> until <code>expires_in</code> (30s skew), and sends <code>Authorization: Bearer {access_token}</code> on webhook calls</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"hmac-signature-details-authtype--5\">HMAC signature details (<code>AuthType = 5</code>)</h3>\n<ul>\n<li><p>Algorithm: HMAC-SHA256</p>\n</li>\n<li><p>Signed payload: <code>\"{unix_seconds}.{raw_request_body}\"</code></p>\n</li>\n<li><p>Headers sent:</p>\n<ul>\n<li><p><code>X-Timestamp: {unix_seconds}</code></p>\n</li>\n<li><p><code>X-Signature: sha256={lowercase_hex}</code></p>\n</li>\n</ul>\n</li>\n<li><p>Recommended receiver check: reject if <code>|now - X-Timestamp| &gt; N seconds</code>, then recompute HMAC over <code>timestamp + \".\" + body</code> and constant-time compare.</p>\n</li>\n</ul>\n<h3 id=\"jwt-details-authtype--6\">JWT details (<code>AuthType = 6</code>)</h3>\n<ul>\n<li><p>Token endpoint: <code>JwtTokenUrl</code></p>\n</li>\n<li><p>Grant type: <code>client_credentials</code> (only grant supported)</p>\n</li>\n<li><p>Sent as <code>application/x-www-form-urlencoded</code>:</p>\n<ul>\n<li><p><code>client_id = UserName</code></p>\n</li>\n<li><p><code>client_secret = Password</code></p>\n</li>\n</ul>\n</li>\n<li><p>Expected response JSON: <code>{ \"access_token\": \"...\", \"expires_in\": 3600 }</code></p>\n</li>\n<li><p>Token is cached in-process and reused until 30 seconds before <code>expires_in</code></p>\n</li>\n</ul>\n<h2 id=\"request-delivery\">Request Delivery</h2>\n<ul>\n<li><p>Method: <code>POST</code></p>\n</li>\n<li><p><code>Content-Type: application/json</code></p>\n</li>\n<li><p>Timeout: 12,000 ms (send + read)</p>\n</li>\n<li><p><code>ExtraHeadersJson</code> is applied <strong>after</strong> auth headers for every <code>AuthType</code></p>\n</li>\n<li><p>On delivery failure, <code>LastError</code> is updated on the subscription record and the <code>Email</code> contact is notified after retries are exhausted</p>\n</li>\n</ul>\n<h2 id=\"responses\">Responses</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200 OK</code></td>\n<td>Body is the new subscription <code>Id</code> (integer)</td>\n</tr>\n<tr>\n<td><code>400 Bad Request</code></td>\n<td><code>\"Illegal Event Type\"</code> - <code>EventType</code> missing or invalid</td>\n</tr>\n<tr>\n<td><code>403 Forbidden</code></td>\n<td><code>\"Not authorized\"</code> - caller failed API auth</td>\n</tr>\n<tr>\n<td><code>409 Conflict</code></td>\n<td><code>\"Duplicate subscription\"</code> - a subscription already exists with the same <code>Email</code> + <code>ExternalUrl</code> + <code>EventType</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"examples\">Examples</h2>\n<h3 id=\"basic-auth-default\">Basic auth (default)</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">POST https://.midmetrics.io/api/EventSubscription\nContent-Type: application/json\n{\n  \"EventType\": \"Chargeback\",\n  \"ExternalUrl\": \"https://crm.example.com/hooks/midmetrics\",\n  \"Email\": \"ops@example.com\",\n  \"AuthType\": 1,\n  \"UserName\": \"midmetrics\",\n  \"Password\": \"s3cret\"\n}\n\n</code></pre>\n<h3 id=\"bearer-token\">Bearer token</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"EventType\": \"Alert\",\n  \"ExternalUrl\": \"https://crm.example.com/hooks/midmetrics\",\n  \"Email\": \"ops@example.com\",\n  \"AuthType\": 2,\n  \"BearerToken\": \"eyJhbGciOi...\"\n}\n\n</code></pre>\n<h3 id=\"api-key-in-header\">API key in header</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"EventType\": \"RDR\",\n  \"ExternalUrl\": \"https://crm.example.com/hooks/midmetrics\",\n  \"Email\": \"ops@example.com\",\n  \"AuthType\": 3,\n  \"ApiKeyName\": \"X-Api-Key\",\n  \"ApiKeyValue\": \"ak_live_abc123\"\n}\n\n</code></pre>\n<h3 id=\"api-key-in-query-string\">API key in query string</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"EventType\": \"Inform\",\n  \"ExternalUrl\": \"https://crm.example.com/hooks/midmetrics\",\n  \"Email\": \"ops@example.com\",\n  \"AuthType\": 4,\n  \"ApiKeyName\": \"api_key\",\n  \"ApiKeyValue\": \"ak_live_abc123\"\n}\n\n</code></pre>\n<h3 id=\"hmac-sha256-signed\">HMAC-SHA256 signed</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"EventType\": \"ChargebackUpdate\",\n  \"ExternalUrl\": \"https://crm.example.com/hooks/midmetrics\",\n  \"Email\": \"ops@example.com\",\n  \"AuthType\": 5,\n  \"HmacSecret\": \"whsec_abcdef0123456789\"\n}\n\n</code></pre>\n<h3 id=\"oauth2-jwt-client_credentials\">OAuth2 JWT (client_credentials)</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"EventType\": \"Chargeback\",\n  \"ExternalUrl\": \"https://crm.example.com/hooks/midmetrics\",\n  \"Email\": \"ops@example.com\",\n  \"AuthType\": 6,\n  \"JwtTokenUrl\": \"https://auth.example.com/oauth/token\",\n  \"UserName\": \"client_id_value\",\n  \"Password\": \"client_secret_value\",\n  \"ExtraHeadersJson\": \"{\\\"X-Tenant\\\":\\\"acme\\\"}\"\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}},"urlObject":{"protocol":"https","path":["api","EventSubscription"],"host":["","midmetrics","io"],"query":[],"variable":[]}},"response":[{"id":"94f8928b-dc1e-43d5-9c33-13703267dac8","name":"Subscribe to Alert","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"EventType\": \"Alert\",\r\n    \"ExternalUrl\": \"https://YourCallBackURL/api/ReceiveAlert\",\r\n    \"UserName\": \"YourCallbackUsername\",\r\n    \"Password\": \"YourCallbackPassword\",\r\n    \"Email\": \"jeff@midmetrics.io\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://acme.midmetrics.io/api/EventSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"120"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"Access-Control-Expose-Headers","value":"Request-Context"}],"cookie":[],"responseTime":null,"body":"7"},{"id":"177fb18f-f95e-43f8-920f-843c03c8c419","name":"Subscribe to Chargeback","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"EventType\": \"Chargeback\",\r\n    \"ExternalUrl\": \"https://YourCallBackURL/api/ReceiveCB\",\r\n    \"UserName\": \"YourCallbackUsername\",\r\n    \"Password\": \"YourCallbackPassword\",\r\n    \"Email\": \"jeff@midmetrics.io\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://.midmetrics.io/api/EventSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"121"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"Request-Context","value":"appId=cid-v1:d5d7734f-f522-4898-ad87-d7cf6e51537a"},{"key":"Access-Control-Expose-Headers","value":"Request-Context"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Set-Cookie","value":"ARRAffinity=6f0eb6f3ca0caaa98cb47e00a643a1a299f5f53a14aa0e8e29700c686cf97948;Path=/;HttpOnly;Secure;Domain=sts.midmetrics.io"},{"key":"Set-Cookie","value":"ARRAffinitySameSite=6f0eb6f3ca0caaa98cb47e00a643a1a299f5f53a14aa0e8e29700c686cf97948;Path=/;HttpOnly;SameSite=None;Secure;Domain=sts.midmetrics.io"},{"key":"Date","value":"Thu, 13 Jan 2022 06:20:28 GMT"}],"cookie":[],"responseTime":null,"body":"6"},{"id":"c31ad772-a746-4cf0-a8c9-b0718f743ed6","name":"Subscribe to RDR","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"EventType\": \"RDR\",\r\n    \"ExternalUrl\": \"https://YourCallBackURL/api/ReceiveRDR\",\r\n    \"UserName\": \"YourCallbackUsername\",\r\n    \"Password\": \"YourCallbackPassword\",\r\n    \"Email\": \"jeff@midmetrics.io\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://.midmetrics.io/api/EventSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"120"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"Request-Context","value":"appId=cid-v1:d5d7734f-f522-4898-ad87-d7cf6e51537a"},{"key":"Access-Control-Expose-Headers","value":"Request-Context"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Set-Cookie","value":"ARRAffinity=6f0eb6f3ca0caaa98cb47e00a643a1a299f5f53a14aa0e8e29700c686cf97948;Path=/;HttpOnly;Secure;Domain=sts.midmetrics.io"},{"key":"Set-Cookie","value":"ARRAffinitySameSite=6f0eb6f3ca0caaa98cb47e00a643a1a299f5f53a14aa0e8e29700c686cf97948;Path=/;HttpOnly;SameSite=None;Secure;Domain=sts.midmetrics.io"},{"key":"Date","value":"Thu, 13 Jan 2022 06:18:45 GMT"}],"cookie":[],"responseTime":null,"body":"5"}],"_postman_id":"0a433468-8d99-4d9a-a6fe-0f9613a02c36"},{"name":"Update Subscription","id":"04a945c3-5a32-4740-bf0e-24c7610ab6a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"Email\": \"jeff@midmetrics.io\",\r\n    \"ExternalUrl\": \"https://YourCallBackURL/api/ReceiveRDR\",\r\n    \"UserName\": \"YourCallbackUsername\",\r\n    \"Password\": \"YourCallbackPassword\",\r\n    \"EventType\": \"RDR\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://.midmetrics.io/api/EventSubscription/{{IdOfSubscriptionToUpdate}}","description":"<p>Updates an existing event subscription by ID. Accepts the same request body shape as <strong>Subscribe</strong> (create) - see the full parameter list below. This is a full replace: fields omitted from the request body are cleared, not left unchanged.</p>\n<h2 id=\"payload-schema\">Payload Schema</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>EventType</code></td>\n<td>string/enum</td>\n<td>yes</td>\n<td>Event to subscribe to. One of: <code>Alert</code>, <code>Chargeback</code>, <code>RDR</code>, <code>Inform</code>, <code>ChargebackUpdate</code></td>\n</tr>\n<tr>\n<td><code>ExternalUrl</code></td>\n<td>string</td>\n<td>yes</td>\n<td>URL MidMetrics will POST the event JSON to</td>\n</tr>\n<tr>\n<td><code>Email</code></td>\n<td>string</td>\n<td>yes</td>\n<td>Address notified when a webhook delivery fails (e.g. after retries are exhausted)</td>\n</tr>\n<tr>\n<td><code>AuthType</code></td>\n<td>int</td>\n<td>no (default <code>1</code>)</td>\n<td>Authentication scheme. See the Auth Types section on the <strong>Subscribe</strong> request. Defaults to <code>1</code> (Basic)</td>\n</tr>\n<tr>\n<td><code>UserName</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Basic auth username. Also used as <code>client_id</code> when <code>AuthType = 6</code> (JWT)</td>\n</tr>\n<tr>\n<td><code>Password</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Basic auth password. Also used as <code>client_secret</code> when <code>AuthType = 6</code> (JWT)</td>\n</tr>\n<tr>\n<td><code>BearerToken</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Static bearer token. Used when <code>AuthType = 2</code></td>\n</tr>\n<tr>\n<td><code>ApiKeyName</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>API key header name or query-param name. Used when <code>AuthType = 3</code> or <code>4</code></td>\n</tr>\n<tr>\n<td><code>ApiKeyValue</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>API key value. Used when <code>AuthType = 3</code> or <code>4</code></td>\n</tr>\n<tr>\n<td><code>HmacSecret</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>Shared secret used to sign the request body. Used when <code>AuthType = 5</code></td>\n</tr>\n<tr>\n<td><code>JwtTokenUrl</code></td>\n<td>string</td>\n<td>conditional</td>\n<td>OAuth2 token endpoint. Used when <code>AuthType = 6</code>. Grant type: <code>client_credentials</code></td>\n</tr>\n<tr>\n<td><code>ExtraHeadersJson</code></td>\n<td>string (JSON object)</td>\n<td>no</td>\n<td>Extra headers applied to every webhook request regardless of <code>AuthType</code>. Example: <code>\"{\\\"X-Tenant\\\":\\\"acme\\\",\\\"X-Source\\\":\\\"MidMetrics\\\"}\"</code></td>\n</tr>\n<tr>\n<td><code>Disabled</code></td>\n<td>bool</td>\n<td>no</td>\n<td><code>true</code> disables delivery for this subscription</td>\n</tr>\n<tr>\n<td><code>CompaniesAndMidsThisIsFor</code></td>\n<td>string</td>\n<td>no</td>\n<td>Scope tokens controlling which MIDs trigger this subscription (see <strong>Get Companies and Mids</strong> for the token format). Omitted or <code>\"All\"</code> defaults to all-MIDs for unrestricted keys; restricted keys are automatically capped to their own scope.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Object accepted: <code>EventSubscriptionDTO</code> (<code>Data/DTO/EventSubscription/EventSubscriptionDTO.cs</code>), which extends <code>AuthConfigBase</code> (<code>Data/Entities/EventSubscription.cs</code>) - the same base type used by <strong>Subscribe</strong>. <code>Id</code> and <code>ReadOnly</code> are server-assigned and ignored if present in the request body.</p>\n<p>For HMAC signature and JWT token exchange details, see the Auth Types section on the <strong>Subscribe</strong> request.</p>\n<h2 id=\"companiesandmidsthisisfor-behavior-on-update\">CompaniesAndMidsThisIsFor behavior on update</h2>\n<p>Same rules as create - scope is capped to the key's permissions if unrestricted input is provided, and returns <code>403</code> if specific tokens exceed the key's scope.</p>\n<h2 id=\"authorization-rules\">Authorization rules</h2>\n<ul>\n<li>Returns <code>403</code> if the subscription being updated has a <code>CompaniesAndMidsThisIsFor</code> that is outside the scope of the authenticated key (i.e. if <code>ReadOnly</code> was <code>true</code> on the GET response).</li>\n<li>Returns <code>404</code> if no subscription with that ID exists.</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}},"urlObject":{"protocol":"https","path":["api","EventSubscription","{{IdOfSubscriptionToUpdate}}"],"host":["","midmetrics","io"],"query":[],"variable":[]}},"response":[{"id":"addfaac6-ce4a-4491-b895-5cc8e5700eb6","name":"Subscribe to Alert","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"EventType\": \"Alert\",\r\n    \"ExternalUrl\": \"https://YourCallBackURL/api/ReceiveAlert\",\r\n    \"UserName\": \"YourCallbackUsername\",\r\n    \"Password\": \"YourCallbackPassword\",\r\n    \"Email\": \"jeff@midmetrics.io\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://acme.midmetrics.io/api/EventSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"120"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"Access-Control-Expose-Headers","value":"Request-Context"}],"cookie":[],"responseTime":null,"body":"7"},{"id":"d034dfab-285c-4240-a86c-92cefedbf096","name":"Subscribe to Chargeback","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"EventType\": \"Chargeback\",\r\n    \"ExternalUrl\": \"https://YourCallBackURL/api/ReceiveCB\",\r\n    \"UserName\": \"YourCallbackUsername\",\r\n    \"Password\": \"YourCallbackPassword\",\r\n    \"Email\": \"jeff@midmetrics.io\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://.midmetrics.io/api/EventSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"121"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"Request-Context","value":"appId=cid-v1:d5d7734f-f522-4898-ad87-d7cf6e51537a"},{"key":"Access-Control-Expose-Headers","value":"Request-Context"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Set-Cookie","value":"ARRAffinity=6f0eb6f3ca0caaa98cb47e00a643a1a299f5f53a14aa0e8e29700c686cf97948;Path=/;HttpOnly;Secure;Domain=sts.midmetrics.io"},{"key":"Set-Cookie","value":"ARRAffinitySameSite=6f0eb6f3ca0caaa98cb47e00a643a1a299f5f53a14aa0e8e29700c686cf97948;Path=/;HttpOnly;SameSite=None;Secure;Domain=sts.midmetrics.io"},{"key":"Date","value":"Thu, 13 Jan 2022 06:20:28 GMT"}],"cookie":[],"responseTime":null,"body":"6"},{"id":"4095f637-db69-4393-b1b8-ba5cb4a954a2","name":"Subscribe to RDR","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"EventType\": \"RDR\",\r\n    \"ExternalUrl\": \"https://YourCallBackURL/api/ReceiveRDR\",\r\n    \"UserName\": \"YourCallbackUsername\",\r\n    \"Password\": \"YourCallbackPassword\",\r\n    \"Email\": \"jeff@midmetrics.io\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://.midmetrics.io/api/EventSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"120"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"Request-Context","value":"appId=cid-v1:d5d7734f-f522-4898-ad87-d7cf6e51537a"},{"key":"Access-Control-Expose-Headers","value":"Request-Context"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Set-Cookie","value":"ARRAffinity=6f0eb6f3ca0caaa98cb47e00a643a1a299f5f53a14aa0e8e29700c686cf97948;Path=/;HttpOnly;Secure;Domain=sts.midmetrics.io"},{"key":"Set-Cookie","value":"ARRAffinitySameSite=6f0eb6f3ca0caaa98cb47e00a643a1a299f5f53a14aa0e8e29700c686cf97948;Path=/;HttpOnly;SameSite=None;Secure;Domain=sts.midmetrics.io"},{"key":"Date","value":"Thu, 13 Jan 2022 06:18:45 GMT"}],"cookie":[],"responseTime":null,"body":"5"}],"_postman_id":"04a945c3-5a32-4740-bf0e-24c7610ab6a7"},{"name":"View Subscriptions","id":"2f93f2d2-1c69-4c11-b4d5-717bdfad4eb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://.midmetrics.io/api/EventSubscription","description":"<p>Returns a list of subscriptions for your enterprise.</p>\n<p>You can use this to see all events you subscribe to and the webhooks called on an event.</p>\n<h2 id=\"response-fields\">Response fields</h2>\n<p>Each subscription object includes:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Id</code></td>\n<td>integer</td>\n<td>Subscription ID</td>\n</tr>\n<tr>\n<td><code>EventType</code></td>\n<td>string</td>\n<td>One of: <code>RDR</code>, <code>Alert</code>, <code>Chargeback</code>, <code>Inform</code>, <code>ChargebackUpdate</code></td>\n</tr>\n<tr>\n<td><code>ExternalUrl</code></td>\n<td>string</td>\n<td>Webhook URL events are POSTed to</td>\n</tr>\n<tr>\n<td><code>Email</code></td>\n<td>string</td>\n<td>Optional email address for notifications</td>\n</tr>\n<tr>\n<td><code>AuthType</code></td>\n<td>integer</td>\n<td>Webhook authentication method (see Auth Types below)</td>\n</tr>\n<tr>\n<td><code>UserName</code></td>\n<td>string</td>\n<td>Credential for webhook auth (Basic/ApiKey)</td>\n</tr>\n<tr>\n<td><code>Password</code></td>\n<td>string</td>\n<td>Always returned as <code>\"************\"</code></td>\n</tr>\n<tr>\n<td><code>BearerToken</code></td>\n<td>string</td>\n<td>Always returned as <code>\"************\"</code></td>\n</tr>\n<tr>\n<td><code>ApiKeyName</code></td>\n<td>string</td>\n<td>Header/query param name for ApiKey auth</td>\n</tr>\n<tr>\n<td><code>ApiKeyValue</code></td>\n<td>string</td>\n<td>Always returned as <code>\"************\"</code></td>\n</tr>\n<tr>\n<td><code>HmacSecret</code></td>\n<td>string</td>\n<td>Always returned as <code>\"************\"</code></td>\n</tr>\n<tr>\n<td><code>JwtTokenUrl</code></td>\n<td>string</td>\n<td>Token endpoint for JWT auth</td>\n</tr>\n<tr>\n<td><code>ExtraHeadersJson</code></td>\n<td>string</td>\n<td>JSON object of additional headers to include</td>\n</tr>\n<tr>\n<td><code>Disabled</code></td>\n<td>boolean</td>\n<td>Whether this subscription is currently inactive</td>\n</tr>\n<tr>\n<td><code>LastError</code></td>\n<td>string</td>\n<td>Last delivery error, if any</td>\n</tr>\n<tr>\n<td><code>CompaniesAndMidsThisIsFor</code></td>\n<td>string</td>\n<td>Scope - which MIDs trigger this subscription. <code>null</code> or <code>\"All\"</code> means all MIDs. See <strong>Get Companies and Mids</strong> for the scope token format.</td>\n</tr>\n<tr>\n<td><code>ReadOnly</code></td>\n<td>boolean</td>\n<td><code>true</code> when the authenticated API key's scope does not cover this subscription. The subscription can be viewed but not modified or deleted by this key.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"auth-types\">Auth Types</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Value</th>\n<th>Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>0</td>\n<td>None</td>\n<td>No authentication header sent</td>\n</tr>\n<tr>\n<td>1</td>\n<td>Basic</td>\n<td>HTTP Basic (UserName + Password)</td>\n</tr>\n<tr>\n<td>2</td>\n<td>BearerToken</td>\n<td><code>Authorization: Bearer {token}</code></td>\n</tr>\n<tr>\n<td>3</td>\n<td>ApiKeyHeader</td>\n<td>Custom header: <code>{ApiKeyName}: {ApiKeyValue}</code></td>\n</tr>\n<tr>\n<td>4</td>\n<td>ApiKeyQuery</td>\n<td>Query string: <code>?{ApiKeyName}={ApiKeyValue}</code></td>\n</tr>\n<tr>\n<td>5</td>\n<td>HmacSha256</td>\n<td>HMAC-SHA256 signature header</td>\n</tr>\n<tr>\n<td>6</td>\n<td>Jwt</td>\n<td>Fetches a token from JwtTokenUrl, sends as Bearer</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}},"urlObject":{"protocol":"https","path":["api","EventSubscription"],"host":["","midmetrics","io"],"query":[],"variable":[]}},"response":[{"id":"e35ea197-d2cf-446a-bf74-d1ffba21319d","name":"List all subscriptions","originalRequest":{"method":"GET","header":[],"url":"https://.midmetrics.io/api/EventSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"392"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"Request-Context","value":"appId=cid-v1:d5d7734f-f522-4898-ad87-d7cf6e51537a"},{"key":"Access-Control-Expose-Headers","value":"Request-Context"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Thu, 13 Jan 2022 06:24:45 GMT"}],"cookie":[],"responseTime":null,"body":"[\r\n  {\r\n    \"Id\": 5,\r\n    \"ExternalUrl\": \"https://YourCallBackURL/api/ReceiveRDR\",\r\n    \"Email\": \"jeff@midmetrics.io\",\r\n    \"EventType\": \"RDR\",\r\n    \"UserName\": \"YourCallbackUsername\",\r\n    \"Password\": \"YourCallbackPassword\",\r\n    \"CompaniesAndMidsThisIsFor\": null\r\n  },\r\n  {\r\n    \"Id\": 6,\r\n    \"ExternalUrl\": \"https://YourCallBackURL/api/ReceiveRDR\",\r\n    \"Email\": \"jeff@midmetrics.io\",\r\n    \"EventType\": \"Chargeback\",\r\n    \"UserName\": \"YourCallbackUsername\",\r\n    \"Password\": \"YourCallbackPassword\",\r\n    \"CompaniesAndMidsThisIsFor\": null\r\n  },\r\n  {\r\n    \"Id\": 7,\r\n    \"ExternalUrl\": \"https://YourCallBackURL/api/ReceiveRDR\",\r\n    \"Email\": \"jeff@midmetrics.io\",\r\n    \"EventType\": \"Alert\",\r\n    \"UserName\": \"YourCallbackUsername\",\r\n    \"Password\": \"YourCallbackPassword\",\r\n    \"CompaniesAndMidsThisIsFor\": null\r\n  }\r\n]"}],"_postman_id":"2f93f2d2-1c69-4c11-b4d5-717bdfad4eb8"},{"name":"Delete Subscription","id":"85b0ed7a-974a-46f9-ac55-c1a99f4735c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://.midmetrics.io/api/EventSubscription/{{IdOfSubscriptionToDelete}}","description":"<p>Deletes a subscription with a specified <strong>Subscription Id</strong>. The <strong>Subscription Id</strong> is the value returned from the <strong>Subscribe</strong> call and the <strong>View Subscriptions</strong> call.</p>\n<p>The <strong>Subscription Id</strong> should be passed at the end of the URL.</p>\n<p>Disables the subscription (sets <code>Disabled = true</code>). The record is retained.</p>\n<ul>\n<li>Returns <code>403</code> if the subscription's <code>CompaniesAndMidsThisIsFor</code> is outside the scope of the authenticated key (<code>ReadOnly == true</code>).</li>\n<li>Returns <code>404</code> if no subscription with that ID exists.</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}},"urlObject":{"protocol":"https","path":["api","EventSubscription","{{IdOfSubscriptionToDelete}}"],"host":["","midmetrics","io"],"query":[],"variable":[]}},"response":[{"id":"650dd377-651e-4a7a-bbde-706f9a518e56","name":"Example","originalRequest":{"method":"DELETE","header":[],"url":"https://.midmetrics.io/api/EventSubscription/{{IdOfSubscriptionToDelete}}"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"Request-Context","value":"appId=cid-v1:d5d7734f-f522-4898-ad87-d7cf6e51537a"},{"key":"Access-Control-Expose-Headers","value":"Request-Context"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Thu, 13 Jan 2022 07:21:41 GMT"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"85b0ed7a-974a-46f9-ac55-c1a99f4735c0"},{"name":"Get Companies and Mids","id":"3c72f9f2-523e-4f48-b8a8-bedc8ad10c59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://.midmetrics.io/api/EventSubscription/GetCompaniesAndMids","description":"<p>Returns a tree of companies and merchant accounts (MIDs) that the authenticated API key is permitted to access. Use the <code>Value</code> tokens from this response to populate <code>CompaniesAndMidsThisIsFor</code> when creating or updating event subscriptions.</p>\n<h2 id=\"scope-token-format\">Scope token format</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Token</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>7!</code></td>\n<td>All current MIDs in company 7</td>\n</tr>\n<tr>\n<td><code>7~42</code></td>\n<td>Only MID 42 (which belongs to company 7)</td>\n</tr>\n<tr>\n<td><code>0!</code></td>\n<td>All MIDs with no company assignment</td>\n</tr>\n<tr>\n<td><code>All</code></td>\n<td>Unrestricted (unrestricted keys only)</td>\n</tr>\n</tbody>\n</table>\n</div><p>Multiple tokens are comma-separated: <code>\"7~42,7~55,12!\"</code></p>\n<p>A restricted API key (Scope ≠ \"All\") only sees companies and MIDs it is authorized for. An unrestricted key sees all enabled MIDs.</p>\n<h2 id=\"response-shape\">Response shape</h2>\n<p>Array of company nodes, ordered by name. Each company node:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"Name\": \"Acme Corp\",\n  \"Value\": \"7!\",\n  \"Mids\": [\n    { \"Name\": \"Main Account\",   \"Value\": \"7~42\" },\n    { \"Name\": \"European Store\", \"Value\": \"7~55\" }\n  ]\n}\n</code></pre>\n<p>MIDs not assigned to any company are grouped under a node whose <code>Value</code> is <code>\"0!\"</code> and whose <code>Name</code> is the tenant subdomain. <code>Mids</code> is omitted from JSON when null (leaf-level only, not used currently).</p>\n<h2 id=\"example-full-response\">Example full response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"Name\": \"Acme Corp\",\n    \"Value\": \"7!\",\n    \"Mids\": [\n      { \"Name\": \"Main Account\",   \"Value\": \"7~42\" },\n      { \"Name\": \"European Store\", \"Value\": \"7~55\" }\n    ]\n  },\n  {\n    \"Name\": \"mysubdomain\",\n    \"Value\": \"0!\",\n    \"Mids\": [\n      { \"Name\": \"Legacy MID\", \"Value\": \"0~3\" }\n    ]\n  }\n]\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}},"urlObject":{"protocol":"https","path":["api","EventSubscription","GetCompaniesAndMids"],"host":["","midmetrics","io"],"query":[],"variable":[]}},"response":[{"id":"fc5f9c11-7c21-42f9-a981-8a328f0eb032","name":"Example","originalRequest":{"method":"GET","header":[],"url":"https://.midmetrics.io/api/EventSubscription/GetCompaniesAndMids"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"Name\": \"Acme Corp\",\n    \"Value\": \"7!\",\n    \"Mids\": [\n      { \"Name\": \"Main Account\",   \"Value\": \"7~42\" },\n      { \"Name\": \"European Store\", \"Value\": \"7~55\" }\n    ]\n  },\n  {\n    \"Name\": \"mysubdomain\",\n    \"Value\": \"0!\",\n    \"Mids\": [\n      { \"Name\": \"Legacy MID\", \"Value\": \"0~3\" }\n    ]\n  }\n]\n"}],"_postman_id":"3c72f9f2-523e-4f48-b8a8-bedc8ad10c59"}],"id":"8c6126fd-a797-4ecb-8cb0-7f06d45a81be","description":"<p>The Events API allows you to receive notifications via an HTTP API callback when an <strong>Alert</strong>, <strong>Inform</strong>, <strong>Chargeback</strong>, <strong>Chargeback Update,</strong> or <strong>RDR</strong> happens in your enterprise. The API will make a call to a webhook that you configure and you have subscribed to one of these events.</p>\n<p>If you have questions about using our APIs, please email <a href=\"https://mailto:service@midmetrics.io\">service@midmetrics.com</a></p>\n<h1 id=\"schema\">Schema</h1>\n<h3 id=\"alerts-and-informs\">Alerts and Informs</h3>\n<p>Subscribing to Alerts or Informs event will trigger MidMetrics to HTTP POST to the subscribed webhooks the following object when an Alert or Inform event occurs:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-csharp\">public class AlertOrInformEvent\n{\n    public string alertSource { get; set; }\n    public string descriptor { get; set; }\n    public string descriptorPhone { get; set; }\n    public string caseEventType { get; set; }\n    public SubscribedEventType eventType { get; set; }\n    public string arn { get; set; }\n    public string MID { get; set; }\n    public string externalCaseId { get; set; }\n    public string type { get; set; }\n    public int midMetricsId { get; set; }\n    public DateTime? chargeTransactionDate { get; set; }\n    public decimal amount { get; set; }\n    public string currency { get; set; }\n    public string ccBrand { get; set; }\n    public string ccIssuer { get; set; }\n    public string ccBin { get; set; }\n    public string ccLastFour { get; set; }\n    public string ccFullNumber { get; set; }\n    public string ccExpDate { get; set; }\n    public string ccAuthCode { get; set; }\n    public string externalTransactionId { get; set; }\n    public string enterpriseName { get; set; }\n    public DateTime? dateReceivedByProcessor { get; set; }\n    public DateTime? dateReceivedByMIDMetrics { get; set; }   \n}\n\n</code></pre>\n<p>Example JSON Payload</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"alertSource\": \"Ethoca\",\n    \"descriptor\": \"SAVERSEDGE  8885036816\",\n    \"descriptorPhone\": \"8885036914\",\n    \"caseEventType\": \"DISPUTE\",\n    \"eventType\": \"Alert\",\n    \"arn\": \"82306622314900018222679\",\n    \"MID\": \"520002837881\",\n    \"externalCaseId\": \"B35EST5Z5WNVUTMF8SSAER\",\n    \"type\": \"A\",\n    \"midMetricsId\": 201994,\n    \"chargeTransactionDate\": \"2022-11-10T00:00:00\",\n    \"amount\": 24.95,\n    \"currency\": \"USD\",\n    \"ccBrand\": \"MASTERCARD\",\n    \"ccIssuer\": \"SECURITY SERVICE FEDERAL CREDIT UNION\",\n    \"ccBin\": \"527505\",\n    \"ccLastFour\": \"2825\",\n    \"ccFullNumber\": null,\n    \"ccExpDate\": \"0224\",\n    \"ccAuthCode\": \"704274\",\n    \"externalTransactionId\": \"7778396317\",\n    \"enterpriseName\": \"acme\",\n    \"dateReceivedByProcessor\": \"2022-11-21T15:40:29.153\",\n    \"dateReceivedByMIDMetrics\": \"2022-11-21T14:40:43.693\"\n}\n\n</code></pre>\n<p>For <strong>Inform</strong> events, eventType will be \"Inform\" and the type \"I\"</p>\n<h3 id=\"chargebacks\">Chargebacks</h3>\n<p>Subscribing to the Chargeback events will trigger MidMetrics to HTTP POST to the subscribed webhooks the following object when a Chargeback occurs:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-csharp\">public class CBEvent\n{\n    public string reasonCode { get; set; }\n    public SubscribedEventType eventType { get; set; }\n    public string arn { get; set; }\n    public string MID { get; set; }\n    public string externalCaseId { get; set; }\n    public string type { get; set; }\n    public int midMetricsId { get; set; }\n    public DateTime? chargeTransactionDate { get; set; }\n    public decimal amount { get; set; }\n    public string currency { get; set; }\n    public string ccBrand { get; set; }\n    public string ccIssuer { get; set; }\n    public string ccBin { get; set; }\n    public string ccLastFour { get; set; }\n    public string ccFullNumber { get; set; }\n    public string ccExpDate { get; set; }\n    public string ccAuthCode { get; set; }\n    public string externalTransactionId { get; set; }\n    public string enterpriseName { get; set; }\n    public DateTime? dateReceivedByProcessor { get; set; }\n    public DateTime? dateReceivedByMIDMetrics { get; set; }\n}\n\n</code></pre>\n<p>Example JSON Payload</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"reasonCode\": \"10.4\",\n    \"eventType\": \"Chargeback\",\n    \"arn\": \"2418152013900010500436\",\n    \"MID\": \"910900031854606\",\n    \"externalCaseId\": \"202032009821\",\n    \"type\": \"C\",\n    \"midMetricsId\": 20845,\n    \"chargeTransactionDate\": \"2022-01-12T04:09:01\",\n    \"amount\": 24.95,\n    \"currency\": \"USD\",\n    \"ccBrand\": \"VISA\",\n    \"ccIssuer\": \"BARCLAYS BANK US\",\n    \"ccBin\": \"439707\",\n    \"ccLastFour\": \"1267\",\n    \"ccFullNumber\": \"439707xxxxx1267\",\n    \"ccExpDate\": \"0725\",\n    \"ccAuthCode\": \"07052C\",\n    \"externalTransactionId\": \"689308709\",\n    \"enterpriseName\": \"acme\",\n    \"dateReceivedByProcessor\": \"2022-02-01T00:00:00\",\n    \"dateReceivedByMIDMetrics\": \"2022-02-02T08:56:38.68\"\n}\n\n</code></pre>\n<h3 id=\"chargebackupdate\">ChargebackUpdate</h3>\n<p>Subscribing to the ChargebackUpdate events will trigger MidMetrics to HTTP POST to the subscribed webhooks the following object when a Chargeback Cycle or Action occurs</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-csharp\">public class ChargebackUpdate\n{\n    public string reasonCode { get; set; }\n    public SubscribedEventType eventType { get; set; }\n    public string arn { get; set; }\n    public string MID { get; set; }\n    public string externalCaseId { get; set; }\n    public string type { get; set; }\n    public int midMetricsId { get; set; }\n    public DateTime? chargeTransactionDate { get; set; }\n    public decimal amount { get; set; }\n    public string currency { get; set; }\n    public string ccBrand { get; set; }\n    public string ccIssuer { get; set; }\n    public string ccBin { get; set; }\n    public string ccLastFour { get; set; }\n    public string ccFullNumber { get; set; }\n    public string ccExpDate { get; set; }\n    public string ccAuthCode { get; set; }\n    public string externalTransactionId { get; set; }\n    public string enterpriseName { get; set; }\n    public DateTime? dateReceivedByProcessor { get; set; }\n    public DateTime? dateReceivedByMIDMetrics { get; set; }\n    public List&lt;ChargebackActionEvent&gt; Actions { get; set; }\n    public List&lt;ChargebackCycleEvent&gt; Cycles { get; set; }\n}\npublic class ChargebackActionEvent\n{\n    public string Action { get; set; }\n    public string ActionBy { get; set; }\n    public string Notes { get; set; }\n    public DateTime? Date { get; set; }\n}\npublic class ChargebackCycleEvent\n{\n    public string Cycle { get; set; }\n    public string CycleState { get; set; }\n    public string SourceCycleState { get; set; }\n    public string ActionBy { get; set; }\n    public DateTime? Date { get; set; }\n}\n\n</code></pre>\n<h3 id=\"rdrs\">RDRs</h3>\n<p>Subscribing to the RDRs events will trigger MidMetrics to HTTP POST to the subscribed webhooks the following object when an RDR occurs</p>\n<p>Note the RDR object is very similiar to the Chargeback object except it has the additional fields status and statusCode</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-csharp\">public class RDREvent\n{\n    public string reasonCode { get; set; }\n    public string status { get; set; }\n    public int? statusCode { get; set; }\n    public SubscribedEventType eventType { get; set; }\n    public string arn { get; set; }\n    public string MID { get; set; }\n    public string externalCaseId { get; set; }\n    public string type { get; set; }\n    public int midMetricsId { get; set; }\n    public DateTime? chargeTransactionDate { get; set; }\n    public decimal amount { get; set; }\n    public string currency { get; set; }\n    public string ccBrand { get; set; }\n    public string ccIssuer { get; set; }\n    public string ccBin { get; set; }\n    public string ccLastFour { get; set; }\n    public string ccFullNumber { get; set; }\n    public string ccExpDate { get; set; }\n    public string ccAuthCode { get; set; }\n    public string externalTransactionId { get; set; }\n    public string enterpriseName { get; set; }\n    public DateTime? dateReceivedByProcessor { get; set; }\n    public DateTime? dateReceivedByMIDMetrics { get; set; }\n}\n\n</code></pre>\n<p>Example JSON Payload</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"reasonCode\": \"10.4\",\n    \"status\": \"Accepted\",\n    \"statusCode\": 103,\n    \"eventType\": \"RDR\",\n    \"arn\": \"2418195226900011631570\",\n    \"MID\": \"910900006894219\",\n    \"externalCaseId\": \"4313168\",\n    \"type\": \"R\",\n    \"midMetricsId\": 3464,\n    \"chargeTransactionDate\": \"2022-09-23T00:00:00\",\n    \"amount\": 24.95,\n    \"currency\": \"USD\",\n    \"ccBrand\": \"VISA\",\n    \"ccIssuer\": \"BANK OF AMERICA, N.A.\",\n    \"ccBin\": \"435603\",\n    \"ccLastFour\": \"7314\",\n    \"ccFullNumber\": \"435603xxxxxx7314\",\n    \"ccExpDate\": \"1024\",\n    \"ccAuthCode\": \"110061\",\n    \"externalTransactionId\": \"761127055\",\n    \"enterpriseName\": \"acme\",\n    \"dateReceivedByProcessor\": \"2022-10-08T08:35:08\",\n    \"dateReceivedByMIDMetrics\": \"2022-10-08T00:00:00\"\n}\n\n</code></pre>\n<p>The <strong>eventType</strong> parameter will be: <strong>Alert</strong>, <strong>Inform, Chargeback</strong>, or <strong>RDR.</strong></p>\n<h3 id=\"webhooks\">Webhooks</h3>\n<p>When your webhook is called, MidMetrics will provide via Basic Auth the username and password you provided in the Subscribe API call.</p>\n","_postman_id":"8c6126fd-a797-4ecb-8cb0-7f06d45a81be","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}}},{"name":"Representments API","item":[{"name":"GetDocumentTypes","id":"43136739-b641-4b02-b5b0-574f054c4615","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://.midmetrics.io/api/chargeback/GetDocumentTypes","description":"<p>Retrieves a categorized list of available document types for a tenant.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}},"urlObject":{"protocol":"https","path":["api","chargeback","GetDocumentTypes"],"host":["","midmetrics","io"],"query":[],"variable":[]}},"response":[{"id":"c437f724-db96-4b5a-91ad-e5a442746391","name":"Example","originalRequest":{"method":"GET","header":[],"url":"https://.midmetrics.io/api/chargeback/GetDocumentTypes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"1035"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 28 Mar 2025 22:15:39 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Access-Control-Expose-Headers","value":"Request-Context"},{"key":"Cache-Control","value":"no-cache"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Pragma","value":"no-cache"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"Request-Context","value":"appId=cid-v1:d5d7734f-f522-4898-ad87-d7cf6e51537a"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"DocumentTypes\": [\n        {\n            \"Category\": \"Card Present - Invalid CB \",\n            \"DocumentTypes\": [\n                {\n                    \"DocumentType\": \"Chip-Initiated \"\n                },\n                {\n                    \"DocumentType\": \"Emergency Cash Disbursement\"\n                },\n                {\n                    \"DocumentType\": \"Fallback transaction\"\n                },\n                {\n                    \"DocumentType\": \"PIN and an imprint of the card \"\n                },\n                {\n                    \"DocumentType\": \"Authorization POS Entry Mode code 90 \"\n                },\n                {\n                    \"DocumentType\": \"Contactless transaction \"\n                },\n                {\n                    \"DocumentType\": \"Mobile Push Payment \"\n                },\n                {\n                    \"DocumentType\": \"EMV PIN-Compliant Acceptance Device \"\n                },\n                {\n                    \"DocumentType\": \"Face to face transaction \"\n                },\n                {\n                    \"DocumentType\": \" POS Entry Mode code 05, 07, 90, or 91\"\n                },\n                {\n                    \"DocumentType\": \"Card present - keyed entry\"\n                },\n                {\n                    \"DocumentType\": \"Emergency Cash Disbursement\"\n                }\n            ]\n        },\n        {\n            \"Category\": \"Order Documents\",\n            \"DocumentTypes\": [\n                {\n                    \"DocumentType\": \"Customer Service Records\"\n                },\n                {\n                    \"DocumentType\": \"Signed Contract\"\n                },\n                {\n                    \"DocumentType\": \"Call Transcript\"\n                },\n                {\n                    \"DocumentType\": \"Service was Provided\"\n                },\n                {\n                    \"DocumentType\": \"Customer Acquisition \"\n                },\n                {\n                    \"DocumentType\": \"Fraud Tools\"\n                },\n                {\n                    \"DocumentType\": \"Purchase Process\"\n                },\n                {\n                    \"DocumentType\": \"Purchase Terms\"\n                },\n                {\n                    \"DocumentType\": \"Transaction History\"\n                },\n                {\n                    \"DocumentType\": \"Invoice\"\n                },\n                {\n                    \"DocumentType\": \"Evidence Cardholder is Related to Customer\"\n                },\n                {\n                    \"DocumentType\": \"Product Image\"\n                },\n                {\n                    \"DocumentType\": \"Product Description\"\n                },\n                {\n                    \"DocumentType\": \"Proof Customer No Longer Wishes to Dispute\"\n                },\n                {\n                    \"DocumentType\": \"Identity Verification\"\n                },\n                {\n                    \"DocumentType\": \"CDRN/Alert\"\n                },\n                {\n                    \"DocumentType\": \"Cancelled\"\n                },\n                {\n                    \"DocumentType\": \"Other\"\n                },\n                {\n                    \"DocumentType\": \"Evidence of Refund\"\n                }\n            ]\n        },\n        {\n            \"Category\": \"Other Document\",\n            \"DocumentTypes\": [\n                {\n                    \"DocumentType\": \"Other\"\n                }\n            ]\n        },\n        {\n            \"Category\": \"Proof Of Delivery\",\n            \"DocumentTypes\": [\n                {\n                    \"DocumentType\": \"Shipping Provider Proof\"\n                },\n                {\n                    \"DocumentType\": \"Fulfillment\"\n                },\n                {\n                    \"DocumentType\": \"Usage History\"\n                },\n                {\n                    \"DocumentType\": \"Login History\"\n                },\n                {\n                    \"DocumentType\": \"Proof of Site or App Access\"\n                },\n                {\n                    \"DocumentType\": \"Proof of Product Download\"\n                },\n                {\n                    \"DocumentType\": \"Proof of Activation or Usage\"\n                },\n                {\n                    \"DocumentType\": \"Warranty Registration\"\n                },\n                {\n                    \"DocumentType\": \"Evidence Service Was Provided\"\n                }\n            ]\n        },\n        {\n            \"Category\": \"Travel Documents\",\n            \"DocumentTypes\": [\n                {\n                    \"DocumentType\": \"Flight Manifest\"\n                },\n                {\n                    \"DocumentType\": \"Travel Purchase\"\n                },\n                {\n                    \"DocumentType\": \"Travel history and rewards usage\"\n                },\n                {\n                    \"DocumentType\": \"Hotel or Vacation Rental Final Bill\"\n                },\n                {\n                    \"DocumentType\": \"Food/Beverages Signed to Room\"\n                },\n                {\n                    \"DocumentType\": \"Parking Ticket\"\n                },\n                {\n                    \"DocumentType\": \"Traffic Fine\"\n                },\n                {\n                    \"DocumentType\": \"Other\"\n                },\n                {\n                    \"DocumentType\": \"Car Rental Agreement\"\n                },\n                {\n                    \"DocumentType\": \"Toll Receipt\"\n                },\n                {\n                    \"DocumentType\": \"Collision/Damage Proof\"\n                },\n                {\n                    \"DocumentType\": \"Gas Receipt\"\n                },\n                {\n                    \"DocumentType\": \"Car Return Late Fee Receipt\"\n                },\n                {\n                    \"DocumentType\": \"Room Service\"\n                },\n                {\n                    \"DocumentType\": \"Recreational Activities\"\n                },\n                {\n                    \"DocumentType\": \"In-Room charges\"\n                },\n                {\n                    \"DocumentType\": \"Damage Proof\"\n                },\n                {\n                    \"DocumentType\": \"In-Flight services\"\n                },\n                {\n                    \"DocumentType\": \"Upgrade\"\n                },\n                {\n                    \"DocumentType\": \"Baggage Fees\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"43136739-b641-4b02-b5b0-574f054c4615"},{"name":"UploadDocument","id":"6bb036c4-150f-4404-b7c0-de3bbb4213e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"ChargebackId\": 31663,\r\n  \"ProcessorCaseId\": \"2025084027182\",\r\n  \"DocumentType\": \"Signed Contract\",\r\n  \"Title\": \"Test\",\r\n  \"Notes\": \"test notes.\",\r\n  \"ImageContent\": \"/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUSEhMWFhUWGBYYGRgXFxoaGBcYFxoXGBcYGBYeHiggGB8lHxcYITEhJSkrLi4uGB8zODMsNygtLisBCgoKDg0OGxAQGi0lICUtLS0tLS0tLS0tLS8tLS0tLS0tLS0tLSstLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIALEBHAMBIgACEQEDEQH/xAAcAAACAwEBAQEAAAAAAAAAAAAABQMEBgIHAQj/xABGEAABAwIEAwUFBQUGAwkAAAABAAIRAyEEEjFBBVFhBiJxgZETMqGxwRQjQtHwM1JicuEHFUOSsvEWotI0NVNUY3OCs8L/xAAZAQEAAwEBAAAAAAAAAAAAAAAAAQIDBAX/xAAvEQACAgEDAwEHAgcAAAAAAAA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IeOVnMeQ1xggE+KrY+vUfRZUvA7pBFjBJB+Ku8ewls4sAIM7/wBZ+aRVMY/2Zpz3Z9OgXuYVcI1yi0dmxnw2mHUg0tsSXHreB4xC2XZjEPJ9k12UGfpfxsshwqrLWwIi3putTwupFgL2WGfezWJs8Jw6SBvaXbmFssBRDWgBZ7g1wOa0lJ0BedJmqJMRiA0SSkGMxFJ7Qa4E5jkBM2IsSNBolHbPHusGG7ZMc9/okrcFWxAZSdSNJrfdc4y515c8kdAB+rWjDa2GxR2wxI+0VGNADWkZQBAFgbDzSB1WZJ1P6KfdscOwPY+ke64QDMyWAAnoZhZupVHnF5+MLtxq4qjJ8ndESQFciAYMxHn+aX4d3eF4B3TyvgGZWupVM0gTNjm5AKZbMIRY+pkkm2/Tn5ql9opVAHNqupGAHNJ/EBBItobfLaS34tgy+mRYOiINuSygwL9xB5EH6BdGHS1zuQzfD/s2K8KP+tySdmP+96f85/0FCFlj+Gf7P8It3P0TR0ClKELyjUGr6viEB2uyvqEBSxm3iPqq2J0CEIDE9qtXfyfVL+zejP8A3mfJCFXuYv4jrtB7rPB30WeH5oQqSMsnJNuPD8lyfePkhCqiqOMVof1uoMFqfB3yQhXIfJHV0HgvuF1HivqEIXJYp+8fNfK+oQhXx8s1XAr7Re4f5j81ma/7Mfzu+TUIXr9D/K/uyq5HXCvcZ4Bafg/7QeS+IVMvLNkekcH0Tp2nkUIXnPk2POe1P7cfrda2h+zp/wAiELSXwoqjyrjH7HDfy1f/ALXpXiPfPihC7YcfUyZFTTbg3vN8QhCmfBKJO0HuO8D9Ujq6+vzK+IU4uA+T/9k=\",  \r\n  \"ImageContentName\": \"huury.jpg\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://.midmetrics.io/api/chargeback/uploaddocument","description":"<p>Uploads a document (base64 encoded) to associate with a chargeback. Auto-creates a draft representment if one doesn't exist.</p>\n<p>Examploe paylod:</p>\n<p>{<br />\"ChargebackId\": 45678,<br />\"ProcessorCaseId\": \"CASE98765\",<br />\"DocumentType\": \"Signed Contract\",<br />\"Title\": \"Customer Agreement\",<br />\"Notes\": \"Signed contract received from the customer on March 25, 2025.\",<br />\"ImageContent\": \"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8...\", // shortened Base64 string<br />\"ImageContentName\": \"signed_contract.pdf\"<br />}</p>\n<p>ImageContent should be a base64-encoded string of the file contents</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}},"urlObject":{"protocol":"https","path":["api","chargeback","uploaddocument"],"host":["","midmetrics","io"],"query":[],"variable":[]}},"response":[{"id":"b0feaaf2-59ed-4b17-9170-7d55f0f91215","name":"Example Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"ChargebackId\": \"9924069185 - 01\",\r\n  \"ProcessorCaseId\": \"9924069185 - 01\",\r\n  \"DocumentType\": \"Signed Contract\",\r\n  \"Title\": \"Customer Agreement\",\r\n  \"Notes\": \"Signed contract received from the customer on March 25, 2025.\",\r\n  \"ImageContent\": \"SGVsbG8gZnJvbSBDaGF0R1BUISE=\",  // shortened Base64 string\r\n  \"ImageContentName\": \"signed_contract.pdf\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://.midmetrics.io/api/chargeback/uploaddocument"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"144"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 28 Mar 2025 22:30:02 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Access-Control-Expose-Headers","value":"Request-Context"},{"key":"Cache-Control","value":"no-cache"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Pragma","value":"no-cache"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"Request-Context","value":"appId=cid-v1:d5d7734f-f522-4898-ad87-d7cf6e51537a"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"\"File uploaded successfully.\""},{"id":"ff686d23-40af-404a-9630-4c73e06f1752","name":"Example with bad chargeback id","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"ChargebackId\": 45678,\r\n  \"ProcessorCaseId\": \"CASE98765\",\r\n  \"DocumentType\": \"Signed Contract\",\r\n  \"Title\": \"Customer Agreement\",\r\n  \"Notes\": \"Signed contract received from the customer on March 25, 2025.\",\r\n  \"ImageContent\": \"SGVsbG8gZnJvbSBDaGF0R1BUISE=\",  // shortened Base64 string\r\n  \"ImageContentName\": \"signed_contract.pdf\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://.midmetrics.io/api/chargeback/uploaddocument"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"32"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 28 Mar 2025 22:25:12 GMT"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"Access-Control-Expose-Headers","value":"Request-Context"},{"key":"Cache-Control","value":"no-cache"},{"key":"Expires","value":"-1"},{"key":"Pragma","value":"no-cache"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"Request-Context","value":"appId=cid-v1:d5d7734f-f522-4898-ad87-d7cf6e51537a"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"Message\": \"No such chargeback\"\n}"}],"_postman_id":"6bb036c4-150f-4404-b7c0-de3bbb4213e8"},{"name":"SubmitRepresentment","id":"723d6ed9-4b6f-470f-b848-e3cd40419545","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"MidMetricsId","value":"","type":"text","uuid":"70f7c9cb-a3f7-414e-84f5-f9723309ab90"},{"key":"ProcessorCaseId","value":"","type":"text","uuid":"3e349bc9-341d-48d1-8d3e-fa2f4b833873"},{"key":"TrackingNumber","value":"","type":"text","uuid":"51a5fee4-45cc-4a87-a1ec-dd44222a4352"},{"key":"File","type":"file","uuid":"adf7fda2-4daa-44f5-aea2-8601b75c5e70","value":null}]},"url":"https://.midmetrics.io/api/Chargeback/SubmitRepresentment","description":"<h3 id=\"submit-representment\">Submit Representment</h3>\n<p>This endpoint is used to submit a representment letter for a chargeback to the specified processor. A representment is a process where a merchant disputes a chargeback with supporting documentation. The <strong>file</strong> submitted should be the complete representment letter to be submitted to the processor.</p>\n<h4 id=\"request-format\">Request Format</h4>\n<ul>\n<li><p><strong>Method:</strong> POST</p>\n</li>\n<li><p><strong>Endpoint:</strong> <code>https://.midmetrics.io/api/Chargeback/SubmitRepresentment</code></p>\n</li>\n</ul>\n<h4 id=\"request-body\">Request Body</h4>\n<p>The request body must be sent as <code>form-data</code> and should include the following parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>MidMetricsId</code></td>\n<td>text</td>\n<td>The unique identifier for the Chargeback inside midmetrics. This value must be retrieved by the Events webhook</td>\n</tr>\n<tr>\n<td><code>ProcessorCaseId</code></td>\n<td>text</td>\n<td>The unique identifier for the processor case.  <br />  <br />For testing, use the value \"test.  <br />In test mode the system will verify the API call is valid and not process the request.</td>\n</tr>\n<tr>\n<td><code>TrackingNumber</code></td>\n<td>text</td>\n<td>The tracking number associated with the shipment.</td>\n</tr>\n<tr>\n<td><code>File</code></td>\n<td>file</td>\n<td>A file containing the Representment Letter.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-structure\">Response Structure</h4>\n<p>Upon successful submission, the response will return the following</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"ProcessorId\": {processorCaseId},\n    \"TrackingNumber\": {trackingNumber},\n    \"BytesSaved\": {bytesOfSubmittedFile},\n    \"Message\": \"Representment queued for submission\",\n}\n\n</code></pre>\n<ul>\n<li><p>ProcessorId**:** The processor id submitted with the request.</p>\n</li>\n<li><p>TrackingNumber**:** The tracking number submitted with the request.</p>\n</li>\n<li><p>BytesSaved**:** The number of bytes of the submitted file.</p>\n</li>\n<li><p>Message: String \"Representment queued for submission\" if submission succesful.</p>\n</li>\n</ul>\n<h3 id=\"example-request\">Example Request</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST /api/Chargeback/SubmitRepresentment\nContent-Type: multipart/form-data\n{\n    \"MidMetricsId\": \"100\",    \n    \"ProcessorCaseId\": \"123456\",\n    \"TrackingNumber\": \"ABC123456\",\n    \"File\": &lt;binary file&gt;\n}\n\n</code></pre>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}},"urlObject":{"protocol":"https","path":["api","Chargeback","SubmitRepresentment"],"host":["","midmetrics","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"723d6ed9-4b6f-470f-b848-e3cd40419545"},{"name":"UpdateRepresentment","id":"fb5f8c49-c459-451d-bd74-69f11b100fb6","request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"data","type":"text","contentType":"application/json","value":"{\n  \"MidMetricsId\": 9801,\n  \"SubmitResult\": false,\n  \"Representment\": {\n    \"OrderInfo\": {\n      \"MerchantOrderId\": \"ORD-20240115\",\n      \"DateOfOrder\": \"2024-01-10T00:00:00Z\",\n      \"TrackingNumber\": \"1Z999AA10123456784\",\n      \"DateShipped\": \"2024-01-11T00:00:00Z\",\n      \"DateDelivered\": \"2024-01-13T00:00:00Z\",\n      \"OrderAmount\": 149.99,\n      \"Currency\": \"USD\",\n      \"BillingContact\": {\n        \"Name\": \"Jane Smith\",\n        \"Address\": \"123 Main St\",\n        \"City\": \"Springfield\",\n        \"State\": \"IL\",\n        \"Zip\": \"62701\",\n        \"Country\": \"US\"\n      },\n      \"Products\": [\n        { \"Description\": \"Widget Pro\", \"Sku\": \"WGT-001\", \"Quantity\": 2, \"PricePer\": 74.99 }\n      ]\n    },\n    \"RepresentmentTransactionInfo\": {\n      \"AuthCode\": \"AUTH42\",\n      \"WasCustomerServiceContacted\": true,\n      \"LastCustomerServiceContactDate\": \"2024-01-16T10:00:00Z\",\n      \"LastCustomerServiceContactReason\": \"Customer disputed delivery\"\n    },\n    \"CustomDisputeValues\": [\n      { \"ParameterName\": \"ReturnPolicyUrl\", \"ParameterValue\": \"https://example.com/returns\" }\n    ],\n    \"Documents\": [\n      { \"Key\": \"invoice\", \"Title\": \"Order Invoice\", \"DocumentType_Id\": 3 },\n      { \"Key\": \"proof\",   \"Title\": \"Delivery Confirmation\" }\n    ]\n  }\n}\n"},{"key":"invoice","type":"file","value":null},{"key":"proof","type":"file","value":null}]},"url":"https://.midmetrics.io/api/chargeback/UpdateRepresentment","description":"<h3 id=\"updaterepresentment\">UpdateRepresentment</h3>\n<p>Updates representment data and/or attaches supporting documents for an existing chargeback.\nThe raw request payload is archived to blob storage (<code>{tenant}-representmentupdates</code>) for auditing.</p>\n<h4 id=\"authentication\">Authentication</h4>\n<p>Standard Service API key — same header as all other <code>api/chargeback</code> endpoints.</p>\n<h4 id=\"request\">Request</h4>\n<p><strong>Content-Type:</strong> <code>multipart/form-data</code></p>\n<p>The request has two kinds of parts:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Part name</th>\n<th>Content-Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>data</code></td>\n<td><code>application/json</code></td>\n<td>Yes</td>\n<td>JSON payload (structure below)</td>\n</tr>\n<tr>\n<td><em>{key}</em></td>\n<td><em>(any)</em></td>\n<td>No</td>\n<td>One file part per entry in <code>Representment.Documents</code>, named to match that entry's <code>Key</code> field</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"json-payload-data-part\">JSON Payload (<code>data</code> part)</h4>\n<p>The JSON structure mirrors the response returned by <code>GET api/representment/GetRepresentmentInfo</code>.\nAll sections and fields within <code>Representment</code> are optional — send only what you want to change.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"MidMetricsId\":    123,\n  \"ProcessorCaseId\": \"CB-20240115-001\",\n  \"SubmitResult\":    false,\n  \"Representment\": {\n    \"OrderInfo\": { ... },\n    \"RepresentmentTransactionInfo\": { ... },\n    \"CustomDisputeValues\": [ ... ],\n    \"Documents\": [ ... ]\n  }\n}\n</code></pre>\n<h5 id=\"top-level-fields\">Top-level fields</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>MidMetricsId</code></td>\n<td><code>int</code></td>\n<td>One of these two</td>\n<td>MidMetrics internal chargeback ID</td>\n</tr>\n<tr>\n<td><code>ProcessorCaseId</code></td>\n<td><code>string</code></td>\n<td>One of these two</td>\n<td>Processor-assigned case ID</td>\n</tr>\n<tr>\n<td><code>SubmitResult</code></td>\n<td><code>bool</code></td>\n<td>No (default <code>false</code>)</td>\n<td>When <code>true</code>, renders the representment to PDF via DocRaptor, uploads it to blob storage, creates a <code>RepresentmentSubmission</code> record, logs a chargeback action, updates the chargeback state (<code>DISPUTED</code> or <code>NEEDSMANUALSUBMISSION</code> depending on the processor's submission type), and queues transmission to the processor. Check <code>Submitted</code> in the response to confirm this actually completed.</td>\n</tr>\n<tr>\n<td><code>Representment</code></td>\n<td><code>object</code></td>\n<td>No</td>\n<td>Container for all representment data; omit to skip all data updates</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"partial-update-semantics\">Partial-update semantics</h5>\n<p>These apply to all scalar fields inside <code>Representment</code>:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>JSON</th>\n<th>Effect</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Field <strong>absent</strong> from payload</td>\n<td>No change — existing value preserved</td>\n</tr>\n<tr>\n<td>Field present with <strong><code>null</code></strong></td>\n<td>Clears the value in the database</td>\n</tr>\n<tr>\n<td>Field present with a <strong>value</strong></td>\n<td>Sets the value</td>\n</tr>\n</tbody>\n</table>\n</div><p>Arrays (<code>Products</code>, <code>CustomDisputeValues</code>, <code>Documents</code>) use <strong>full-replace</strong> semantics:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>JSON</th>\n<th>Effect</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Array key <strong>absent</strong></td>\n<td>No change</td>\n</tr>\n<tr>\n<td>Array present (even <code>[]</code>)</td>\n<td>Existing rows deleted and replaced with the provided list</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"representmentorderinfo\">Representment.OrderInfo</h4>\n<p>Scalar fields match <code>RepresentmentOrderInfoVM</code> / <code>OrderInfo</code> entity properties directly.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>MerchantOrderId</code></td>\n<td><code>string</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>TrackingNumber</code></td>\n<td><code>string</code></td>\n<td>Setting a non-empty value triggers a Shippo tracking lookup</td>\n</tr>\n<tr>\n<td><code>DateOfOrder</code></td>\n<td><code>datetime?</code></td>\n<td>ISO 8601</td>\n</tr>\n<tr>\n<td><code>DateShipped</code></td>\n<td><code>datetime?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>DateDelivered</code></td>\n<td><code>datetime?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>Email</code></td>\n<td><code>string</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>IPAddress</code></td>\n<td><code>string</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>Phone</code></td>\n<td><code>string</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>DeliveryLocation</code></td>\n<td><code>string</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>DeliveryNotes</code></td>\n<td><code>string</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>Tax</code></td>\n<td><code>decimal?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>Shipping</code></td>\n<td><code>decimal?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>OrderAmount</code></td>\n<td><code>decimal?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>Currency</code></td>\n<td><code>string</code></td>\n<td>e.g. <code>\"USD\"</code></td>\n</tr>\n<tr>\n<td><code>InvoiceNumber</code></td>\n<td><code>string</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>AccountId</code></td>\n<td><code>string</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>Shipper_Id</code></td>\n<td><code>int?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>ReturnAttemptTooLate</code></td>\n<td><code>bool?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>CancelAttemptTooLate</code></td>\n<td><code>bool?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>MarketingSource</code></td>\n<td><code>string</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>SubMarketingSource</code></td>\n<td><code>string</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>Refundable</code></td>\n<td><code>bool?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>CarRentalDate</code></td>\n<td><code>datetime?</code></td>\n<td>Hospitality / travel</td>\n</tr>\n<tr>\n<td><code>CarReturnDate</code></td>\n<td><code>datetime?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>FlightDate</code></td>\n<td><code>datetime?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>CheckInDate</code></td>\n<td><code>datetime?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>CheckOutDate</code></td>\n<td><code>datetime?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>AncillaryCharges</code></td>\n<td><code>bool?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>NoShow</code></td>\n<td><code>bool?</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>BillingContact</code></td>\n<td><code>object</code></td>\n<td>See Contact object below</td>\n</tr>\n<tr>\n<td><code>ShippingContact</code></td>\n<td><code>object</code></td>\n<td>See Contact object below</td>\n</tr>\n<tr>\n<td><code>Products</code></td>\n<td><code>array</code></td>\n<td>See Product item below — full-replace</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"contact-object\">Contact object</h5>\n<p>Contacts use <strong>object-level merge</strong> semantics: providing the contact object updates only the non-null fields within it.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Name</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>Address</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>City</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>State</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>Zip</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>Country</code></td>\n<td><code>string</code></td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"product-item\">Product item</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Description</code></td>\n<td><code>string</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>Sku</code></td>\n<td><code>string</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>Quantity</code></td>\n<td><code>int</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>PricePer</code></td>\n<td><code>decimal</code></td>\n<td>Unit price</td>\n</tr>\n<tr>\n<td><code>WasReturned</code></td>\n<td><code>bool?</code></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"representmentrepresentmenttransactioninfo\">Representment.RepresentmentTransactionInfo</h4>\n<p>Scalar fields match <code>RepresentmentTransactionVM</code> / <code>RepresentmentTransactionInfo</code> entity properties.\nRead-only derived fields returned by <code>GetRepresentmentInfo</code> (e.g. <code>Descriptor</code>, <code>AVSCodeDescription</code>) are silently ignored if sent.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>AuthCode</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>Cancelled</code></td>\n<td><code>bool?</code></td>\n</tr>\n<tr>\n<td><code>CancelDate</code></td>\n<td><code>datetime?</code></td>\n</tr>\n<tr>\n<td><code>CancelReason</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>WasCustomerServiceContacted</code></td>\n<td><code>bool?</code></td>\n</tr>\n<tr>\n<td><code>LastCustomerServiceContactDate</code></td>\n<td><code>datetime?</code></td>\n</tr>\n<tr>\n<td><code>LastCustomerServiceContactReason</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>DeviceId</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>GeoId</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>OTP_SMS</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>AddOns</code></td>\n<td><code>bool?</code></td>\n</tr>\n<tr>\n<td><code>HasProof</code></td>\n<td><code>bool?</code></td>\n</tr>\n<tr>\n<td><code>ProofDate</code></td>\n<td><code>datetime?</code></td>\n</tr>\n<tr>\n<td><code>ProofType</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>Recurring</code></td>\n<td><code>bool?</code></td>\n</tr>\n<tr>\n<td><code>RefundARN</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>RefundAuthCode</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>RefundAmount</code></td>\n<td><code>decimal?</code></td>\n</tr>\n<tr>\n<td><code>RefundDate</code></td>\n<td><code>datetime?</code></td>\n</tr>\n<tr>\n<td><code>ExternalRefundId</code></td>\n<td><code>string</code></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"representmentcustomdisputevalues\">Representment.CustomDisputeValues</h4>\n<p>Full-replace array. Each item:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>ParameterId</code></td>\n<td><code>int?</code></td>\n<td>Preferred — looked up by DB id</td>\n</tr>\n<tr>\n<td><code>ParameterName</code></td>\n<td><code>string</code></td>\n<td>Fallback if <code>ParameterId</code> absent</td>\n</tr>\n<tr>\n<td><code>ParameterValue</code></td>\n<td><code>string</code></td>\n<td>The value to store</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"representmentdocuments\">Representment.Documents</h4>\n<p>Full-replace array. Each item describes one file attachment.\nThe corresponding file must be sent as a named multipart part whose name matches <code>Key</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Key</code></td>\n<td><code>string</code></td>\n<td>Must match the name of the file part in the multipart request</td>\n</tr>\n<tr>\n<td><code>Title</code></td>\n<td><code>string</code></td>\n<td>Display title (defaults to filename if omitted)</td>\n</tr>\n<tr>\n<td><code>Notes</code></td>\n<td><code>string</code></td>\n<td>Optional notes</td>\n</tr>\n<tr>\n<td><code>DocumentType_Id</code></td>\n<td><code>int?</code></td>\n<td>Optional document type classification</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response\">Response</h4>\n<p><strong>200 OK</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"MidMetricsId\":    123,\n  \"RepresentmentId\": 456,\n  \"PdfPreviewUrl\":   \"/api/chargeback/GetRepresentmentLetter?midMetricsId=123\",\n  \"DocumentsAdded\":  2,\n  \"SubmitRequested\": true,\n  \"Submitted\":       true,\n  \"PdfPages\":        3,\n  \"PdfSize\":         \"0.42 MB\",\n  \"PdfOverBudget\":   false,\n  \"PdfWarning\":      null\n}\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>MidMetricsId</code></td>\n<td>Chargeback ID</td>\n</tr>\n<tr>\n<td><code>RepresentmentId</code></td>\n<td>Representment record ID</td>\n</tr>\n<tr>\n<td><code>PdfPreviewUrl</code></td>\n<td>URL to retrieve the PDF — use <code>GET api/chargeback/GetRepresentmentLetter</code> (API-key authenticated). No longer the session-gated DisputeGenius URL.</td>\n</tr>\n<tr>\n<td><code>DocumentsAdded</code></td>\n<td>Number of documents successfully uploaded in this request</td>\n</tr>\n<tr>\n<td><code>SubmitRequested</code></td>\n<td>Whether <code>SubmitResult: true</code> was sent in the request</td>\n</tr>\n<tr>\n<td><code>Submitted</code></td>\n<td>Whether the PDF was actually generated and transmission was queued, as distinct from <code>SubmitRequested</code> (what was asked). <code>false</code> if <code>SubmitRequested</code> was <code>true</code> but the template or PDF generation failed (the data save still succeeded)</td>\n</tr>\n<tr>\n<td><code>PdfPages</code></td>\n<td>Number of pages in the generated PDF</td>\n</tr>\n<tr>\n<td><code>PdfSize</code></td>\n<td>Human-readable size of the generated PDF (e.g. <code>\"0.42 MB\"</code>)</td>\n</tr>\n<tr>\n<td><code>PdfOverBudget</code></td>\n<td><code>true</code> if the PDF exceeds the processor's page or size limits</td>\n</tr>\n<tr>\n<td><code>PdfWarning</code></td>\n<td>Human-readable description of which limit was exceeded, or <code>null</code></td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"error-responses\">Error responses</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Condition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400 Bad Request</td>\n<td>Missing <code>data</code> part, invalid JSON, or neither <code>MidMetricsId</code> nor <code>ProcessorCaseId</code> provided, or <code>ProcessorCaseId</code> provided with <code>MidMetricsId</code> but they refer to different chargebacks</td>\n</tr>\n<tr>\n<td>403 Forbidden</td>\n<td>Missing or invalid API key</td>\n</tr>\n<tr>\n<td>404 Not Found</td>\n<td>No chargeback found for the provided identifier</td>\n</tr>\n<tr>\n<td>415 Unsupported Media Type</td>\n<td>Request is not <code>multipart/form-data</code></td>\n</tr>\n<tr>\n<td>500 Internal Server Error</td>\n<td>Unhandled exception — check server logs</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"example--clear-a-field-set-to-null\">Example — clear a field (set to null)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"MidMetricsId\": 9801,\n  \"Representment\": {\n    \"RepresentmentTransactionInfo\": {\n      \"CancelDate\": null,\n      \"CancelReason\": null\n    }\n  }\n}\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}},"urlObject":{"protocol":"https","path":["api","chargeback","UpdateRepresentment"],"host":["","midmetrics","io"],"query":[],"variable":[]}},"response":[{"id":"d78dac4f-5f39-47fd-8fa2-b19dec3fdec6","name":"Example Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"data","type":"text","contentType":"application/json","value":"{\n  \"MidMetricsId\": 9801,\n  \"SubmitResult\": false,\n  \"Representment\": {\n    \"OrderInfo\": {\n      \"MerchantOrderId\": \"ORD-20240115\",\n      \"DateOfOrder\": \"2024-01-10T00:00:00Z\",\n      \"TrackingNumber\": \"1Z999AA10123456784\",\n      \"DateShipped\": \"2024-01-11T00:00:00Z\",\n      \"DateDelivered\": \"2024-01-13T00:00:00Z\",\n      \"OrderAmount\": 149.99,\n      \"Currency\": \"USD\",\n      \"BillingContact\": {\n        \"Name\": \"Jane Smith\",\n        \"Address\": \"123 Main St\",\n        \"City\": \"Springfield\",\n        \"State\": \"IL\",\n        \"Zip\": \"62701\",\n        \"Country\": \"US\"\n      },\n      \"Products\": [\n        { \"Description\": \"Widget Pro\", \"Sku\": \"WGT-001\", \"Quantity\": 2, \"PricePer\": 74.99 }\n      ]\n    },\n    \"RepresentmentTransactionInfo\": {\n      \"AuthCode\": \"AUTH42\",\n      \"WasCustomerServiceContacted\": true,\n      \"LastCustomerServiceContactDate\": \"2024-01-16T10:00:00Z\",\n      \"LastCustomerServiceContactReason\": \"Customer disputed delivery\"\n    },\n    \"CustomDisputeValues\": [\n      { \"ParameterName\": \"ReturnPolicyUrl\", \"ParameterValue\": \"https://example.com/returns\" }\n    ],\n    \"Documents\": [\n      { \"Key\": \"invoice\", \"Title\": \"Order Invoice\", \"DocumentType_Id\": 3 },\n      { \"Key\": \"proof\",   \"Title\": \"Delivery Confirmation\" }\n    ]\n  }\n}\n"}]},"url":"https://.midmetrics.io/api/chargeback/UpdateRepresentment"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n  \"MidMetricsId\":    123,\n  \"RepresentmentId\": 456,\n  \"PdfPreviewUrl\":   \"/DisputeGenius/GetRepresentmentLetter?representmentId=456\",\n  \"DocumentsAdded\":  2,\n  \"SubmitRequested\": false\n}\n"}],"_postman_id":"fb5f8c49-c459-451d-bd74-69f11b100fb6"},{"name":"GetEnterpriseParameters","id":"e058678b-5830-408c-810f-54541a72d7eb","request":{"method":"GET","header":[],"url":"https://.midmetrics.io/api/chargeback/GetEnterpriseParameters","description":"<h3 id=\"getenterpriseparameters\">GetEnterpriseParameters</h3>\n<p>Returns all active custom dispute parameter types and document types configured for this enterprise.\nUse this endpoint to populate dropdowns and validate values before calling <code>POST api/chargeback/UpdateRepresentment</code>.</p>\n<p>The same data is also available at <code>GET api/representment/GetEnterpriseParameters</code> (identical response, different controller).</p>\n<h4 id=\"authentication\">Authentication</h4>\n<p>Standard Service API key — same header as all other <code>api/chargeback</code> endpoints.</p>\n<h4 id=\"request\">Request</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET api/chargeback/GetEnterpriseParameters\n</code></pre><p>No request body or query parameters.</p>\n<h4 id=\"response\">Response</h4>\n<p><strong>200 OK</strong> - <code>application/json</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"CustomDisputeParameters\": [\n    {\n      \"BusinessCategory\": \"All\",\n      \"CustomParameters\": [\n        {\n          \"Id\": 12,\n          \"Name\": \"ReturnPolicyUrl\",\n          \"DataType\": \"string\",\n          \"EnumValues\": null\n        },\n        {\n          \"Id\": 14,\n          \"Name\": \"ShipmentCarrier\",\n          \"DataType\": \"enum\",\n          \"EnumValues\": \"UPS,FedEx,USPS,DHL\"\n        }\n      ]\n    },\n    {\n      \"BusinessCategory\": \"Travel\",\n      \"CustomParameters\": [\n        {\n          \"Id\": 20,\n          \"Name\": \"FlightNumber\",\n          \"DataType\": \"string\",\n          \"EnumValues\": null\n        }\n      ]\n    }\n  ],\n  \"DocumentTypes\": [\n    {\n      \"Category\": \"Proof of Delivery\",\n      \"DocumentTypes\": [\n        {\n          \"Id\": 3,\n          \"DocumentType\": \"Signed Delivery Receipt\",\n          \"Tooltip\": \"Carrier signature confirmation\",\n          \"WhereToFindData\": \"Carrier portal or tracking email\"\n        }\n      ]\n    },\n    {\n      \"Category\": \"Terms\",\n      \"DocumentTypes\": [\n        {\n          \"Id\": 7,\n          \"DocumentType\": \"Terms and Conditions\",\n          \"Tooltip\": null,\n          \"WhereToFindData\": null\n        }\n      ]\n    }\n  ]\n}\n</code></pre>\n<h5 id=\"customdisputeparameters\">CustomDisputeParameters</h5>\n<p>Top-level array grouped by <code>BusinessCategory</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>BusinessCategory</code></td>\n<td>The category this group applies to. <code>\"All\"</code> means the parameter applies to all merchants regardless of their business category.</td>\n</tr>\n<tr>\n<td><code>CustomParameters</code></td>\n<td>Ordered list of parameters in this category (by <code>DisplayOrder</code>).</td>\n</tr>\n</tbody>\n</table>\n</div><p>Each parameter entry:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Id</code></td>\n<td><code>int</code></td>\n<td>Use as <code>ParameterId</code> in <code>UpdateRepresentment.Representment.CustomDisputeValues</code></td>\n</tr>\n<tr>\n<td><code>Name</code></td>\n<td><code>string</code></td>\n<td>Human-readable parameter name; use as <code>ParameterName</code> if <code>Id</code> is unavailable</td>\n</tr>\n<tr>\n<td><code>DataType</code></td>\n<td><code>string</code></td>\n<td>One of <code>string</code>, <code>number</code>, <code>boolean</code>, <code>date</code>, <code>enum</code></td>\n</tr>\n<tr>\n<td><code>EnumValues</code></td>\n<td><code>string?</code></td>\n<td>Comma-separated list of allowed values when <code>DataType</code> is <code>\"enum\"</code>; <code>null</code> otherwise</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"documenttypes\">DocumentTypes</h5>\n<p>Top-level array grouped by <code>Category</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Category</code></td>\n<td>Document category label</td>\n</tr>\n<tr>\n<td><code>DocumentTypes</code></td>\n<td>List of document types in this category</td>\n</tr>\n</tbody>\n</table>\n</div><p>Each document type entry:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Id</code></td>\n<td><code>int</code></td>\n<td>Use as <code>DocumentType_Id</code> in <code>UpdateRepresentment.Representment.Documents</code></td>\n</tr>\n<tr>\n<td><code>DocumentType</code></td>\n<td><code>string</code></td>\n<td>Display name of the document type</td>\n</tr>\n<tr>\n<td><code>Tooltip</code></td>\n<td><code>string?</code></td>\n<td>Short description of when/why to use this type</td>\n</tr>\n<tr>\n<td><code>WhereToFindData</code></td>\n<td><code>string?</code></td>\n<td>Hint to the merchant about where to obtain this document</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"error-responses\">Error responses</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Condition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403 Forbidden</td>\n<td>Missing or invalid API key</td>\n</tr>\n<tr>\n<td>500 Internal Server Error</td>\n<td>Unhandled exception - check server logs</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"usage-with-updaterepresentment\">Usage with UpdateRepresentment</h4>\n<p>Typical workflow:</p>\n<ol>\n<li>Call <code>GetEnterpriseParameters</code> once to discover the available parameter IDs and document type IDs.</li>\n<li>Build your <code>UpdateRepresentment</code> payload using those IDs:</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"MidMetricsId\": 9801,\n  \"Representment\": {\n    \"CustomDisputeValues\": [\n      { \"ParameterId\": 12, \"ParameterValue\": \"https://example.com/returns\" },\n      { \"ParameterId\": 14, \"ParameterValue\": \"FedEx\" }\n    ],\n    \"Documents\": [\n      { \"Key\": \"receipt\", \"Title\": \"Delivery Receipt\", \"DocumentType_Id\": 3 }\n    ]\n  }\n}\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}},"urlObject":{"protocol":"https","path":["api","chargeback","GetEnterpriseParameters"],"host":["","midmetrics","io"],"query":[],"variable":[]}},"response":[{"id":"19562f93-fb28-4d30-9b39-a298fc3f67b5","name":"Example","originalRequest":{"method":"GET","header":[],"url":"https://.midmetrics.io/api/chargeback/GetEnterpriseParameters"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n  \"CustomDisputeParameters\": [\n    {\n      \"BusinessCategory\": \"All\",\n      \"CustomParameters\": [\n        {\n          \"Id\": 12,\n          \"Name\": \"ReturnPolicyUrl\",\n          \"DataType\": \"string\",\n          \"EnumValues\": null\n        },\n        {\n          \"Id\": 14,\n          \"Name\": \"ShipmentCarrier\",\n          \"DataType\": \"enum\",\n          \"EnumValues\": \"UPS,FedEx,USPS,DHL\"\n        }\n      ]\n    },\n    {\n      \"BusinessCategory\": \"Travel\",\n      \"CustomParameters\": [\n        {\n          \"Id\": 20,\n          \"Name\": \"FlightNumber\",\n          \"DataType\": \"string\",\n          \"EnumValues\": null\n        }\n      ]\n    }\n  ],\n  \"DocumentTypes\": [\n    {\n      \"Category\": \"Proof of Delivery\",\n      \"DocumentTypes\": [\n        {\n          \"Id\": 3,\n          \"DocumentType\": \"Signed Delivery Receipt\",\n          \"Tooltip\": \"Carrier signature confirmation\",\n          \"WhereToFindData\": \"Carrier portal or tracking email\"\n        }\n      ]\n    },\n    {\n      \"Category\": \"Terms\",\n      \"DocumentTypes\": [\n        {\n          \"Id\": 7,\n          \"DocumentType\": \"Terms and Conditions\",\n          \"Tooltip\": null,\n          \"WhereToFindData\": null\n        }\n      ]\n    }\n  ]\n}\n"}],"_postman_id":"e058678b-5830-408c-810f-54541a72d7eb"},{"name":"GetRepresentmentLetter","id":"e2ead22d-1169-43cd-b6ec-df65813693a6","request":{"method":"GET","header":[],"url":"https://.midmetrics.io/api/chargeback/GetRepresentmentLetter?midMetricsId=9801","description":"<h3 id=\"getrepresentmentletter\">GetRepresentmentLetter</h3>\n<p>Returns the submitted representment PDF for a chargeback, authenticated via API key. Replaces the session-gated <code>/DisputeGenius/GetRepresentmentLetter</code> URL that was previously returned in <code>UpdateRepresentment</code> responses.</p>\n<h4 id=\"authentication\">Authentication</h4>\n<p>Standard Service API key — same header as all other <code>api/chargeback</code> endpoints.</p>\n<h4 id=\"request\">Request</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET api/chargeback/GetRepresentmentLetter\n</code></pre><h5 id=\"query-parameters\">Query Parameters</h5>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>midMetricsId</code></td>\n<td>int</td>\n<td>One of these two is required</td>\n<td>MidMetrics internal chargeback ID</td>\n</tr>\n<tr>\n<td><code>processorCaseId</code></td>\n<td>string</td>\n<td>One of these two is required</td>\n<td>Processor-assigned case ID</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response\">Response</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200 OK</code></td>\n<td><code>application/pdf</code> — the submitted representment PDF</td>\n</tr>\n<tr>\n<td><code>400 Bad Request</code></td>\n<td>Neither <code>midMetricsId</code> nor <code>processorCaseId</code> was provided</td>\n</tr>\n<tr>\n<td><code>403 Forbidden</code></td>\n<td>API key not authorized for this chargeback's MID</td>\n</tr>\n<tr>\n<td><code>404 Not Found</code></td>\n<td>Chargeback not found, or no submitted PDF exists yet (chargeback is still in draft state)</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"example-request\">Example Request</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET api/chargeback/GetRepresentmentLetter?midMetricsId=9801\nAuthorization: Basic {apiKey}\n</code></pre>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}},"urlObject":{"protocol":"https","path":["api","chargeback","GetRepresentmentLetter"],"host":["","midmetrics","io"],"query":[{"key":"midMetricsId","value":"9801"}],"variable":[]}},"response":[],"_postman_id":"e2ead22d-1169-43cd-b6ec-df65813693a6"}],"id":"2aab7cd8-9a58-4545-a35b-ff3426e7c75b","description":"<p>The representments API allows you to upload a document (Base64 encoded) to associate with a chargeback. Auto-creates a draft representment if one doesn't exist.</p>\n","_postman_id":"2aab7cd8-9a58-4545-a35b-ff3426e7c75b","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"448aebba-5df7-4b56-a283-b0bead561b19","id":"448aebba-5df7-4b56-a283-b0bead561b19","name":"MidMetrics Public APIs","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]}},"event":[{"listen":"prerequest","script":{"id":"54d4292d-f97f-45e7-b0cc-d3b47acbe5b6","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"fdc42732-a157-407a-9653-c6977070aa0b","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"enterpriseName","value":""},{"key":"APIKey","value":"YourAPIKey"}]}