{
  "openapi": "3.1.1",
  "info": {
    "title": "ECGrid B2B REST API",
    "description": "REST interface for the ECGrid B2B EDI platform. Provides operations for network and mailbox management, trading partner ID configuration, EDI interchange routing, parcel delivery, communication channel setup, callback webhooks, customer portal site provisioning, and user administration. Access requires a valid API key or Bearer token — see the Auth tag for authentication endpoints.",
    "termsOfService": "https://lorendatacorp.ecgrid.com/terms",
    "contact": {
      "name": "ECGrid Support",
      "url": "https://ecgrid.freshdesk.com/support/home"
    },
    "license": {
      "name": "Proprietary — All rights reserved. Loren Data Corp."
    },
    "version": "2.6"
  },
  "servers": [
    {
      "url": "https://rest.ecgrid.io",
      "description": "ECGrid B2B REST API — Production"
    }
  ],
  "paths": {
    "/v2/auth/login": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Authenticate and obtain access and refresh tokens",
        "description": "Validates the supplied ECGrid credentials against the ECGridOS SOAP backend and,\r\non success, returns a short-lived JWT access token and a longer-lived refresh token.\r\nThe access token must be supplied as `Authorization: Bearer {accessToken}` on\r\nevery subsequent authenticated request.\r\nFailed attempts are tracked per username — after repeated failures the account is\r\ntemporarily locked and this endpoint returns 423 with a `Retry-After` header\r\nindicating when the next attempt is permitted.",
        "operationId": "Auth_Login",
        "requestBody": {
          "description": "Username and password credentials. Both fields are required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              },
              "examples": {
                "LoginRequest": {
                  "summary": "Authenticate with ECGrid credentials",
                  "value": {
                    "username": "developer@example-company.com",
                    "password": "P@ssw0rd!Example"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Authentication successful; payload contains accessToken, refreshToken, and expiry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                },
                "examples": {
                  "LoginSuccess": {
                    "summary": "Authentication successful — token pair issued",
                    "value": {
                      "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.example-access-token",
                      "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.example-refresh-token",
                      "expires": "2026-06-02T15:00:00Z",
                      "responseTimeMs": 312
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or malformed request payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Invalid username or password.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                },
                "examples": {
                  "InvalidCredentials": {
                    "summary": "Username or password is incorrect",
                    "value": {
                      "httpStatus": 401,
                      "success": false,
                      "message": "Invalid username or password.",
                      "detail": "ECGridOS did not return a valid SessionID.",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "errorInfo": null
                    }
                  }
                }
              }
            }
          },
          "423": {
            "description": "Account temporarily locked due to repeated failed sign-in attempts. See Retry-After header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/v2/auth/refresh": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Exchange a refresh token for a new access token",
        "description": "Validates the supplied refresh token, revokes it, and issues a new access token\r\nand refresh token pair. Refresh tokens are valid for 48 hours.\r\nThe new access token must be used on all subsequent authenticated requests.\r\nIf the refresh token's claim shape no longer matches the current token layout\r\n(e.g. after a deploy that renamed a claim), the endpoint returns 401 — the caller\r\nmust re-authenticate via `POST /v2/auth/login`.\r\nRevoked tokens are blacklisted and cannot be reused.",
        "operationId": "Auth_Refresh",
        "requestBody": {
          "description": "The refresh token issued during a previous login or refresh call. Required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              },
              "examples": {
                "RefreshRequest": {
                  "summary": "Exchange a refresh token for a new token pair",
                  "value": {
                    "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.example-refresh-token"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Token refreshed; payload contains new accessToken, refreshToken, and expiry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefreshResponse"
                },
                "examples": {
                  "RefreshSuccess": {
                    "summary": "New token pair issued; old refresh token is revoked",
                    "value": {
                      "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.example-new-access-token",
                      "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.example-new-refresh-token",
                      "expires": "2026-06-02T16:00:00Z",
                      "responseTimeMs": 4
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or malformed request payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Invalid, expired, or revoked refresh token; or token claims are unrecognized.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/v2/auth/logout": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Invalidate the current session and revoke tokens",
        "description": "Terminates the caller's ECGridOS SOAP session via `Logout` and, if a Bearer\r\ntoken is present in the `Authorization` header, adds it to the token blacklist\r\nso it cannot be reused before expiry.\r\nThe caller must be authenticated via API key or Bearer token.\r\nReturns a success flag on completion.",
        "operationId": "Auth_Logout",
        "responses": {
          "200": {
            "description": "Session terminated and token revoked; payload is `{ success: true }`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthLogoutResponse"
                },
                "examples": {
                  "LogoutSuccess": {
                    "summary": "Session terminated and token revoked",
                    "value": {
                      "success": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid request context.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/auth/session": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Retrieve the session activity log for the current API key",
        "description": "Returns the ECGridOS session log for the authenticated caller's API key, up to\r\n`maxRecords` entries. Each entry describes a session event (login, logout,\r\nAPI call) with timestamp and metadata.\r\nUseful for auditing API key usage or diagnosing authentication issues.\r\nThe caller must be authenticated via API key or Bearer token.",
        "operationId": "Auth_Session",
        "requestBody": {
          "description": "MaxRecords controls how many log entries are returned. Required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionRequest"
              },
              "examples": {
                "GetSessionLog": {
                  "summary": "Retrieve the last 10 session log entries",
                  "value": {
                    "maxRecords": 10
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Session log returned; payload is `SessionLogInfo`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthSessionResponse"
                },
                "examples": {
                  "SessionLogReturned": {
                    "summary": "Session activity log returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": {
                        "sessionID": "abc123xyz",
                        "loginName": "developer@example-company.com",
                        "loginDateTime": "2026-06-02T14:00:00Z",
                        "lastActivity": "2026-06-02T14:45:00Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/auth/password": {
      "put": {
        "tags": [
          "Auth"
        ],
        "summary": "Update the authenticated user's password",
        "description": "Changes the ECGridOS password for the authenticated caller.\r\nBoth `oldPassword` and `newPassword` are required and must meet the\r\ncomplexity requirements: at least one lowercase letter, one uppercase letter, one\r\ndigit, and one special character. Maximum 120 characters each.\r\nThe caller must be authenticated via API key or Bearer token.\r\nReturns true on success.",
        "operationId": "Auth_UpdatePassword",
        "requestBody": {
          "description": "OldPassword and NewPassword are required. Both must satisfy the password complexity rules.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthPasswordRequest"
              },
              "examples": {
                "ChangePassword": {
                  "summary": "Update the authenticated user's password",
                  "value": {
                    "oldPassword": "OldP@ss1!",
                    "newPassword": "NewP@ss2!"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Password updated successfully; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthUpdatePasswordResponse"
                },
                "examples": {
                  "PasswordUpdated": {
                    "summary": "Password updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload, passwords do not meet complexity requirements, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/auth/version": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Get the REST API and ECGridOS version strings",
        "description": "Returns the current version of the ECGrid REST API and the underlying ECGridOS SOAP\r\nbackend. No authentication is required — this endpoint is publicly accessible and\r\nuseful for health checks and integration smoke tests.\r\nNote: `/auth/version/beta` was consolidated into this endpoint on 2026-04-24.",
        "operationId": "Auth_GetVersion",
        "responses": {
          "200": {
            "description": "Version information returned; payload contains rest and ecgridOs version strings.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionResponse"
                },
                "examples": {
                  "VersionInfo": {
                    "summary": "REST API and ECGridOS version strings",
                    "value": {
                      "rest": "v2.6 (Build 1042)",
                      "ecgridOs": "4.1.0.2024"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        },
        "security": [ ]
      }
    },
    "/v2/callbacks": {
      "delete": {
        "tags": [
          "Callbacks"
        ],
        "summary": "Terminate a callback event by ID",
        "description": "Sets the status of the specified callback event to Terminated via CallBackEventSetStatus.\r\nThe request body must contain a valid callBackEventId greater than zero.\r\nReturns true on success; throws an ECGrid SOAP error if the event is not found or the call fails.",
        "operationId": "Callback_Delete",
        "requestBody": {
          "description": "Request body containing callBackEventId — the unique identifier of the callback event to terminate.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackDeleteRequest"
              },
              "examples": {
                "TerminateEvent": {
                  "summary": "Terminate a callback event by its event ID",
                  "value": {
                    "callBackEventId": 8801
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Callback event status set to Terminated; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbacksBoolResponse"
                },
                "examples": {
                  "EventTerminated": {
                    "summary": "Callback event status set to Terminated",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null or callBackEventId is missing or out of range.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/callbacks/get-queue-by-id": {
      "get": {
        "tags": [
          "Callbacks"
        ],
        "summary": "Get a callback queue entry by ID",
        "description": "Retrieves a single CallBackQueueIDInfo record via CallBackQueueInfo using the provided callBackEventID.\r\nThe callBackEventID query parameter must be greater than 0; zero and negative values are rejected.\r\nReturns the queue entry including delivery attempt history and current status.\r\nReturns 404 when no queue entry exists for the supplied ID.",
        "operationId": "Callback_GetQueueById",
        "parameters": [
          {
            "name": "callBackEventID",
            "in": "query",
            "description": "The numeric ID of the callback queue entry to retrieve. Must be greater than 0.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Queue entry returned; data is a CallBackQueueIDInfo object.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbacksGetQueueByIdResponse"
                },
                "examples": {
                  "QueueEntryFound": {
                    "summary": "Queue entry returned for the specified callBackEventID",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": {
                        "callBackQueueID": 9901,
                        "callBackEventID": 8801,
                        "status": "Completed",
                        "httpStatus": 200,
                        "attempts": 1,
                        "lastAttempt": "2026-06-01T10:15:00Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "callBackEventID is negative.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No queue entry found for the specified ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/callbacks/event-list": {
      "post": {
        "tags": [
          "Callbacks"
        ],
        "summary": "List callback events for a network mailbox",
        "description": "Returns all callback events configured for the specified network and mailbox via CallBackEventListEx.\r\nSupply showInactive=true to include terminated or suspended events alongside active ones.\r\nUse mailboxId=0 to list events at the network root level; use a positive mailbox ID to scope to a specific mailbox.\r\nmailboxId=-1 is not a valid wildcard for this endpoint and will be rejected by ECGridOS.\r\nReturns an empty list when no events are configured for the given scope.",
        "operationId": "Callback_EventList",
        "requestBody": {
          "description": "Request body containing networkId, mailboxId, and showInactive flag.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackEventListRequest"
              },
              "examples": {
                "ActiveEventsForMailbox": {
                  "summary": "List active callback events for a specific mailbox",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "showInactive": false
                  }
                },
                "AllEventsIncludingInactive": {
                  "summary": "List all events including suspended and terminated",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "showInactive": true
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "List of callback events returned; data is a List<CallBackEventIDInfo>.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbacksEventListResponse"
                },
                "examples": {
                  "EventList": {
                    "summary": "Callback events returned for the given scope",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": [
                        {
                          "callBackEventID": 8801,
                          "networkID": 12,
                          "mailboxID": 147,
                          "url": "https://hooks.example-company.com/edi",
                          "status": "Active",
                          "direction": "InBox"
                        },
                        {
                          "callBackEventID": 8802,
                          "networkID": 12,
                          "mailboxID": 147,
                          "url": "https://hooks.example-company.com/edi-out",
                          "status": "Active",
                          "direction": "OutBox"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null or required fields are missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/callbacks/get-event-by-id": {
      "post": {
        "tags": [
          "Callbacks"
        ],
        "summary": "Get a callback event with its queue history",
        "description": "Retrieves a CallBackEventIDInfo record with embedded queue entries via CallBackEventInfo.\r\nThe queueCount parameter controls how many recent queue attempts are included in the response (default 25).\r\nReturns the event definition, current status, and the most recent delivery attempts.\r\nReturns an ECGrid SOAP error if no event matches the provided callBackEventId.",
        "operationId": "Callback_GetEventById",
        "requestBody": {
          "description": "Request body containing callBackEventId and queueCount.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackGetEventByIDRequest"
              },
              "examples": {
                "WithDefaultQueueDepth": {
                  "summary": "Get event with the default 25 most recent queue entries",
                  "value": {
                    "callBackEventId": 8801,
                    "queueCount": 25
                  }
                },
                "WithLimitedQueueDepth": {
                  "summary": "Get event with only the 5 most recent attempts",
                  "value": {
                    "callBackEventId": 8801,
                    "queueCount": 5
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Callback event with queue history returned; data is a CallBackEventIDInfo object.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbacksGetEventByIdResponse"
                },
                "examples": {
                  "EventFound": {
                    "summary": "Callback event with queue history returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000004",
                      "success": true,
                      "data": {
                        "callBackEventID": 8801,
                        "networkID": 12,
                        "mailboxID": 147,
                        "url": "https://hooks.example-company.com/edi",
                        "status": "Active",
                        "direction": "InBox",
                        "queueCount": 1
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null or callBackEventId is missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No callback event found for the specified ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/callbacks/queue-list": {
      "post": {
        "tags": [
          "Callbacks"
        ],
        "summary": "List pending or failed callback queue entries",
        "description": "Returns queue entries using one of four ECGridOS calls based on the combination of optional fields provided:\r\n(1) networkId + mailboxId + maxDays — CallBackFailedListEx scoped to a network/mailbox with an age limit;\r\n(2) networkId + mailboxId only — CallBackPendingListEx returns pending entries for the given scope;\r\n(3) maxDays only — CallBackFailedList returns all failed entries within the age limit visible to the API key;\r\n(4) no fields — CallBackPendingList returns all pending entries visible to the API key.\r\nAll branches return a List<CallBackQueueIDInfo>.",
        "operationId": "Callback_QueueList",
        "requestBody": {
          "description": "Optional body containing networkId, mailboxId, and maxDays to control routing and scope.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackQueueListRequest"
              },
              "examples": {
                "FailedByNetworkMailboxAge": {
                  "summary": "(1) networkId + mailboxId + maxDays — failed entries scoped to a mailbox within age limit",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "maxDays": 7
                  }
                },
                "PendingByNetworkMailbox": {
                  "summary": "(2) networkId + mailboxId — pending entries for a specific mailbox",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147
                  }
                },
                "FailedByAge": {
                  "summary": "(3) maxDays only — all failed entries within the age limit visible to the API key",
                  "value": {
                    "maxDays": 7
                  }
                },
                "AllPending": {
                  "summary": "(4) no fields — all pending entries visible to the API key",
                  "value": { }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Queue entries returned; data is a List<CallBackQueueIDInfo>.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbacksQueueListResponse"
                },
                "examples": {
                  "QueueList": {
                    "summary": "Callback queue entries returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000005",
                      "success": true,
                      "data": [
                        {
                          "callBackQueueID": 9901,
                          "callBackEventID": 8801,
                          "status": "Pending",
                          "attempts": 0,
                          "lastAttempt": null
                        },
                        {
                          "callBackQueueID": 9902,
                          "callBackEventID": 8802,
                          "status": "Failed",
                          "attempts": 3,
                          "lastAttempt": "2026-06-01T09:00:00Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body present but invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/callbacks/test": {
      "post": {
        "tags": [
          "Callbacks"
        ],
        "summary": "Fire a test callback for a specific event",
        "description": "Triggers a test delivery attempt for a callback event via CallBackTest using a real or synthetic parcel and interchange.\r\nThe response contains the resulting CallBackQueueIDInfo record showing the attempt outcome.\r\nUse this to verify connectivity to the webhook URL before relying on live traffic.\r\nReturns an ECGrid SOAP error if the specified event does not exist or the test call fails.",
        "operationId": "Callback_Test",
        "requestBody": {
          "description": "Request body containing callBackEventId, parcelId, interchangeId, and userId to associate with the test attempt.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackTestRequest"
              },
              "examples": {
                "TestWithSyntheticIds": {
                  "summary": "Fire a test callback using synthetic parcel and interchange IDs",
                  "value": {
                    "callBackEventId": 8801,
                    "parcelId": 0,
                    "interchangeId": 0,
                    "userId": 5001
                  }
                },
                "TestWithRealParcel": {
                  "summary": "Fire a test callback using a real parcel and interchange from the mailbox",
                  "value": {
                    "callBackEventId": 8801,
                    "parcelId": 1234567890,
                    "interchangeId": 9876543210,
                    "userId": 5001
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Test callback fired; data is a CallBackQueueIDInfo object with the attempt result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbacksTestResponse"
                },
                "examples": {
                  "TestFired": {
                    "summary": "Test delivery attempt completed; data contains the queue record",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000006",
                      "success": true,
                      "data": {
                        "callBackQueueID": 9999,
                        "callBackEventID": 8801,
                        "httpStatus": 200,
                        "status": "Completed",
                        "attempts": 1,
                        "lastAttempt": "2026-06-04T12:00:00Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null or required fields are missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/callbacks/update": {
      "post": {
        "tags": [
          "Callbacks"
        ],
        "summary": "Set the status of a callback event",
        "description": "Updates the status of an existing callback event via CallBackEventSetStatus.\r\nValid status values mirror the ECGridOS Status enum: Active, Suspended, Terminated, etc.\r\nUse this to pause (Suspended) or re-enable (Active) a callback without deleting it.\r\nReturns an ECGrid SOAP error if the event is not found or the status transition is invalid.",
        "operationId": "Callback_Update",
        "requestBody": {
          "description": "Request body containing callBackEventId and the new status value.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackUpdateRequest"
              },
              "examples": {
                "SuspendEvent": {
                  "summary": "Suspend an active callback event to pause delivery",
                  "value": {
                    "callBackEventId": 8801,
                    "status": "Suspended"
                  }
                },
                "ReactivateEvent": {
                  "summary": "Re-enable a suspended callback event",
                  "value": {
                    "callBackEventId": 8801,
                    "status": "Active"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Callback event status updated; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbacksBoolResponse"
                },
                "examples": {
                  "StatusUpdated": {
                    "summary": "Callback event status updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000007",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null or required fields are missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/callbacks/create": {
      "post": {
        "tags": [
          "Callbacks"
        ],
        "summary": "Create a webhook callback event",
        "description": "Registers a new callback event via CallBackAddEx that fires a webhook when EDI objects match the configured\r\ntrigger criteria (systemObject, objectStatus, direction).\r\nThe frequency and maxRetries fields default to 60 seconds and 24 attempts respectively when omitted.\r\nIf httpAuthentication is provided, both httpUser and httpPassword must also be supplied.\r\nReturns the new CallBackEventIDInfo record including the assigned callBackEventId.",
        "operationId": "Callback_Create",
        "requestBody": {
          "description": "Request body containing networkId, mailboxId, userId, trigger criteria, webhook URL, and optional HTTP auth credentials.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallbackCreateRequest"
              },
              "examples": {
                "InboxWebhookBasicAuth": {
                  "summary": "Create an inbox webhook with Basic HTTP authentication",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "userId": 5001,
                    "systemObject": "Parcel",
                    "objectStatus": 0,
                    "direction": "InBox",
                    "frequency": 60,
                    "maxRetries": 24,
                    "url": "https://hooks.example-company.com/edi/inbox",
                    "httpAuthentication": "Basic",
                    "httpUser": "webhookuser",
                    "httpPassword": "wh-P@ss1!",
                    "status": "Active"
                  }
                },
                "OutboxWebhookNoAuth": {
                  "summary": "Create an outbox webhook with no HTTP authentication",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "userId": 5001,
                    "systemObject": "Parcel",
                    "objectStatus": 0,
                    "direction": "OutBox",
                    "frequency": 60,
                    "maxRetries": 24,
                    "url": "https://hooks.example-company.com/edi/outbox",
                    "httpAuthentication": "None",
                    "httpUser": "",
                    "httpPassword": "",
                    "status": "Active"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Callback event created; data is the new CallBackEventIDInfo object.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallbacksCreateResponse"
                },
                "examples": {
                  "EventCreated": {
                    "summary": "Callback event created; data is the new CallBackEventIDInfo record",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000008",
                      "success": true,
                      "data": {
                        "callBackEventID": 8803,
                        "networkID": 12,
                        "mailboxID": 147,
                        "url": "https://hooks.example-company.com/edi/inbox",
                        "status": "Active",
                        "direction": "InBox"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null, httpAuthentication is set but credentials are missing, or required fields are absent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/carboncopies/{id}": {
      "delete": {
        "tags": [
          "CarbonCopies"
        ],
        "summary": "Terminate a carbon copy rule by ID",
        "description": "Permanently terminates the carbon copy rule identified by the path parameter id via CarbonCopyTerminate.\r\nThe id must be a positive integer matching an existing carbon copy rule visible to the API key.\r\nReturns true on success; throws an ECGrid SOAP error if the rule is not found or the call fails.\r\nA terminated rule stops producing copies immediately and cannot be reactivated — use the update endpoint to suspend instead.",
        "operationId": "CarbonCopy_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique numeric ID of the carbon copy rule to terminate. Must be greater than zero.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Carbon copy rule terminated; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarbonCopiesBoolResponse"
                },
                "examples": {
                  "RuleTerminated": {
                    "summary": "Carbon copy rule terminated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "id is zero or negative.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No carbon copy rule found for the specified ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "CarbonCopies"
        ],
        "summary": "Get a carbon copy rule by ID",
        "description": "Retrieves the CarbonCopyIDInfo record for the specified carbon copy rule via CarbonCopyInfo.\r\nThe id must be a positive integer; zero and negative values are rejected.\r\nReturns the rule's source EDI IDs, destination CC EDI IDs, GS envelope filters, transaction set filter, and current status.\r\nReturns an ECGrid SOAP error if no rule exists for the given ID.",
        "operationId": "CarbonCopy_GetById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique numeric ID of the carbon copy rule to retrieve. Must be greater than zero.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Carbon copy rule returned; data is a CarbonCopyIDInfo object.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarbonCopiesGetByIdResponse"
                },
                "examples": {
                  "RuleFound": {
                    "summary": "Carbon copy rule record returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": {
                        "carbonCopyID": 7701,
                        "ecgridIDFrom": 1234567,
                        "ecgridIDTo": 2345678,
                        "ecgridIDCCFrom": 3456789,
                        "ecgridIDCCTo": 4567890,
                        "gsFrom": "ACMESEND",
                        "gsTo": "PARTNERRE",
                        "transactionSet": "850",
                        "status": "Active"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "id is zero or negative.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No carbon copy rule found for the specified ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/carboncopies/list": {
      "post": {
        "tags": [
          "CarbonCopies"
        ],
        "summary": "List carbon copy rules",
        "description": "Returns carbon copy rules using one of two ECGridOS calls based on whether networkId and mailboxId are supplied:\r\n(1) networkId + mailboxId provided — CarbonCopyListEx scoped to that network and mailbox;\r\n(2) neither provided — CarbonCopyList returns rules visible to the API key.\r\nBoth branches accept ecgridIdFrom, ecgridIdTo, and showInactive filters; use -1 to match any ECGridID.\r\nnetworkId and mailboxId must be supplied together — providing one without the other is rejected.",
        "operationId": "CarbonCopy_List",
        "requestBody": {
          "description": "Request body containing optional networkId and mailboxId scope, ecgridIdFrom, ecgridIdTo, and showInactive flag.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CarbonCopyListRequest"
              },
              "examples": {
                "ScopedToMailbox": {
                  "summary": "(1) networkId + mailboxId — CarbonCopyListEx scoped to a mailbox",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "ecgridIdFrom": -1,
                    "ecgridIdTo": -1,
                    "showInactive": false
                  }
                },
                "AllVisibleToApiKey": {
                  "summary": "(2) no networkId/mailboxId — CarbonCopyList returns all rules visible to the API key",
                  "value": {
                    "ecgridIdFrom": -1,
                    "ecgridIdTo": -1,
                    "showInactive": false
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Carbon copy rules returned; data is a List<CarbonCopyIDInfo>.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarbonCopiesListResponse"
                },
                "examples": {
                  "RuleList": {
                    "summary": "Carbon copy rules returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": [
                        {
                          "carbonCopyID": 7701,
                          "ecgridIDFrom": 1234567,
                          "ecgridIDTo": 2345678,
                          "ecgridIDCCFrom": 3456789,
                          "status": "Active",
                          "transactionSet": "850"
                        },
                        {
                          "carbonCopyID": 7702,
                          "ecgridIDFrom": 1234567,
                          "ecgridIDTo": 2345678,
                          "ecgridIDCCFrom": 9876543,
                          "status": "Active",
                          "transactionSet": "810"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request is null, or networkId and mailboxId are not supplied together.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/carboncopies/create": {
      "post": {
        "tags": [
          "CarbonCopies"
        ],
        "summary": "Create a carbon copy rule",
        "description": "Creates a carbon copy rule that duplicates interchanges matching the specified EDI ID pair to a second CC EDI ID pair\r\nusing CarbonCopyAddEx (when networkId + mailboxId are provided) or CarbonCopyAdd (when they are omitted).\r\nThe ecgridIdFrom/ecgridIdTo identify the original trading relationship; ecgridIdCcFrom/ecgridIdCcTo identify the copy destination.\r\ngsFrom, gsTo, and transactionSet may be empty strings to match any value; a non-empty transactionSet narrows the rule to specific document types.\r\nThe CC from/to pair must differ from the original from/to pair to prevent routing loops.\r\nReturns the new carbonCopyId integer on success.",
        "operationId": "CarbonCopy_Create",
        "requestBody": {
          "description": "Request body containing optional network/mailbox scope, EDI ID pairs, GS envelope filters, and transaction set filter.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CarbonCopyCreateRequest"
              },
              "examples": {
                "ScopedToMailbox": {
                  "summary": "(1) networkId + mailboxId — CarbonCopyAddEx scoped to a specific mailbox",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": 2345678,
                    "ecgridIdCcFrom": 3456789,
                    "ecgridIdCcTo": 4567890,
                    "gsFrom": "",
                    "gsTo": "",
                    "transactionSet": "850"
                  }
                },
                "ApiKeyScoped": {
                  "summary": "(2) no networkId/mailboxId — CarbonCopyAdd scoped to the API key's default network",
                  "value": {
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": 2345678,
                    "ecgridIdCcFrom": 3456789,
                    "ecgridIdCcTo": 4567890,
                    "gsFrom": "",
                    "gsTo": "",
                    "transactionSet": ""
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Carbon copy rule created; data is the new carbonCopyId integer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarbonCopiesCreateResponse"
                },
                "examples": {
                  "RuleCreated": {
                    "summary": "Carbon copy rule created; data is the new carbonCopyId",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000004",
                      "success": true,
                      "data": 7703
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request is null, from/to pair equals CC from/to pair, or networkId and mailboxId are not supplied together.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/carboncopies/update": {
      "put": {
        "tags": [
          "CarbonCopies"
        ],
        "summary": "Activate or suspend a carbon copy rule",
        "description": "Updates the status of an existing carbon copy rule via CarbonCopyActivate or CarbonCopySuspend.\r\nSupply activate=true to re-enable a suspended rule; supply suspend=true to pause an active rule without terminating it.\r\nExactly one of activate or suspend must be true — providing neither or both results in a validation error.\r\nReturns true on success; throws an ECGrid SOAP error if the rule is not found.",
        "operationId": "CarbonCopy_Update",
        "requestBody": {
          "description": "Request body containing carbonCopyId and either activate or suspend set to true.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CarbonCopyUpdateRequest"
              },
              "examples": {
                "ActivateRule": {
                  "summary": "Re-enable a suspended carbon copy rule",
                  "value": {
                    "carbonCopyId": 7701,
                    "activate": true
                  }
                },
                "SuspendRule": {
                  "summary": "Pause an active carbon copy rule without terminating it",
                  "value": {
                    "carbonCopyId": 7701,
                    "suspend": true
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Carbon copy rule status updated; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarbonCopiesBoolResponse"
                },
                "examples": {
                  "StatusUpdated": {
                    "summary": "Carbon copy rule status updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000005",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request is null, carbonCopyId is missing, or neither activate nor suspend is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/certificates/add-private": {
      "post": {
        "tags": [
          "Certificates"
        ],
        "summary": "Add a private certificate to a comm configuration",
        "description": "Attaches an existing private certificate (PKCS#12 / PFX) to the specified comm configuration via CertAddPrivate.\r\nThe cert field must contain the Base64-encoded certificate material; password unlocks the private key.\r\nkeyId and userId are optional metadata strings used for tracking; partnerAs2Id identifies the AS2 partner.\r\nReturns the updated CommIDInfo record reflecting the new certificate entry.\r\nSecurity: this endpoint accepts private key material — ensure the connection is TLS-encrypted and the payload is not logged.",
        "operationId": "Certificate_AddPrivate",
        "requestBody": {
          "description": "Request body containing commId, certType, keyId, userId, beginUsage, usage, partnerAs2Id, cert (Base64), and password.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateAddPrivateRequest"
              },
              "examples": {
                "AddPkcs12": {
                  "summary": "Attach a PKCS#12 private certificate to a comm configuration",
                  "value": {
                    "commId": 3301,
                    "certType": "X509",
                    "keyId": "key-abc123",
                    "userId": "admin",
                    "beginUsage": "2026-07-01T00:00:00Z",
                    "usage": "SignAndEncrypt",
                    "partnerAs2Id": "PARTNERID",
                    "cert": "MIIKXAIBAz...base64encodedcert==",
                    "password": "cert-P@ss1!"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Certificate added; data is the updated CommIDInfo record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificatesCommIdInfoResponse"
                },
                "examples": {
                  "CertificateAdded": {
                    "summary": "Private certificate attached; data is the updated CommIDInfo record",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": {
                        "commID": 3301,
                        "as2ID": "ACMECO",
                        "status": "Active",
                        "certCount": 1
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null or required fields are missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/certificates/add-public": {
      "post": {
        "tags": [
          "Certificates"
        ],
        "summary": "Add a partner public certificate to a comm configuration",
        "description": "Attaches a trading partner's public certificate (X.509 PEM or DER, Base64-encoded) to the specified comm\r\nconfiguration via CertificateAddPublic.\r\npartnerCommId identifies the partner's comm entry; partnerUrl must be a valid URL when provided\r\n(accepted schemes: http, https, ftps, oftp; max 2048 characters).\r\nReturns the updated CommIDInfo record reflecting the new certificate entry.",
        "operationId": "Certificate_AddPublic",
        "requestBody": {
          "description": "Request body containing commId, certType, keyId, userId, beginUsage, usage, partnerCommId, partnerUrl, and cert (Base64).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateAddPublicRequest"
              },
              "examples": {
                "AddPartnerPublicCert": {
                  "summary": "Attach a trading partner's public X.509 certificate to a comm configuration",
                  "value": {
                    "commId": 3301,
                    "certType": "X509",
                    "keyId": "",
                    "userId": "",
                    "beginUsage": "2026-07-01T00:00:00Z",
                    "usage": "Encrypt",
                    "partnerCommId": "PARTNER-COMM-001",
                    "partnerUrl": "https://as2.partner-company.com/receive",
                    "cert": "MIICpDCCAYwCCQD...base64encodedcert=="
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Public certificate added; data is the updated CommIDInfo record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificatesCommIdInfoResponse"
                },
                "examples": {
                  "PublicCertAdded": {
                    "summary": "Partner public certificate attached; data is the updated CommIDInfo record",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": {
                        "commID": 3301,
                        "as2ID": "ACMECO",
                        "status": "Active",
                        "certCount": 2
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null, required fields are missing, or partnerUrl is not a valid URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/certificates/create": {
      "post": {
        "tags": [
          "Certificates"
        ],
        "summary": "Generate and install a new private certificate for a comm configuration",
        "description": "Generates a new self-signed private certificate for the specified comm configuration via CertificateCreatePrivate.\r\nbeginUsage must be a future date; expires must be after both the current time and beginUsage.\r\nsecureHashAlgorithm controls the signing algorithm (e.g., SHA256); partnerAs2Id identifies the AS2 partner.\r\nReturns the updated CommIDInfo record with the generated certificate installed.",
        "operationId": "Certificate_Create",
        "requestBody": {
          "description": "Request body containing commId, beginUsage, usage, secureHashAlgorithm, partnerAs2Id, and expires.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateCreatePrivateRequest"
              },
              "examples": {
                "GenerateNewCert": {
                  "summary": "Generate and install a new self-signed private certificate for a comm configuration",
                  "value": {
                    "commId": 3301,
                    "beginUsage": "2026-07-01T00:00:00Z",
                    "usage": "SignAndEncrypt",
                    "secureHashAlgorithm": "SHA256",
                    "partnerAs2Id": "PARTNERID",
                    "expires": "2028-07-01T00:00:00Z"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Certificate generated and installed; data is the updated CommIDInfo record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificatesCommIdInfoResponse"
                },
                "examples": {
                  "CertificateCreated": {
                    "summary": "Certificate generated and installed; data is the updated CommIDInfo record",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": {
                        "commID": 3301,
                        "as2ID": "ACMECO",
                        "status": "Active",
                        "certCount": 1
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null, required fields are missing, beginUsage is in the past, or expires is before beginUsage.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/certificates/renew": {
      "post": {
        "tags": [
          "Certificates"
        ],
        "summary": "Renew an existing private certificate with an overlap window",
        "description": "Renews the private certificate identified by certKeyId on the specified comm configuration via CertificateRenewPrivate.\r\noverlapDays (1–180) controls how many days the old certificate remains valid alongside the new one to allow trading partners to update.\r\nyears (1 or 2) sets the validity period of the renewed certificate.\r\nReturns the updated CommIDInfo record with the new certificate active.",
        "operationId": "Certificate_Renew",
        "requestBody": {
          "description": "Request body containing commId, certKeyId, overlapDays, years, and secureHashAlgorithm.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateRenewPrivateRequest"
              },
              "examples": {
                "RenewWithOverlap": {
                  "summary": "Renew a private certificate with a 30-day overlap window so trading partners can update",
                  "value": {
                    "commId": 3301,
                    "certKeyId": 4401,
                    "overlapDays": 30,
                    "years": 2,
                    "secureHashAlgorithm": "SHA256"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Certificate renewed; data is the updated CommIDInfo record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificatesCommIdInfoResponse"
                },
                "examples": {
                  "CertificateRenewed": {
                    "summary": "Certificate renewed; data is the updated CommIDInfo record",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000004",
                      "success": true,
                      "data": {
                        "commID": 3301,
                        "as2ID": "ACMECO",
                        "status": "Active",
                        "certCount": 2
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null or required fields are missing or out of range.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/certificates/terminate": {
      "post": {
        "tags": [
          "Certificates"
        ],
        "summary": "Terminate a certificate on a comm configuration",
        "description": "Terminates the certificate identified by certKeyId on the specified comm configuration via CertificateTerminate.\r\nA terminated certificate is immediately removed from the active configuration; any in-flight AS2 messages\r\nsigned or encrypted with that certificate may fail after termination.\r\nReturns true on success.",
        "operationId": "Certificate_Terminate",
        "requestBody": {
          "description": "Request body containing commId and certKeyId.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateTerminateRequest"
              },
              "examples": {
                "TerminateCert": {
                  "summary": "Terminate a certificate by its certKeyId on the specified comm configuration",
                  "value": {
                    "commId": 3301,
                    "certKeyId": 4401
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Certificate terminated; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificatesBoolResponse"
                },
                "examples": {
                  "CertificateTerminated": {
                    "summary": "Certificate terminated; data is true",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000005",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null or required fields are missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/comms/{id}": {
      "get": {
        "tags": [
          "Comms"
        ],
        "summary": "Get a comm record by its identifier",
        "description": "Returns full configuration details for the comm record identified by the supplied integer id.\r\nThe caller must be authenticated via API key; the id is validated to be greater than zero before the\r\nECGridOS CommInfo SOAP call is issued.\r\nOn success, the response envelope contains the CommIDInfo object describing the protocol type,\r\nendpoint URL, security flags, and usage period for the comm record.\r\nReturns 404 when no comm record exists for the supplied id.",
        "operationId": "Comm_GetById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique ECGrid integer identifier of the comm record to retrieve. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Comm record found and returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommsGetByIdResponse"
                },
                "examples": {
                  "CommFound": {
                    "summary": "AS2 comm record returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": {
                        "commId": 3001,
                        "networkId": 12,
                        "mailboxId": 147,
                        "commType": "AS2",
                        "identifier": "ACMECORP-AS2",
                        "url": "https://as2.acmecorp.example/receive",
                        "signData": true,
                        "encryptData": true,
                        "status": "Active"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid comm id — must be greater than 0",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No comm record found for the supplied id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/comms/find": {
      "post": {
        "tags": [
          "Comms"
        ],
        "summary": "Find a comm record by identifier and protocol type",
        "description": "Searches for an active comm record that matches the supplied protocol identifier (e.g. an AS2 ID),\r\ncommunication channel type, private-key requirement, and use type.\r\nThe caller must be authenticated via API key; all request fields are required.\r\nReturns the matching CommIDInfo object when a comm record is found; the ShowInactive flag controls\r\nwhether suspended records are included in the search.",
        "operationId": "Comm_Find",
        "requestBody": {
          "description": "Search criteria including the protocol identifier, comm channel type, key requirement, use type, and inactive flag.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommFindRequest"
              },
              "examples": {
                "FindByAS2Id": {
                  "summary": "Find an AS2 comm record by identifier",
                  "value": {
                    "identifier": "ACMECORP-AS2",
                    "commType": "AS2",
                    "privateKeyRequired": false,
                    "useType": "TestAndProduction",
                    "showInactive": false
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Matching comm record found and returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommsListResponse"
                },
                "examples": {
                  "CommFound": {
                    "summary": "Matching comm record returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": {
                        "commId": 3001,
                        "networkId": 12,
                        "mailboxId": 147,
                        "commType": "AS2",
                        "identifier": "ACMECORP-AS2",
                        "url": "https://as2.acmecorp.example/receive",
                        "status": "Active"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing request fields",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/comms/list": {
      "post": {
        "tags": [
          "Comms"
        ],
        "summary": "List comm records for a network or mailbox",
        "description": "Returns a filtered list of comm records based on the supplied criteria. Routing is conditional on\r\nthe request payload: (1) when both NetworkId and MailboxId are provided, calls CommListEx scoped to\r\nthat specific mailbox and returns only comm records belonging to it; (2) otherwise, calls CommList\r\nscoped to the caller's network and returns all matching comm records across the network.\r\nThe CommType, PrivateKeyRequired, UseType, ShowInactive, and WithCerts flags apply in both branches.\r\nReturns an array of CommIDInfo objects; an empty array is returned when no records match.",
        "operationId": "Comm_List",
        "requestBody": {
          "description": "Filter criteria. Supplying both NetworkId and MailboxId narrows the result to a single mailbox; omitting either returns network-scoped results.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommListRequest"
              },
              "examples": {
                "ListMailboxComms": {
                  "summary": "List all active AS2 comms for a specific mailbox",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "commType": "AS2",
                    "privateKeyRequired": false,
                    "useType": "TestAndProduction",
                    "showInactive": false,
                    "withCerts": false
                  }
                },
                "ListNetworkComms": {
                  "summary": "List all AS2 comms for an entire network",
                  "value": {
                    "networkId": 12,
                    "commType": "AS2",
                    "privateKeyRequired": false,
                    "useType": "TestAndProduction",
                    "showInactive": false,
                    "withCerts": false
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "List of matching comm records returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommsListResponse"
                },
                "examples": {
                  "CommList": {
                    "summary": "Comm records returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "commId": 3001,
                          "networkId": 12,
                          "mailboxId": 147,
                          "commType": "AS2",
                          "identifier": "ACMECORP-AS2",
                          "status": "Active"
                        },
                        {
                          "commId": 3002,
                          "networkId": 12,
                          "mailboxId": 147,
                          "commType": "AS2",
                          "identifier": "ACMECORP-AS2-TEST",
                          "status": "Active"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing required filter fields",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/comms/pair": {
      "post": {
        "tags": [
          "Comms"
        ],
        "summary": "Find the comm record pairing two ECGrid IDs",
        "description": "Resolves the comm record that ECGrid uses when routing transmissions from one ECGrid ID to another.\r\nBoth ECGridIDFrom and ECGridIDTo are required; CommType selects the protocol channel (e.g. AS2).\r\nThe DefaultID field identifies the preferred comm identifier when multiple comm records could match.\r\nSet TestMode to true to resolve the pairing without recording a live routing decision.\r\nReturns the CommIDInfo object that would be used for the transmission.",
        "operationId": "Comm_Pair",
        "requestBody": {
          "description": "Pairing lookup payload including source ECGrid ID, destination ECGrid ID, comm channel type, default identifier, and test mode flag.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommPairRequest"
              },
              "examples": {
                "ResolveAS2Pair": {
                  "summary": "Resolve the AS2 comm record that routes between two ECGridIDs",
                  "value": {
                    "commType": "AS2",
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": 2345678,
                    "defaultId": "",
                    "testMode": false
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Comm pairing resolved and returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommsListResponse"
                },
                "examples": {
                  "CommPairResolved": {
                    "summary": "Comm pairing resolved",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": {
                        "commId": 3001,
                        "identifier": "ACMECORP-AS2",
                        "url": "https://as2.acmecorp.example/receive",
                        "status": "Active"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing required fields, or DefaultID is empty",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/comms/set-pair": {
      "post": {
        "tags": [
          "Comms"
        ],
        "summary": "Set the comm identifiers for an ECGrid ID pair",
        "description": "Explicitly assigns the comm identifier pair that ECGrid will use when routing between two ECGrid IDs.\r\nECGridIDFrom and ECGridIDTo identify the trading partner addresses; Identifier1 and Identifier2\r\nare the protocol-specific identifiers (e.g. AS2 IDs) for each side of the connection.\r\nThis call overwrites any previously stored pairing for these two ECGrid IDs.\r\nReturns the updated pairing record on success.",
        "operationId": "Comm_SetPair",
        "requestBody": {
          "description": "Pairing assignment payload containing the source and destination ECGrid IDs and their respective comm identifiers.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommSetPairRequest"
              },
              "examples": {
                "SetAS2Pair": {
                  "summary": "Explicitly assign AS2 identifiers for routing between two ECGridIDs",
                  "value": {
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": 2345678,
                    "identifier1": "ACMECORP-AS2",
                    "identifier2": "BETASUPPLIER-AS2"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Comm pair set successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommsListResponse"
                },
                "examples": {
                  "PairSet": {
                    "summary": "Comm pairing set successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing required fields",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/comms/create": {
      "post": {
        "tags": [
          "Comms"
        ],
        "summary": "Create a new comm record for a mailbox",
        "description": "Creates a new protocol connection configuration (comm record) for the specified mailbox and\r\npersists it in ECGridOS. Routing is conditional on the request payload: (1) when\r\nSSLClientAuthentication is provided, calls CommAddA which includes client-certificate\r\nauthentication in the comm configuration; (2) otherwise, calls CommAdd for standard\r\nauthentication configurations.\r\nIf OwnerUserID is omitted, it defaults to the user id associated with the caller's API key.\r\n`identifier` is required in all cases — the caller supplies the AS2 ID or SFTP host name\r\nfor the comm record regardless of whether `ecGridHosted` is true or false.\r\nThe identifier must contain only printable ASCII characters (RFC 4130 §6.2, range 0x20–0x7E).\r\nURL, if provided, must be a valid HTTP, HTTPS, FTPS, or OFTP address. When HTTPAuthentication\r\nis set to any value other than None, HTTPUser and HTTPPassword are both required.\r\nFor OFTP comm types, Version must be one of: 1.2, 1.3, 1.4, or 2.0.\r\nReturns the created CommIDInfo record on success.",
        "operationId": "Comm_Create",
        "requestBody": {
          "description": "Comm creation payload. NetworkID, MailboxID, CommType, Identifier (required, printable ASCII per RFC 4130), ECGridHosted, SignData, EncryptData, CompressData, ReceiptType, HTTPAuthentication, UseType, BeginUsage, EndUsage, and Status are required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommCreateRequest"
              },
              "examples": {
                "CreateECGridHosted": {
                  "summary": "Create an ECGrid-hosted AS2 comm record",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "commType": "AS2",
                    "ownerUserId": 501,
                    "ecGridHosted": true,
                    "identifier": "",
                    "url": "",
                    "signData": true,
                    "encryptData": true,
                    "compressData": true,
                    "receiptType": "SynchronousSigned",
                    "httpAuthentication": "None",
                    "httpUser": "",
                    "httpPassword": "",
                    "sslClientAuthentication": false,
                    "useType": "TestAndProduction",
                    "status": "Active"
                  }
                },
                "CreateCustomerHosted": {
                  "summary": "Create a customer-hosted AS2 comm record with an external endpoint",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "commType": "AS2",
                    "ownerUserId": 501,
                    "ecGridHosted": false,
                    "identifier": "ACMECORP-AS2",
                    "url": "https://as2.acmecorp.example/receive",
                    "signData": true,
                    "encryptData": true,
                    "compressData": true,
                    "receiptType": "SynchronousSigned",
                    "httpAuthentication": "None",
                    "httpUser": "",
                    "httpPassword": "",
                    "sslClientAuthentication": false,
                    "useType": "TestAndProduction",
                    "status": "Active"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Comm record created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommsGetByIdResponse"
                },
                "examples": {
                  "CommCreated": {
                    "summary": "Comm record created successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": {
                        "commId": 3003,
                        "networkId": 12,
                        "mailboxId": 147,
                        "commType": "AS2",
                        "identifier": "ACMECORP-AS2",
                        "url": "https://as2.acmecorp.example/receive",
                        "ecGridHosted": false,
                        "status": "Active"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing required fields, non-ASCII identifier, invalid URL, invalid OFTP version, or missing HTTP credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/comms/update": {
      "put": {
        "tags": [
          "Comms"
        ],
        "summary": "Update an existing comm record",
        "description": "Updates the configuration of an existing comm record identified by CommID. Routing is conditional\r\non the request payload: (1) when SSLClientAuthentication is provided, calls CommUpdateA which\r\nincludes the client-certificate authentication flag in the update; (2) otherwise, calls CommUpdate\r\nfor standard configuration updates.\r\nIf OwnerUserID is omitted, it defaults to the user id associated with the caller's API key.\r\nURL, if provided, must be a valid HTTP, HTTPS, FTPS, or OFTP address. When HTTPAuthentication\r\nis set to any value other than None, HTTPUser and HTTPPassword are both required.\r\nReturns the updated CommIDInfo record on success.",
        "operationId": "Comm_Update",
        "requestBody": {
          "description": "Comm update payload. CommID is required; all other fields replace the current stored values.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommUpdateRequest"
              },
              "examples": {
                "UpdateEndpointAndAuth": {
                  "summary": "Update the AS2 endpoint URL and enable Basic HTTP authentication",
                  "value": {
                    "commId": 3001,
                    "ownerUserId": 501,
                    "identifier": "ACMECORP-AS2",
                    "url": "https://new-as2.acmecorp.example/receive",
                    "signData": true,
                    "encryptData": true,
                    "compressData": true,
                    "receiptType": "SynchronousSigned",
                    "httpAuthentication": "Basic",
                    "httpUser": "as2user",
                    "httpPassword": "s3cur3p@ss",
                    "useType": "TestAndProduction"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Comm record updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommsGetByIdResponse"
                },
                "examples": {
                  "CommUpdated": {
                    "summary": "Comm record updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing required fields, invalid URL, or missing HTTP credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/comms/update-config": {
      "put": {
        "tags": [
          "Comms"
        ],
        "summary": "Update a comm record's mailbox assignment or status",
        "description": "Applies a targeted configuration change to an existing comm record identified by CommID. Routing\r\nis conditional on the request payload: (1) when MailboxID is provided, calls CommDefaultMailbox\r\nwhich sets the mailbox that receives inbound transmissions arriving on this comm record; (2) when\r\nStatus is provided, calls CommSetStatus which activates (Active) or suspends (Inactive) the comm\r\nrecord. Exactly one of MailboxID or Status must be supplied; providing neither returns 400.\r\nReturns a boolean indicating whether the operation succeeded.",
        "operationId": "Comm_UpdateConfig",
        "requestBody": {
          "description": "Config update payload. CommID is always required; supply either MailboxID to reassign the default mailbox, or Status to activate or suspend the comm record.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommUpdateConfigRequest"
              },
              "examples": {
                "ActivateComm": {
                  "summary": "Activate a suspended comm record",
                  "value": {
                    "commId": 3001,
                    "status": "Active"
                  }
                },
                "SuspendComm": {
                  "summary": "Suspend an active comm record without deleting it",
                  "value": {
                    "commId": 3001,
                    "status": "Inactive"
                  }
                },
                "ChangeDefaultMailbox": {
                  "summary": "Reassign the default inbound mailbox for a comm record",
                  "value": {
                    "commId": 3001,
                    "mailboxId": 201
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Comm configuration updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommsBoolResponse"
                },
                "examples": {
                  "ConfigUpdated": {
                    "summary": "Comm config updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid payload — CommID missing, or neither MailboxID nor Status supplied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/ids/{id}": {
      "delete": {
        "tags": [
          "IDs"
        ],
        "summary": "Terminate an ECGrid ID by its numeric id",
        "description": "Deactivates and removes the ECGrid ID (trading partner EDI address) identified by id.\r\nThe caller must be authenticated via API key. Once terminated, the ID can no longer be used as a\r\nrouting address and inbound parcels destined for it will be rejected.\r\nThis operation is irreversible — reinstatement requires creating a new ECGrid ID via POST /ids.",
        "operationId": "ID_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique ECGrid numeric identifier of the EDI address to terminate.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "ECGrid ID terminated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsBoolResponse"
                },
                "examples": {
                  "IDTerminated": {
                    "summary": "EDI ID terminated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id or the ID is not eligible for termination",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No ECGrid ID found for the supplied id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "IDs"
        ],
        "summary": "Get an ECGrid ID by its numeric id",
        "description": "Returns full details for the ECGrid ID (trading partner EDI address) identified by id.\r\nThe caller must be authenticated via API key. The response includes the qualifier, EDI ID value,\r\ndescription, routing group, active status, and owning network and mailbox.\r\nReturns 404 when no ECGrid ID exists for the supplied numeric id.",
        "operationId": "ID_GetById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique ECGrid numeric identifier of the EDI address to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "ECGrid ID details returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsGetByIdResponse"
                },
                "examples": {
                  "IDFound": {
                    "summary": "EDI ID record returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": {
                        "ecgridID": 1234567,
                        "qualifier": "ZZ",
                        "id": "ACMECORP01",
                        "description": "Acme Corp Production",
                        "status": "Active",
                        "networkID": 12,
                        "mailboxID": 147
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id supplied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No ECGrid ID found for the supplied id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "IDs"
        ],
        "summary": "Update the description for an ECGrid ID by its numeric id",
        "description": "Updates the human-readable label for the ECGrid ID identified by id.\r\nThe description is the display name shown in portals and reports; it does not affect EDI routing.\r\nDescription must be between 3 and 35 characters. This PUT variant accepts the ECGridID as a URL\r\npath parameter; for the POST variant that accepts the ECGridID in the request body,\r\nuse POST /ids/tp-update-description.",
        "operationId": "ID_Update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique ECGrid numeric identifier of the EDI address whose description will be updated.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "description": "Description update payload. Description is required and must be 3–35 characters.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IDDescriptionUpdateRequest"
              },
              "examples": {
                "UpdateDescription": {
                  "summary": "Update the description for an EDI ID",
                  "value": {
                    "description": "Acme Corp Receiving Hub"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Description updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsBoolResponse"
                },
                "examples": {
                  "DescriptionUpdated": {
                    "summary": "Description updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id or description fails length validation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No ECGrid ID found for the supplied id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/ids": {
      "post": {
        "tags": [
          "IDs"
        ],
        "summary": "Create a new ECGrid ID (trading partner EDI address)",
        "description": "Adds a new EDI address (ISA qualifier + ID pair) to ECGrid and assigns it a unique ECGridID.\r\nRouting is determined by the request payload: (1) when NetworkId is provided and greater than 0,\r\ncalls TPAddEx to add the ID to the specified network and mailbox with a configurable routing group;\r\n(2) when only MailboxId is provided (no NetworkId), infers the session network from the caller's\r\nAPI key context and calls TPAddEx with the session network and the supplied MailboxId — the mailbox\r\nmust exist or a 404 is returned; (3) otherwise calls TPAdd to add the ID to the caller's default\r\nmailbox using production routing.\r\nReturns the newly assigned ECGridID on success. The Description must be 3–35 characters; the ID\r\nvalue must be 1–35 characters; Qualifier is optional (max 4 characters).",
        "operationId": "ID_Create",
        "requestBody": {
          "description": "Payload describing the new EDI address to create. ID and Description are required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IDCreateRequest"
              },
              "examples": {
                "CreateUnderCallerNetwork": {
                  "summary": "Create an EDI ID under the caller's own network",
                  "value": {
                    "qualifier": "ZZ",
                    "id": "ACMECORP01",
                    "description": "Acme Corp Production"
                  }
                },
                "CreateUnderSpecificNetwork": {
                  "summary": "Create an EDI ID under a specific network and mailbox",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "qualifier": "ZZ",
                    "id": "ACMECORP01",
                    "description": "Acme Corp Production",
                    "routingGroup": "ProductionA"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "ECGrid ID created successfully; response Data contains the new ECGridID",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsCreateResponse"
                },
                "examples": {
                  "IDCreated": {
                    "summary": "EDI ID created; payload is the new ECGridID",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000004",
                      "success": true,
                      "data": 1234567
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload, qualifier/ID conflict, or the address already exists",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Mailbox not found (only when MailboxId is supplied without NetworkId)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/ids/find": {
      "post": {
        "tags": [
          "IDs"
        ],
        "summary": "Find ECGrid IDs by description or qualifier/ID",
        "description": "Searches for ECGrid IDs (trading partner EDI addresses) using description text or qualifier/ID values.\r\nRouting is determined by the request payload: (1) when NetworkId and MailboxId are both provided and\r\nDescription is non-empty, calls TPFindEx to search by description within the specified network and mailbox;\r\n(2) when NetworkId and MailboxId are both provided and Qualifier or ID is non-empty, calls TPSearchEx\r\nto search by qualifier/ID within the specified network and mailbox; (3) otherwise calls TPSearch\r\nfor a global search across all networks using Qualifier and ID.\r\nDescription uses SQL LIKE wildcards: `%Acme%` matches any description containing \"Acme\";\r\n`*` wildcards (used by mailbox-search) will not work here — qualifier and ID fields are exact-match only.\r\nSet ShowInactive to true to include terminated or suspended IDs in results.",
        "operationId": "ID_Find",
        "requestBody": {
          "description": "Search criteria. ShowInactive is required; at least one of Description, Qualifier, or ID must be provided. Use % wildcards in Description for partial matching.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IDFindRequest"
              },
              "examples": {
                "SearchByQualifierAndId": {
                  "summary": "Search all IDs visible to caller by qualifier and ID value",
                  "value": {
                    "qualifier": "ZZ",
                    "id": "ACME",
                    "showInactive": false
                  }
                },
                "FindByDescriptionInMailbox": {
                  "summary": "Search within a specific network and mailbox by description text (use % as wildcard — e.g. %Acme% matches any description containing Acme)",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "description": "%Acme%",
                    "showInactive": false
                  }
                },
                "SearchByIdInMailbox": {
                  "summary": "Search within a specific network and mailbox by ID value",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "qualifier": "ZZ",
                    "id": "ACME",
                    "showInactive": true
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Search completed; response Data contains a list of matching ECGrid ID records",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsListResponse"
                },
                "examples": {
                  "FindResults": {
                    "summary": "Matching EDI IDs returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000005",
                      "success": true,
                      "data": [
                        {
                          "ecgridID": 1234567,
                          "qualifier": "ZZ",
                          "id": "ACMECORP01",
                          "description": "Acme Corp Production",
                          "status": "Active"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or missing required search fields",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/ids/list": {
      "post": {
        "tags": [
          "IDs"
        ],
        "summary": "List ECGrid IDs for a network/mailbox or the caller's default",
        "description": "Returns all ECGrid IDs (trading partner EDI addresses) visible to the caller.\r\nRouting is determined by the request payload: (1) when NetworkId is provided, calls TPListEx\r\nto return all IDs belonging to the specified network and mailbox; (2) otherwise calls TPList\r\nto return all IDs belonging to the caller's default mailbox.\r\nSet ShowInactive to true to include terminated or suspended IDs in results.\r\nPagination fields (PageSize, PageNumber) are reserved for a future paged variant and are\r\ncurrently ignored.\r\nNote: if a non-existent MailboxId is supplied, the backend returns an empty list rather than\r\na not-found error — the response is indistinguishable from a mailbox that has no IDs configured.\r\nCallers should validate that the mailbox exists before calling this endpoint if that distinction matters.",
        "operationId": "ID_List",
        "requestBody": {
          "description": "List options. All fields are optional; omitting NetworkId returns the caller's own IDs.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IDListRequest"
              },
              "examples": {
                "AllVisibleIDs": {
                  "summary": "List all IDs visible to the caller's API key",
                  "value": {
                    "showInactive": false
                  }
                },
                "ByNetwork": {
                  "summary": "List all IDs under a specific network",
                  "value": {
                    "networkId": 12,
                    "showInactive": false
                  }
                },
                "ByNetworkAndMailbox": {
                  "summary": "List all IDs for a specific mailbox",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "showInactive": false
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "List returned successfully; response Data contains an array of ECGrid ID records",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsListResponse"
                },
                "examples": {
                  "IDList": {
                    "summary": "EDI IDs returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000006",
                      "success": true,
                      "data": [
                        {
                          "ecgridID": 1234567,
                          "qualifier": "ZZ",
                          "id": "ACMECORP01",
                          "description": "Acme Corp Production",
                          "status": "Active"
                        },
                        {
                          "ecgridID": 2345678,
                          "qualifier": "01",
                          "id": "987654321",
                          "description": "Beta Supplier",
                          "status": "Active"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/ids/update-config": {
      "post": {
        "tags": [
          "IDs"
        ],
        "summary": "Update active status, owner, or routing group for an ECGrid ID",
        "description": "Applies a single configuration change to the ECGrid ID specified by ECGridID.\r\nExactly one action field must be set per request — the endpoint routes to the appropriate\r\nSOAP operation based on the first matching condition: (1) when Activate is true, calls\r\nTPActivate to re-enable a suspended ID; (2) when Suspend is true, calls TPSuspend to\r\ntemporarily disable the ID without terminating it; (3) when OwnerUserID is provided,\r\ncalls TPSetOwner to assign a new owning user to the ID; (4) when RoutingGroup is provided,\r\ncalls TPSetRoutingGroup to change the ID's routing group (ProductionA, Test, or\r\nManagedFileTransfer). Providing none of these fields returns a 400 error.",
        "operationId": "ID_UpdateConfig",
        "requestBody": {
          "description": "Configuration update payload. ECGridID is required; exactly one action field must be set.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IDUpdateConfigRequest"
              },
              "examples": {
                "Activate": {
                  "summary": "Reactivate a suspended EDI ID",
                  "value": {
                    "ecgridId": 1234567,
                    "activate": true
                  }
                },
                "Suspend": {
                  "summary": "Suspend an active EDI ID",
                  "value": {
                    "ecgridId": 1234567,
                    "suspend": true
                  }
                },
                "SetOwner": {
                  "summary": "Reassign the owner of an EDI ID",
                  "value": {
                    "ecgridId": 1234567,
                    "ownerUserId": 501
                  }
                },
                "SetRoutingGroup": {
                  "summary": "Change the routing group to Test",
                  "value": {
                    "ecgridId": 1234567,
                    "routingGroup": "Test"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Configuration updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsBoolResponse"
                },
                "examples": {
                  "ConfigUpdated": {
                    "summary": "Configuration updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000007",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload, no action field supplied, or an unrecognized routingGroup value — the field name and the rejected value are returned in the response errors collection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/ids/tp-add-van": {
      "post": {
        "tags": [
          "IDs"
        ],
        "summary": "Add a VAN-hosted trading partner EDI address to a network",
        "description": "Registers an EDI address (qualifier + ID pair) that is hosted at an external VAN — not at ECGrid\r\ndirectly — so that ECGrid can route interchanges to that trading partner through the VAN.\r\nThe NetworkID identifies the ECGrid network that owns the routing relationship.\r\nReturns the newly created ECGridID on success. Use this endpoint instead of POST /ids when the\r\ntrading partner's EDI connectivity is provided by a third-party VAN rather than ECGrid.",
        "operationId": "ID_AddVan",
        "requestBody": {
          "description": "VAN trading partner payload. NetworkID, ID, and Description are required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TPAddVANRequest"
              },
              "examples": {
                "AddVanId": {
                  "summary": "Add a VAN EDI ID to a network",
                  "value": {
                    "networkId": 12,
                    "qualifier": "ZZ",
                    "id": "VANPARTNER01",
                    "description": "VAN Trading Partner"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "VAN trading partner ID added successfully; response Data contains the new ECGridID",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsCreateResponse"
                },
                "examples": {
                  "VanIdAdded": {
                    "summary": "VAN ID added successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000008",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or the address already exists in the network",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/ids/tp-get-mailbox-default": {
      "post": {
        "tags": [
          "IDs"
        ],
        "summary": "Get the default mailbox for a network and mailbox ID pair",
        "description": "Returns the ECGridID of the default inbound mailbox configured for the specified network and mailbox\r\ncombination. This is used during routing to determine where parcels are delivered when no explicit\r\npartner relationship overrides the destination. Both NetworkID and MailboxID are required.\r\nReturns the resolved default ECGridID in the response Data field.",
        "operationId": "ID_GetMailboxDefault",
        "requestBody": {
          "description": "Network and mailbox identifiers. Both NetworkID and MailboxID are required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TPGetMailboxDefaultRequest"
              },
              "examples": {
                "GetDefault": {
                  "summary": "Get the default EDI ID for a mailbox",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Default mailbox ECGridID returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsGetByIdResponse"
                },
                "examples": {
                  "MailboxDefaultFound": {
                    "summary": "Default EDI ID returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000009",
                      "success": true,
                      "data": {
                        "ecgridID": 1234567,
                        "qualifier": "ZZ",
                        "id": "ACMECORP01",
                        "description": "Acme Corp Production",
                        "status": "Active"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or missing required fields",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/ids/tp-move": {
      "post": {
        "tags": [
          "IDs"
        ],
        "summary": "Move an ECGrid ID to a different network, mailbox, or schedule a move",
        "description": "Schedules or immediately moves the ECGrid ID (trading partner EDI address) identified by ECGridID\r\nto a new location. Routing is determined by the request payload: (1) when NetworkID is provided,\r\ncalls TPMoveEx to schedule a move to the specified network and mailbox at the given MoveDateTime;\r\n(2) when only MailboxID is provided (no NetworkID), calls TPMoveMailbox to immediately transfer\r\nthe ID to a different mailbox within the current network; (3) otherwise calls TPMove to schedule\r\na move within the current network at the given MoveDateTime. MoveDateTime cannot be in the past\r\nand is required for branch (1) and (3).",
        "operationId": "ID_Move",
        "requestBody": {
          "description": "Move configuration payload. ECGridID is required; NetworkID, MailboxID, and MoveDateTime control which SOAP operation is invoked.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TPMoveRequest"
              },
              "examples": {
                "MoveToNetworkAndMailbox": {
                  "summary": "Schedule a cross-network move with a target network and mailbox",
                  "value": {
                    "ecgridId": 1234567,
                    "networkId": 34,
                    "mailboxId": 201,
                    "moveDateTime": "2026-07-01T00:00:00Z"
                  }
                },
                "MoveToMailbox": {
                  "summary": "Move to a different mailbox within the same network immediately",
                  "value": {
                    "ecgridId": 1234567,
                    "mailboxId": 201
                  }
                },
                "ScheduleMove": {
                  "summary": "Schedule a migration at a future date",
                  "value": {
                    "ecgridId": 1234567,
                    "moveDateTime": "2026-07-01T00:00:00Z"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Move scheduled or applied successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsCreateResponse"
                },
                "examples": {
                  "MovedSuccessfully": {
                    "summary": "ID move scheduled or executed",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000010",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload, MoveDateTime in the past, or missing required fields",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/ids/tp-update-data-email": {
      "post": {
        "tags": [
          "IDs"
        ],
        "summary": "Configure email delivery settings for an ECGrid ID",
        "description": "Sets the email delivery configuration for the specified ECGrid ID, controlling how inbound\r\nEDI data is forwarded to the trading partner via email. EMailSystem specifies the email\r\nprovider or protocol; DataEMail is the destination address; PayloadPosition determines\r\nwhether the EDI payload is delivered inline or as an attachment.\r\nAll fields except DataEMail are required. Changes take effect on the next inbound parcel\r\nreceived for this ECGrid ID.",
        "operationId": "ID_UpdateDataEmail",
        "requestBody": {
          "description": "Email delivery configuration payload. ECGridID, EMailSystem, and PayloadPosition are required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TPUpdateDataEMailRequest"
              },
              "examples": {
                "SetDataEmail": {
                  "summary": "Configure data delivery email for an EDI ID",
                  "value": {
                    "ecgridId": 1234567,
                    "emailSystem": "SMTP",
                    "dataEmail": "edi@example-company.com",
                    "payloadPosition": "Attachment"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Email delivery settings updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsBoolResponse"
                },
                "examples": {
                  "DataEmailUpdated": {
                    "summary": "Data email updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000011",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or unsupported EMailSystem value",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/ids/tp-update-description": {
      "post": {
        "tags": [
          "IDs"
        ],
        "summary": "Update the description for an ECGrid ID via POST",
        "description": "Updates the human-readable label for the ECGrid ID identified by ECGridID.\r\nThe description is the display name shown in portals and reports; it does not affect routing.\r\nDescription must be between 3 and 35 characters. This POST variant accepts the ECGridID in\r\nthe request body; for the PUT variant that accepts the id in the URL path, use PUT /ids/{id}.",
        "operationId": "ID_UpdateDescription",
        "requestBody": {
          "description": "Description update payload. ECGridID and Description are required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TPUpdateDescriptionRequest"
              },
              "examples": {
                "UpdateDescription": {
                  "summary": "Update the description of an EDI ID using ECGridID in body",
                  "value": {
                    "ecgridId": 1234567,
                    "description": "Acme Corp Receiving Hub"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Description updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsBoolResponse"
                },
                "examples": {
                  "DescriptionUpdated": {
                    "summary": "Description updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000012",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or description fails length validation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No ECGrid ID found for the supplied ECGridID",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/ids/tp-x12-delimiters": {
      "post": {
        "tags": [
          "IDs"
        ],
        "summary": "Set custom X12 delimiters for an ECGrid ID",
        "description": "Configures custom X12 segment terminator, element separator, and subelement separator byte values\r\nfor the ECGrid ID identified by ECGridID. These delimiter overrides are applied during X12 envelope\r\nprocessing for interchanges associated with this trading partner. Use this when a trading partner\r\nrequires non-standard delimiter characters that differ from the ECGrid platform defaults.\r\nAll four fields are required. Delimiter values are supplied as raw byte values (0–255).",
        "operationId": "ID_SetX12Delimiters",
        "requestBody": {
          "description": "X12 delimiter configuration payload. ECGridID, SegTerm, ElmSep, and SubElmSep are all required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TPX12DelimitersRequest"
              },
              "examples": {
                "StandardDelimiters": {
                  "summary": "Standard X12 delimiters — tilde, asterisk, greater-than",
                  "value": {
                    "ecgridId": 1234567,
                    "segTerm": 126,
                    "elmSep": 42,
                    "subElmSep": 62
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "X12 delimiters updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IDsBoolResponse"
                },
                "examples": {
                  "DelimitersSet": {
                    "summary": "X12 delimiters updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000013",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or delimiter values out of range",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/interchanges/{id}": {
      "get": {
        "tags": [
          "Interchanges"
        ],
        "summary": "Get an interchange record by id",
        "description": "Returns the ECGrid interchange record for the supplied interchange id.\r\nAn interchange is an EDI envelope (X12 ISA–IEA or EDIFACT UNB–UNZ) that has passed\r\nthrough the ECGrid platform. The record includes sender/receiver IDs, status, timestamps,\r\nfile size, and associated parcel information.\r\nUse this endpoint when you already know the interchange id — for discovery by date range\r\nor EDI ID, use `inbox-list` or `outbox-list` instead.\r\nCaller must be authenticated via API key or Bearer token.\r\nThe `header` field in the response may contain HTML-encoded characters\r\n(e.g. `&gt;` for the ISA segment terminator `>`) due to a backend\r\nencoding behavior. HTML-decode the field if your system requires the raw X12 string.",
        "operationId": "Interchange_GetById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Interchange id (int32) to retrieve. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Interchange found; payload is `InterchangeIDInfo`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterchangesGetByIdResponse"
                },
                "examples": {
                  "InterchangeFound": {
                    "summary": "Interchange record returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": {
                        "interchangeID": 9876543,
                        "ecgridIDFrom": 1234567,
                        "ecgridIDTo": 2345678,
                        "status": "Delivered",
                        "fileName": "INV_20260602.edi",
                        "dateReceived": "2026-06-02T10:00:00Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Interchange id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/interchanges/get-manifest/{id}": {
      "get": {
        "tags": [
          "Interchanges"
        ],
        "summary": "Get the manifest (segment list) for an interchange",
        "description": "Returns the manifest for the specified interchange — the list of functional groups,\r\ntransaction sets, and segment counts contained within the interchange envelope.\r\nA manifest is useful when you need to inspect the structure of an interchange without\r\ndownloading the full EDI file. Use `GET /interchanges/{id}` to get interchange\r\nmetadata; use this endpoint to drill into what transaction types are inside.\r\nNote: this endpoint uses `int64` for the id parameter — interchange ids can exceed\r\nthe int32 range for high-volume deployments.",
        "operationId": "Interchange_GetManifest",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Interchange id (int64) to retrieve the manifest for. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Manifest returned; payload is an array of `ManifestInfo` records.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterchangesGetManifestResponse"
                },
                "examples": {
                  "ManifestReturned": {
                    "summary": "Interchange manifest returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": [
                        {
                          "groupID": "PO",
                          "transactionSetID": "850",
                          "segmentCount": 24,
                          "transactionCount": 1
                        },
                        {
                          "groupID": "IN",
                          "transactionSetID": "810",
                          "segmentCount": 18,
                          "transactionCount": 1
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Interchange id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/interchanges/cancel/{id}": {
      "post": {
        "tags": [
          "Interchanges"
        ],
        "summary": "Cancel a queued outbound interchange",
        "description": "Cancels a queued outbound interchange via `InterchangeCancel`, preventing it from\r\nbeing transmitted to the trading partner.\r\nCancellation is only possible when the interchange is in a queued or pending-transmission\r\nstate. If the interchange has already been delivered to the trading partner's inbox, the\r\ncancellation will fail — ECGridOS will return an error surfaced as 400.\r\nReturns true when the cancellation was applied successfully.\r\nNote: this endpoint uses POST (not GET) because cancellation is a state-mutating operation.",
        "operationId": "Interchange_Cancel",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Interchange id (int32) to cancel. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Interchange cancelled successfully; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterchangesBoolResponse"
                },
                "examples": {
                  "InterchangeCancelled": {
                    "summary": "Interchange cancelled successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id, interchange already delivered, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Interchange id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/interchanges/resend/{id}": {
      "post": {
        "tags": [
          "Interchanges"
        ],
        "summary": "Resend a previously transmitted interchange",
        "description": "Queues a previously transmitted interchange for re-delivery via `InterchangeResend`.\r\nResend creates a new outbound transmission of the same interchange content — the original\r\ninterchange record is preserved and a new delivery attempt is queued.\r\nThis is typically used when a trading partner reports they did not receive a file,\r\nor when an AS2 MDN failed and re-transmission is required.\r\nResend applies to outbox interchanges only — attempting to resend an inbound interchange\r\nwill result in an ECGridOS error.\r\nNote: this endpoint uses `int64` for the id parameter and POST (not GET) because\r\nresend is a state-mutating operation that queues a new delivery.",
        "operationId": "Interchange_Resend",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Interchange id (int64) to resend. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Interchange queued for re-delivery; payload is `InterchangeIDStatus`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterchangesResendResponse"
                },
                "examples": {
                  "ResendQueued": {
                    "summary": "Interchange queued for re-delivery",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000004",
                      "success": true,
                      "data": {
                        "interchangeID": 9876543,
                        "status": "OutBoxQueued"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id, interchange is inbound-only, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Interchange id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/interchanges/get-date": {
      "post": {
        "tags": [
          "Interchanges"
        ],
        "summary": "Extract the date from an X12 interchange header string",
        "description": "Parses a raw X12 ISA interchange header string and extracts the interchange date\r\nand time as a `DateTime` value via `InterchangeDate`.\r\nThe `interchangeHeader` field must be the literal ISA segment string from an\r\nX12 file — for example:\r\n`ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *260101*1200*^*00501*000000001*0*P*:`\r\nUse this endpoint to parse the date embedded in an interchange header you already\r\nhave in memory. Unlike `get-header`, this does not look up a record in ECGrid —\r\nit performs a pure parse of the header string and returns the extracted date only.",
        "operationId": "Interchange_GetDate",
        "requestBody": {
          "description": "InterchangeHeader is required — the full raw ISA segment string to parse.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterchangeHeaderRequest"
              },
              "examples": {
                "ParseISAHeader": {
                  "summary": "Extract the date from a raw X12 ISA segment",
                  "value": {
                    "interchangeHeader": "ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *260602*1200*^*00501*000000001*0*P*:"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Date extracted successfully; payload is a UTC `DateTime`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterchangesGetDateResponse"
                },
                "examples": {
                  "DateExtracted": {
                    "summary": "Interchange date extracted from header",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000005",
                      "success": true,
                      "data": "2026-06-02T12:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or malformed interchange header string.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/interchanges/get-header": {
      "post": {
        "tags": [
          "Interchanges"
        ],
        "summary": "Look up an interchange record by its raw header string",
        "description": "Looks up the ECGrid interchange record that matches the supplied raw X12 ISA header\r\nstring via `InterchangeHeaderInfo`.\r\nUnlike `get-date` (which performs a stateless parse of the header string and\r\nreturns only the date), this endpoint performs an authenticated lookup in ECGrid —\r\nit finds the interchange record whose ISA header matches the supplied string and\r\nreturns the full `InterchangeIDInfo` record including status, sender/receiver,\r\nparcel id, and all associated metadata.\r\nUse this when you have a raw EDI header from a file and need to find the corresponding\r\nECGrid interchange record without knowing the interchange id.\r\nThe `header` field in the response may contain HTML-encoded characters\r\n(e.g. `&gt;` for the ISA segment terminator `>`) due to a backend\r\nencoding behavior. HTML-decode the field if your system requires the raw X12 string.",
        "operationId": "Interchange_GetHeader",
        "requestBody": {
          "description": "InterchangeHeader is required — the full raw ISA segment string to look up.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterchangeHeaderRequest"
              },
              "examples": {
                "LookupByHeader": {
                  "summary": "Look up an interchange record by its raw ISA header string",
                  "value": {
                    "interchangeHeader": "ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *260602*1200*^*00501*000000001*0*P*:"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Interchange record found; payload is `InterchangeIDInfo`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterchangesGetByIdResponse"
                },
                "examples": {
                  "InterchangeFoundByHeader": {
                    "summary": "Interchange record found by header lookup",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000006",
                      "success": true,
                      "data": {
                        "interchangeID": 9876543,
                        "ecgridIDFrom": 1234567,
                        "ecgridIDTo": 2345678,
                        "status": "Delivered"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid header string or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No interchange record matched the supplied header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/interchanges/inbox-list": {
      "post": {
        "tags": [
          "Interchanges"
        ],
        "summary": "List inbound interchanges received by a mailbox",
        "description": "Returns EDI interchanges that have been received into a mailbox inbox — i.e. sent\r\nby a trading partner to the caller. The inbox represents the inbound direction;\r\nfor outbound (sent by the caller), use `outbox-list`.\r\nRoutes to one of several SOAP operations based on the supplied flags and fields:\r\n(1) `blocked=true + beginDate + endDate + ecgridIdFrom + ecgridIdTo` — returns interchanges blocked in the inbox.\r\n(2) `pending=true + ecgridIdFrom + ecgridIdTo` — returns interchanges pending delivery.\r\n(3) `pageNo + recordsPerPage + beginDate + endDate + ecgridIdFrom + ecgridIdTo` — returns paginated archived results (`InterchangeIDInfoCollection`).\r\n(4) `beginDate + endDate + ecgridIdFrom + ecgridIdTo` — returns interchanges in the date range (`List<InterchangeIDInfo>`).\r\nSupply `networkId + mailboxId` with any combination to scope to a specific mailbox.\r\nDates can be converted from a local timezone using `timeZoneId` (IANA or Windows) or\r\n`utcOffsetMinutes`; omit both to treat dates as UTC.",
        "operationId": "Interchange_InboxList",
        "requestBody": {
          "description": "Filter fields — see remarks for required combinations per routing branch.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterchangeListRequest"
              },
              "examples": {
                "ByDateRange": {
                  "summary": "List inbound interchanges for a date range between two EDI IDs",
                  "value": {
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": 2345678,
                    "beginDate": "2026-06-01T00:00:00Z",
                    "endDate": "2026-06-02T23:59:59Z",
                    "timeZoneId": "UTC"
                  }
                },
                "PendingInbox": {
                  "summary": "List pending inbound interchanges for a specific mailbox",
                  "value": {
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": 2345678,
                    "networkId": 12,
                    "mailboxId": 147,
                    "pending": true
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Inbound interchanges returned; payload is `List<InterchangeIDInfo>` or `InterchangeIDInfoCollection` for paginated calls.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterchangesListResponse"
                },
                "examples": {
                  "InboxList": {
                    "summary": "Inbound interchanges returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000007",
                      "success": true,
                      "data": [
                        {
                          "interchangeID": 9876543,
                          "ecgridIDFrom": 1234567,
                          "ecgridIDTo": 2345678,
                          "status": "InBoxReady",
                          "fileName": "INV_20260602.edi",
                          "dateReceived": "2026-06-02T10:00:00Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing required filter combination, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/interchanges/outbox-list": {
      "post": {
        "tags": [
          "Interchanges"
        ],
        "summary": "List outbound interchanges sent by a mailbox",
        "description": "Returns EDI interchanges that have been sent from a mailbox outbox — i.e. transmitted\r\nby the caller to a trading partner. The outbox represents the outbound direction;\r\nfor inbound (received by the caller), use `inbox-list`.\r\nRoutes to one of several SOAP operations based on the supplied flags and fields:\r\n(1) `blocked=true + beginDate + endDate + ecgridIdFrom + ecgridIdTo` — returns blocked outbound interchanges.\r\n(2) `pending=true + ecgridIdFrom + ecgridIdTo` — returns interchanges pending transmission.\r\n(3) `noRoute=true + beginDate + endDate + ecgridIdFrom + ecgridIdTo` — returns interchanges that could not be routed.\r\n(4) `pageNo + recordsPerPage + beginDate + endDate + ecgridIdFrom + ecgridIdTo` — returns paginated archived results (`InterchangeIDInfoCollection`). Set `excludeParcel=true` to omit parcel data.\r\n(5) `beginDate + endDate + ecgridIdFrom + ecgridIdTo` — returns interchanges in the date range (`List<InterchangeIDInfo>`).\r\nSupply `networkId + mailboxId` with any combination to scope to a specific mailbox.\r\nDates can be converted from a local timezone using `timeZoneId` (IANA or Windows) or\r\n`utcOffsetMinutes`; omit both to treat dates as UTC.",
        "operationId": "Interchange_OutboxList",
        "requestBody": {
          "description": "Filter fields — see remarks for required combinations per routing branch.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterchangeListRequest"
              },
              "examples": {
                "ByDateRange": {
                  "summary": "List outbound interchanges for a date range between two EDI IDs",
                  "value": {
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": 2345678,
                    "beginDate": "2026-06-01T00:00:00Z",
                    "endDate": "2026-06-02T23:59:59Z",
                    "timeZoneId": "UTC"
                  }
                },
                "NoRouteOutbox": {
                  "summary": "List outbound interchanges that could not be routed",
                  "value": {
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": -1,
                    "beginDate": "2026-06-01T00:00:00Z",
                    "endDate": "2026-06-02T23:59:59Z",
                    "noRoute": true
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Outbound interchanges returned; payload is `List<InterchangeIDInfo>` or `InterchangeIDInfoCollection` for paginated calls.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterchangesListResponse"
                },
                "examples": {
                  "OutboxList": {
                    "summary": "Outbound interchanges returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000008",
                      "success": true,
                      "data": [
                        {
                          "interchangeID": 9876544,
                          "ecgridIDFrom": 1234567,
                          "ecgridIDTo": 2345678,
                          "status": "OutBoxSent",
                          "fileName": "PO_20260602.edi",
                          "dateSent": "2026-06-02T09:00:00Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing required filter combination, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/keys": {
      "delete": {
        "tags": [
          "Keys"
        ],
        "summary": "Remove a metadata key from an ECGrid object",
        "description": "Removes the key-value metadata entry identified by the combination of key name, systemObject, objectId, and visibility\r\nfrom the specified ECGrid object via KeyRemove.\r\nECGrid Keys are arbitrary metadata tags attached to objects such as mailboxes, partners, and EDI IDs — they are not\r\nAPI authentication credentials (those are managed through the User tag endpoints).\r\nThe matching entry is deleted immediately; if no entry matches, ECGridOS returns a SOAP error.\r\nReturns true on success.",
        "operationId": "Key_Delete",
        "requestBody": {
          "description": "Request body containing key, systemObject, objectId, and visibility identifying the entry to remove.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KeyDeleteRequest"
              },
              "examples": {
                "RemoveRoutingHint": {
                  "summary": "Remove a routing-hint metadata key from a mailbox",
                  "value": {
                    "key": "preferred-protocol",
                    "systemObject": "Mailbox",
                    "objectId": 147,
                    "visibility": "Public"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Metadata key removed; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeysBoolResponse"
                },
                "examples": {
                  "KeyRemoved": {
                    "summary": "Metadata key removed successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null or required fields are missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No key entry found matching the specified criteria.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/keys/get-key": {
      "post": {
        "tags": [
          "Keys"
        ],
        "summary": "Retrieve a single metadata key from an ECGrid object",
        "description": "Returns the KeyValue record for the metadata entry identified by key name, systemObject, objectId, and visibility via KeyGet.\r\nECGrid Keys are arbitrary key-value metadata tags stored against objects (mailboxes, partners, EDI IDs, etc.) and used\r\nduring routing or integration — they are not API authentication credentials.\r\nUse this endpoint when you need to read a specific known key name on a specific object.\r\nTo retrieve all keys on an object without knowing the key name, use Key_List instead.\r\nReturns a SOAP error if no matching entry is found.",
        "operationId": "Key_GetKey",
        "requestBody": {
          "description": "Request body containing key name, systemObject, objectId, and visibility identifying the entry to retrieve.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KeyGetKeyRequest"
              },
              "examples": {
                "GetRoutingHint": {
                  "summary": "Retrieve a specific routing-hint key from a mailbox",
                  "value": {
                    "key": "preferred-protocol",
                    "systemObject": "Mailbox",
                    "objectId": 147,
                    "visibility": "Public"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Key entry returned; data is a KeyValue object.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeysGetKeyResponse"
                },
                "examples": {
                  "KeyFound": {
                    "summary": "Metadata key entry returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": {
                        "key": "preferred-protocol",
                        "value": "AS2",
                        "meta": "Set by integration team 2026-05-01",
                        "visibility": "Public",
                        "expires": null
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null or required fields are missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No key entry found matching the specified criteria.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/keys/list": {
      "post": {
        "tags": [
          "Keys"
        ],
        "summary": "List all metadata keys on an ECGrid object",
        "description": "Returns all KeyValue metadata entries attached to the specified ECGrid object via KeyList.\r\nFilter by systemObject (e.g., Mailbox, Partner, NetworkEDIID) and objectId to scope the results to a single object.\r\nAll visibility levels are returned regardless of the caller's scope; entries are ordered by key name.\r\nReturns an empty list when no keys are configured for the object.",
        "operationId": "Key_List",
        "requestBody": {
          "description": "Request body containing systemObject and objectId identifying the ECGrid object to query.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KeyListRequest"
              },
              "examples": {
                "ListMailboxKeys": {
                  "summary": "List all metadata keys on a specific mailbox",
                  "value": {
                    "systemObject": "Mailbox",
                    "objectId": 147
                  }
                },
                "ListPartnerKeys": {
                  "summary": "List all metadata keys on a trading partner relationship",
                  "value": {
                    "systemObject": "Partner",
                    "objectId": 55001
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Key entries returned; data is a List<KeyValue>.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeysListResponse"
                },
                "examples": {
                  "KeyList": {
                    "summary": "All metadata keys for the specified object returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": [
                        {
                          "key": "preferred-protocol",
                          "value": "AS2",
                          "visibility": "Public",
                          "expires": null
                        },
                        {
                          "key": "auto-ack",
                          "value": "true",
                          "visibility": "Private",
                          "expires": null
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null or required fields are missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/keys/create": {
      "post": {
        "tags": [
          "Keys"
        ],
        "summary": "Create or update a metadata key on an ECGrid object",
        "description": "Creates or updates a key-value metadata entry on the specified ECGrid object using one of two ECGridOS calls\r\nbased on which TTL field is provided:\r\n(1) daysToLive provided — KeySet stores the entry with a day-granularity expiry; use -1 for no expiry;\r\n(2) minutesToLive provided — KeySetMinutes stores the entry with a minute-granularity expiry.\r\nExactly one of daysToLive or minutesToLive must be supplied; providing neither causes a 400 error.\r\nIf an entry already exists for the same key/systemObject/objectId/visibility combination, it is overwritten.\r\nReturns true on success.",
        "operationId": "Key_Create",
        "requestBody": {
          "description": "Request body containing key, systemObject, objectId, visibility, value, meta, and either daysToLive or minutesToLive.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KeyCreateKeyRequest"
              },
              "examples": {
                "SetWithDayExpiry": {
                  "summary": "(1) daysToLive - create a key that expires after 90 days",
                  "value": {
                    "key": "preferred-protocol",
                    "systemObject": "Mailbox",
                    "objectId": 147,
                    "visibility": "Public",
                    "value": "AS2",
                    "meta": "Set by integration team",
                    "daysToLive": 90
                  }
                },
                "SetWithMinuteExpiry": {
                  "summary": "(2) minutesToLive - create a short-lived key for a temporary routing override",
                  "value": {
                    "key": "temp-route-override",
                    "systemObject": "Mailbox",
                    "objectId": 147,
                    "visibility": "Private",
                    "value": "backup-endpoint",
                    "meta": "",
                    "minutesToLive": 60
                  }
                },
                "SetNoExpiry": {
                  "summary": "(3) daysToLive = -1 - create a permanent key with no expiry",
                  "value": {
                    "key": "auto-ack",
                    "systemObject": "Partner",
                    "objectId": 55001,
                    "visibility": "Private",
                    "value": "true",
                    "meta": "",
                    "daysToLive": -1
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Metadata key created or updated; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeysBoolResponse"
                },
                "examples": {
                  "KeyCreated": {
                    "summary": "Metadata key created or updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000004",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request body is null, required fields are missing, or neither daysToLive nor minutesToLive is provided.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/mailboxes/{id}": {
      "get": {
        "tags": [
          "Mailboxes"
        ],
        "summary": "Get a mailbox by id",
        "description": "Returns the ECGrid mailbox record for the supplied mailbox id.\r\nThe root mailbox (`mailboxId = 0`) is a network-level concept and is not queryable\r\nvia this endpoint — pass a mailboxId greater than 0 to retrieve a regular mailbox.\r\nCaller must be authenticated via API key or Bearer token.\r\nECGridOS authorization is enforced server-side — a caller without access to the requested\r\nmailbox receives a SOAP error surfaced as 400 with `errorInfo` populated.",
        "operationId": "Mailboxes_GetById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Mailbox id to retrieve. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Mailbox found; payload is `MailboxIDInfo`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailboxGetByIdResponse"
                },
                "examples": {
                  "MailboxFound": {
                    "summary": "Mailbox record returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": {
                        "mailboxID": 147,
                        "networkID": 12,
                        "name": "Acme Receiving",
                        "status": "Active"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id or ECGridOS returned an error for this mailbox.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Mailbox id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Mailboxes"
        ],
        "summary": "Terminate a mailbox",
        "description": "Permanently terminates the specified mailbox via ECGridOS `MailboxTerminate`.\r\nThis operation is irreversible — the mailbox and all associated EDI IDs, comm configurations,\r\nand partner relationships are deactivated.\r\nMailboxId must be greater than 0; the root mailbox (`mailboxId = 0`) cannot be\r\nterminated via this endpoint.\r\nReturns true on success.",
        "operationId": "Mailboxes_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Mailbox id to terminate. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Mailbox terminated successfully; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailboxBoolResponse"
                },
                "examples": {
                  "MailboxTerminated": {
                    "summary": "Mailbox terminated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000007",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/mailboxes/create": {
      "post": {
        "tags": [
          "Mailboxes"
        ],
        "operationId": "Mailboxes_Create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailboxAddRequest"
              },
              "examples": {
                "CreateUnderCallerNetwork": {
                  "summary": "Create a mailbox under the caller's own network",
                  "value": {
                    "userId": 501,
                    "name": "Acme Receiving"
                  }
                },
                "CreateUnderSpecificNetwork": {
                  "summary": "Create a mailbox under a specific network",
                  "value": {
                    "networkId": 12,
                    "userId": 501,
                    "name": "Acme Receiving"
                  }
                },
                "ContentPolicyBlocked": {
                  "summary": "Names that return 400 — reserved sole-token (e.g. 'api', 'google') and offensive terms anywhere (e.g. 'Acme Sucks'). Multi-word names containing reserved terms are allowed: 'Partner Google Feeds' passes.",
                  "value": {
                    "userId": 501,
                    "name": "api"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailboxCreateResponse"
                },
                "examples": {
                  "MailboxCreated": {
                    "summary": "Mailbox created; payload is the new mailbox id",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": 147
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/mailboxes/list": {
      "post": {
        "tags": [
          "Mailboxes"
        ],
        "summary": "List mailboxes",
        "description": "Returns ECGrid mailboxes visible to the caller's API key.\r\nWhen `networkId` is provided, routes to `MailboxListEx` and returns only mailboxes\r\nbelonging to that network.\r\nWithout `networkId`, routes to `MailboxList` and returns all mailboxes visible\r\nto the caller's API key.\r\nAn optional `name` filter narrows results in either mode — omit or pass an empty string to return all.\r\nPlain terms are automatically wrapped as `*term*` for substring matching, so `\"Acme\"`\r\nmatches both `\"Acme Receiving\"` and `\"Acme Shipping\"`.\r\nTo control wildcard placement (e.g., prefix-only match `\"Acme*\"`), include a `*` in\r\nthe term and it passes through unchanged.",
        "operationId": "Mailboxes_List",
        "requestBody": {
          "description": "Filter options. NetworkId scopes results to a specific network. Name is an optional name filter — plain terms are auto-wrapped as *term* for substring matching.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailboxListRequest"
              },
              "examples": {
                "AllMailboxes": {
                  "summary": "List all mailboxes visible to the caller",
                  "value": { }
                },
                "ByNetwork": {
                  "summary": "List mailboxes for a specific network",
                  "value": {
                    "networkId": 12
                  }
                },
                "ByNetworkAndName": {
                  "summary": "Filter by partial name — 'Acme' is auto-wrapped as *Acme* and matches 'Acme Receiving', 'Acme Shipping', etc.",
                  "value": {
                    "networkId": 12,
                    "name": "Acme"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Mailboxes returned; payload is an array of `MailboxIDInfo`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailboxesListResponse"
                },
                "examples": {
                  "MailboxList": {
                    "summary": "Mailboxes returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": [
                        {
                          "mailboxID": 147,
                          "networkID": 12,
                          "name": "Acme Receiving",
                          "status": "Active"
                        },
                        {
                          "mailboxID": 148,
                          "networkID": 12,
                          "name": "Acme Shipping",
                          "status": "Active"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/mailboxes/update": {
      "post": {
        "tags": [
          "Mailboxes"
        ],
        "operationId": "Mailboxes_Update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailboxUpdateRequest"
              },
              "examples": {
                "UpdateNameOnly": {
                  "summary": "Update the mailbox display name",
                  "value": {
                    "mailboxId": 147,
                    "name": "Acme Receiving — East"
                  }
                },
                "UpdateDescriptionOnly": {
                  "summary": "Update the mailbox description",
                  "value": {
                    "mailboxId": 147,
                    "description": "Primary receiving mailbox for Chicago hub"
                  }
                },
                "UpdateBoth": {
                  "summary": "Update both name and description in one call",
                  "value": {
                    "mailboxId": 147,
                    "name": "Acme Receiving — East",
                    "description": "Primary receiving mailbox for Chicago hub"
                  }
                },
                "ContentPolicyBlocked": {
                  "summary": "Names that return 400 — reserved sole-token (e.g. 'portal', 'microsoft') and offensive terms anywhere in the name. Multi-word names containing reserved terms are allowed.",
                  "value": {
                    "mailboxId": 147,
                    "name": "portal"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailboxUpdateResponse"
                },
                "examples": {
                  "MailboxUpdated": {
                    "summary": "Mailbox updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000004",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/mailboxes/update-config": {
      "post": {
        "tags": [
          "Mailboxes"
        ],
        "summary": "Update mailbox configuration settings",
        "description": "Routes to one of six ECGridOS SOAP operations depending on which fields are provided.\r\n(1) `deleteOnDownload + mailboxId` — configures auto-delete on download via `MailboxDeleteOnDownload`.\r\n(2) `managed + mailboxId` — toggles managed status via `MailboxManaged`.\r\n(3) `activate + mailboxId` — activates a mailbox via `MailboxActivate`.\r\n(4) `suspend + mailboxId` — suspends a mailbox via `MailboxSuspend`.\r\n(5) `useType + mailboxId` — sets the mailbox use type via `MailboxUse`.\r\n(6) `userId + contactType + mailboxId` — assigns a contact user via `MailboxSetContact`.\r\nExactly one valid combination must be present — an unrecognized combination returns 400\r\nwith a description of all supported field combinations. `mailboxId` is required for\r\nevery combination. Supplying both `activate: true` and `suspend: true` in the\r\nsame request is rejected with 400 — only one status action may be requested at a time.\r\nThe response `action` field identifies which of the six branches was applied.",
        "operationId": "Mailboxes_UpdateConfig",
        "requestBody": {
          "description": "Configuration payload. Exactly one of six valid field combinations is required — see remarks for all supported combinations. `mailboxId` is always required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailboxUpdateConfigRequest"
              },
              "examples": {
                "SetDeleteOnDownload": {
                  "summary": "Enable auto-delete on download",
                  "value": {
                    "mailboxId": 147,
                    "deleteOnDownload": true
                  }
                },
                "SetManaged": {
                  "summary": "Set mailbox to managed mode",
                  "value": {
                    "mailboxId": 147,
                    "managed": true
                  }
                },
                "Activate": {
                  "summary": "Activate a mailbox",
                  "value": {
                    "mailboxId": 147,
                    "activate": true
                  }
                },
                "Suspend": {
                  "summary": "Suspend a mailbox",
                  "value": {
                    "mailboxId": 147,
                    "suspend": true
                  }
                },
                "SetContact": {
                  "summary": "Assign a technical contact to a mailbox",
                  "value": {
                    "mailboxId": 147,
                    "userId": 501,
                    "contactType": "Technical"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Configuration updated successfully; `data` is true, `action` identifies the operation that was applied.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailboxBoolResponse"
                },
                "examples": {
                  "ActivateSuccess": {
                    "summary": "Mailbox activated — action field confirms which branch fired",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000005",
                      "success": true,
                      "data": true,
                      "action": "activate"
                    }
                  },
                  "SuspendSuccess": {
                    "summary": "Mailbox suspended",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000006",
                      "success": true,
                      "data": true,
                      "action": "suspend"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing `mailboxId`, conflicting activate+suspend flags, unrecognized field combination, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/mailboxes/x12-delimiters": {
      "post": {
        "tags": [
          "Mailboxes"
        ],
        "summary": "Set X12 delimiters for a mailbox",
        "description": "Configures the X12 EDI delimiter characters for the specified mailbox.\r\nAll three delimiter values are required and supplied as byte values (ASCII character codes).\r\n`SegTerm` is the segment terminator, `ElmSep` is the element separator, and\r\n`SubElmSep` is the sub-element separator.\r\nMailbox-level delimiters override any network-level delimiter settings for outbound\r\nX12 interchanges from this mailbox.",
        "operationId": "Mailboxes_SetX12Delimiters",
        "requestBody": {
          "description": "MailboxId and all three delimiter byte values are required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailboxX12DelimitersRequest"
              },
              "examples": {
                "StandardDelimiters": {
                  "summary": "Standard X12 delimiters — tilde, asterisk, greater-than",
                  "value": {
                    "mailboxId": 147,
                    "segTerm": 126,
                    "elmSep": 42,
                    "subElmSep": 62
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "X12 delimiters updated successfully; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailboxBoolResponse"
                },
                "examples": {
                  "DelimitersSet": {
                    "summary": "X12 delimiters updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000006",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/networks/{id}": {
      "get": {
        "tags": [
          "Networks"
        ],
        "summary": "Get a network by id",
        "description": "Returns the ECGrid network record for the supplied network id.\r\nThe optional `getLog` flag switches the underlying SOAP call to `NetworkInfoWithLog`,\r\nwhich includes additional activity log data in the response.\r\nCaller must be authenticated via API key or Bearer token.\r\nECGridOS authorization is enforced server-side — a caller without access to the requested\r\nnetwork receives a SOAP error surfaced as 400 with `errorInfo` populated.",
        "operationId": "Networks_GetById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Network id to retrieve. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "getLog",
            "in": "query",
            "description": "When true, returns extended network info including activity log. Defaults to false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Network found; payload is `NetworkIDInfo`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetworkGetByIdResponse"
                },
                "examples": {
                  "NetworkFound": {
                    "summary": "Network record returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": {
                        "networkID": 12,
                        "name": "Acme Logistics",
                        "location": "Chicago, IL",
                        "status": "Active"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id or ECGridOS returned an error for this network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Network id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/networks/list": {
      "post": {
        "tags": [
          "Networks"
        ],
        "summary": "List networks",
        "description": "Returns all ECGrid networks visible to the caller's API key.\r\nWhen `getOutages` is true, routes to `NetworkOutageList` and returns only networks\r\ncurrently reporting an outage; the `name` filter is ignored in this mode.\r\nWhen `getOutages` is false (default), routes to `NetworkList` and accepts an optional\r\n`name` filter of up to 40 characters — an empty string returns all networks.",
        "operationId": "Networks_List",
        "requestBody": {
          "description": "List filter options. All fields are optional — pass an empty body or omit for all networks.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkListRequest"
              },
              "examples": {
                "AllNetworks": {
                  "summary": "List all networks — no filter",
                  "value": {
                    "name": "",
                    "getOutages": false
                  }
                },
                "ByName": {
                  "summary": "Filter networks by name",
                  "value": {
                    "name": "Acme",
                    "getOutages": false
                  }
                },
                "OutagesOnly": {
                  "summary": "Return only networks reporting an outage",
                  "value": {
                    "getOutages": true
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Networks returned; payload is an array of `NetworkIDInfo`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetworksListResponse"
                },
                "examples": {
                  "NetworkList": {
                    "summary": "Networks returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": [
                        {
                          "networkID": 12,
                          "name": "Acme Logistics",
                          "location": "Chicago, IL",
                          "status": "Active"
                        },
                        {
                          "networkID": 34,
                          "name": "Beta Supply Co",
                          "location": "Dallas, TX",
                          "status": "Active"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/networks/get-contact": {
      "post": {
        "tags": [
          "Networks"
        ],
        "summary": "Get a network contact user by contact type",
        "description": "Returns the ECGrid user assigned to the specified contact role for the given network.\r\nContact type maps to the ECGridOS `NetworkContactType` enum — valid values include\r\nTechnical, Billing, and Administrative.\r\nThe caller must be authenticated and have visibility to the target network.\r\nECGridOS authorization is enforced server-side; unauthorized access surfaces as 400 with\r\n`errorInfo` populated.",
        "operationId": "Networks_GetContact",
        "requestBody": {
          "description": "NetworkId and ContactType are required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkGetContactRequest"
              },
              "examples": {
                "TechnicalContact": {
                  "summary": "Get the technical contact for a network",
                  "value": {
                    "networkId": 12,
                    "contactType": "Technical"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Contact user found; payload is `UserIDInfo`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetworksGetContactResponse"
                },
                "examples": {
                  "ContactFound": {
                    "summary": "Contact user returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": {
                        "userID": 501,
                        "firstName": "Jane",
                        "lastName": "Smith",
                        "email": "jsmith@example-company.com"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/networks/update-config": {
      "post": {
        "tags": [
          "Networks"
        ],
        "summary": "Update network configuration settings",
        "description": "Routes to one of three ECGridOS SOAP operations depending on which fields are provided.\r\nSupply `networkId + userId + contactType` to assign a contact user to a role;\r\n`networkId + deleteOnDownload` to configure auto-delete behavior on download;\r\nor `networkId + url + websiteType` to set the network's website URL.\r\nExactly one valid combination must be present — an unrecognized combination returns 400\r\nwith a description of all supported field combinations.",
        "operationId": "Networks_UpdateConfig",
        "requestBody": {
          "description": "Configuration payload. Exactly one of three valid field combinations is required: (networkId + userId + contactType), (networkId + deleteOnDownload), or (networkId + url + websiteType).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkUpdateConfigRequest"
              },
              "examples": {
                "SetContact": {
                  "summary": "Assign a technical contact to a network",
                  "value": {
                    "networkId": 12,
                    "userId": 501,
                    "contactType": "Technical"
                  }
                },
                "SetDeleteOnDownload": {
                  "summary": "Enable auto-delete on download for a network",
                  "value": {
                    "networkId": 12,
                    "deleteOnDownload": true
                  }
                },
                "SetWebsite": {
                  "summary": "Set the network website URL",
                  "value": {
                    "networkId": 12,
                    "url": "https://www.example-company.com",
                    "websiteType": "Corporate"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Configuration updated successfully; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetworkBoolResponse"
                },
                "examples": {
                  "ConfigUpdated": {
                    "summary": "Configuration updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000004",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unrecognized field combination, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/networks/x12-delimiters": {
      "post": {
        "tags": [
          "Networks"
        ],
        "summary": "Set X12 delimiters for a network",
        "description": "Configures the X12 EDI delimiter characters for the specified network.\r\nAll three delimiter values are required and supplied as byte values (ASCII character codes).\r\n`SegTerm` is the segment terminator, `ElmSep` is the element separator, and\r\n`SubElmSep` is the sub-element separator.\r\nChanges apply to all outbound X12 interchanges generated for the network.",
        "operationId": "Networks_SetX12Delimiters",
        "requestBody": {
          "description": "NetworkId and all three delimiter byte values are required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkX12DelimitersRequest"
              },
              "examples": {
                "StandardDelimiters": {
                  "summary": "Standard X12 delimiters — tilde segment terminator, asterisk element separator, greater-than sub-element separator",
                  "value": {
                    "networkId": 12,
                    "segTerm": 126,
                    "elmSep": 42,
                    "subElmSep": 62
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "X12 delimiters updated successfully; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetworkBoolResponse"
                },
                "examples": {
                  "DelimitersSet": {
                    "summary": "X12 delimiters updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000005",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/networks": {
      "put": {
        "tags": [
          "Networks"
        ],
        "operationId": "Networks_Update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NetworkUpdateRequest"
              },
              "examples": {
                "UpdateNameAndLocation": {
                  "summary": "Update network display name and location",
                  "value": {
                    "networkId": 12,
                    "name": "Acme Logistics Group",
                    "location": "Chicago, IL"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetworkBoolResponse"
                },
                "examples": {
                  "NetworkUpdated": {
                    "summary": "Network updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000006",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/find-mailbagcontrolid": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "Find parcels by mailbag control ID",
        "description": "Searches the parcel store for parcels matching the supplied `mailbagControlId` within\r\na specific mailbox. When `beginDate` is provided, routes to\r\n`ParcelFindMailbagControlIDTo` and restricts results to the supplied date range;\r\notherwise routes to `ParcelFindMailbagControlID`, which returns all matching parcels\r\nregardless of date.\r\nReturns a list of `ParcelIDInfo` records. An empty list is a valid success response\r\nwhen no parcels match the criteria.",
        "operationId": "Parcel_FindByMailbagControlId",
        "requestBody": {
          "description": "NetworkID and MailboxID are required. Provide BeginDate and EndDate to restrict to a date window.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParcelFindMailbagControlIDRequest"
              },
              "examples": {
                "FindByControlId": {
                  "summary": "Find all parcels in a mailbox with a specific MailbagControlID",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "mailbagControlId": "CTRL-2026-00142"
                  }
                },
                "FindByControlIdAndDateRange": {
                  "summary": "Find parcels by MailbagControlID within a date window",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "mailbagControlId": "CTRL-2026-00142",
                    "beginDate": "2026-07-01T00:00:00Z",
                    "endDate": "2026-07-13T23:59:59Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching parcels returned; payload is a list of ParcelIDInfo records.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsParcelIDInfoListResponse"
                },
                "examples": {
                  "ParcelsFound": {
                    "summary": "Matching parcels returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "parcelId": 9876543210,
                          "networkId": 12,
                          "mailboxId": 147,
                          "mailbagControlId": "CTRL-2026-00142",
                          "status": "Downloaded",
                          "direction": "InBox"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing required fields or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/{id}": {
      "get": {
        "tags": [
          "Parcels"
        ],
        "summary": "Get a parcel record by id",
        "description": "Returns the ECGrid parcel record for the supplied parcel id.\r\nA parcel is a physical file container that moves through ECGrid — it sits in a mailbox\r\ninbox or outbox and contains one or more interchanges. Use this endpoint when you already\r\nknow the parcel id. For discovery by date range, use `inbox-list` or `outbox-list`.\r\nCaller must be authenticated via API key or Bearer token.",
        "operationId": "Parcel_GetById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Parcel id to retrieve. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Parcel found; payload is `ParcelIDInfo`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsGetByIdResponse"
                },
                "examples": {
                  "ParcelFound": {
                    "summary": "Parcel record returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": {
                        "parcelID": 98765,
                        "ecgridIDFrom": 1234567,
                        "ecgridIDTo": 2345678,
                        "status": "InBoxReady",
                        "fileName": "INV_20260602.edi",
                        "fileSize": 4096,
                        "dateReceived": "2026-06-02T10:00:00Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Parcel id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/cancel/{id}": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "Cancel a parcel pending download",
        "description": "Cancels a parcel that is pending download in the inbox via `ParcelDownloadCancel`,\r\nremoving it from the pending-download queue.\r\nCancellation is only possible when the parcel is in a pre-download state. If the parcel\r\nhas already been downloaded and confirmed, the cancellation will fail — ECGridOS will\r\nreturn an error surfaced as 400.\r\nNote: this endpoint uses POST (not GET) because cancellation mutates parcel state.\r\nReturns true on success.",
        "operationId": "Parcel_Cancel",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Parcel id to cancel. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Parcel cancelled; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsBoolResponse"
                },
                "examples": {
                  "ParcelCancelled": {
                    "summary": "Parcel cancelled successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id, parcel already downloaded, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Parcel id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/confirm": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "Confirm a parcel download",
        "description": "Marks a downloaded parcel as confirmed so the platform removes it from the pending-download queue.\r\nRouting is controlled by the optional `status` field: (1) omit `status` to call\r\n`ParcelDownloadConfirm`, which marks the parcel downloaded without touching acknowledgment\r\nstate; (2) supply `status` to call `ParcelDownloadConfirmPendingAck`, which additionally\r\nstamps the parcel with the specified ECG_REST_V1.ParcelStatus value and resolves any pending\r\nacknowledgment workflow.\r\nReturns `true` on success.",
        "operationId": "Parcel_Confirm",
        "requestBody": {
          "description": "Confirm payload. `parcelId` is required — the ECGrid parcel ID to confirm. Include `status` only when confirming a pending acknowledgment; omit it for a standard download confirm.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParcelConfirmRequest"
              },
              "examples": {
                "StandardConfirm": {
                  "summary": "Confirm a download — no status, uses ParcelDownloadConfirm",
                  "value": {
                    "parcelId": 98765
                  }
                },
                "PendingAckConfirm": {
                  "summary": "Confirm a pending acknowledgment and stamp a status — uses ParcelDownloadConfirmPendingAck",
                  "value": {
                    "parcelId": 98765,
                    "status": "as2MDNConfirmed"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Confirmation succeeded; `data` is `true`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsBoolResponse"
                },
                "examples": {
                  "ConfirmSuccess": {
                    "summary": "Parcel confirmed successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN8P3B2C4D:00000001",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing `parcelId`, or the SOAP backend rejected the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/download": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "Download a parcel's file content",
        "description": "Downloads the file content of a parcel via ECGridOS and returns it as a base64-encoded\r\n`FileInfo` payload.\r\nWhen `noUpdate` is false (default), routes to `ParcelDownloadA` then immediately\r\ncalls `ParcelDownloadConfirm` — the parcel is marked as downloaded in a single call\r\nand the response is an array of two results (file data + confirm status).\r\nWhen `noUpdate` is true, routes to `ParcelDownloadNoUpdateA` — the file content\r\nis returned without marking the parcel as downloaded. Use this for preview or re-read\r\nscenarios where you do not want to advance the parcel state.",
        "operationId": "Parcel_Download",
        "requestBody": {
          "description": "ParcelId is required. Set noUpdate to true to read without advancing download state.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParcelDownloadRequest"
              },
              "examples": {
                "DownloadAndConfirm": {
                  "summary": "Download parcel and mark as downloaded (default)",
                  "value": {
                    "parcelId": 98765,
                    "noUpdate": false
                  }
                },
                "DownloadNoUpdate": {
                  "summary": "Read file content without advancing download state",
                  "value": {
                    "parcelId": 98765,
                    "noUpdate": true
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "File content returned. When noUpdate=false, payload is an array of [FileInfo, confirmResult]; when noUpdate=true, payload is FileInfo.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsDownloadResponse"
                },
                "examples": {
                  "DownloadSuccess": {
                    "summary": "File content returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": {
                        "fileName": "INV_20260602.edi",
                        "fileSize": 4096,
                        "fileContent": "base64encodedcontent=="
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parcel id or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Parcel id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/reset-to-inbox/{id}": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "Reset a parcel back to inbox pending state",
        "description": "Resets a previously downloaded parcel back to the pending-download state via\r\n`ParcelDownloadReset`, making it available for download again.\r\nUse this when a download was acknowledged in error, a downstream process failed after\r\ndownload, or a trading partner needs the file re-delivered through the normal ECGrid\r\nparcel pickup flow.\r\nOnly parcels that have been downloaded (confirmed) can be reset — parcels in other\r\nstates will result in an ECGridOS error.\r\nNote: this endpoint uses POST (not GET) because reset mutates parcel state.\r\nReturns true on success.",
        "operationId": "Parcel_Reset",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Parcel id to reset. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Parcel reset to inbox pending; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsBoolResponse"
                },
                "examples": {
                  "ParcelReset": {
                    "summary": "Parcel reset to inbox pending",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000004",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id, parcel not in a resettable state, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Parcel id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/manifest/{id}": {
      "get": {
        "tags": [
          "Parcels"
        ],
        "summary": "Get the interchange manifest for a parcel",
        "description": "Returns a list of `ManifestInfo` records describing each interchange envelope\r\ncontained within the specified parcel. Use this to inspect parcel contents — sender,\r\nreceiver, document type, and interchange count — without downloading the full file.",
        "operationId": "Parcel_GetManifest",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ECGrid parcel ID. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Manifest returned; payload is a list of ManifestInfo records.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsManifestResponse"
                },
                "examples": {
                  "ManifestReturned": {
                    "summary": "Interchange manifest for the parcel — one entry per interchange envelope",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "interchangeId": 55001,
                          "ecgridIdFrom": 1234567,
                          "ecgridIdTo": 2345678,
                          "isaControlNumber": "000000001",
                          "direction": "InBox",
                          "transactionSetCount": 3
                        },
                        {
                          "interchangeId": 55002,
                          "ecgridIdFrom": 1234567,
                          "ecgridIdTo": 2345678,
                          "isaControlNumber": "000000002",
                          "direction": "InBox",
                          "transactionSetCount": 1
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parcel ID or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Parcel not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/send-test-file": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "Send a test EDI file between two ECGrid IDs",
        "description": "Generates and queues a synthetic test EDI file from one ECGrid ID to another via\r\n`ParcelTest`. Use this to verify routing and trading-partner configuration without\r\nconstructing a real EDI payload. The test file uses the specified `documentType`\r\nto select the appropriate EDI standard (X12, EDIFACT, etc.).\r\nReturns the ECGrid ParcelID assigned to the test parcel.",
        "operationId": "Parcel_SendTestFile",
        "requestBody": {
          "description": "ECGridIDFrom, ECGridIDTo, and DocumentType are required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParcelSendTestFileRequest"
              },
              "examples": {
                "SendX12TestFile": {
                  "summary": "Send a synthetic X12 test interchange between two ECGrid IDs",
                  "value": {
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": 2345678,
                    "documentType": "X12"
                  }
                },
                "SendEDIFACTTestFile": {
                  "summary": "Send a synthetic EDIFACT test interchange",
                  "value": {
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": 2345678,
                    "documentType": "EDIFACT"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Test parcel queued; payload is the assigned ECGrid ParcelID (long).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsLongResponse"
                },
                "examples": {
                  "TestFileSent": {
                    "summary": "Test parcel injected — data is the assigned ParcelID",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": 9876543299
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request fields or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/acknowledgment-note": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "Attach a note to a parcel acknowledgment",
        "description": "Attaches a subject and free-text note to the acknowledgment record of the specified parcel\r\nvia `ParcelAcknowledgmentNote`. Use this when a trading partner needs to annotate a\r\nreceived parcel with processing status, rejection reasons, or custom metadata.\r\nThe note is stored against the parcel and is visible to both sides of the trading relationship.\r\nReturns true on success.",
        "operationId": "Parcel_AcknowledgmentNote",
        "requestBody": {
          "description": "ParcelID is required. Subject and Note are optional strings.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParcelAcknowledgmentNoteRequest"
              },
              "examples": {
                "AttachRejectionNote": {
                  "summary": "Attach a rejection reason note to a parcel acknowledgment",
                  "value": {
                    "parcelId": 9876543210,
                    "subject": "Quantity mismatch",
                    "note": "Invoice qty does not match PO qty — rejecting for correction"
                  }
                },
                "AttachApprovalNote": {
                  "summary": "Attach an approval note",
                  "value": {
                    "parcelId": 9876543210,
                    "subject": "",
                    "note": "Parcel accepted and processed successfully"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Note attached; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsBoolResponse"
                },
                "examples": {
                  "NoteAttached": {
                    "summary": "Acknowledgment note saved",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parcel ID or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/inbox-list": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "List archived parcels in the inbox by date range",
        "description": "Returns ECGrid parcels from the inbox archive filtered by a date range, EDI IDs, and\r\noptional pagination. Unlike `pending-inbox-list` (which returns only parcels\r\ncurrently awaiting download), `inbox-list` queries the historical archive of all\r\nparcels received within the date window — including already-downloaded parcels.\r\nUse this for auditing, reconciliation, or troubleshooting past deliveries.\r\nRoutes to one of several SOAP archive variants depending on supplied fields:\r\n(1) `networkId + mailboxId + beginDate + endDate + desc=true` → `ParcelInBoxArchiveDescEx` (descending order).\r\n(2) `networkId + mailboxId + beginDate + endDate + short=true` → `ParcelInBoxArchiveExShort` (compact result).\r\n(3) `networkId + mailboxId + beginDate + endDate` → `ParcelInBoxArchiveEx`.\r\n(4) `networkId + mailboxId` (no date range) → `ParcelInBoxEx`.\r\n(5) No networkId/mailboxId → `ParcelInBoxArchive` (caller-scoped).\r\n`beginDate` is required. Supply `timeZoneId` or `utcOffsetMinutes` to convert\r\nlocal times to UTC; omit both to treat dates as UTC.",
        "operationId": "Parcel_InboxList",
        "requestBody": {
          "description": "BeginDate is required. Provide networkId+mailboxId to scope to a specific mailbox. See remarks for full routing rules.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParcelListRequest"
              },
              "examples": {
                "ByDateRange": {
                  "summary": "List inbox parcels for a mailbox in a date range",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "beginDate": "2026-06-01T00:00:00Z",
                    "endDate": "2026-06-02T23:59:59Z",
                    "ecgridIdFrom": -1,
                    "ecgridIdTo": -1,
                    "timeZoneId": "UTC"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Inbox parcels returned; payload is `ParcelIDInfoCollection`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsListResponse"
                },
                "examples": {
                  "InboxList": {
                    "summary": "Inbox parcels returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000005",
                      "success": true,
                      "data": {
                        "count": 2,
                        "parcelIDs": [
                          {
                            "parcelID": 98765,
                            "status": "InBoxReady",
                            "fileName": "INV_20260602.edi"
                          },
                          {
                            "parcelID": 98766,
                            "status": "InBoxDownLoaded",
                            "fileName": "PO_20260602.edi"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing required parameters, conflicting timezone fields, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/outbox-list": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "List archived parcels in the outbox by date range",
        "description": "Returns ECGrid parcels from the outbox archive filtered by a date range, EDI IDs, and\r\noptional pagination. Unlike `pending-inbox-list` (inbound pending) and `inbox-list`\r\n(inbound archive), `outbox-list` queries parcels sent FROM the mailbox TO trading partners.\r\nUse this for auditing sent EDI files, verifying delivery, or investigating transmission errors.\r\nRoutes to one of several SOAP archive variants depending on supplied fields:\r\n(1) `ecgridIdFrom + ecgridIdTo + networkId + mailboxId + desc=true` → `ParcelOutBoxArchiveDescEx`.\r\n(2) `ecgridIdFrom + ecgridIdTo + networkId + mailboxId + short=true` → `ParcelOutBoxArchiveExShort`.\r\n(3) `ecgridIdFrom + ecgridIdTo + networkId + mailboxId` → `ParcelOutBoxArchiveEx`.\r\n(4) `ecgridIdFrom + ecgridIdTo` (no networkId/mailboxId) → `ParcelOutBoxArchive`.\r\n(5) `networkId + mailboxId + beginDate + endDate` (no ECGrid IDs) → `ParcelOutBoxErrorEx` (error parcels).\r\n(6) `networkId + mailboxId` (no dates, no ECGrid IDs) → `ParcelOutBoxInProcessEx`.\r\n(7) `beginDate + endDate` only → `ParcelOutBoxError`.\r\n(8) No filters → `ParcelOutBoxInProcess` (parcels currently in transmission).\r\n`beginDate` is required. Supply `timeZoneId` or `utcOffsetMinutes` to convert\r\nlocal times to UTC; omit both to treat dates as UTC.",
        "operationId": "Parcel_OutboxList",
        "requestBody": {
          "description": "BeginDate is required. Provide ecgridIdFrom+ecgridIdTo for archive queries. See remarks for full routing rules.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParcelListRequest"
              },
              "examples": {
                "ByDateRange": {
                  "summary": "List outbox parcels for a mailbox in a date range",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "beginDate": "2026-06-01T00:00:00Z",
                    "endDate": "2026-06-02T23:59:59Z",
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": 2345678,
                    "timeZoneId": "UTC"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Outbox parcels returned; payload is `ParcelIDInfoCollection`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsListResponse"
                },
                "examples": {
                  "OutboxList": {
                    "summary": "Outbox parcels returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000006",
                      "success": true,
                      "data": {
                        "count": 1,
                        "parcelIDs": [
                          {
                            "parcelID": 98767,
                            "status": "OutBoxSent",
                            "fileName": "856_20260602.edi"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing required parameters, conflicting timezone fields, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/pending-inbox-list": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "List parcels pending in the inbox",
        "description": "Returns parcels waiting in the mailbox inbox. The SOAP call selected depends on which fields\r\nare populated in the request body: (1) all five scope fields (`networkId`, `mailboxId`,\r\n`ecgridIdFrom`, `ecgridIdTo`, and `status`) → calls `ParcelInBoxExShort`,\r\na compact result filtered by sender/recipient ECGrid IDs and parcel status; (2) `networkId`\r\nand `mailboxId` only → calls `ParcelInBoxEx`, the full result scoped to that mailbox;\r\n(3) no scoping fields → calls `ParcelInBox`, returning all pending parcels visible to the\r\nauthenticated API key.",
        "operationId": "Parcel_PendingInboxList",
        "requestBody": {
          "description": "Inbox list payload. All fields are optional; the combination present selects the SOAP variant — see remarks for the three routing paths.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParcelInboxPendingListRequest"
              },
              "examples": {
                "MailboxScope": {
                  "summary": "Network + mailbox only — routes to ParcelInBoxEx, full result for that mailbox",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147
                  }
                },
                "ApiKeyScope": {
                  "summary": "No scoping fields — routes to ParcelInBox, all pending parcels for the API key",
                  "value": { }
                },
                "AllScopeFields": {
                  "summary": "All five fields — routes to ParcelInBoxExShort, filtered by ECGrid IDs and status",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": 7654321,
                    "status": "InBoxReady"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Pending inbox parcels returned; `data` is a `ParcelIDInfoCollection`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsListResponse"
                },
                "examples": {
                  "PendingInboxList": {
                    "summary": "Pending inbox parcels returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN8P3B2C4D:00000002",
                      "success": true,
                      "data": {
                        "parcelIDs": [
                          {
                            "parcelID": 98765,
                            "networkIDFrom": 12,
                            "mailboxIDFrom": 147,
                            "networkIDTo": 34,
                            "mailboxIDTo": 201,
                            "fileName": "INV_20260507_001.edi",
                            "status": "InBoxReady",
                            "dateReceived": "2026-05-07T14:22:00Z"
                          }
                        ],
                        "count": 1
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or the SOAP backend rejected the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/set-mailbagcontrolid": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "Set the mailbag control ID on a parcel",
        "description": "Assigns or updates the mailbag control ID on the specified parcel via\r\n`ParcelSetMailbagControlID`. The mailbag control ID is a customer-defined tracking\r\nstring that can be used later with `find-mailbagcontrolid` to retrieve the parcel.\r\nUseful when uploading parcels that need to be correlated with an external batch or order number.\r\nReturns true on success.",
        "operationId": "Parcel_SetMailbagControlId",
        "requestBody": {
          "description": "ParcelID is required. MailbagControlID is the string to assign; pass empty string to clear it.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParcelSetMailbagControlIDRequest"
              },
              "examples": {
                "SetControlId": {
                  "summary": "Assign a MailbagControlID to a parcel for external cross-reference tracking",
                  "value": {
                    "parcelId": 9876543210,
                    "mailbagControlId": "CTRL-2026-00143"
                  }
                },
                "ClearControlId": {
                  "summary": "Clear the MailbagControlID on a parcel",
                  "value": {
                    "parcelId": 9876543210,
                    "mailbagControlId": ""
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Mailbag control ID set; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsBoolResponse"
                },
                "examples": {
                  "ControlIdSet": {
                    "summary": "MailbagControlID updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parcel ID or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/update": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "Update the status or local status of a parcel",
        "description": "Updates the parcel's status in ECGrid. Routes to one of two SOAP variants based on\r\nsupplied fields: (1) when `transLogOnly` is present, routes to\r\n`ParcelUpdateStatus`, which stamps the parcel with the supplied `status` value\r\nand optionally logs only to the transaction log. (2) when `transLogOnly` is absent,\r\nroutes to `ParcelUpdateLocalStatus`, which sets the customer-defined local status\r\ninteger.\r\nReturns true on success.",
        "operationId": "Parcel_Update",
        "requestBody": {
          "description": "ParcelID is required. Provide transLogOnly+status for ParcelUpdateStatus, or statusLocal for ParcelUpdateLocalStatus.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParcelUpdateRequest"
              },
              "examples": {
                "UpdateLocalStatus": {
                  "summary": "Record a customer-side processing status without affecting ECGrid network delivery state",
                  "value": {
                    "parcelId": 9876543210,
                    "statusLocal": 200
                  }
                },
                "UpdateNetworkStatus": {
                  "summary": "Write a formal status entry to the ECGridOS transaction log",
                  "value": {
                    "parcelId": 9876543210,
                    "status": "Downloaded",
                    "transLogOnly": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Parcel status updated; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsBoolResponse"
                },
                "examples": {
                  "StatusUpdated": {
                    "summary": "Parcel status updated",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request fields or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/parcels/upload": {
      "post": {
        "tags": [
          "Parcels"
        ],
        "summary": "Upload a parcel for outbound EDI delivery",
        "description": "Uploads an EDI file to ECGrid for outbound delivery and returns the assigned parcel id\r\n(int64) via one of three SOAP variants.\r\nThe file content must be base64-encoded in `contentBase64`. There is no enforced\r\nsize limit on this endpoint — `[DisableRequestSizeLimit]` bypasses the global 4 MB\r\nKestrel cap for legitimate large EDI files.\r\nRoutes to one of three SOAP operations based on supplied fields:\r\n(1) `networkId` → `ParcelUploadExA`, uploads under the specified network and optional mailbox.\r\n(2) `ecgridIdFrom + ecgridIdTo` (no networkId) → `ParcelUploadMftA`, uploads with explicit sender/receiver routing.\r\n(3) Neither → `ParcelUploadA`, uploads using the caller's default routing.\r\nReturns the new parcel id as an int64 on success.",
        "operationId": "Parcel_Upload",
        "requestBody": {
          "description": "FileName and ContentBase64 are required. Provide networkId or ecgridIdFrom+ecgridIdTo to control routing.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParcelUploadRequest"
              },
              "examples": {
                "UploadWithRouting": {
                  "summary": "Upload an EDI file with explicit sender/receiver routing",
                  "value": {
                    "ecgridIdFrom": 1234567,
                    "ecgridIdTo": 2345678,
                    "fileName": "PO_20260602.edi",
                    "contentBase64": "SVNBKjAw..."
                  }
                },
                "UploadToNetwork": {
                  "summary": "Upload an EDI file under a specific network and mailbox",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "fileName": "PO_20260602.edi",
                    "contentBase64": "SVNBKjAw..."
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Parcel uploaded; payload is the new parcel id (int64).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParcelsUploadResponse"
                },
                "examples": {
                  "ParcelUploaded": {
                    "summary": "Parcel uploaded; payload is the new parcel id",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000007",
                      "success": true,
                      "data": 98770
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/partners/{id}": {
      "delete": {
        "tags": [
          "Partners"
        ],
        "summary": "Terminate a trading partner relationship",
        "description": "Cancels the ECGrid partner (interconnect) record identified by the supplied interconnect id\r\nvia `InterconnectCancel`. A partner record represents an established EDI relationship\r\nbetween two ECGrid IDs — terminating it prevents future interchange routing between those IDs.\r\nThis operation is irreversible. The interconnect id must be greater than 0.\r\nReturns true on success.",
        "operationId": "Partner_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Interconnect id of the partner relationship to terminate. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Partner relationship terminated; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnersBoolResponse"
                },
                "examples": {
                  "PartnerTerminated": {
                    "summary": "Partner relationship terminated",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Interconnect id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Partners"
        ],
        "summary": "Get a trading partner relationship by interconnect id",
        "description": "Returns the ECGrid partner (interconnect) record for the supplied interconnect id.\r\nA partner record represents an established EDI routing relationship between two ECGrid IDs —\r\nwithout a partner record, interchange routing between those IDs is rejected by the platform.\r\nCaller must be authenticated via API key or Bearer token.\r\nECGridOS authorization is enforced server-side — a caller without visibility to the\r\nrequested interconnect receives a SOAP error surfaced as 400 with `errorInfo` populated.",
        "operationId": "Partner_GetById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Interconnect id to retrieve. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Partner record found; payload is `InterconnectIDInfo`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnersGetByIdResponse"
                },
                "examples": {
                  "PartnerFound": {
                    "summary": "Partner relationship record returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": {
                        "interconnectID": 55001,
                        "ecgridID1": 1234567,
                        "ecgridID2": 2345678,
                        "status": "Active",
                        "reference": "PO-2026-001"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Interconnect id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Partners"
        ],
        "summary": "Update a trading partner relationship",
        "description": "Updates the status, authorization level, and note of an existing ECGrid partner\r\n(interconnect) record via `InterconnectUpdate`. Use this to move a relationship\r\nthrough its lifecycle — for example completing a pending partnership (`Completed`)\r\nor canceling it (`Canceled`).\r\nThe interconnect id is supplied in the route; `status` is required. `authLevel`\r\ncontrols the minimum permission tier required to view the relationship — pass\r\n`NoChange` to leave it untouched. An optional `note` records why the change was\r\nmade. The `emailTo` field controls notification delivery — set to `NoEMail` to\r\nskip notification; set to `OtherEMail` and supply `otherEmailAddress` to notify a\r\nspecific address.\r\nReturns true on success.",
        "operationId": "Partner_Update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Interconnect id of the partner relationship to update. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "description": "Update payload. Status and EmailTo are required; AuthLevel, Note, and OtherEmailAddress are optional.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerUpdateRequest"
              },
              "examples": {
                "ActivatePartner": {
                  "summary": "Activate a pending partner relationship and record why",
                  "value": {
                    "status": "Active",
                    "authLevel": "NoChange",
                    "note": "Both parties confirmed AS2 setup; activating relationship.",
                    "emailTo": "NoEMail",
                    "otherEmailAddress": null
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Partner relationship updated; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnersBoolResponse"
                },
                "examples": {
                  "PartnerUpdated": {
                    "summary": "Partner relationship updated",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000004",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id, invalid request payload, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Interconnect id not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/partners": {
      "post": {
        "tags": [
          "Partners"
        ],
        "summary": "Create a trading partner relationship",
        "description": "Establishes a new ECGrid partner (interconnect) record between two ECGrid IDs via\r\n`InterconnectAdd`. A partner record is required before the platform will route\r\ninterchanges between the two IDs — creating it enables EDI data exchange between them.\r\n`ecgridId1` and `ecgridId2` are the ECGrid integer IDs of the two trading\r\npartners. `contactName` and `contactEmail` optionally identify the person\r\nresponsible for the relationship (both may be empty). Set `preconfirm` to true to\r\nbypass the confirmation step and activate the relationship immediately.\r\nReturns the created `InterconnectIDInfo` record on success.",
        "operationId": "Partner_Create",
        "requestBody": {
          "description": "Partner creation payload. EcgridId1 and EcgridId2 are required; ContactName and ContactEmail are optional.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerAddRequest"
              },
              "examples": {
                "CreatePartner": {
                  "summary": "Establish a new trading partner relationship between two EDI IDs",
                  "value": {
                    "ecgridId1": 1234567,
                    "ecgridId2": 2345678,
                    "reference": "PO-2026-001",
                    "contactName": "Jane Smith",
                    "contactEmail": "jsmith@example-company.com",
                    "notifyContact": true,
                    "preconfirm": false,
                    "note": "New partner setup for Q3 2026"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Partner relationship created; payload is `InterconnectIDInfo`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnersCreateResponse"
                },
                "examples": {
                  "PartnerCreated": {
                    "summary": "Partner relationship created",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": {
                        "interconnectID": 55001,
                        "ecgridID1": 1234567,
                        "ecgridID2": 2345678,
                        "status": "Pending"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "One or both ECGrid IDs not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/partners/count": {
      "post": {
        "tags": [
          "Partners"
        ],
        "summary": "Count trading partner relationships within a time window",
        "description": "Returns a tabular count of ECGrid partner (interconnect) records active within the\r\nspecified number of days. The count reflects the number of established EDI relationships,\r\nnot the number of interchanges exchanged — it is a measure of partner connectivity, not\r\ntransaction volume.\r\nWhen `networkId`, `mailboxId`, and `ecgridId` are all supplied, routes to\r\n`InterconnectCountEx` which scopes the count to a specific network, mailbox, and EDI ID.\r\nOtherwise routes to `InterconnectCount` which counts across all partners visible to\r\nthe caller's API key within `maxDays`.\r\nThe response payload is a tabular data structure (columns + rows) derived from a DataSet.",
        "operationId": "Partner_Count",
        "requestBody": {
          "description": "MaxDays is required. Provide NetworkId, MailboxId, and EcgridId together to scope the count to a specific EDI ID.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerCountRequest"
              },
              "examples": {
                "CountAll": {
                  "summary": "Count all partner relationships visible to caller in last 30 days",
                  "value": {
                    "maxDays": 30
                  }
                },
                "CountByEDIId": {
                  "summary": "Count partner relationships for a specific EDI ID",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "ecgridId": 1234567,
                    "maxDays": 90
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Partner count returned; payload is an array of table results.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnersCountResponse"
                },
                "examples": {
                  "CountReturned": {
                    "summary": "Tabular partner count returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000004",
                      "success": true,
                      "data": [
                        {
                          "columns": [
                            "PartnerCount",
                            "ActiveCount"
                          ],
                          "rows": [
                            {
                              "PartnerCount": 42,
                              "ActiveCount": 38
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/partners/list": {
      "post": {
        "tags": [
          "Partners"
        ],
        "summary": "List trading partner relationships by EDI ID or status",
        "description": "Returns ECGrid partner (interconnect) records filtered by EDI ID pair or status.\r\nRoutes to one of four SOAP operations depending on supplied fields:\r\n(1) `ecgridId1 + ecgridId2` — routes to `InterconnectListByECGridID`, returns all\r\nrelationships between the two specific EDI IDs. Pass `-1` for either to match any ID.\r\n(2) `status + networkId` — routes to `InterconnectListByStatusEx`, returns\r\nrelationships in the given status scoped to a network and optional mailbox.\r\n(3) `status + mailboxId` (without `networkId`) — routes to\r\n`InterconnectListByStatusEx` using the session network ID, scoped to the specified\r\nmailbox. Recommended for broader-scope API keys to keep result sets manageable.\r\n(4) `status` only — routes to `InterconnectListByStatus`, returning all\r\nrelationships in the given status visible to the caller's API key. Mailbox-scoped API keys\r\nare already limited to their own mailbox's visibility; for broader-scope keys supply\r\n`mailboxId` to narrow the result. Results are a flat, unpaged list — no pagination\r\nis available for this path.\r\nValid status values: Active, Inactive, Pending, Suspended, Cancelled.",
        "operationId": "Partner_List",
        "requestBody": {
          "description": "Supply ecgridId1+ecgridId2 or status (with optional networkId/mailboxId) to determine routing. MaxDays limits history window (default 30).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerListRequest"
              },
              "examples": {
                "ByECGridIdPair": {
                  "summary": "List relationships between two specific EDI IDs",
                  "value": {
                    "ecgridId1": 1234567,
                    "ecgridId2": 2345678
                  }
                },
                "ActiveByNetwork": {
                  "summary": "List active relationships for a network",
                  "value": {
                    "status": "Active",
                    "networkId": 12,
                    "maxDays": 30
                  }
                },
                "PendingAll": {
                  "summary": "List all pending relationships visible to caller",
                  "value": {
                    "status": "Pending",
                    "maxDays": 30
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Partner list returned; payload is an array of `InterconnectIDInfo`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnersListResponse"
                },
                "examples": {
                  "PartnerList": {
                    "summary": "Partner relationships returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000005",
                      "success": true,
                      "data": [
                        {
                          "interconnectID": 55001,
                          "ecgridID1": 1234567,
                          "ecgridID2": 2345678,
                          "status": "Active"
                        },
                        {
                          "interconnectID": 55002,
                          "ecgridID1": 1234567,
                          "ecgridID2": 3456789,
                          "status": "Active"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload, invalid status value, or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/partners/note": {
      "post": {
        "tags": [
          "Partners"
        ],
        "summary": "Add a note to a trading partner relationship",
        "description": "Appends an administrative note to an ECGrid partner (interconnect) record via\r\n`InterconnectNote`. Notes are annotations on the relationship itself — they are\r\nnot EDI interchange data and do not affect routing or transmission.\r\nTypical uses: recording setup instructions, confirming a change request, or logging\r\na support communication about the partnership.\r\nAn optional file attachment (base64-encoded content) can be included. The `emailTo`\r\nfield controls notification delivery — set to `NoEMail` to skip notification.\r\nReturns true on success.",
        "operationId": "Partner_AddNote",
        "requestBody": {
          "description": "InterconnectId, AuthLevel, and EmailTo are required. Note text and attachment are optional.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerNoteRequest"
              },
              "examples": {
                "AddNote": {
                  "summary": "Append an administrative note to a partner relationship",
                  "value": {
                    "interconnectId": 55001,
                    "authLevel": "NetworkAdmin",
                    "note": "Confirmed AS2 setup with trading partner on 2026-06-02.",
                    "attachmentName": null,
                    "attachmentContent": null,
                    "emailTo": "NoEMail",
                    "otherEmailAddress": null
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Note added successfully; payload is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnersBoolResponse"
                },
                "examples": {
                  "NoteAdded": {
                    "summary": "Note added successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000006",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/partners/notelist": {
      "post": {
        "tags": [
          "Partners"
        ],
        "summary": "List notes on a trading partner relationship",
        "description": "Returns all administrative notes attached to the specified ECGrid partner (interconnect)\r\nrecord via `InterconnectNoteList`. Notes are annotations on the relationship — they\r\nare not EDI interchange data and have no bearing on message routing or delivery.\r\nEach note entry includes the author, timestamp, note text, and any attachment metadata.\r\nThe full history of notes for a partnership is returned in chronological order.",
        "operationId": "Partner_ListNotes",
        "requestBody": {
          "description": "InterconnectId is required.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerNoteListRequest"
              },
              "examples": {
                "ListNotes": {
                  "summary": "Retrieve all notes for a partner relationship",
                  "value": {
                    "interconnectId": 55001
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Notes returned; payload is an array of `InterconnectNoteObject` records.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnersNoteListResponse"
                },
                "examples": {
                  "NoteList": {
                    "summary": "Partner notes returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000007",
                      "success": true,
                      "data": [
                        {
                          "noteID": 1001,
                          "interconnectID": 55001,
                          "note": "Confirmed AS2 setup.",
                          "createdDateTime": "2026-06-02T10:00:00Z"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload or ECGridOS returned an error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/portals/by-mailbox/{mailboxId}": {
      "get": {
        "tags": [
          "Portals"
        ],
        "summary": "Get basic portal information by mailbox id",
        "description": "Returns the existing ECGrid portal associated with the supplied mailbox id.\r\nThe caller must be authenticated via API key or Bearer token.\r\nResponds with an envelope containing `exists`, and when a portal is found, the `portalId`,\r\n`subdomain`, and customer-facing `url`. A missing portal is a valid answer —\r\nthe endpoint returns HTTP 200 with `exists=false` rather than 404.\r\nOnly mailbox-level portals are looked up here; the root mailbox (mailboxId 0) is provisioned\r\nthrough the network-level flow and is not queryable via this endpoint.",
        "operationId": "Portals_GetByMailbox",
        "parameters": [
          {
            "name": "mailboxId",
            "in": "path",
            "description": "Mailbox id to look up. Must be greater than 0 — this endpoint queries mailbox-level portals only.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Lookup completed. `exists` indicates whether a portal was found for the mailbox.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalsGetByMailboxResponse"
                },
                "examples": {
                  "PortalFound": {
                    "summary": "Mailbox already has a portal",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": {
                        "exists": true,
                        "portalId": "abc123xyz",
                        "subdomain": "acmeco",
                        "url": "acmeco.ecgrid.com",
                        "message": "Portal found."
                      }
                    }
                  },
                  "PortalNotFound": {
                    "summary": "No portal exists for the mailbox yet",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": {
                        "exists": false,
                        "portalId": null,
                        "subdomain": null,
                        "url": null,
                        "message": "No portal exists for this mailbox."
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid mailbox id — must be greater than 0",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/portals/create": {
      "post": {
        "tags": [
          "Portals"
        ],
        "summary": "Create a portal for a mailbox",
        "description": "Creates a new ECGrid portal site keyed to a mailbox and persists it.\r\nAuthorization is enforced based on the caller's AuthLevel: NetworkAdmin / NetworkUser — may\r\ncreate a portal for any mailbox within their own network; MailboxAdmin — may only\r\ncreate a portal for their own mailbox; All other AuthLevels are denied.\r\nThe subdomain is derived from the mailbox name (lowercase alphanumerics only), auto-deduplicated\r\nagainst existing portals by appending `-{mailboxId}`, and branding (logo, CSS, theme)\r\nis inherited from the parent network portal when one exists.\r\nReturns the created portal's id, subdomain, parent network, mailbox id, and customer-facing URL.",
        "operationId": "Portals_Create",
        "requestBody": {
          "description": "Portal creation payload. MailboxId is required and must be greater than 0 — this endpoint creates mailbox-level portals only; the root mailbox (mailboxId 0) is provisioned through the network-level portal flow.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PortalCreateRequest"
              },
              "examples": {
                "CreateForMailbox": {
                  "summary": "Create a portal for a specific mailbox",
                  "value": {
                    "mailboxId": 147
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Portal created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalsCreateResponse"
                },
                "examples": {
                  "PortalCreated": {
                    "summary": "Portal created successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": {
                        "portalId": "abc123xyz",
                        "subdomain": "acmeco",
                        "networkId": 12,
                        "mailboxId": 147,
                        "url": "acmeco.ecgrid.com"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request payload, unresolvable subdomain, or mailbox lookup failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated caller does not have permission to create a portal for this mailbox",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/reports/list": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "List available ECGrid report types",
        "description": "Returns the catalog of named report types that can be run via the report-by-date and\r\nmonthly-report endpoints. Pass showInactive = true to include report types that have been\r\nretired but still carry historical data; false returns only reports currently accepting\r\nnew run requests. Use the reportId value from each descriptor when calling other Report\r\nendpoints.",
        "operationId": "Report_List",
        "parameters": [
          {
            "name": "showInactive",
            "in": "query",
            "description": "Pass true to include inactive (retired) report types; false returns only active reports.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Report type catalog returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                },
                "examples": {
                  "ReportListSuccess": {
                    "summary": "Available ECGrid report types returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "columns": [
                            "ReportID",
                            "Name",
                            "Description"
                          ],
                          "rows": [
                            {
                              "ReportID": 1,
                              "Name": "Network Traffic",
                              "Description": "Overall network interchange volume by date"
                            },
                            {
                              "ReportID": 2,
                              "Name": "Mailbox Activity",
                              "Description": "Per-mailbox inbound and outbound interchange counts"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/reports/mailbox-interchange-stats": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Get interchange-level statistics for the authenticated mailbox",
        "description": "Returns interchange count and byte totals segmented by sent and received activity for\r\nthe current reporting period. (1) When both networkId and mailboxId are provided as\r\nquery parameters, calls ReportMailboxInterchangeStatsEx and scopes results to that\r\nspecific mailbox. (2) Otherwise calls ReportMailboxInterchangeStats using the caller's\r\nAPI key session scope.",
        "operationId": "Report_GetMailboxInterchangeStats",
        "parameters": [
          {
            "name": "NetworkID",
            "in": "query",
            "description": "Optional. The numeric ID of the network to scope results to. Must be paired with mailboxId.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "MailboxID",
            "in": "query",
            "description": "Optional. The numeric ID of the mailbox within the network. Must be paired with networkId.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Mailbox interchange statistics returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportsDataResponse"
                },
                "examples": {
                  "MailboxInterchangeStats": {
                    "summary": "Per-mailbox interchange statistics returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "columns": [
                            "MailboxID",
                            "InboundCount",
                            "OutboundCount",
                            "LastActivity"
                          ],
                          "rows": [
                            {
                              "MailboxID": 147,
                              "InboundCount": 98,
                              "OutboundCount": 71,
                              "LastActivity": "2026-07-13T11:48:00Z"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request — networkId must be greater than 0",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/reports/mailbox-stats": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Get overall statistics for the authenticated mailbox",
        "description": "Returns a high-level activity summary — total parcels, interchanges, byte volume, and\r\nactive partner count. (1) When both networkId and mailboxId are provided as query\r\nparameters, calls ReportMailboxStatsEx and scopes results to that specific mailbox.\r\n(2) Otherwise calls ReportMailboxStats using the caller's API key session scope.",
        "operationId": "Report_GetMailboxStats",
        "parameters": [
          {
            "name": "NetworkID",
            "in": "query",
            "description": "Optional. The numeric ID of the network to scope results to. Must be paired with mailboxId.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "MailboxID",
            "in": "query",
            "description": "Optional. The numeric ID of the mailbox within the network. Must be paired with networkId.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Mailbox statistics returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportsDataResponse"
                },
                "examples": {
                  "MailboxStats": {
                    "summary": "Mailbox-level summary statistics returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "columns": [
                            "MailboxID",
                            "TotalParcels",
                            "TotalInterchanges",
                            "StorageBytes"
                          ],
                          "rows": [
                            {
                              "MailboxID": 147,
                              "TotalParcels": 1240,
                              "TotalInterchanges": 8730,
                              "StorageBytes": 52428800
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request — networkId must be greater than 0",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/reports/{ShowInactive}": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Get network status summary",
        "description": "Returns a summary of network node statuses across the platform. Pass showInactive = true\r\nto include nodes that are currently inactive; false returns only active nodes. Results\r\nare scoped to the caller's network based on their API key.",
        "operationId": "Report_GetNetworkStatusSummary",
        "parameters": [
          {
            "name": "ShowInactive",
            "in": "path",
            "description": "Pass true to include inactive network nodes in the response; false returns only active nodes.",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Network status summary returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportsDataResponse"
                },
                "examples": {
                  "NetworkStatusSummary": {
                    "summary": "Network-level status summary returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "columns": [
                            "NetworkID",
                            "NetworkName",
                            "ActiveMailboxes",
                            "PendingParcels",
                            "LastActivity"
                          ],
                          "rows": [
                            {
                              "NetworkID": 12,
                              "NetworkName": "Acme Corp Network",
                              "ActiveMailboxes": 5,
                              "PendingParcels": 3,
                              "LastActivity": "2026-07-13T11:52:00Z"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/reports/bydate": {
      "post": {
        "tags": [
          "Reports"
        ],
        "summary": "Run a named report for a date range",
        "description": "Executes the specified report type for the given date range and returns the resulting\r\ndata rows via ReportByDateEx. Obtain a valid report ID by calling the Report List\r\nendpoint first. The shape of each row varies by report type — see the portal docs for\r\nper-report field descriptions. Scope to a specific network and mailbox by supplying\r\nboth networkId and mailboxId; omit either to use the caller's session scope (0/0).\r\nstartDate must be earlier than or equal to endDate — a reversed range returns 400.",
        "operationId": "Report_GetByDate",
        "requestBody": {
          "description": "Report selection and date range. report identifies which report to run; startDate and endDate bound the result set; startDate must be on or before endDate.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportByDateRequest"
              },
              "examples": {
                "RunNetworkTrafficReport": {
                  "summary": "Run report 1 (Network Traffic) for a week scoped to a network",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 0,
                    "report": 1,
                    "startDate": "2026-07-01T00:00:00Z",
                    "endDate": "2026-07-07T23:59:59Z"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Report data returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportsDataResponse"
                },
                "examples": {
                  "ReportData": {
                    "summary": "Report data returned as table result set",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "columns": [
                            "Date",
                            "InboundCount",
                            "OutboundCount"
                          ],
                          "rows": [
                            {
                              "Date": "2026-07-01",
                              "InboundCount": 142,
                              "OutboundCount": 87
                            },
                            {
                              "Date": "2026-07-02",
                              "InboundCount": 198,
                              "OutboundCount": 113
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request — missing required fields, startDate is after endDate, or ECGridOS returned an error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/reports/instant-stats": {
      "post": {
        "tags": [
          "Reports"
        ],
        "summary": "Get real-time parcel counts for two trailing time windows",
        "description": "Returns live parcel activity counts for two independently configurable trailing time\r\nwindows — for example, the last 5 minutes versus the last 60 minutes. Designed for\r\noperational dashboards and health checks. (1) When networkId, mailboxId, and ecgridId\r\nare all provided, calls ReportInstantStatsEx and scopes counts to that EDI ID on the\r\nmailbox; pass ecgridId = 0 to include all EDI IDs. (2) Otherwise calls\r\nReportInstantStats using the caller's API key session scope. minutes2 must be greater\r\nthan minutes1.",
        "operationId": "Report_GetInstantStats",
        "requestBody": {
          "description": "Duration in minutes for each observation window, and optional network/mailbox/EDI ID scope.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportInstantStatsRequest"
              },
              "examples": {
                "NetworkWideCounts": {
                  "summary": "Get 5-minute and 60-minute counts for the whole network",
                  "value": {
                    "minutes1": 5,
                    "minutes2": 60
                  }
                },
                "MailboxCounts": {
                  "summary": "Get 15-minute and 240-minute counts scoped to a mailbox",
                  "value": {
                    "minutes1": 15,
                    "minutes2": 240,
                    "networkId": 12,
                    "mailboxId": 147,
                    "ecgridId": 0
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Instant statistics returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportsDataResponse"
                },
                "examples": {
                  "InstantStatsData": {
                    "summary": "Instant statistics returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "columns": [
                            "Window",
                            "InboundCount",
                            "OutboundCount"
                          ],
                          "rows": [
                            {
                              "Window": "5min",
                              "InboundCount": 7,
                              "OutboundCount": 4
                            },
                            {
                              "Window": "60min",
                              "InboundCount": 82,
                              "OutboundCount": 61
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request — minutes1 or minutes2 invalid, or minutes2 not greater than minutes1",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/reports/interchange-stats": {
      "post": {
        "tags": [
          "Reports"
        ],
        "summary": "Get interchange statistics for a date range and direction",
        "description": "Returns interchange counts and byte volume grouped by time period for the specified\r\ndate range, filtered by transmission direction. (1) When both networkId and mailboxId\r\nare provided, calls ReportInterchangeStatsEx and limits results to that mailbox.\r\n(2) Otherwise calls ReportInterchangeStats using the caller's API key session scope.",
        "operationId": "Report_GetInterchangeStats",
        "requestBody": {
          "description": "Date range, direction filter, and optional network/mailbox scope.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportInterchangeStatsRequest"
              },
              "examples": {
                "NetworkStats": {
                  "summary": "Get interchange stats for the current network over a one-hour window",
                  "value": {
                    "startTime": "2026-07-13T12:00:00Z",
                    "endTime": "2026-07-13T13:00:00Z",
                    "direction": "NoDir"
                  }
                },
                "MailboxInboundStats": {
                  "summary": "Get inbound interchange stats for a specific mailbox",
                  "value": {
                    "startTime": "2026-07-13T00:00:00Z",
                    "endTime": "2026-07-13T23:59:59Z",
                    "direction": "InBox",
                    "networkId": 12,
                    "mailboxId": 147
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Interchange statistics returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportsDataResponse"
                },
                "examples": {
                  "InterchangeStatsData": {
                    "summary": "Interchange statistics returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "columns": [
                            "Direction",
                            "Count",
                            "FirstSeen",
                            "LastSeen"
                          ],
                          "rows": [
                            {
                              "Direction": "InBox",
                              "Count": 214,
                              "FirstSeen": "2026-07-13T12:01:00Z",
                              "LastSeen": "2026-07-13T12:59:42Z"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request — missing required fields, invalid date range, or invalid direction value",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/reports/monthly": {
      "post": {
        "tags": [
          "Reports"
        ],
        "summary": "Generate a monthly report for a calendar month",
        "description": "Runs the specified report type for a full calendar month and returns data broken out\r\nby week. Only the year and month components of the month field are used — pass the\r\nfirst day of the target month at midnight UTC (e.g., 2026-04-01T00:00:00Z for April\r\n2026). (1) When both networkId and mailboxId are provided, calls ReportMonthlyEx and\r\nreturns results limited to that mailbox. (2) Otherwise calls ReportMonthly using the\r\ncaller's API key session scope.",
        "operationId": "Report_GetMonthly",
        "requestBody": {
          "description": "Report type, target month, and optional network/mailbox scope.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportMonthlyRequest"
              },
              "examples": {
                "RunAprilReport": {
                  "summary": "Run monthly report 1 for April 2026 scoped to a network",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 0,
                    "report": 1,
                    "month": "2026-04-01T00:00:00Z"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Monthly report data returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportsDataResponse"
                },
                "examples": {
                  "MonthlyReportData": {
                    "summary": "Monthly report data returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "columns": [
                            "Week",
                            "InboundCount",
                            "OutboundCount"
                          ],
                          "rows": [
                            {
                              "Week": "2026-W14",
                              "InboundCount": 612,
                              "OutboundCount": 440
                            },
                            {
                              "Week": "2026-W15",
                              "InboundCount": 589,
                              "OutboundCount": 398
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request — missing required fields or invalid month value",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/reports/traffic-stats": {
      "post": {
        "tags": [
          "Reports"
        ],
        "summary": "Get traffic volume statistics across multiple periods",
        "description": "Returns sent and received parcel counts plus byte volume for a series of consecutive\r\ntime periods ending at or before targetTime. Period granularity is controlled by the\r\nperiod field (Hour, Day, Week, or Month). Maximum periods: 72 hours, 31 days, 26 weeks,\r\n24 months. (1) When networkId, mailboxId, targetTime, numPeriods, and period are all\r\nprovided, calls ReportTrafficStatsEx scoped to that mailbox. (2) When only targetTime,\r\nnumPeriods, and period are provided, calls ReportTrafficStats using session scope.\r\n(3) When no parameters are provided, calls ReportTrafficStatsPublic for platform-wide\r\naggregate traffic.",
        "operationId": "Report_GetTrafficStats",
        "requestBody": {
          "description": "Reference timestamp, period count and granularity, and optional network/mailbox scope.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportTrafficStatsRequest"
              },
              "examples": {
                "HourlyLast24": {
                  "summary": "Get the last 24 hourly traffic data points for a network",
                  "value": {
                    "targetTime": "2026-07-13T13:00:00Z",
                    "numPeriods": 24,
                    "period": "Hour",
                    "networkId": 12,
                    "mailboxId": 0
                  }
                },
                "DailyLast30": {
                  "summary": "Get the last 30 daily traffic data points across all networks",
                  "value": {
                    "targetTime": "2026-07-13T00:00:00Z",
                    "numPeriods": 30,
                    "period": "Day"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Traffic statistics returned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportsDataResponse"
                },
                "examples": {
                  "TrafficStatsData": {
                    "summary": "Traffic statistics returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "columns": [
                            "PeriodStart",
                            "InboundCount",
                            "OutboundCount"
                          ],
                          "rows": [
                            {
                              "PeriodStart": "2026-07-13T12:00:00Z",
                              "InboundCount": 142,
                              "OutboundCount": 87
                            },
                            {
                              "PeriodStart": "2026-07-13T11:00:00Z",
                              "InboundCount": 198,
                              "OutboundCount": 113
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request — missing required fields, invalid period value, or period count exceeds maximum",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/status-lists": {
      "get": {
        "tags": [
          "StatusLists"
        ],
        "summary": "Get all ECGrid status codes and their descriptions",
        "description": "Returns the complete list of ECGridOS status codes via StatusList. Each entry is a StatusInfo record containing\r\na numeric code, a short qualifier string, a human-readable message, and a severity level.\r\nThe list spans all status types used across the platform: parcel and interchange delivery states,\r\ncallback event and queue states, comm configuration states, carbon copy rule states, and general\r\nobject lifecycle states (Active, Suspended, Terminated, etc.).\r\nConsumers use this endpoint to validate status values before passing them to endpoints that accept\r\na status parameter (e.g., Callback_Update, CarbonCopy_Update) and to display meaningful status labels in UIs.\r\nThe list is static — it changes only when ECGridOS itself is updated, not per-request.\r\nThis endpoint takes no parameters and no request body.",
        "operationId": "StatusList_GetAll",
        "responses": {
          "200": {
            "description": "Status list returned; data is a List<StatusInfo> containing all ECGrid status codes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusListGetAllResponse"
                },
                "examples": {
                  "StatusListSuccess": {
                    "summary": "Complete list of ECGrid status codes returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": [
                        {
                          "code": 200,
                          "qualifier": "Success",
                          "message": "OK",
                          "level": "Info"
                        },
                        {
                          "code": 400,
                          "qualifier": "Client Error",
                          "message": "Bad Request",
                          "level": "Error"
                        },
                        {
                          "code": 401,
                          "qualifier": "Auth Error",
                          "message": "Session Authentication Failed",
                          "level": "Error"
                        },
                        {
                          "code": 404,
                          "qualifier": "Not Found",
                          "message": "Object Not Found",
                          "level": "Warning"
                        },
                        {
                          "code": 500,
                          "qualifier": "Server Error",
                          "message": "Internal Server Error",
                          "level": "Error"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "ECGridOS SOAP call failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/{id}": {
      "delete": {
        "tags": [
          "Users"
        ],
        "summary": "Terminate a user account",
        "description": "Permanently disables the specified user account via UserTerminate. The account cannot be reactivated\r\nafter termination. Returns true on success.",
        "operationId": "User_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique integer identifier of the user to terminate. Obtain from User_GetById or User_List.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "User account terminated; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersBoolResponse"
                },
                "examples": {
                  "UserTerminated": {
                    "summary": "User account terminated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000001",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid user id or request payload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No user found for the supplied id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get a user by id",
        "description": "Returns the ECGrid user record for the supplied user id. Caller must be authenticated.\r\nECGridOS authorization enforced server-side.",
        "operationId": "User_GetById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique integer identifier of the user to retrieve. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "User record returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersGetByIdResponse"
                },
                "examples": {
                  "UserFound": {
                    "summary": "User record returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000002",
                      "success": true,
                      "data": {
                        "userID": 5001,
                        "loginName": "jdoe@example-company.com",
                        "firstName": "Jane",
                        "lastName": "Doe",
                        "company": "Example Logistics",
                        "eMail": "jdoe@example-company.com",
                        "authLevel": "NetworkUser",
                        "status": "Active"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid user id — must be greater than 0.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No user found for the supplied id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/key/{id}": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get the API key for a user",
        "description": "Returns the current ECGridOS API key for the specified user id. The API key is a string token used to\r\nauthenticate subsequent API calls. Caller must have sufficient authorization to view another user's API key.",
        "operationId": "User_GetKey",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique integer identifier of the user whose API key to retrieve. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "API key returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersGetKeyResponse"
                },
                "examples": {
                  "ApiKeyReturned": {
                    "summary": "API key returned for the specified user",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000003",
                      "success": true,
                      "data": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid user id — must be greater than 0.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No user found for the supplied id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/me": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get the authenticated caller's session info",
        "description": "Returns the session information for the currently authenticated API key or Bearer token — equivalent to\r\nWhoAmI. Useful for verifying the identity and authorization level of the caller without knowing the user\r\nid in advance.",
        "operationId": "User_GetMe",
        "responses": {
          "200": {
            "description": "Session info returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersGetMeResponse"
                },
                "examples": {
                  "SessionInfoReturned": {
                    "summary": "Caller session info returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000004",
                      "success": true,
                      "data": {
                        "userID": 5001,
                        "loginName": "jdoe@example-company.com",
                        "networkID": 12,
                        "mailboxID": 0,
                        "authLevel": "NetworkAdmin",
                        "sessionKey": "sess-abc123xyz"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/reset/{id}": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Reset all open sessions for a user",
        "description": "Terminates all active ECGridOS sessions for the specified user via UserReset. Does not change the user's\r\npassword. Use this to force a re-login when a user's session needs to be cleared (e.g. after a security\r\nevent). Returns true on success.",
        "operationId": "User_Reset",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique integer identifier of the user whose sessions to reset. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Sessions reset successfully; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersBoolResponse"
                },
                "examples": {
                  "SessionsReset": {
                    "summary": "All open sessions reset successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000005",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid user id — must be greater than 0.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No user found for the supplied id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/key-generate/{id}": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Generate a new API key for a user",
        "description": "Generates a new ECGridOS API key for the specified user via GenerateAPIKey. The previous API key is\r\nimmediately invalidated — any integrations using it will need to be updated with the new key. Returns the\r\nnew API key string.",
        "operationId": "User_GenerateKey",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique integer identifier of the user for whom to generate a new API key. Must be greater than 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "New API key generated and returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersGenerateKeyResponse"
                },
                "examples": {
                  "NewApiKey": {
                    "summary": "New API key generated; previous key is now invalid",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000006",
                      "success": true,
                      "data": "f9e8d7c6-b5a4-3210-fedc-ba9876543210"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid user id — must be greater than 0.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No user found for the supplied id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Create a user account",
        "description": "Creates a new ECGrid user account via UserAddEx (when networkId is supplied and > 0) or UserAdd\r\n(caller's own network). The new user is scoped to the specified network and mailbox. Pass mailboxId=0\r\nfor root/network-level user. Returns the new user id on success.",
        "operationId": "User_Create",
        "requestBody": {
          "description": "User profile and credential details for the new account.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserAddRequest"
              },
              "examples": {
                "CreateUnderCallerNetwork": {
                  "summary": "Create a user on the caller's own network",
                  "value": {
                    "mailboxId": 0,
                    "loginName": "newuser@example-company.com",
                    "password": "Tr0ub4dor&3",
                    "firstName": "New",
                    "lastName": "User",
                    "company": "Example Logistics",
                    "email": "newuser@example-company.com",
                    "phone": "312-555-0100",
                    "cellPhone": "",
                    "cellCarrier": "Undefined",
                    "authLevel": "NetworkUser"
                  }
                },
                "CreateUnderSpecificNetwork": {
                  "summary": "Create a user under a specific network using UserAddEx",
                  "value": {
                    "networkId": 12,
                    "mailboxId": 147,
                    "loginName": "mbadmin@example-company.com",
                    "password": "Tr0ub4dor&3",
                    "firstName": "Mailbox",
                    "lastName": "Admin",
                    "company": "Example Logistics",
                    "email": "mbadmin@example-company.com",
                    "phone": "312-555-0101",
                    "cellPhone": "",
                    "cellCarrier": "Undefined",
                    "authLevel": "MailboxAdmin"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "User created; data is the new user id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersCreateResponse"
                },
                "examples": {
                  "UserCreated": {
                    "summary": "User created; payload is the new user id",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000007",
                      "success": true,
                      "data": 5001
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing required fields.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Users"
        ],
        "summary": "Update user profile information",
        "description": "Updates the profile fields for an existing ECGrid user via UserUpdate. All fields except phone numbers\r\nare required. UserId identifies the user to update. AuthLevel can be set to NoChange to leave the existing\r\nlevel unchanged. CellCarrier can be set to NoChange to leave the existing carrier unchanged.",
        "operationId": "User_Update",
        "requestBody": {
          "description": "Object containing the user id and updated profile fields.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserUpdateRequest"
              },
              "examples": {
                "UpdateProfile": {
                  "summary": "Update user profile — name, company, email, and keep existing auth level",
                  "value": {
                    "userId": 5001,
                    "firstName": "Jane",
                    "lastName": "Doe-Williams",
                    "company": "Example Logistics Group",
                    "email": "jdoe-williams@example-company.com",
                    "phone": "312-555-0200",
                    "cellPhone": "312-555-0201",
                    "cellCarrier": "NoChange",
                    "authLevel": "NoChange"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "User profile updated; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersBoolResponse"
                },
                "examples": {
                  "UserUpdated": {
                    "summary": "User profile updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000016",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid required fields.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/by-name": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Find a user by login name",
        "description": "Returns the ECGrid user record matching the supplied login name or email address via UserInfobyLogin.\r\nThe name must be an exact match (full login name or email). Returns 404 if no user matches the name.",
        "operationId": "User_GetByName",
        "requestBody": {
          "description": "Object containing the login name or email address to search.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserByNameRequest"
              },
              "examples": {
                "ByEmail": {
                  "summary": "Look up a user by their login email address",
                  "value": {
                    "name": "jdoe@example-company.com"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "User record returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersGetByNameResponse"
                },
                "examples": {
                  "UserFound": {
                    "summary": "User record returned matching the login name",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000008",
                      "success": true,
                      "data": {
                        "userID": 5001,
                        "loginName": "jdoe@example-company.com",
                        "firstName": "Jane",
                        "lastName": "Doe",
                        "company": "Example Logistics",
                        "authLevel": "NetworkUser",
                        "status": "Active"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid name field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No user found matching the supplied name.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/generate-password": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Generate a random password of a specified length",
        "description": "Generates a cryptographically random password of the specified length via GeneratePassword. This returns\r\nthe generated password as a plain string — it does NOT set the password on any user account and does NOT\r\nsend a reset email. Use POST /users/password to apply a generated password to a specific account. Length\r\nmust be between 8 and 120 characters; defaults to 13.",
        "operationId": "User_GeneratePassword",
        "requestBody": {
          "description": "Object specifying the desired password length.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserGeneratePasswordRequest"
              },
              "examples": {
                "DefaultLength": {
                  "summary": "Generate a 13-character password (default)",
                  "value": {
                    "length": 13
                  }
                },
                "LongerPassword": {
                  "summary": "Generate a longer 20-character password",
                  "value": {
                    "length": 20
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Generated password returned as a plain string.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersGeneratePasswordResponse"
                },
                "examples": {
                  "PasswordGenerated": {
                    "summary": "Generated password returned as plain string",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000009",
                      "success": true,
                      "data": "xK8#mQpL2!vRz"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid length value.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/list": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "List users by network, mailbox, or locked-out status",
        "description": "Routes to one of six ECGridOS SOAP operations based on supplied fields:\r\n(1) lockedOut=true + networkId — UserListLockedOutEx — returns locked-out users scoped to that network and optional mailbox.\r\n(2) lockedOut=true + mailboxId (no networkId) — UserListLockedOutEx using the session network ID.\r\n(3) lockedOut=true (no networkId, no mailboxId) — UserListLockedOut — returns all locked-out users visible to the API key.\r\n(4) networkId (lockedOut not set/false) — UserListEx — returns all users in that network and optional mailbox, with optional name filter.\r\n(5) mailboxId only (no networkId, lockedOut not set/false) — UserListEx using the session network ID.\r\n(6) No networkId, no mailboxId (lockedOut not set/false) — UserList — returns all users visible to the API key, with optional name filter.\r\nSupply mailboxId=0 to scope to root/network-level users; null or -1 matches all mailboxes.",
        "operationId": "User_List",
        "requestBody": {
          "description": "Filtering options — networkId, mailboxId, name, and lockedOut flag.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserListRequest"
              },
              "examples": {
                "LockedOutByNetwork": {
                  "summary": "(1) lockedOut=true + networkId — UserListLockedOutEx scoped to a network",
                  "value": {
                    "networkId": 12,
                    "lockedOut": true
                  }
                },
                "LockedOutAll": {
                  "summary": "(2) lockedOut=true, no networkId — UserListLockedOut for all visible users",
                  "value": {
                    "lockedOut": true
                  }
                },
                "ByNetwork": {
                  "summary": "(3) networkId only — UserListEx returns all users in the network",
                  "value": {
                    "networkId": 12
                  }
                },
                "AllVisible": {
                  "summary": "(4) no filters — UserList returns all users visible to the API key",
                  "value": { }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "User list returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersListResponse"
                },
                "examples": {
                  "UserList": {
                    "summary": "Users returned",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000010",
                      "success": true,
                      "data": [
                        {
                          "userID": 5001,
                          "loginName": "jdoe@example-company.com",
                          "firstName": "Jane",
                          "lastName": "Doe",
                          "authLevel": "NetworkUser",
                          "status": "Active"
                        },
                        {
                          "userID": 5002,
                          "loginName": "bsmith@example-company.com",
                          "firstName": "Bob",
                          "lastName": "Smith",
                          "authLevel": "MailboxAdmin",
                          "status": "Active"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid filter values.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/password": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Set a user's password",
        "description": "Sets the password for the specified user account via UserPassword. The password must be 8–128 characters\r\nand meet complexity requirements: at least one lowercase letter, one uppercase letter, one digit, and one\r\nspecial character. This directly sets the password — it does not send a reset email.",
        "operationId": "User_SetPassword",
        "requestBody": {
          "description": "Object containing the user id and the new password to set.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserPasswordRequest"
              },
              "examples": {
                "SetNewPassword": {
                  "summary": "Set a new password for a user",
                  "value": {
                    "userId": 5001,
                    "password": "N3wP@ssw0rd!"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Password updated successfully; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersBoolResponse"
                },
                "examples": {
                  "PasswordSet": {
                    "summary": "Password updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000011",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Password does not meet complexity requirements or user id is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/role": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Set the authorization level for a user",
        "description": "Assigns an ECGrid authorization level (AuthLevel) to the specified user via UserSetAuthLevel. Valid\r\nAuthLevel values: Root, TechOps, NetOps, NetworkAdmin, NetworkUser, MailboxAdmin, MailboxUser, TPUser,\r\nGeneral. Higher levels (Root, TechOps, NetOps) are restricted — callers can only assign levels at or\r\nbelow their own. Returns true on success.",
        "operationId": "User_SetRole",
        "requestBody": {
          "description": "Object containing the user id and the authorization level to assign.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserRoleRequest"
              },
              "examples": {
                "SetToNetworkUser": {
                  "summary": "Assign the NetworkUser authorization level",
                  "value": {
                    "userId": 5001,
                    "authLevel": "NetworkUser"
                  }
                },
                "SetToMailboxAdmin": {
                  "summary": "Elevate to MailboxAdmin for a specific mailbox scope",
                  "value": {
                    "userId": 5001,
                    "authLevel": "MailboxAdmin"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Authorization level updated; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersBoolResponse"
                },
                "examples": {
                  "RoleSet": {
                    "summary": "Authorization level updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000012",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid user id or authorization level.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/send-sms": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Send an SMS message to a user",
        "description": "Sends an SMS text message to the specified user via UserSendSMS, using the cell phone number and carrier\r\nconfigured on their account. If the user does not have a cell phone or carrier defined, the SOAP call\r\nwill return an error. Message text is limited to 140 characters.",
        "operationId": "User_SendSms",
        "requestBody": {
          "description": "Object containing the user id and the message text to send.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserSendSMSRequest"
              },
              "examples": {
                "SendAlert": {
                  "summary": "Send a short alert SMS to a user",
                  "value": {
                    "userId": 5001,
                    "text": "Your EDI file was delivered successfully."
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "SMS sent successfully; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersBoolResponse"
                },
                "examples": {
                  "SmsSent": {
                    "summary": "SMS sent successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000013",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid user id, missing text, or text exceeds 140 characters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/set-network-mailbox": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Move a user to a different network or mailbox",
        "description": "Reassigns the specified user to a different network and mailbox scope via UserSetNetworkMailbox. Use this\r\nwhen a user needs to be moved between networks or between mailboxes within a network. All three fields\r\n(userId, networkId, mailboxId) are required. Pass mailboxId=0 to assign the user to the root/network level.",
        "operationId": "User_SetNetworkMailbox",
        "requestBody": {
          "description": "Object containing the user id, target network id, and target mailbox id.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserSetNetworkMailboxRequest"
              },
              "examples": {
                "MoveToMailbox": {
                  "summary": "Move a user to a specific mailbox under a network",
                  "value": {
                    "userId": 5001,
                    "networkId": 12,
                    "mailboxId": 147
                  }
                },
                "MoveToRootLevel": {
                  "summary": "Reassign user to network root level (mailboxId=0)",
                  "value": {
                    "userId": 5001,
                    "networkId": 12,
                    "mailboxId": 0
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "User reassigned successfully; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersBoolResponse"
                },
                "examples": {
                  "UserMoved": {
                    "summary": "User reassigned successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000014",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid required fields.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v2/users/update-config": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Update user configuration settings",
        "description": "Routes to one of three ECGridOS SOAP operations depending on which fields are provided. Supply\r\nactivate=true + userId to reactivate a suspended user via UserActivate; suspend=true + userId to suspend\r\nan active user via UserSuspend; or maxSessions + userId to set the maximum concurrent sessions via\r\nUserSetMaxSessions. Exactly one of activate, suspend, or maxSessions must be provided.",
        "operationId": "User_UpdateConfig",
        "requestBody": {
          "description": "Object containing the user id and one of: activate, suspend, or maxSessions.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserUpdateConfigRequest"
              },
              "examples": {
                "ActivateUser": {
                  "summary": "Reactivate a suspended user via UserActivate",
                  "value": {
                    "userId": 5001,
                    "activate": true
                  }
                },
                "SuspendUser": {
                  "summary": "Suspend an active user via UserSuspend",
                  "value": {
                    "userId": 5001,
                    "suspend": true
                  }
                },
                "SetMaxSessions": {
                  "summary": "Limit concurrent sessions to 5 via UserSetMaxSessions",
                  "value": {
                    "userId": 5001,
                    "maxSessions": 5
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Configuration updated; data is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersBoolResponse"
                },
                "examples": {
                  "ConfigUpdated": {
                    "summary": "User configuration updated successfully",
                    "value": {
                      "httpStatus": 200,
                      "message": "",
                      "traceId": "0HN7K2A1B3C:00000015",
                      "success": true,
                      "data": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing required fields or no action parameter provided.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid authentication credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "APICall": {
        "enum": [
          "GenerateAPIKey",
          "Login",
          "Logout",
          "ChangePassword",
          "WhoAmI",
          "UserAdd",
          "UserAddEx",
          "UserInfo",
          "UserUpdate",
          "UserActivate",
          "UserSuspend",
          "UserTerminate",
          "UserReset",
          "UserList",
          "UserListEx",
          "UserPassword",
          "SessionLog",
          "SessionLogEx",
          "SessionLogCurrent",
          "KeySave",
          "KeyGet",
          "KeyList",
          "KeyRemove",
          "UserSetNetworkMailbox",
          "UserSetAuthLevel",
          "UserListLockedOut",
          "UserListLockedOutEx",
          "UserResetAll",
          "SetLocalTime",
          "TerminateAPIKey",
          "GeneratePassword",
          "UserSendSMS",
          "UserGetAPIKey",
          "UserInfoByLogin",
          "StatusList",
          "UserSetMaxSessions",
          "KeySaveMinutes",
          "NetworkInfo",
          "NetworkList",
          "NetworkStatusSummary",
          "NetworkOutageList",
          "NetworkStart",
          "NetworkStop",
          "NetworkRestart",
          "NetworkAdd",
          "NetworkOwnerContact",
          "NetworkErrorsContact",
          "NetworkInterconnectsContact",
          "NetworkNoticesContact",
          "NetworkBillingContact",
          "NetworkReportsContact",
          "NetworkSetContact",
          "NetworkGetContact",
          "NetworkSetWebsite",
          "NetworkSetStatus",
          "NetworkInfoWithLog",
          "NetworkBackupAllConfigs",
          "NetworkX12Delimiters",
          "NetworkCheckIn",
          "NetworkRootDeleteOnDownload",
          "NetworkUpdate",
          "NetworkPause",
          "NetworkSetDemonstrationMode",
          "MailboxAdd",
          "MailboxAddEx",
          "MailboxActivate",
          "MailboxSuspend",
          "MailboxTerminate",
          "MailboxInfo",
          "MailboxName",
          "MailboxErrorsContact",
          "MailboxInterconnectsContact",
          "MailboxNoticesContact",
          "MailboxX12Delimiters",
          "MailboxInBoxTimeout",
          "MailboxList",
          "MailboxListEx",
          "MailboxOwnerContact",
          "MailboxManaged",
          "MailboxDescription",
          "MailboxUse",
          "MailboxSetContact",
          "MailboxDeleteOnDownload",
          "MailboxSetDemonstrationMode",
          "TPAdd",
          "TPAddVAN",
          "TPAddEx",
          "TPMove",
          "TPMoveEx",
          "TPUpdateDescription",
          "TPX12Delimiters",
          "TPActivate",
          "TPSuspend",
          "TPTerminate",
          "TPInfo",
          "TPSearch",
          "TPSearchEx",
          "TPList",
          "TPListEx",
          "TPFind",
          "TPFindEx",
          "TPDataEMail",
          "TPSetMailboxDefault",
          "TPGetMailboxDefault",
          "TPEMailX400Format",
          "TPMoveMailbox",
          "TPSetRoutingGroup",
          "TPListExPaged",
          "TPListByOwner",
          "TPSetOwner",
          "InterconnectAdd",
          "InterconnectUpdate",
          "InterconnectNote",
          "InterconnectCancel",
          "InterconnectInfo",
          "InterconnectNoteList",
          "InterconnectListByECGridID",
          "InterconnectListByStatus",
          "InterconnectListByStatusEx",
          "InterconnectAssignNetOps",
          "InterconnectCount",
          "InterconnectCountEx",
          "InterconnectInfoGUID",
          "MigrationAdd",
          "MigrationAddEx",
          "MigrationSendRequest",
          "MigrationUpdate",
          "MigrationStatus",
          "MigrationInfo",
          "MigrationList",
          "MigrationListEx",
          "MigrationECGridIDAdd",
          "MigrationECGridIDRemove",
          "MigrationECGridIDStatus",
          "MigrationECGridIDNote",
          "CarbonCopyAdd",
          "CarbonCopyAddEx",
          "CarbonCopyActivate",
          "CarbonCopySuspend",
          "CarbonCopyTerminate",
          "CarbonCopyInfo",
          "CarbonCopyList",
          "CarbonCopyListEx",
          "ParcelInBox",
          "ParcelInBoxEx",
          "ParcelDownload",
          "ParcelDownloadInner",
          "ParcelDownloadConfirm",
          "ParcelUpload",
          "ParcelUploadExA",
          "ParcelInfo",
          "ParcelMainfest",
          "ParcelInterchangeManifest",
          "ParcelNoteList",
          "ParcelInBoxArchive",
          "ParcelInBoxArchiveEx",
          "ParcelOutBoxArchive",
          "ParcelOutBoxArchiveEx",
          "ParcelOutBoxError",
          "ParcelOutBoxErrorEx",
          "InterchangeInBox",
          "InterchangeInBoxEx",
          "InterchangeOutBox",
          "InterchangeOutBoxEx",
          "InterchangeHeaderInfo",
          "ParcelDownloadReset",
          "InterchangeOutBoxNoRoute",
          "InterchangeOutBoxNoRouteEx",
          "ParcelUploadGZip",
          "InterchangeInfo",
          "InterchangeResend",
          "ParcelUploadGZipEx",
          "ParcelUploadEx",
          "ParcelSetMailbagControlID",
          "ParcelUpdateStatus",
          "ParcelUpdateLocalStatus",
          "ParcelUploadMft",
          "ParcelUploadDirectedGZip",
          "ParcelDownloadConfirmPendingAck",
          "InterchangeHeaderInfoB",
          "ParcelDownloadGZip",
          "ParcelDownloadCancel",
          "ParcelTest",
          "InterchangeManifest",
          "ParcelOutBoxInProcess",
          "ParcelOutBoxInProcessEx",
          "ParcelResend",
          "InterchangeCancel",
          "ParcelAcknowledgmentNote",
          "InterchangeOutBoxPending",
          "InterchangeOutBoxPendingEx",
          "InterchangeInBoxPending",
          "InterchangeInBoxPendingEx",
          "InterchangeInBoxArchive",
          "InterchangeInBoxArchiveEx",
          "InterchangeOutBoxArchive",
          "InterchangeOutBoxArchiveEx",
          "ParcelInBoxArchiveDescEx",
          "ParcelOutBoxArchiveDescEx",
          "ParcelArchive",
          "ParcelArchivePending",
          "InterchangeArchive",
          "InterchangeArchivePending",
          "ParcelDownloadS3",
          "ParcelInBoxExShort",
          "ParcelInBoxArchiveExShort",
          "ParcelOutBoxArchiveExShort",
          "InterchangeInBoxBlocked",
          "InterchangeInBoxBlockedEx",
          "InterchangeOutBoxBlocked",
          "InterchangeOutBoxBlockedEx",
          "ParcelFindMailbagControlID",
          "ParcelUploadA",
          "ParcelUploadMftA",
          "ParcelDownloadA",
          "ParcelDownloadNoUpdate",
          "ParcelDownloadNoUpdateA",
          "ParcelUploadExAdmin",
          "ParcelUploadMftAdmin",
          "ParcelFindMailbagControlIDTo",
          "InterchangeCarbonCopy",
          "ParcelDownloadRaw",
          "ParcelDownloadRawA",
          "CallBackAdd",
          "CallBackActivate",
          "CallBackSuspend",
          "CallBackTerminate",
          "CallBackList",
          "CallBackListEx",
          "CallBackEventList",
          "CallBackEventListEx",
          "CallBackInvoke",
          "CallBackTest",
          "CallBackPendingList",
          "CallBackPendingListEx",
          "CallBackQueueInfo",
          "CallBackEventInfo",
          "CallBackAddEx",
          "CallBackFailedList",
          "CallBackFailedListEx",
          "CallBackEventSetStatus",
          "CallBackPendingListExA",
          "ReportMonthly",
          "ReportMonthlyEx",
          "ReportTrafficStats",
          "ReportTrafficStatsEx",
          "ReportInstantStats",
          "ReportInstantStatsEx",
          "ReportMailboxStats",
          "ReportMailboxStatsEx",
          "ReportInterchangeStats",
          "ReportInterchangeStatsEx",
          "ReportAdHoc",
          "ReportTagVerifyJson",
          "ReportMailboxInterchangeStats",
          "ReportMailboxInterchangeStatsEx",
          "ReportByDateEx",
          "AS2Add",
          "AS2Update",
          "AS2Activate",
          "AS2Suspend",
          "AS2Terminate",
          "AS2CertAddPublic",
          "AS2CertAddPrivate",
          "AS2CertTerminate",
          "AS2Find",
          "AS2List",
          "AS2ListEx",
          "AS2Info",
          "AS2CertCreatePrivate",
          "AS2Pair",
          "AS2DefaultMailbox",
          "AS2SetPair",
          "AS2SetStatus",
          "AS2CertRenewPrivate",
          "AS2PairTest",
          "AS2CertsExpiring",
          "GISBAdd",
          "GISBUpdate",
          "GISBActivate",
          "GISBSuspend",
          "GISBTerminate",
          "GISBKeyAdd",
          "GISBKeyTerminate",
          "GISBFind",
          "GISBList",
          "GISBListEx",
          "GISBInfo",
          "CertificateAddPublic",
          "CertificateAddPrivate",
          "CertificateCreatePrivate",
          "CertificateSetUsageDates",
          "CertificateTerminate",
          "CertificateAddPublicA",
          "CertificateAddPrivateA",
          "CertificateRenewPrivate",
          "CommAdd",
          "CommUpdate",
          "CommSetStatus",
          "CommFind",
          "CommList",
          "CommListEx",
          "CommInfo",
          "CommPair",
          "CommSetPair",
          "CommDefaultMailbox",
          "CommAddA",
          "CommUpdateA",
          "ContractInfo",
          "ContractList",
          "ContractListEx",
          "ContractAdd",
          "ContractActivate",
          "ContractSuspend",
          "ContractTerminate",
          "ContractExpiring",
          "ContractSet",
          "ContractSetEx",
          "PricelistInfo",
          "PricelistAdd",
          "PricelistLineAdd",
          "PricelistLineDelete",
          "InvoiceCreate",
          "InvoiceInfo",
          "InvoiceList",
          "InvoiceSetStatus",
          "InvoiceCalculateLineItem",
          "RouterInProcessPending",
          "RouterInProcess",
          "RouterToProcess",
          "RouterOutProcess",
          "RouterReprocessInterchange",
          "RouterAlternateDirectoryDateGet",
          "RouterAlternateDirectoryDateSet",
          "RouterInterchangeSuspended",
          "RouterSyncToParcel",
          "GatewayOutProcess",
          "NetOpsNodeStatus",
          "NetOpsTradingPartners",
          "NetOpsRoutes",
          "NetOpsMailbagsInboundPending",
          "NetOpsMailbag24Hr",
          "NetOpsInterchanges24Hr",
          "NetOpsMailbagCriticalStatus",
          "NetOpsInterchangeCriticalStatus",
          "NetOpsCallbacksPending",
          "NetOpsInterchanbge24HrBlocks"
        ],
        "type": "string",
        "description": "SOAP operation name recorded in ECGridOS session logs. Used internally to identify which\r\nAPI call triggered a session event — not typically needed by REST API consumers."
      },
      "ApiErrorResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "$ref": "#/components/schemas/HttpStatusCode"
          },
          "success": {
            "type": "boolean",
            "description": "Always `false` on an error response. Present for symmetry with ECG_REST_V1.ClassObjects.ApiResponse.Success\r\nso clients can branch on a single `success` field regardless of which envelope they receive.",
            "example": false
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Short, user-facing description of the error. Safe to display in a UI.",
            "example": "No user found with the supplied ID."
          },
          "detail": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional additional context or remediation guidance. Null when no extra detail applies.",
            "example": "The user ID may not exist or may not be accessible under your session."
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier to correlate with application logs. Provide this to support when\r\nreporting an issue.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "errorInfo": {
            "$ref": "#/components/schemas/ECGridSOAPErrorInfo"
          }
        },
        "additionalProperties": false,
        "description": "Standard error response envelope returned on all non-2xx responses. JSON-only. Carries a short\r\nhuman-readable ECG_REST_V1.ClassObjects.ApiErrorResponse.Message, optional ECG_REST_V1.ClassObjects.ApiErrorResponse.Detail remediation text, and —\r\nwhen the error originated in an underlying ECGridOS SOAP call — the raw SOAP error in\r\nECG_REST_V1.ClassObjects.ApiErrorResponse.ErrorInfo."
      },
      "ApiResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": "null",
            "description": "Endpoint-specific response payload. Type varies by endpoint — see the examples on each\r\nindividual operation for the expected data shape. Null when the operation has no payload."
          }
        },
        "additionalProperties": false,
        "description": "Standard success response envelope returned by all endpoints. JSON-only; XML clients should\r\nuse the legacy SOAP service at ECGridOS. The endpoint-specific payload is carried in\r\nECG_REST_V1.ClassObjects.ApiResponse.Data; its shape varies by operation — see per-endpoint examples."
      },
      "AuthLevel": {
        "enum": [
          "NoChange",
          "Root",
          "TechOps",
          "NetOps",
          "NetworkAdmin",
          "NetworkUser",
          "MailboxAdmin",
          "MailboxUser",
          "TPUser",
          "General"
        ],
        "type": "string",
        "description": "Authorization level for an ECGrid user account. Controls which objects and operations the\r\nuser's API key can read or modify. Higher levels have broader platform access; lower levels\r\nare scoped to a specific network or mailbox."
      },
      "AuthLogoutResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "True when the session was successfully terminated and the token revoked."
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /auth/logout confirming session termination."
      },
      "AuthPasswordRequest": {
        "required": [
          "newPassword",
          "oldPassword"
        ],
        "type": "object",
        "properties": {
          "oldPassword": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[^a-zA-Z0-9]).+$",
            "type": "string",
            "description": "The current password for the authenticated account. Required. Maximum 120 characters.\r\nMust contain at least one lowercase letter, one uppercase letter, one digit, and one\r\nspecial character."
          },
          "newPassword": {
            "maxLength": 120,
            "minLength": 1,
            "pattern": "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[^a-zA-Z0-9]).+$",
            "type": "string",
            "description": "The new password to set. Required. Maximum 120 characters.\r\nMust contain at least one lowercase letter, one uppercase letter, one digit, and one\r\nspecial character. Must differ from the current password."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for changing the authenticated user's ECGrid password.\r\nBoth fields must satisfy the password complexity requirements."
      },
      "AuthSessionResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/SessionLogInfo"
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /auth/session containing the session activity log."
      },
      "AuthUpdatePasswordResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the password was successfully updated."
          }
        },
        "additionalProperties": false,
        "description": "Response for PUT /auth/password confirming the password change."
      },
      "CallBackEventIDInfo": {
        "type": "object",
        "properties": {
          "callBackEventId": {
            "type": "integer",
            "description": "Unique numeric identifier for this callback event configuration.",
            "format": "int32"
          },
          "callBackEventIdField": {
            "type": "integer",
            "description": "Internal field identifier associated with the callback event.",
            "format": "int32"
          },
          "networkId": {
            "type": "integer",
            "description": "Owning network numeric identifier.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "Owning mailbox numeric identifier; 0 means the network root mailbox.",
            "format": "int32"
          },
          "userId": {
            "type": "integer",
            "description": "Numeric identifier of the user who owns this callback event.",
            "format": "int32"
          },
          "created": {
            "type": "string",
            "description": "UTC timestamp when this callback event was created.",
            "format": "date-time"
          },
          "modified": {
            "type": "string",
            "description": "UTC timestamp when this callback event was last modified.",
            "format": "date-time"
          },
          "systemObject": {
            "$ref": "#/components/schemas/Objects"
          },
          "objectStatus": {
            "type": "integer",
            "description": "Numeric status code on the triggering object that fires this callback.",
            "format": "int32"
          },
          "statusCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Status code string filter applied to inbound/outbound parcels to match this event."
          },
          "direction": {
            "$ref": "#/components/schemas/Direction"
          },
          "frequency": {
            "type": "integer",
            "description": "Interval in minutes between retry attempts when a callback call fails.",
            "format": "int32"
          },
          "maxCalls": {
            "type": "integer",
            "description": "Maximum number of delivery attempts before the callback is abandoned.",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "url": {
            "type": [
              "null",
              "string"
            ],
            "description": "Webhook URL that ECGrid posts to when this event fires."
          },
          "httpAuthentication": {
            "$ref": "#/components/schemas/HTTPAuthInfo"
          },
          "callBackQueue": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CallBackQueueIDInfo"
            },
            "description": "Pending queue entries awaiting delivery for this callback event."
          }
        },
        "additionalProperties": false,
        "description": "Webhook subscription record that fires when a parcel or interchange reaches a specified status. Carries the endpoint URL, retry policy, HTTP auth, and the most recent queue entries."
      },
      "CallBackLogInfo": {
        "type": "object",
        "properties": {
          "callBackLogId": {
            "type": "integer",
            "description": "Unique numeric identifier for this log entry.",
            "format": "int64"
          },
          "date": {
            "type": "string",
            "description": "UTC timestamp when this callback delivery attempt occurred.",
            "format": "date-time"
          },
          "callNumber": {
            "type": "integer",
            "description": "Sequential attempt number for this delivery (1 = first try).",
            "format": "int32"
          },
          "returnCode": {
            "type": "integer",
            "description": "HTTP status code returned by the webhook endpoint for this attempt.",
            "format": "int32"
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Response message or error detail returned from the webhook endpoint."
          }
        },
        "additionalProperties": false,
        "description": "One entry in the callback delivery call log."
      },
      "CallBackQueueIDInfo": {
        "type": "object",
        "properties": {
          "callBackQueueId": {
            "type": "integer",
            "description": "Unique numeric identifier for this queue entry.",
            "format": "int64"
          },
          "date": {
            "type": "string",
            "description": "UTC timestamp when this queue entry was created.",
            "format": "date-time"
          },
          "callBackEvent": {
            "$ref": "#/components/schemas/CallBackEventIDInfo"
          },
          "callsRemaining": {
            "type": "integer",
            "description": "Number of delivery attempts remaining before abandonment.",
            "format": "int32"
          },
          "nextCall": {
            "type": "string",
            "description": "UTC timestamp scheduled for the next delivery attempt.",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/StatusCallBack"
          },
          "objectId": {
            "type": "integer",
            "description": "Identifier of the ECGrid object (parcel, interchange) that triggered this entry.",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "description": "Numeric identifier of the user associated with this queue entry.",
            "format": "int32"
          },
          "test": {
            "type": "boolean",
            "description": "Indicates whether this is a test callback delivery, not a live event."
          },
          "callBackLog": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CallBackLogInfo"
            },
            "description": "Historical log of all delivery attempts made for this queue entry."
          }
        },
        "additionalProperties": false,
        "description": "Pending queue entry for a callback event awaiting delivery."
      },
      "CallbackCreateRequest": {
        "required": [
          "mailboxId",
          "networkId",
          "systemObject",
          "userId"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": "integer",
            "description": "ECGrid network id that owns this callback subscription. Required.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "ECGrid mailbox id that owns this callback subscription. Required.",
            "format": "int32"
          },
          "userId": {
            "type": "integer",
            "description": "ECGrid user id associated with this callback subscription. Required.",
            "format": "int32"
          },
          "systemObject": {
            "$ref": "#/components/schemas/Objects"
          },
          "objectStatus": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Numeric status code on the triggering object that fires this callback. Optional — omit to fire on any status change.",
            "format": "int32"
          },
          "direction": {
            "$ref": "#/components/schemas/Direction"
          },
          "frequency": {
            "maximum": 2147483647,
            "minimum": 5,
            "type": [
              "null",
              "integer"
            ],
            "description": "Interval in minutes between retry attempts on delivery failure. Minimum 5; defaults to 60.",
            "format": "int32"
          },
          "maxRetries": {
            "maximum": 499,
            "minimum": 2,
            "type": [
              "null",
              "integer"
            ],
            "description": "Maximum number of delivery attempts before the callback is abandoned. Range 2–499; defaults to 24.",
            "format": "int32"
          },
          "url": {
            "type": [
              "null",
              "string"
            ],
            "description": "Webhook URL that ECGrid will POST to when this event fires. Must be a reachable HTTPS endpoint."
          },
          "httpAuthentication": {
            "$ref": "#/components/schemas/HTTPAuthType"
          },
          "httpUser": {
            "maximum": 50,
            "minimum": 0,
            "type": [
              "null",
              "string"
            ],
            "description": "Username for HTTP Basic or Digest authentication at the webhook endpoint. Maximum 50 characters."
          },
          "httpPassword": {
            "maximum": 50,
            "minimum": 0,
            "type": [
              "null",
              "string"
            ],
            "description": "Password for HTTP Basic or Digest authentication at the webhook endpoint. Maximum 50 characters."
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for creating a new callback (webhook) subscription. Defines the ECGrid object\r\ntype and status that triggers the webhook, the delivery URL, retry policy, and HTTP auth credentials.\r\nNetworkId, MailboxId, UserId, and SystemObject are required."
      },
      "CallbackDeleteRequest": {
        "required": [
          "callBackEventId"
        ],
        "type": "object",
        "properties": {
          "callBackEventId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "Unique integer identifier of the callback event to delete. Must be greater than 0. Required.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for deleting (terminating) a callback subscription by its event ID."
      },
      "CallbackEventListRequest": {
        "required": [
          "mailboxId",
          "networkId",
          "showInactive"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": "integer",
            "description": "ECGrid network id to list callback events for. Required.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "ECGrid mailbox id to list callback events for. Must be 0 (network root mailbox) or a positive mailbox ID. -1 is not a valid wildcard for this endpoint. Required.",
            "format": "int32"
          },
          "showInactive": {
            "type": "boolean",
            "description": "When true, includes suspended (inactive) callback event subscriptions in the results. Defaults to false."
          }
        },
        "additionalProperties": false,
        "description": "Filter payload for listing callback event subscriptions for a network/mailbox scope.\r\nNetworkId, MailboxId, and ShowInactive are all required."
      },
      "CallbackGetEventByIDRequest": {
        "required": [
          "callBackEventId",
          "queueCount"
        ],
        "type": "object",
        "properties": {
          "callBackEventId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "Unique integer identifier of the callback event to retrieve. Must be greater than 0. Required.",
            "format": "int32"
          },
          "queueCount": {
            "type": "integer",
            "description": "Number of recent queue entries to include in the response. Defaults to 25.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for retrieving a single callback event subscription by its event ID,\r\nincluding recent queue history."
      },
      "CallbackQueueListRequest": {
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "ECGrid network id to scope the queue list to. Optional.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "ECGrid mailbox id to scope the queue list to. Optional.",
            "format": "int32"
          },
          "maxDays": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Maximum age in days of queue entries to return. Optional — omit to return all pending entries.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Filter payload for listing pending or failed callback queue entries.\r\nAll fields are optional — omit NetworkId and MailboxId to return entries across the caller's\r\nfull scope; omit MaxDays to return all entries regardless of age."
      },
      "CallbackTestRequest": {
        "required": [
          "callBackEventId",
          "interchangeId",
          "parcelId",
          "userId"
        ],
        "type": "object",
        "properties": {
          "callBackEventId": {
            "type": "integer",
            "description": "Unique integer identifier of the callback event subscription to test. Required.",
            "format": "int32"
          },
          "parcelId": {
            "type": "integer",
            "description": "Parcel ID to use as the triggering object in the test delivery. Required.",
            "format": "int64"
          },
          "interchangeId": {
            "type": "integer",
            "description": "Interchange ID to use as the triggering object in the test delivery. Required.",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "description": "ECGrid user ID to associate with the test delivery attempt. Required.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for firing a test callback delivery against an existing subscription.\r\nSimulates an event without waiting for a real parcel or interchange to arrive.\r\nAll fields are required."
      },
      "CallbackUpdateRequest": {
        "required": [
          "callBackEventId",
          "status"
        ],
        "type": "object",
        "properties": {
          "callBackEventId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "Unique integer identifier of the callback event subscription to update. Must be greater than 0. Required.",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for activating or suspending an existing callback event subscription.\r\nSupply the new lifecycle status — Active re-enables a suspended subscription;\r\nInactive (Suspended) pauses it without terminating it."
      },
      "CallbacksBoolResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the operation completed successfully."
          }
        },
        "additionalProperties": false,
        "description": "Typed response for boolean-result Callback endpoints (Callback_Delete, Callback_Update)."
      },
      "CallbacksCreateResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/CallBackEventIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Typed response for Callback_Create — data is the newly created CallBackEventIDInfo record."
      },
      "CallbacksEventListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CallBackEventIDInfo"
            },
            "description": "List of CallBackEventIDInfo records for the given network and mailbox."
          }
        },
        "additionalProperties": false,
        "description": "Typed response for Callback_EventList — data is the list of callback events for the requested scope."
      },
      "CallbacksGetEventByIdResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/CallBackEventIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Typed response for Callback_GetEventById — data is the CallBackEventIDInfo with embedded queue history."
      },
      "CallbacksGetQueueByIdResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/CallBackQueueIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Typed response for Callback_GetQueueById — data is the single CallBackQueueIDInfo entry."
      },
      "CallbacksQueueListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CallBackQueueIDInfo"
            },
            "description": "List of CallBackQueueIDInfo records matching the filter criteria."
          }
        },
        "additionalProperties": false,
        "description": "Typed response for Callback_QueueList — data is the list of pending or failed queue entries."
      },
      "CallbacksTestResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/CallBackQueueIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Typed response for Callback_Test — data is the CallBackQueueIDInfo record for the test delivery attempt."
      },
      "CarbonCopiesBoolResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the operation completed successfully."
          }
        },
        "additionalProperties": false,
        "description": "Typed response for boolean-result CarbonCopy endpoints (CarbonCopy_Delete, CarbonCopy_Update)."
      },
      "CarbonCopiesCreateResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The newly assigned carbonCopyId for the created rule.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Typed response for CarbonCopy_Create — data is the new carbonCopyId integer."
      },
      "CarbonCopiesGetByIdResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/CarbonCopyIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Typed response for CarbonCopy_GetById — data is the CarbonCopyIDInfo record."
      },
      "CarbonCopiesListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CarbonCopyIDInfo"
            },
            "description": "List of CarbonCopyIDInfo records matching the filter criteria."
          }
        },
        "additionalProperties": false,
        "description": "Typed response for CarbonCopy_List — data is the list of matching carbon copy rules."
      },
      "CarbonCopyCreateRequest": {
        "required": [
          "ecgridIdCcFrom",
          "ecgridIdCcTo",
          "ecgridIdFrom",
          "ecgridIdTo",
          "gsFrom",
          "gsTo",
          "transactionSet"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "ECGrid network id that owns the carbon copy rule. Optional — omit to use the caller's network.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "ECGrid mailbox id that owns the carbon copy rule. Optional — omit to use the caller's mailbox.",
            "format": "int32"
          },
          "ecgridIdFrom": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "ECGrid ID of the original sender to match. Must be a valid positive ECGrid integer ID. Required.",
            "format": "int32"
          },
          "ecgridIdTo": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "ECGrid ID of the original recipient to match. Must be a valid positive ECGrid integer ID. Required.",
            "format": "int32"
          },
          "ecgridIdCcFrom": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "ECGrid ID that will appear as the sender on the carbon copy. Must be a valid positive ECGrid integer ID. Required.",
            "format": "int32"
          },
          "ecgridIdCcTo": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "ECGrid ID that will receive the carbon copy. Must be a valid positive ECGrid integer ID. Required.",
            "format": "int32"
          },
          "gsFrom": {
            "minLength": 1,
            "type": "string",
            "description": "GS sender ID override written into the copied interchange header. Required."
          },
          "gsTo": {
            "minLength": 1,
            "type": "string",
            "description": "GS receiver ID override written into the copied interchange header. Required."
          },
          "transactionSet": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "EDI transaction set type to filter on (e.g. \"850\" for X12 purchase orders).\r\nPass an empty string to copy all transaction types. Maximum 20 characters. Required."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for creating a new carbon copy rule. The OriginalFrom/To pair identifies\r\nthe EDI ID routing pair to monitor; the CCFrom/To pair is the copy destination.\r\nPass an empty string for TransactionSet to copy all transaction types, or a specific\r\nX12 or EDIFACT transaction set identifier to narrow the copy to one type.\r\nNetworkId and MailboxId scope the rule to a specific mailbox when supplied together;\r\nomit both to scope the rule to the caller's API-key context."
      },
      "CarbonCopyIDInfo": {
        "type": "object",
        "properties": {
          "carbonCopyId": {
            "type": "integer",
            "description": "Unique numeric identifier for this carbon copy rule.",
            "format": "int32"
          },
          "networkId": {
            "type": "integer",
            "description": "Owning network numeric identifier.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "Owning mailbox numeric identifier; 0 means the network root mailbox.",
            "format": "int32"
          },
          "created": {
            "type": "string",
            "description": "UTC timestamp when this carbon copy rule was created.",
            "format": "date-time"
          },
          "modified": {
            "type": "string",
            "description": "UTC timestamp when this carbon copy rule was last modified.",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "originalFrom": {
            "$ref": "#/components/schemas/ECGridIDInfo"
          },
          "originalTo": {
            "$ref": "#/components/schemas/ECGridIDInfo"
          },
          "ccFrom": {
            "$ref": "#/components/schemas/ECGridIDInfo"
          },
          "ccTo": {
            "$ref": "#/components/schemas/ECGridIDInfo"
          },
          "gsFrom": {
            "type": [
              "null",
              "string"
            ],
            "description": "GS sender ID override applied to the carbon copy interchange."
          },
          "gsTo": {
            "type": [
              "null",
              "string"
            ],
            "description": "GS receiver ID override applied to the carbon copy interchange."
          },
          "transactionSet": {
            "type": [
              "null",
              "string"
            ],
            "description": "EDI transaction set type filter; empty means copy all transaction types."
          }
        },
        "additionalProperties": false,
        "description": "Rule that duplicates matching EDI interchanges to a secondary destination pair during routing. Defined by an original From/To EDI ID pair and a CC From/To pair; narrows to a specific transaction set when TransactionSet is set."
      },
      "CarbonCopyListRequest": {
        "required": [
          "ecgridIdFrom",
          "ecgridIdTo",
          "showInactive"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "ECGrid network id to scope the list to. Optional — omit to use the caller's network context.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "ECGrid mailbox id to scope the list to. Optional — omit to use the caller's mailbox context.",
            "format": "int32"
          },
          "ecgridIdFrom": {
            "maximum": 2147483647,
            "minimum": -1,
            "type": "integer",
            "description": "ECGrid ID of the original sender to filter by. Pass -1 to match any sender. Required.",
            "format": "int32"
          },
          "ecgridIdTo": {
            "maximum": 2147483647,
            "minimum": -1,
            "type": "integer",
            "description": "ECGrid ID of the original recipient to filter by. Pass -1 to match any recipient. Required.",
            "format": "int32"
          },
          "showInactive": {
            "type": "boolean",
            "description": "When true, includes suspended (inactive) carbon copy rules in the results. Defaults to false."
          }
        },
        "additionalProperties": false,
        "description": "Filter payload for listing carbon copy rules. ECGridIDFrom and ECGridIDTo are required;\r\npass -1 for either to match any sender or receiver respectively.\r\nNetworkId and MailboxId scope the list when supplied together."
      },
      "CarbonCopyUpdateRequest": {
        "required": [
          "carbonCopyId"
        ],
        "type": "object",
        "properties": {
          "carbonCopyId": {
            "type": "integer",
            "description": "Unique integer identifier of the carbon copy rule to update. Required.",
            "format": "int32"
          },
          "activate": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Set to true to re-enable a suspended carbon copy rule. Mutually exclusive with `suspend`."
          },
          "suspend": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Set to true to suspend an active carbon copy rule without terminating it. Mutually exclusive with `activate`."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for activating or suspending an existing carbon copy rule.\r\nSupply either `activate: true` to re-enable a suspended rule, or\r\n`suspend: true` to pause an active rule without terminating it.\r\nExactly one of the two flags must be true."
      },
      "CellCarrier": {
        "enum": [
          "NoChange",
          "Undefined",
          "ATTCingular",
          "Verizon",
          "TMobile",
          "SprintPCS",
          "Nextel",
          "Alltel",
          "VirginMobile",
          "ATTPreCingular",
          "ATT",
          "BoostMobile",
          "USCellular",
          "MetroPCS",
          "Powertel"
        ],
        "type": "string",
        "description": "Mobile carrier for SMS delivery. Used when sending alerts or notifications to a user's\r\ncell phone via the UserSendSMS operation."
      },
      "CertStoreTypes": {
        "enum": [
          "cstUser",
          "cstMachine",
          "cstPFXFile",
          "cstPFXBlob",
          "cstJKSFile",
          "cstJKSBlob",
          "cstPEMKeyFile",
          "cstPEMKeyBlob",
          "cstPublicKeyFile",
          "cstPublicKeyBlob",
          "cstSSHPublicKeyBlob",
          "cstP7BFile",
          "cstP7BBlob",
          "cstSSHPublicKeyFile",
          "cstPPKFile",
          "cstPPKBlob",
          "cstXMLFile",
          "cstXMLBlob"
        ],
        "type": "string",
        "description": "Certificate storage format or source location. Determines how ECGrid loads certificate\r\nmaterial when establishing a secure connection."
      },
      "Certificate": {
        "type": "object",
        "properties": {
          "certKeyId": {
            "type": "integer",
            "description": "Unique numeric identifier for this certificate record.",
            "format": "int32"
          },
          "partnerId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Partner AS2 identifier associated with this certificate."
          },
          "partnerUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "Partner AS2 endpoint URL associated with this certificate."
          },
          "type": {
            "$ref": "#/components/schemas/CertificateType"
          },
          "usage": {
            "$ref": "#/components/schemas/CertificateUsage"
          },
          "secureHashAlgorithm": {
            "type": [
              "null",
              "string"
            ],
            "description": "Secure hash algorithm used by this certificate (e.g., SHA-256)."
          },
          "subject": {
            "type": [
              "null",
              "string"
            ],
            "description": "Distinguished name of the certificate subject."
          },
          "issuer": {
            "type": [
              "null",
              "string"
            ],
            "description": "Distinguished name of the certificate issuing authority."
          },
          "hasPrivateKey": {
            "type": "boolean",
            "description": "Indicates whether the private key is stored alongside this certificate."
          },
          "publicCertificate": {
            "type": [
              "null",
              "string"
            ],
            "description": "Raw bytes of the public certificate (DER-encoded).",
            "format": "byte"
          },
          "beginUsage": {
            "type": "string",
            "description": "UTC timestamp from which this certificate may be used for comm channel operations.",
            "format": "date-time"
          },
          "endUsage": {
            "type": "string",
            "description": "UTC timestamp after which this certificate is no longer used for comm channel operations.",
            "format": "date-time"
          },
          "notBefore": {
            "type": "string",
            "description": "UTC timestamp before which the certificate is not yet cryptographically valid.",
            "format": "date-time"
          },
          "notAfter": {
            "type": "string",
            "description": "UTC timestamp after which the certificate is no longer cryptographically valid.",
            "format": "date-time"
          },
          "serialNumber": {
            "type": [
              "null",
              "string"
            ],
            "description": "Certificate serial number assigned by the issuing authority."
          },
          "thumbprint": {
            "type": [
              "null",
              "string"
            ],
            "description": "SHA-1 thumbprint (fingerprint) uniquely identifying the certificate."
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "rootInfo": {
            "$ref": "#/components/schemas/CertificateRoot"
          },
          "certType": {
            "$ref": "#/components/schemas/CertStoreTypes"
          }
        },
        "additionalProperties": false,
        "description": "Crypto certificate entry (X.509, SSH key, or SSL cert) attached to a comm channel for AS2 signing, encryption, or SFTP authentication."
      },
      "CertificateAddPrivateRequest": {
        "required": [
          "beginUsage",
          "certType",
          "commId",
          "usage"
        ],
        "type": "object",
        "properties": {
          "commId": {
            "type": "integer",
            "description": "ECGrid comm channel ID this certificate will be attached to. Required.",
            "format": "int32"
          },
          "certType": {
            "$ref": "#/components/schemas/CertificateType"
          },
          "keyId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Key identifier string used to reference this certificate in ECGrid. Optional."
          },
          "userId": {
            "maxLength": 50,
            "type": [
              "null",
              "string"
            ],
            "description": "User identifier associated with this certificate. Maximum 50 characters. Optional."
          },
          "beginUsage": {
            "type": "string",
            "description": "UTC date and time from which this certificate becomes valid for use. Required.",
            "format": "date-time"
          },
          "usage": {
            "$ref": "#/components/schemas/CertificateUsage"
          },
          "partnerAs2Id": {
            "type": [
              "null",
              "string"
            ],
            "description": "AS2 identifier of the trading partner this private key is associated with. Optional."
          },
          "cert": {
            "type": [
              "null",
              "string"
            ],
            "description": "Base64-encoded or PEM-encoded certificate or private key content. Optional when the key is identified by keyId."
          },
          "password": {
            "maxLength": 128,
            "minLength": 1,
            "type": [
              "null",
              "string"
            ],
            "description": "Passphrase protecting the private key file. Required when the key material is passphrase-protected. Maximum 128 characters."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for attaching an existing private key or certificate to a comm channel.\r\nProvide the raw certificate material in `cert` and optionally a `password`\r\nwhen the key file is passphrase-protected. CommId, CertType, BeginUsage, and Usage are required."
      },
      "CertificateAddPublicRequest": {
        "required": [
          "beginUsage",
          "certType",
          "commId",
          "usage"
        ],
        "type": "object",
        "properties": {
          "commId": {
            "type": "integer",
            "description": "ECGrid comm channel ID this public certificate will be attached to. Required.",
            "format": "int32"
          },
          "certType": {
            "$ref": "#/components/schemas/CertificateType"
          },
          "keyId": {
            "maxLength": 50,
            "type": [
              "null",
              "string"
            ],
            "description": "Key identifier string used to reference this certificate. Maximum 50 characters. Optional."
          },
          "userId": {
            "maxLength": 50,
            "type": [
              "null",
              "string"
            ],
            "description": "User identifier associated with this certificate. Maximum 50 characters. Optional."
          },
          "beginUsage": {
            "type": "string",
            "description": "UTC date and time from which this certificate becomes valid for use. Required.",
            "format": "date-time"
          },
          "usage": {
            "$ref": "#/components/schemas/CertificateUsage"
          },
          "partnerCommId": {
            "type": [
              "null",
              "string"
            ],
            "description": "ECGrid comm channel ID of the trading partner. Optional — used to link this certificate to a specific partner comm record."
          },
          "partnerUrl": {
            "type": [
              "null",
              "string"
            ],
            "description": "AS2 endpoint URL of the trading partner associated with this certificate. Optional."
          },
          "cert": {
            "type": [
              "null",
              "string"
            ],
            "description": "Base64-encoded or PEM-encoded public certificate content. Optional when the certificate is identified by keyId."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for attaching a trading partner's public certificate to a comm channel.\r\nUsed for verifying the partner's signed AS2 messages and for encrypting outbound messages\r\nto the partner. CommId, CertType, BeginUsage, and Usage are required."
      },
      "CertificateCreatePrivateRequest": {
        "required": [
          "beginUsage",
          "commId",
          "expires",
          "secureHashAlgorithm",
          "usage"
        ],
        "type": "object",
        "properties": {
          "commId": {
            "type": "integer",
            "description": "ECGrid comm channel ID the generated certificate will be created for. Required.",
            "format": "int32"
          },
          "beginUsage": {
            "type": "string",
            "description": "UTC date and time from which the generated certificate becomes valid. Required.",
            "format": "date-time"
          },
          "usage": {
            "$ref": "#/components/schemas/CertificateUsage"
          },
          "secureHashAlgorithm": {
            "$ref": "#/components/schemas/CertificateSecureHashAlgorithm"
          },
          "partnerAs2Id": {
            "type": [
              "null",
              "string"
            ],
            "description": "AS2 identifier of the trading partner the certificate is being generated for. Used as the\r\n            certificate subject. Optional — a hosted mailbox's own private cert has no partner, so the web\r\n            portal sends \"\" here and ECGridOS accepts it; must not be [Required] (which rejects empty)."
          },
          "expires": {
            "type": "string",
            "description": "UTC expiry date and time for the generated certificate. Required.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for ECGrid to generate a new self-signed private key and X.509 certificate\r\nfor a comm channel. ECGrid creates and stores the key material — no external key material\r\nis supplied. CommId, BeginUsage, Usage, SecureHashAlgorithm, PartnerAS2ID, and Expires are required."
      },
      "CertificateRenewPrivateRequest": {
        "required": [
          "certKeyId",
          "commId",
          "overlapDays",
          "secureHashAlgorithm",
          "years"
        ],
        "type": "object",
        "properties": {
          "commId": {
            "type": "integer",
            "description": "ECGrid comm channel ID that owns the certificate to renew. Required.",
            "format": "int32"
          },
          "certKeyId": {
            "type": "integer",
            "description": "ECGrid certificate key ID of the certificate to renew. Required.",
            "format": "int32"
          },
          "overlapDays": {
            "maximum": 180,
            "minimum": 1,
            "type": "integer",
            "description": "Number of days the new certificate's validity period should overlap with the expiring certificate. Range 1–180. Required.",
            "format": "int32"
          },
          "years": {
            "maximum": 2,
            "minimum": 1,
            "type": "integer",
            "description": "Number of years the renewed certificate should be valid for. Must be 1 or 2. Required.",
            "format": "int32"
          },
          "secureHashAlgorithm": {
            "$ref": "#/components/schemas/CertificateSecureHashAlgorithm"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for renewing an existing ECGrid-managed private certificate.\r\nGenerates a new certificate overlapping with the expiring one to avoid a coverage gap.\r\nCommId, CertKeyId, OverlapDays, Years, and SecureHashAlgorithm are required."
      },
      "CertificateRoot": {
        "type": "object",
        "properties": {
          "password": {
            "type": [
              "null",
              "string"
            ]
          },
          "privatePfx": {
            "type": [
              "null",
              "string"
            ],
            "format": "byte"
          }
        },
        "additionalProperties": false,
        "description": "Root certificate authority record held by ECGrid, including the private PFX. For internal cert management operations only — the PFX and password are never exposed in customer-facing responses."
      },
      "CertificateSecureHashAlgorithm": {
        "enum": [
          "sha1",
          "sha2"
        ],
        "type": "string",
        "description": "Hash algorithm used when signing or verifying an AS2 certificate."
      },
      "CertificateTerminateRequest": {
        "required": [
          "certKeyId",
          "commId"
        ],
        "type": "object",
        "properties": {
          "commId": {
            "type": "integer",
            "description": "ECGrid comm channel ID that owns the certificate to terminate. Required.",
            "format": "int32"
          },
          "certKeyId": {
            "type": "integer",
            "description": "ECGrid certificate key ID of the certificate to terminate. Required.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for terminating (revoking) a certificate on a comm channel.\r\nCommId and CertKeyId together identify the exact certificate entry to remove."
      },
      "CertificateType": {
        "enum": [
          "X509",
          "PGP",
          "SSH"
        ],
        "type": "string",
        "description": "Cryptographic certificate or key format stored in ECGrid for use on a comm channel."
      },
      "CertificateUsage": {
        "enum": [
          "SSL",
          "Encryption",
          "Signature",
          "EncryptionAndSignature"
        ],
        "type": "string",
        "description": "Purpose for which a certificate is applied on an AS2 or SFTP comm channel."
      },
      "CertificatesBoolResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the certificate was terminated successfully."
          }
        },
        "additionalProperties": false,
        "description": "Typed response for Certificate_Terminate — data is true on success."
      },
      "CertificatesCommIdInfoResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/CommIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Typed response for Certificate endpoints that return a CommIDInfo record\r\n(Certificate_AddPrivate, Certificate_AddPublic, Certificate_Create, Certificate_Renew)."
      },
      "CommCreateRequest": {
        "required": [
          "beginUsage",
          "commType",
          "compressData",
          "ecGridHosted",
          "encryptData",
          "endUsage",
          "httpAuthentication",
          "mailboxId",
          "networkId",
          "ownerUserId",
          "receiptType",
          "signData",
          "status",
          "useType"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": "integer",
            "description": "ECGrid network id that owns the mailbox this comm record will be created under.\r\nMust be greater than 0.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "ECGrid mailbox id the comm record will be associated with. Must be greater than 0.\r\nUse mailboxId 0 only when targeting the root mailbox, paired with the owning NetworkID.",
            "format": "int32"
          },
          "commType": {
            "$ref": "#/components/schemas/NetworkGatewayCommChannel"
          },
          "ownerUserId": {
            "type": "integer",
            "description": "ECGrid user id that will be recorded as the owner of this comm record. When omitted,\r\ndefaults to the user id associated with the caller's API key.",
            "format": "int32"
          },
          "ecGridHosted": {
            "type": "boolean",
            "description": "True when ECGrid hosts this comm endpoint on behalf of the mailbox (ECGrid-managed AS2\r\nstation). False when the mailbox owner operates their own endpoint and ECGrid connects\r\noutbound to the URL specified in ECG_REST_V1.Controllers.CommCreateRequest.URL."
          },
          "identifier": {
            "maxLength": 128,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ],
            "description": "Protocol-specific identifier for this comm record, such as the AS2 ID or SFTP host name.\r\nRequired in all cases. Must be 1–128 printable ASCII characters (RFC 4130 §6.2, range 0x20–0x7E).\r\nNon-ASCII characters including accented letters and emoji are not permitted."
          },
          "url": {
            "type": [
              "null",
              "string"
            ],
            "description": "Endpoint URL that ECGrid will connect to when sending transmissions via this comm record.\r\nMust be a valid HTTP, HTTPS, FTPS, or OFTP URL when provided. Leave empty for ECGrid-hosted comms."
          },
          "version": {
            "type": [
              "null",
              "string"
            ],
            "description": "Protocol version string. Required and must be one of \"1.2\", \"1.3\", \"1.4\", or \"2.0\"\r\nwhen CommType is OFTP. Leave empty for AS2 and SFTP comm types."
          },
          "signData": {
            "type": "boolean",
            "description": "True to sign outbound EDI data using the configured certificate before transmission.\r\nDefaults to true; set to false only when the trading partner does not support signed AS2 messages."
          },
          "encryptData": {
            "type": "boolean",
            "description": "True to encrypt outbound EDI data using the trading partner's public certificate.\r\nDefaults to true; set to false only when the trading partner does not support encrypted AS2 messages."
          },
          "compressData": {
            "type": "boolean",
            "description": "True to compress outbound EDI data before signing and encryption.\r\nDefaults to true; set to false when compression is not supported or negotiated with the trading partner."
          },
          "receiptType": {
            "$ref": "#/components/schemas/ReceiptType"
          },
          "httpAuthentication": {
            "$ref": "#/components/schemas/HTTPAuthType"
          },
          "httpUser": {
            "type": [
              "null",
              "string"
            ],
            "description": "Username for HTTP authentication. Required when HTTPAuthentication is not None.\r\nLeave empty when HTTPAuthentication is None."
          },
          "httpPassword": {
            "type": [
              "null",
              "string"
            ],
            "description": "Password for HTTP authentication. Required when HTTPAuthentication is not None.\r\nLeave empty when HTTPAuthentication is None. Never commit real credentials — use secrets management."
          },
          "sslClientAuthentication": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "When provided, enables SSL client certificate authentication (mTLS) for this comm record.\r\nSupplying this field routes the create operation through CommAddA instead of CommAdd.\r\nOmit or set to null to use standard authentication without client certificates."
          },
          "useType": {
            "$ref": "#/components/schemas/UseType"
          },
          "beginUsage": {
            "type": "string",
            "description": "Date and time from which this comm record becomes active. Defaults to the current date and time.\r\nTransmissions attempted before this date will not be routed through this comm record.",
            "format": "date-time"
          },
          "endUsage": {
            "type": "string",
            "description": "Date and time after which this comm record expires. Defaults to ten years from the current date.\r\nTransmissions attempted after this date will not be routed through this comm record.",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for creating a new comm record on a mailbox. Defines the full protocol\r\nconfiguration including connection type, endpoint URL, AS2 security flags, authentication,\r\nand operational period."
      },
      "CommFindRequest": {
        "required": [
          "commType",
          "identifier",
          "privateKeyRequired",
          "showInactive",
          "useType"
        ],
        "type": "object",
        "properties": {
          "identifier": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string",
            "description": "Protocol-specific identifier to search for, such as the AS2 ID assigned to the trading partner.\r\nMust be between 1 and 128 characters."
          },
          "commType": {
            "$ref": "#/components/schemas/NetworkGatewayCommChannel"
          },
          "privateKeyRequired": {
            "type": "boolean",
            "description": "When true, restricts results to comm records that have a private key configured. Set to false\r\nto include comm records regardless of private-key presence."
          },
          "useType": {
            "$ref": "#/components/schemas/UseType"
          },
          "showInactive": {
            "type": "boolean",
            "description": "When true, includes suspended (inactive) comm records in the search results. Set to false\r\nto return only active comm records."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for searching comm records by protocol identifier and channel type. All fields\r\nare required; use ShowInactive to include suspended comm records in the results."
      },
      "CommIDInfo": {
        "type": "object",
        "properties": {
          "commId": {
            "type": "integer",
            "description": "Unique numeric identifier for this comm channel configuration.",
            "format": "int32"
          },
          "type": {
            "$ref": "#/components/schemas/NetworkGatewayCommChannel"
          },
          "version": {
            "type": [
              "null",
              "string"
            ],
            "description": "Protocol version string for this comm channel."
          },
          "created": {
            "type": "string",
            "description": "UTC timestamp when this comm channel was created.",
            "format": "date-time"
          },
          "modified": {
            "type": "string",
            "description": "UTC timestamp when this comm channel was last modified.",
            "format": "date-time"
          },
          "hosted": {
            "type": "boolean",
            "description": "Indicates whether ECGrid hosts the AS2 endpoint (true) or the trading partner hosts it (false)."
          },
          "identifier": {
            "type": [
              "null",
              "string"
            ],
            "description": "AS2 identifier or other protocol-specific channel identifier string."
          },
          "owner": {
            "$ref": "#/components/schemas/UserIDInfo"
          },
          "networkId": {
            "type": "integer",
            "description": "Owning network numeric identifier.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "Owning mailbox numeric identifier; 0 means the network root mailbox.",
            "format": "int32"
          },
          "useType": {
            "$ref": "#/components/schemas/UseType"
          },
          "url": {
            "type": [
              "null",
              "string"
            ],
            "description": "Remote trading partner endpoint URL for this comm channel."
          },
          "mimeTypeOverride": {
            "type": [
              "null",
              "string"
            ],
            "description": "MIME content-type override sent in AS2 messages; empty uses the protocol default."
          },
          "signData": {
            "type": "boolean",
            "description": "Indicates whether outbound messages are digitally signed."
          },
          "encryptData": {
            "type": "boolean",
            "description": "Indicates whether outbound messages are encrypted."
          },
          "compressData": {
            "type": "boolean",
            "description": "Indicates whether outbound messages are compressed before transmission."
          },
          "beginUsage": {
            "type": "string",
            "description": "UTC timestamp from which this comm channel is active for traffic.",
            "format": "date-time"
          },
          "endUsage": {
            "type": "string",
            "description": "UTC timestamp after which this comm channel is no longer used for traffic.",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "receipt": {
            "$ref": "#/components/schemas/ReceiptType"
          },
          "sslClientAuthentication": {
            "type": "boolean",
            "description": "Indicates whether SSL client certificate authentication is required for inbound connections."
          },
          "httpAuthentication": {
            "$ref": "#/components/schemas/HTTPAuthInfo"
          },
          "certificates": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/Certificate"
            },
            "description": "Certificates assigned to this comm channel for signing, encryption, or authentication."
          }
        },
        "additionalProperties": false,
        "description": "Configuration record for one AS2, SFTP, or other protocol comm channel attached to a mailbox. Returned by comm lookup and list endpoints; updated via the comm update endpoints."
      },
      "CommListRequest": {
        "required": [
          "commType",
          "privateKeyRequired",
          "showInactive",
          "useType",
          "withCerts"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "ECGrid network id to scope the list to. When provided together with MailboxId, restricts\r\nresults to the specified mailbox. When omitted, the list is scoped to the caller's network.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "ECGrid mailbox id to scope the list to. Must be provided together with NetworkId to enable\r\nmailbox-level filtering; ignored when NetworkId is absent.",
            "format": "int32"
          },
          "commType": {
            "$ref": "#/components/schemas/NetworkGatewayCommChannel"
          },
          "privateKeyRequired": {
            "type": "boolean",
            "description": "When true, restricts results to comm records that have a private key configured. Set to false\r\nto return comm records regardless of private-key presence."
          },
          "useType": {
            "$ref": "#/components/schemas/UseType"
          },
          "showInactive": {
            "type": "boolean",
            "description": "When true, includes suspended (inactive) comm records in the results. Set to false to return\r\nonly active comm records."
          },
          "withCerts": {
            "type": "boolean",
            "description": "When true, includes associated certificate data in each returned comm record. Set to false\r\nto omit certificate details and reduce response payload size."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for listing comm records. Supplying both NetworkId and MailboxId scopes the\r\nresults to a single mailbox; omitting either returns network-scoped results."
      },
      "CommPairRequest": {
        "required": [
          "commType",
          "ecgridIdFrom",
          "ecgridIdTo",
          "testMode"
        ],
        "type": "object",
        "properties": {
          "commType": {
            "$ref": "#/components/schemas/NetworkGatewayCommChannel"
          },
          "ecgridIdFrom": {
            "maximum": 49,
            "minimum": 1,
            "type": "integer",
            "description": "ECGrid ID of the sending trading partner. Must be a valid ECGrid ID in the range 1–49.\r\nObtain from the partner's EDI ID record or an ECGrid lookup.",
            "format": "int32"
          },
          "ecgridIdTo": {
            "maximum": 49,
            "minimum": 1,
            "type": "integer",
            "description": "ECGrid ID of the receiving trading partner. Must be a valid ECGrid ID in the range 1–49.\r\nObtain from the partner's EDI ID record or an ECGrid lookup.",
            "format": "int32"
          },
          "defaultId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Preferred protocol-specific identifier (e.g. AS2 ID) to use when multiple comm records\r\ncould satisfy the pairing. Must not be empty — provide the exact identifier string that\r\nshould be preferred in ambiguous routing scenarios."
          },
          "testMode": {
            "type": "boolean",
            "description": "When true, resolves the pairing without recording a live routing decision. Use during\r\nintegration testing to verify routing configuration without affecting production traffic."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for resolving the comm record that routes transmissions between two ECGrid IDs.\r\nAll fields are required; use TestMode to resolve without recording a live routing decision."
      },
      "CommSetPairRequest": {
        "required": [
          "ecgridIdFrom",
          "ecgridIdTo"
        ],
        "type": "object",
        "properties": {
          "ecgridIdFrom": {
            "maximum": 49,
            "minimum": 1,
            "type": "integer",
            "description": "ECGrid ID of the sending trading partner. Must be a valid ECGrid ID in the range 1–49.\r\nObtain from the partner's EDI ID record or an ECGrid lookup.",
            "format": "int32"
          },
          "ecgridIdTo": {
            "maximum": 49,
            "minimum": 1,
            "type": "integer",
            "description": "ECGrid ID of the receiving trading partner. Must be a valid ECGrid ID in the range 1–49.\r\nObtain from the partner's EDI ID record or an ECGrid lookup.",
            "format": "int32"
          },
          "identifier1": {
            "type": [
              "null",
              "string"
            ],
            "description": "Protocol-specific identifier (e.g. AS2 ID) for the sending side of the pairing.\r\nThis value is matched against comm records belonging to ECGridIDFrom."
          },
          "identifier2": {
            "type": [
              "null",
              "string"
            ],
            "description": "Protocol-specific identifier (e.g. AS2 ID) for the receiving side of the pairing.\r\nThis value is matched against comm records belonging to ECGridIDTo."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for explicitly assigning the comm identifiers used when routing between two\r\nECGrid IDs. Overwrites any previously stored pairing for this ID pair."
      },
      "CommUpdateConfigRequest": {
        "required": [
          "commId"
        ],
        "type": "object",
        "properties": {
          "commId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "Unique ECGrid integer identifier of the comm record to update. Must be greater than 0.\r\nObtain from a prior `GET /comms/{id}` or `POST /comms/list` response.",
            "format": "int32"
          },
          "mailboxId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": [
              "null",
              "integer"
            ],
            "description": "ECGrid mailbox id to designate as the default inbound mailbox for this comm record.\r\nWhen provided, routes the operation through CommDefaultMailbox. Must be greater than 0.\r\nMutually exclusive with ECG_REST_V1.Controllers.CommUpdateConfigRequest.Status — supply one or the other, not both.",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for applying a targeted configuration change to an existing comm record.\r\nCommID is always required; supply either MailboxID to reassign the default inbound mailbox,\r\nor Status to activate or suspend the comm record — not both."
      },
      "CommUpdateRequest": {
        "required": [
          "beginUsage",
          "commId",
          "compressData",
          "encryptData",
          "endUsage",
          "httpAuthentication",
          "httpPassword",
          "httpUser",
          "ownerUserId",
          "receiptType",
          "signData",
          "useType"
        ],
        "type": "object",
        "properties": {
          "commId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "Unique ECGrid integer identifier of the comm record to update. Must be greater than 0.\r\nObtain from a prior `GET /comms/{id}` or `POST /comms/list` response.",
            "format": "int32"
          },
          "ownerUserId": {
            "type": "integer",
            "description": "ECGrid user id to record as the owner of this comm record. When omitted, defaults to\r\nthe user id associated with the caller's API key.",
            "format": "int32"
          },
          "identifier": {
            "maxLength": 128,
            "minLength": 1,
            "type": [
              "null",
              "string"
            ],
            "description": "Updated protocol-specific identifier for this comm record (e.g. the AS2 ID).\r\nMust be between 1 and 128 characters when provided."
          },
          "url": {
            "maxLength": 255,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ],
            "description": "Updated endpoint URL that ECGrid connects to when sending transmissions. Must be a valid\r\nHTTP, HTTPS, FTPS, or OFTP URL when provided. Leave empty to retain the current URL."
          },
          "version": {
            "type": [
              "null",
              "string"
            ],
            "description": "Updated protocol version string. Relevant for OFTP comm types where valid values are\r\n\"1.2\", \"1.3\", \"1.4\", or \"2.0\". Leave empty for AS2 and SFTP comm types."
          },
          "signData": {
            "type": "boolean",
            "description": "True to sign outbound EDI data using the configured certificate before transmission.\r\nSet to false only when the trading partner does not support signed AS2 messages."
          },
          "encryptData": {
            "type": "boolean",
            "description": "True to encrypt outbound EDI data using the trading partner's public certificate.\r\nSet to false only when the trading partner does not support encrypted AS2 messages."
          },
          "compressData": {
            "type": "boolean",
            "description": "True to compress outbound EDI data before signing and encryption. Set to false when\r\ncompression is not supported or has been negotiated off with the trading partner."
          },
          "receiptType": {
            "$ref": "#/components/schemas/ReceiptType"
          },
          "httpAuthentication": {
            "$ref": "#/components/schemas/HTTPAuthType"
          },
          "httpUser": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Updated username for HTTP authentication. Required when HTTPAuthentication is not None.\r\nMaximum 50 characters."
          },
          "httpPassword": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Updated password for HTTP authentication. Required when HTTPAuthentication is not None.\r\nMaximum 50 characters. Never commit real credentials — use secrets management."
          },
          "sslClientAuthentication": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "When provided, updates the SSL client certificate authentication (mTLS) flag and routes\r\nthe operation through CommUpdateA. Omit or set to null to use CommUpdate without mTLS."
          },
          "useType": {
            "$ref": "#/components/schemas/UseType"
          },
          "beginUsage": {
            "type": "string",
            "description": "Updated date and time from which this comm record becomes active. Transmissions attempted\r\nbefore this date will not be routed through this comm record.",
            "format": "date-time"
          },
          "endUsage": {
            "type": "string",
            "description": "Updated expiry date and time for this comm record. Transmissions attempted after this date\r\nwill not be routed through this comm record.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for updating the configuration of an existing comm record. All fields that\r\nare marked required must be supplied; optional fields replace current stored values when provided."
      },
      "CommsBoolResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the comm operation completed successfully."
          }
        },
        "additionalProperties": false,
        "description": "Typed response wrapper for comm endpoints that return a boolean result."
      },
      "CommsGetByIdResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/CommIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Typed response wrapper for comm endpoints that return a single CommIDInfo record."
      },
      "CommsListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CommIDInfo"
            },
            "description": "The list of CommIDInfo records matching the query criteria."
          }
        },
        "additionalProperties": false,
        "description": "Typed response wrapper for comm list endpoints that return a collection of CommIDInfo records."
      },
      "Direction": {
        "enum": [
          "NoDir",
          "OutBox",
          "InBox"
        ],
        "type": "string",
        "description": "Flow direction of a parcel or interchange relative to the requesting mailbox."
      },
      "ECGridIDInfo": {
        "type": "object",
        "properties": {
          "ecgridId": {
            "type": "integer",
            "description": "Unique numeric ECGrid identifier for this EDI address.",
            "format": "int32"
          },
          "networkId": {
            "type": "integer",
            "description": "Owning network numeric identifier.",
            "format": "int32"
          },
          "networkName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of the owning network."
          },
          "mailboxId": {
            "type": "integer",
            "description": "Owning mailbox numeric identifier; 0 means the network root mailbox.",
            "format": "int32"
          },
          "mailboxName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of the owning mailbox."
          },
          "qualifier": {
            "type": [
              "null",
              "string"
            ],
            "description": "ISA/GS qualifier code that prefixes the EDI ID value (e.g., \"01\" for DUNS)."
          },
          "id": {
            "type": [
              "null",
              "string"
            ],
            "description": "EDI identifier value paired with the qualifier to form the trading partner address."
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable description or label for this EDI ID."
          },
          "dataEmail": {
            "type": [
              "null",
              "string"
            ],
            "description": "Email address used for data delivery notifications associated with this EDI ID."
          },
          "mailboxDefault": {
            "type": "boolean",
            "description": "Indicates whether this is the default EDI ID for its owning mailbox."
          },
          "status": {
            "$ref": "#/components/schemas/StatusECGridID"
          },
          "useType": {
            "$ref": "#/components/schemas/UseType"
          },
          "owner": {
            "$ref": "#/components/schemas/UserIDInfo"
          },
          "ownerInfo": {
            "$ref": "#/components/schemas/ECGridOwnerInfo"
          },
          "config": {
            "$ref": "#/components/schemas/MailboxConfig"
          }
        },
        "additionalProperties": false,
        "description": "EDI address record combining an ISA qualifier and ID value into a routable trading partner identity. Each mailbox can have one or more ECGrid IDs; this object carries the full ownership, status, and configuration of one EDI address."
      },
      "ECGridOSSOAPErrorCode": {
        "enum": [
          "SoapError",
          "SessionTimeout",
          "AccessDenied",
          "NotFound",
          "InvalidId",
          "DuplicateId",
          "IdExistsOnNetwork",
          "InvalidDataType",
          "InvalidDataLength",
          "DataError",
          "SqlError"
        ],
        "type": "string",
        "description": "Error codes returned by ECGridOS in the SOAP fault envelope. Identifies the failure\r\ncategory so callers can distinguish auth failures, not-found errors, and data validation\r\nerrors without parsing free-text messages."
      },
      "ECGridOwnerInfo": {
        "type": "object",
        "properties": {
          "networkId": {
            "type": "integer",
            "description": "Owning network numeric identifier.",
            "format": "int32"
          },
          "networkName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of the owning network."
          },
          "mailboxId": {
            "type": "integer",
            "description": "Owning mailbox numeric identifier; 0 means the network root mailbox.",
            "format": "int32"
          },
          "mailboxName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of the owning mailbox."
          },
          "created": {
            "type": "string",
            "description": "UTC timestamp when this ownership record was created.",
            "format": "date-time"
          },
          "modified": {
            "type": "string",
            "description": "UTC timestamp when this ownership record was last modified.",
            "format": "date-time"
          },
          "effective": {
            "type": "string",
            "description": "UTC timestamp from which this EDI ID ownership is effective.",
            "format": "date-time"
          },
          "expires": {
            "type": "string",
            "description": "UTC timestamp at which this EDI ID ownership expires; null means indefinite.",
            "format": "date-time"
          },
          "lastTraffic": {
            "type": "string",
            "description": "UTC timestamp of the most recent interchange routed through this EDI ID.",
            "format": "date-time"
          },
          "routingGroup": {
            "$ref": "#/components/schemas/RoutingGroup"
          }
        },
        "additionalProperties": false,
        "description": "Ownership and routing metadata for an ECGrid ID: the owning network/mailbox, effective date range, and the routing group the EDI address belongs to."
      },
      "ECGridSOAPErrorInfo": {
        "type": "object",
        "properties": {
          "errorCode": {
            "$ref": "#/components/schemas/ECGridOSSOAPErrorCode"
          },
          "errorString": {
            "type": [
              "null",
              "string"
            ],
            "description": "Short ECGridOS error string (e.g., \"NotFound\", \"AccessDenied\")."
          },
          "errorItem": {
            "type": [
              "null",
              "string"
            ],
            "description": "The specific field, ID, or item that caused the error (e.g., the invalid mailboxId value)."
          },
          "errorMessage": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable description of the error from ECGridOS, safe to surface in a UI."
          }
        },
        "additionalProperties": false,
        "description": "Structured error payload returned by ECGridOS when a SOAP call fails at the application\r\nlayer (not a transport fault). Surfaced in `ApiErrorResponse.ErrorInfo` when the\r\nREST layer receives an ECGridOS error response."
      },
      "EDIStandard": {
        "enum": [
          "X12",
          "EDIFACT",
          "TRADACOMS",
          "VDA",
          "XML",
          "TXT",
          "PDF",
          "Binary"
        ],
        "type": "string",
        "description": "Content format or EDI standard of an interchange payload. ECGrid routes both traditional\r\nEDI standards and non-EDI content types."
      },
      "EMailPayload": {
        "enum": [
          "Body",
          "Attachment"
        ],
        "type": "string",
        "description": "How EDI data is carried when delivered via email (SMTP or X.400 delivery mode)."
      },
      "EMailSystem": {
        "enum": [
          "smtp",
          "x400"
        ],
        "type": "string",
        "description": "Email transport protocol used for email-based EDI delivery to a trading partner."
      },
      "FileInfo": {
        "type": "object",
        "properties": {
          "parcelId": {
            "type": "integer",
            "description": "Numeric identifier of the parcel this file was downloaded from.",
            "format": "int64"
          },
          "fileName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Original file name of the downloaded parcel."
          },
          "fileDate": {
            "type": "string",
            "description": "UTC timestamp of the file as recorded on the parcel.",
            "format": "date-time"
          },
          "bytes": {
            "type": "integer",
            "description": "Size of the file content in bytes.",
            "format": "int32"
          },
          "ediStandard": {
            "$ref": "#/components/schemas/EDIStandard"
          },
          "content": {
            "type": [
              "null",
              "string"
            ],
            "description": "Raw binary content of the downloaded file.",
            "format": "byte"
          },
          "contentBase64String": {
            "type": [
              "null",
              "string"
            ],
            "description": "Base64-encoded string representation of the file content for JSON transport."
          },
          "routerArchive": {
            "type": "boolean",
            "description": "Indicates whether this file was retrieved from the router archive rather than the live inbox."
          }
        },
        "additionalProperties": false,
        "description": "File attachment or transfer record, carrying the filename, byte size, MIME type, and whether the file has been routed through the archive."
      },
      "HTTPAuthInfo": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/HTTPAuthType"
          },
          "user": {
            "type": [
              "null",
              "string"
            ],
            "description": "Username credential sent with HTTP authentication requests."
          },
          "password": {
            "type": [
              "null",
              "string"
            ],
            "description": "Password credential sent with HTTP authentication requests."
          }
        },
        "additionalProperties": false,
        "description": "HTTP authentication credentials used when ECGrid connects outbound to a trading partner AS2 or SFTP endpoint. Carries the scheme (Basic, Digest, etc.), username, and password."
      },
      "HTTPAuthType": {
        "enum": [
          "None",
          "Basic",
          "Digest"
        ],
        "type": "string",
        "description": "HTTP authentication scheme required by the trading partner's AS2 or HTTP endpoint."
      },
      "HttpStatusCode": {
        "enum": [
          "Continue",
          "SwitchingProtocols",
          "Processing",
          "EarlyHints",
          "OK",
          "Created",
          "Accepted",
          "NonAuthoritativeInformation",
          "NoContent",
          "ResetContent",
          "PartialContent",
          "MultiStatus",
          "AlreadyReported",
          "IMUsed",
          "MultipleChoices",
          "MovedPermanently",
          "Found",
          "SeeOther",
          "NotModified",
          "UseProxy",
          "Unused",
          "TemporaryRedirect",
          "PermanentRedirect",
          "BadRequest",
          "Unauthorized",
          "PaymentRequired",
          "Forbidden",
          "NotFound",
          "MethodNotAllowed",
          "NotAcceptable",
          "ProxyAuthenticationRequired",
          "RequestTimeout",
          "Conflict",
          "Gone",
          "LengthRequired",
          "PreconditionFailed",
          "RequestEntityTooLarge",
          "RequestUriTooLong",
          "UnsupportedMediaType",
          "RequestedRangeNotSatisfiable",
          "ExpectationFailed",
          "MisdirectedRequest",
          "UnprocessableEntity",
          "Locked",
          "FailedDependency",
          "UpgradeRequired",
          "PreconditionRequired",
          "TooManyRequests",
          "RequestHeaderFieldsTooLarge",
          "UnavailableForLegalReasons",
          "InternalServerError",
          "NotImplemented",
          "BadGateway",
          "ServiceUnavailable",
          "GatewayTimeout",
          "HttpVersionNotSupported",
          "VariantAlsoNegotiates",
          "InsufficientStorage",
          "LoopDetected",
          "NotExtended",
          "NetworkAuthenticationRequired"
        ],
        "type": "string"
      },
      "IDCreateRequest": {
        "required": [
          "description",
          "id"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The ECGrid numeric network id to add the ID to. When provided and greater than 0, the\r\nID is scoped to this network (TPAddEx); when omitted or zero the caller's default network is used (TPAdd).",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The ECGrid numeric mailbox id within the network to add the ID to. Ignored when NetworkId is\r\nomitted; defaults to the root mailbox (0) when NetworkId is provided but MailboxId is not.",
            "format": "int32"
          },
          "qualifier": {
            "maxLength": 4,
            "type": [
              "null",
              "string"
            ],
            "description": "The two-character X12 ISA qualifier that categorizes the EDI ID value (e.g., \"01\" for DUNS,\r\n\"ZZ\" for mutually defined). Optional; maximum 4 characters."
          },
          "id": {
            "maxLength": 35,
            "minLength": 1,
            "type": "string",
            "description": "The EDI address value paired with Qualifier to form the complete trading partner address\r\n(e.g., the DUNS number or the mutually-defined identifier string). Required; 1–35 characters."
          },
          "description": {
            "maxLength": 35,
            "minLength": 3,
            "type": "string",
            "description": "Human-readable label for this ECGrid ID displayed in portals and reports. Required; 3–35 characters.\r\nDoes not affect EDI routing. Must not contain '<', '>', or 'javascript:'."
          },
          "routingGroup": {
            "type": [
              "null",
              "string"
            ],
            "description": "The routing group that controls how interchanges for this ID are processed. Accepted values:\r\n\"ProductionA\" (default live traffic), \"Test\" (test transmissions), or \"ManagedFileTransfer\"\r\n(MFT-specific routing). Defaults to \"ProductionA\" when omitted."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for creating a new ECGrid ID (trading partner EDI address).\r\nID and Description are required. When NetworkId is provided and greater than 0, the ID is added\r\nto the specified network and mailbox; otherwise it is added to the caller's default mailbox."
      },
      "IDDescriptionUpdateRequest": {
        "required": [
          "description"
        ],
        "type": "object",
        "properties": {
          "description": {
            "maxLength": 35,
            "minLength": 3,
            "type": "string",
            "description": "The new human-readable label for the ECGrid ID. Must be between 3 and 35 characters.\r\nDoes not affect EDI routing. Must not contain '<', '>', or 'javascript:'."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for updating the description of an ECGrid ID via PUT. The ECGridID is supplied\r\nas a URL path parameter; this body carries only the new description value."
      },
      "IDFindRequest": {
        "required": [
          "showInactive"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The ECGrid numeric network id to scope the search to. Required when using TPFindEx or TPSearchEx;\r\nomit for a global TPSearch across all networks.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The ECGrid numeric mailbox id within the network to scope the search to. Required together with\r\nNetworkId when using TPFindEx or TPSearchEx; ignored for global TPSearch.",
            "format": "int32"
          },
          "description": {
            "maxLength": 128,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ],
            "description": "Description text to search for when NetworkId and MailboxId are both provided. Triggers TPFindEx\r\nwhen non-empty. Uses SQL LIKE syntax: `%` is the wildcard character — e.g., `%Acme%`\r\nmatches any description containing \"Acme\", `Acme%` matches descriptions starting with \"Acme\".\r\nNote: `*` wildcards used by mailbox-search endpoints will not work here. Maximum 128 characters."
          },
          "showInactive": {
            "type": "boolean",
            "description": "When true, includes terminated or suspended ECGrid IDs in the result set. Required field;\r\npass false to return only active IDs."
          },
          "qualifier": {
            "maxLength": 4,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ],
            "description": "The X12 ISA qualifier to filter by. Used with TPSearchEx (scoped) or TPSearch (global).\r\nOptional; maximum 4 characters."
          },
          "id": {
            "maxLength": 35,
            "minLength": 1,
            "type": [
              "null",
              "string"
            ],
            "description": "The EDI address value to filter by. Used with TPSearchEx (scoped) or TPSearch (global).\r\nOptional; 1–35 characters."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for finding ECGrid IDs by description or qualifier/ID. At least one of Description,\r\nQualifier, or ID must be non-empty. Providing NetworkId and MailboxId scopes the search to that\r\nnetwork and mailbox; omitting them performs a global search."
      },
      "IDListRequest": {
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The ECGrid numeric network id whose IDs should be listed. When provided, calls TPListEx\r\nscoped to this network and mailbox. When omitted, calls TPList for the caller's default mailbox.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The ECGrid numeric mailbox id within the network to list IDs for. Used together with NetworkId;\r\ndefaults to the root mailbox (0) when NetworkId is provided but MailboxId is omitted.",
            "format": "int32"
          },
          "showInactive": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "When true, includes terminated or suspended ECGrid IDs in the result set. Defaults to false\r\n(active IDs only)."
          },
          "pageSize": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Reserved for future paged listing support (TPListExPaged). Currently ignored — the endpoint\r\nreturns all matching IDs in a single response.",
            "format": "int32"
          },
          "pageNumber": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Reserved for future paged listing support (TPListExPaged). Currently ignored — the endpoint\r\nreturns all matching IDs in a single response.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for listing ECGrid IDs. When NetworkId is provided, returns all IDs for that\r\nnetwork and mailbox; otherwise returns all IDs for the caller's default mailbox."
      },
      "IDUpdateConfigRequest": {
        "required": [
          "ecGridID"
        ],
        "type": "object",
        "properties": {
          "ecGridID": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "The unique ECGrid numeric identifier of the EDI address to update. Must be greater than 0.",
            "format": "int32"
          },
          "ownerUserID": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The ECGrid user id to assign as the owner of this ECGrid ID. When provided, invokes TPSetOwner.\r\nMutually exclusive with Activate, Suspend, and RoutingGroup in the same request.",
            "format": "int32"
          },
          "routingGroup": {
            "$ref": "#/components/schemas/RoutingGroup"
          },
          "activate": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "When true, re-enables a suspended ECGrid ID (TPActivate). Set to true to activate; omit or\r\nset to false/null to skip this action. Mutually exclusive with Suspend, OwnerUserID, and RoutingGroup."
          },
          "suspend": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "When true, temporarily disables the ECGrid ID without terminating it (TPSuspend). Set to true\r\nto suspend; omit or set to false/null to skip this action. Mutually exclusive with Activate,\r\nOwnerUserID, and RoutingGroup."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for updating the configuration of an ECGrid ID. ECGridID is required. Exactly one\r\naction field (Activate, Suspend, OwnerUserID, or RoutingGroup) must be set per request to indicate\r\nwhich SOAP operation to invoke."
      },
      "IDsBoolResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the ID operation completed successfully."
          }
        },
        "additionalProperties": false,
        "description": "Typed response wrapper for ID endpoints that return a boolean result."
      },
      "IDsCreateResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The ECGridID assigned to the newly created trading partner EDI address.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Typed response wrapper for ID create endpoints that return the newly assigned ECGridID integer."
      },
      "IDsGetByIdResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/ECGridIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Typed response wrapper for ID endpoints that return a single ECGridIDInfo record."
      },
      "IDsListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ECGridIDInfo"
            },
            "description": "The list of ECGridIDInfo records matching the query criteria."
          }
        },
        "additionalProperties": false,
        "description": "Typed response wrapper for ID list and find endpoints that return a collection of ECGridIDInfo records."
      },
      "InterchangeHeaderRequest": {
        "required": [
          "interchangeHeader"
        ],
        "type": "object",
        "properties": {
          "interchangeHeader": {
            "minLength": 1,
            "type": "string",
            "description": "The full raw X12 ISA interchange header segment string to parse or look up.\r\nMust be the complete ISA segment exactly as it appears in the EDI file, including\r\nall field delimiters and padding. Required.\r\nExample: `ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *260101*1200*^*00501*000000001*0*P*:`"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for get-date and get-header endpoints that operate on a raw X12 ISA header string."
      },
      "InterchangeIDInfo": {
        "type": "object",
        "properties": {
          "interchangeId": {
            "type": "integer",
            "description": "Unique numeric identifier for this interchange envelope.",
            "format": "int64"
          },
          "interchangeProcessDate": {
            "type": "string",
            "description": "UTC timestamp when this interchange was processed by the ECGrid router.",
            "format": "date-time"
          },
          "networkIdFrom": {
            "type": "integer",
            "description": "Sending network numeric identifier.",
            "format": "int32"
          },
          "networkNameFrom": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of the sending network."
          },
          "mailboxIdFrom": {
            "type": "integer",
            "description": "Sending mailbox numeric identifier.",
            "format": "int32"
          },
          "networkIdTo": {
            "type": "integer",
            "description": "Receiving network numeric identifier.",
            "format": "int32"
          },
          "networkNameTo": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of the receiving network."
          },
          "mailboxIdTo": {
            "type": "integer",
            "description": "Receiving mailbox numeric identifier.",
            "format": "int32"
          },
          "standard": {
            "$ref": "#/components/schemas/EDIStandard"
          },
          "bytes": {
            "type": "integer",
            "description": "Size of this interchange in bytes.",
            "format": "int32"
          },
          "interchangeControlId": {
            "type": [
              "null",
              "string"
            ],
            "description": "ISA/UNB control number identifying this interchange within the EDI envelope."
          },
          "interchangeDateTime": {
            "type": "string",
            "description": "Date and time stamp extracted from the ISA/UNB header of the interchange.",
            "format": "date-time"
          },
          "statusDate": {
            "type": "string",
            "description": "UTC timestamp of the most recent status update for this interchange.",
            "format": "date-time"
          },
          "statusCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Current routing status code for this interchange."
          },
          "statusMessage": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable description of the current routing status."
          },
          "documentType": {
            "type": [
              "null",
              "string"
            ],
            "description": "EDI transaction set or document type identifier (e.g., \"850\" for Purchase Order)."
          },
          "archiveDate": {
            "type": "string",
            "description": "UTC timestamp when this interchange was moved to the archive.",
            "format": "date-time"
          },
          "header": {
            "type": [
              "null",
              "string"
            ],
            "description": "Raw ISA/UNB header line extracted from the interchange envelope. The ECGrid backend\r\n            HTML-encodes certain characters before serializing to SOAP — the ISA segment terminator\r\n            `>` is returned as `&gt;`. HTML-decode this field\r\n            (`WebUtility.HtmlDecode` or equivalent) if your system requires the raw X12 string.\r\n            Some systems may accept the encoded form as-is."
          },
          "tpFrom": {
            "$ref": "#/components/schemas/ECGridIDInfo"
          },
          "tpTo": {
            "$ref": "#/components/schemas/ECGridIDInfo"
          },
          "parcels": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ParcelIDInfo"
            },
            "description": "Parcels that contain or carried this interchange."
          }
        },
        "additionalProperties": false,
        "description": "EDI interchange record (one ISA…IEA or UNB…UNZ envelope) within a parcel. Carries sender/receiver IDs, functional group counts, size, status, and delivery timestamps."
      },
      "InterchangeIDStatus": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique numeric identifier for this interchange.",
            "format": "int64"
          },
          "interchangeProcessDate": {
            "type": "string",
            "description": "UTC timestamp when this interchange was processed by the ECGrid router.",
            "format": "date-time"
          },
          "networkIdFrom": {
            "type": "integer",
            "description": "Sending network numeric identifier.",
            "format": "int32"
          },
          "mailboxIdFrom": {
            "type": "integer",
            "description": "Sending mailbox numeric identifier.",
            "format": "int32"
          },
          "ecgridIdFrom": {
            "type": "integer",
            "description": "Unique ECGrid identifier of the sending EDI address.",
            "format": "int32"
          },
          "networkIdTo": {
            "type": "integer",
            "description": "Receiving network numeric identifier.",
            "format": "int32"
          },
          "mailboxIdTo": {
            "type": "integer",
            "description": "Receiving mailbox numeric identifier.",
            "format": "int32"
          },
          "ecgridIdTo": {
            "type": "integer",
            "description": "Unique ECGrid identifier of the receiving EDI address.",
            "format": "int32"
          },
          "routerId": {
            "type": "integer",
            "description": "Numeric identifier of the router node that processed this interchange.",
            "format": "int32"
          },
          "bytes": {
            "type": "integer",
            "description": "Size of this interchange in bytes.",
            "format": "int32"
          },
          "statusCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Current routing status code for this interchange."
          },
          "statusDate": {
            "type": "string",
            "description": "UTC timestamp of the most recent status update for this interchange.",
            "format": "date-time"
          },
          "interchangeHeader": {
            "type": [
              "null",
              "string"
            ],
            "description": "Raw ISA/UNB header line extracted from the interchange envelope."
          },
          "standard": {
            "$ref": "#/components/schemas/EDIStandard"
          },
          "parcelIdInbox": {
            "type": "integer",
            "description": "Parcel identifier for the inbox parcel that delivered this interchange.",
            "format": "int64"
          }
        },
        "additionalProperties": false,
        "description": "Lightweight status-only record for an interchange, used in bulk status update and acknowledgment operations."
      },
      "InterchangeListRequest": {
        "required": [
          "ecgridIdFrom",
          "ecgridIdTo"
        ],
        "type": "object",
        "properties": {
          "ecgridIdFrom": {
            "type": "integer",
            "description": "ECGridID of the sending trading partner. Required for all list operations.\r\nPass `-1` to match any sender. `0` is not a valid value and will be rejected.",
            "format": "int32"
          },
          "ecgridIdTo": {
            "type": "integer",
            "description": "ECGridID of the receiving trading partner. Required for all list operations.\r\nPass `-1` to match any receiver. `0` is not a valid value and will be rejected.",
            "format": "int32"
          },
          "beginDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "Start of the date/time range to filter by. Required for blocked, archive, and standard\r\ndate-range queries. Not required for pending queries.\r\nInterpreted according to `timeZoneId` or `utcOffsetMinutes` if supplied;\r\notherwise treated as UTC.",
            "format": "date-time"
          },
          "endDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "End of the date/time range to filter by. Required alongside `beginDate` for\r\ndate-range queries. Defaults to now when `beginDate` is present but `endDate` is omitted.",
            "format": "date-time"
          },
          "interchangeControlId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional X12 ISA interchange control number to narrow results to a specific interchange.\r\nPass an empty string to return all interchanges in the date range.\r\nUsed with archive and standard date-range queries."
          },
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Network id to scope the query to a specific network. Required (with `mailboxId`)\r\nto route to the \"Ex\" (network/mailbox-scoped) SOAP variants.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Mailbox id to scope the query to a specific mailbox. Required (with `networkId`)\r\nto route to the \"Ex\" SOAP variants.",
            "format": "int32"
          },
          "pageNo": {
            "maximum": 32767,
            "minimum": 1,
            "type": [
              "null",
              "integer"
            ],
            "description": "Page number for paginated archive queries (1-based). Required (with `recordsPerPage`)\r\nto route to the archive SOAP variants. Must be at least 1.",
            "format": "int32"
          },
          "recordsPerPage": {
            "maximum": 1000,
            "minimum": 1,
            "type": [
              "null",
              "integer"
            ],
            "description": "Number of records per page for paginated archive queries. Required (with `pageNo`).\r\nCapped at 1000 to protect the SOAP backend from oversized requests.",
            "format": "int32"
          },
          "timeZoneId": {
            "type": [
              "null",
              "string"
            ],
            "description": "IANA or Windows timezone ID for converting `beginDate`/`endDate` to UTC.\r\nExamples: `America/New_York`, `UTC`, `Pacific Standard Time`.\r\nTakes precedence over `utcOffsetMinutes` when both are supplied.\r\nOmit to treat dates as UTC."
          },
          "utcOffsetMinutes": {
            "type": [
              "null",
              "integer"
            ],
            "description": "UTC offset in minutes as a fallback timezone conversion when `timeZoneId` is not\r\nsupplied. Example: `-300` for Eastern Standard Time (UTC-5).\r\nIgnored when `timeZoneId` is present.",
            "format": "int32"
          },
          "blocked": {
            "type": "boolean",
            "description": "When true, returns only interchanges currently blocked from delivery.\r\nRequires `beginDate`, `endDate`, `ecgridIdFrom`, and `ecgridIdTo`."
          },
          "pending": {
            "type": "boolean",
            "description": "When true, returns only interchanges pending delivery (not yet transmitted or received).\r\nRequires `ecgridIdFrom` and `ecgridIdTo`."
          },
          "excludeParcel": {
            "type": "boolean",
            "description": "When true (outbox-list only), excludes parcel-level data from archive results to reduce\r\nresponse payload size. Only applies to archive queries (`pageNo + recordsPerPage`\r\nwith `networkId + mailboxId`)."
          },
          "noRoute": {
            "type": "boolean",
            "description": "When true (outbox-list only), returns only outbound interchanges that could not be routed\r\nto the destination EDI ID. Requires `beginDate`, `endDate`, `ecgridIdFrom`,\r\nand `ecgridIdTo`."
          }
        },
        "additionalProperties": false,
        "description": "Filter options for listing inbound or outbound ECGrid interchanges.\r\nThe combination of fields supplied determines which SOAP operation is invoked — see\r\nthe inbox-list and outbox-list endpoint remarks for a full description of each routing branch."
      },
      "InterchangesBoolResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the operation completed successfully."
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/interchanges/cancel/{id} confirming the cancellation."
      },
      "InterchangesGetByIdResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/InterchangeIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Response for GET /v2/interchanges/{id} and POST /v2/interchanges/get-header containing a full interchange record."
      },
      "InterchangesGetDateResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "string"
            ],
            "description": "The interchange date and time extracted from the ISA header string, in UTC.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/interchanges/get-date containing the parsed interchange date."
      },
      "InterchangesGetManifestResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ManifestInfo"
            },
            "description": "Array of manifest entries describing the functional groups, transaction sets, and segment counts within the interchange."
          }
        },
        "additionalProperties": false,
        "description": "Response for GET /v2/interchanges/get-manifest/{id} containing the interchange manifest."
      },
      "InterchangesListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/InterchangeIDInfo"
            },
            "description": "Array of interchange records matching the supplied filter criteria."
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/interchanges/inbox-list and POST /v2/interchanges/outbox-list\r\nfor non-paginated routing branches. Paginated (archive) branches return `ApiResponse`\r\nwith `InterchangeIDInfoCollection` as the data payload."
      },
      "InterchangesResendResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/InterchangeIDStatus"
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/interchanges/resend/{id} containing the resend status."
      },
      "InterconnectIDInfo": {
        "type": "object",
        "properties": {
          "interconnectId": {
            "type": "integer",
            "description": "Unique numeric identifier for this trading partner relationship record.",
            "format": "int32"
          },
          "uniqueId": {
            "type": [
              "null",
              "string"
            ],
            "description": "System-generated globally unique string identifier for this interconnect."
          },
          "created": {
            "type": "string",
            "description": "UTC timestamp when this interconnect was created.",
            "format": "date-time"
          },
          "modified": {
            "type": "string",
            "description": "UTC timestamp when this interconnect was last modified.",
            "format": "date-time"
          },
          "completed": {
            "type": "string",
            "description": "UTC timestamp when both parties confirmed this interconnect as active.",
            "format": "date-time"
          },
          "lastTraffic": {
            "type": "string",
            "description": "UTC timestamp of the most recent interchange in either direction.",
            "format": "date-time"
          },
          "lastTrafficInbound": {
            "type": "string",
            "description": "UTC timestamp of the most recent inbound interchange on this interconnect.",
            "format": "date-time"
          },
          "lastTrafficOutbound": {
            "type": "string",
            "description": "UTC timestamp of the most recent outbound interchange on this interconnect.",
            "format": "date-time"
          },
          "requestorUser": {
            "$ref": "#/components/schemas/UserIDInfo"
          },
          "contactUser": {
            "$ref": "#/components/schemas/UserIDInfo"
          },
          "contactName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Name of the human contact person for this trading partner relationship."
          },
          "contactEmail": {
            "type": [
              "null",
              "string"
            ],
            "description": "Email address of the contact person for this trading partner relationship."
          },
          "status": {
            "$ref": "#/components/schemas/StatusInterconnect"
          },
          "suspendPendingInterchanges": {
            "type": "boolean",
            "description": "When true, interchanges are held in queue while the interconnect is pending or suspended."
          },
          "tp1": {
            "$ref": "#/components/schemas/ECGridIDInfo"
          },
          "as2Id1": {
            "type": [
              "null",
              "string"
            ],
            "description": "AS2 identifier associated with the first trading partner on this interconnect."
          },
          "reference1": {
            "type": [
              "null",
              "string"
            ],
            "description": "Customer-assigned reference string for the first trading partner side."
          },
          "tp2": {
            "$ref": "#/components/schemas/ECGridIDInfo"
          },
          "as2Id2": {
            "type": [
              "null",
              "string"
            ],
            "description": "AS2 identifier associated with the second trading partner on this interconnect."
          },
          "reference2": {
            "type": [
              "null",
              "string"
            ],
            "description": "Customer-assigned reference string for the second trading partner side."
          },
          "netOps": {
            "$ref": "#/components/schemas/UserIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Trading partner relationship record (interconnect) linking two ECGrid IDs for bidirectional EDI routing. Carries the relationship status, contact information, notes, and effective dates."
      },
      "InterconnectNoteObject": {
        "type": "object",
        "properties": {
          "interconnectId": {
            "type": "integer",
            "description": "Numeric identifier of the interconnect this note belongs to.",
            "format": "int32"
          },
          "interconnectNoteId": {
            "type": "integer",
            "description": "Unique numeric identifier for this individual note entry.",
            "format": "int32"
          },
          "noteDate": {
            "type": "string",
            "description": "UTC timestamp when this note was posted.",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/StatusInterconnect"
          },
          "postedBy": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of the user who posted this note."
          },
          "userId": {
            "type": "integer",
            "description": "Numeric identifier of the user who posted this note.",
            "format": "int32"
          },
          "mailTo": {
            "type": [
              "null",
              "string"
            ],
            "description": "Email address to which notification of this note was sent."
          },
          "note": {
            "type": [
              "null",
              "string"
            ],
            "description": "Text body of the note."
          },
          "attachment": {
            "$ref": "#/components/schemas/NoteAttachment"
          }
        },
        "additionalProperties": false,
        "description": "Administrative note attached to a trading partner relationship. Carries the note text, auth level, timestamp, and any file attachment."
      },
      "KeyCreateKeyRequest": {
        "required": [
          "objectId",
          "systemObject",
          "visibility"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": [
              "null",
              "string"
            ],
            "description": "Name of the metadata key to create or update. Up to 512 characters."
          },
          "systemObject": {
            "$ref": "#/components/schemas/Objects"
          },
          "objectId": {
            "maximum": 9.223372036854776E+18,
            "minimum": 1,
            "type": "integer",
            "description": "The numeric ID of the ECGrid object instance (e.g., mailboxId, interconnectId).",
            "format": "int64"
          },
          "visibility": {
            "$ref": "#/components/schemas/KeyVisibility"
          },
          "value": {
            "maxLength": 2147483647,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ],
            "description": "The value stored under this key. May be any string up to 2 GB; use structured formats (JSON, CSV) for complex payloads."
          },
          "meta": {
            "maxLength": 8000,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ],
            "description": "Optional metadata annotation for the key entry. Up to 8000 characters."
          },
          "daysToLive": {
            "maximum": 2147483647,
            "minimum": -1,
            "type": [
              "null",
              "integer"
            ],
            "description": "Time-to-live in days. Use -1 for no expiry. Mutually exclusive with minutesToLive.",
            "format": "int32"
          },
          "minutesToLive": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": [
              "null",
              "integer"
            ],
            "description": "Time-to-live in minutes for short-lived entries. Mutually exclusive with daysToLive.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for creating or updating a metadata key/value entry attached to an ECGrid object.\r\nProvide either DaysToLive or MinutesToLive (not both) to set the entry's expiry.\r\nKey, SystemObject, ObjectId, and Visibility are required; Value, Meta, and TTL fields are optional."
      },
      "KeyDeleteRequest": {
        "required": [
          "objectId",
          "systemObject",
          "visibility"
        ],
        "type": "object",
        "properties": {
          "key": {
            "maxLength": 512,
            "minLength": 1,
            "type": [
              "null",
              "string"
            ],
            "description": "Name of the metadata key to remove. Must match an existing entry exactly."
          },
          "systemObject": {
            "$ref": "#/components/schemas/Objects"
          },
          "objectId": {
            "maximum": 9.223372036854776E+18,
            "minimum": 1,
            "type": "integer",
            "description": "The numeric ID of the ECGrid object instance.",
            "format": "int64"
          },
          "visibility": {
            "$ref": "#/components/schemas/KeyVisibility"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for removing a metadata key/value entry from an ECGrid object.\r\nKey, SystemObject, ObjectId, and Visibility must exactly match the entry to delete."
      },
      "KeyGetKeyRequest": {
        "required": [
          "objectId",
          "systemObject",
          "visibility"
        ],
        "type": "object",
        "properties": {
          "key": {
            "maxLength": 512,
            "minLength": 1,
            "type": [
              "null",
              "string"
            ],
            "description": "Name of the metadata key to retrieve."
          },
          "systemObject": {
            "$ref": "#/components/schemas/Objects"
          },
          "objectId": {
            "maximum": 9.223372036854776E+18,
            "minimum": 1,
            "type": "integer",
            "description": "The numeric ID of the ECGrid object instance.",
            "format": "int64"
          },
          "visibility": {
            "$ref": "#/components/schemas/KeyVisibility"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for retrieving a specific metadata key/value entry from an ECGrid object.\r\nAll four fields are required and must exactly identify the entry."
      },
      "KeyListRequest": {
        "required": [
          "objectId",
          "systemObject"
        ],
        "type": "object",
        "properties": {
          "systemObject": {
            "$ref": "#/components/schemas/Objects"
          },
          "objectId": {
            "maximum": 9.223372036854776E+18,
            "minimum": 1,
            "type": "integer",
            "description": "The numeric ID of the ECGrid object instance to list keys for.",
            "format": "int64"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for listing all metadata key/value entries attached to a specific ECGrid object.\r\nSystemObject and ObjectId together identify the object whose keys to enumerate."
      },
      "KeyValue": {
        "type": "object",
        "properties": {
          "key": {
            "type": [
              "null",
              "string"
            ],
            "description": "Name of the key; unique within the scope of the owning object."
          },
          "value": {
            "type": [
              "null",
              "string"
            ],
            "description": "Value stored for this key; interpretation is defined by the consuming application."
          },
          "meta": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional metadata string providing additional context about this key-value entry."
          },
          "created": {
            "type": "string",
            "description": "UTC timestamp when this key-value entry was created.",
            "format": "date-time"
          },
          "expires": {
            "type": "string",
            "description": "UTC timestamp when this key-value entry expires; zero means it does not expire.",
            "format": "date-time"
          },
          "visibility": {
            "$ref": "#/components/schemas/KeyVisibility"
          },
          "networkId": {
            "type": "integer",
            "description": "Network numeric identifier the entry is scoped to; 0 means not network-scoped.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "Mailbox numeric identifier the entry is scoped to; 0 means not mailbox-scoped.",
            "format": "int32"
          },
          "userId": {
            "type": "integer",
            "description": "User numeric identifier the entry is scoped to; 0 means not user-scoped.",
            "format": "int32"
          },
          "sessionId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Session identifier the entry is associated with, if session-scoped."
          }
        },
        "additionalProperties": false,
        "description": "Metadata key/value entry attached to an ECGrid object (mailbox, partner, EDI ID, etc.). Used for custom routing hints, per-partner overrides, and integration-specific flags without changing the main object schema."
      },
      "KeyVisibility": {
        "enum": [
          "Private",
          "Shared",
          "Public",
          "Session"
        ],
        "type": "string",
        "description": "Access scope controlling which callers can read a key/value metadata entry attached to an\r\nECGrid object (mailbox, EDI ID, partner, etc.)."
      },
      "KeysBoolResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the operation completed successfully."
          }
        },
        "additionalProperties": false,
        "description": "Typed response for boolean-result Key endpoints (Key_Delete, Key_Create)."
      },
      "KeysGetKeyResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/KeyValue"
          }
        },
        "additionalProperties": false,
        "description": "Typed response for Key_GetKey — data is the matching KeyValue record."
      },
      "KeysListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/KeyValue"
            },
            "description": "List of KeyValue records for all metadata keys attached to the specified ECGrid object."
          }
        },
        "additionalProperties": false,
        "description": "Typed response for Key_List — data is all KeyValue records on the specified object."
      },
      "LoginRequest": {
        "required": [
          "password",
          "username"
        ],
        "type": "object",
        "properties": {
          "username": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string",
            "description": "ECGrid login name (email address). Maximum 128 characters. Required."
          },
          "password": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string",
            "description": "ECGrid account password. Maximum 256 characters. Required."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for authenticating with ECGrid credentials."
      },
      "LoginResponse": {
        "type": "object",
        "properties": {
          "accessToken": {
            "type": [
              "null",
              "string"
            ],
            "description": "Short-lived JWT access token. Supply as `Authorization: Bearer {accessToken}`\r\non all subsequent authenticated requests."
          },
          "refreshToken": {
            "type": [
              "null",
              "string"
            ],
            "description": "Long-lived refresh token (48-hour lifetime). Use with POST /auth/refresh to obtain\r\na new access token without re-entering credentials. Single-use — revoked on exchange."
          },
          "expires": {
            "type": "string",
            "description": "UTC datetime when the access token expires. After this time the access token is invalid\r\nand the caller must use the refresh token or re-authenticate.",
            "format": "date-time"
          },
          "responseTimeMs": {
            "type": "integer",
            "description": "Wall-clock time in milliseconds from request receipt to token issuance.\r\nUseful for diagnosing latency in the ECGridOS SOAP authentication round-trip.",
            "format": "int64"
          }
        },
        "additionalProperties": false,
        "description": "Response payload returned by POST /auth/login containing the issued token pair.\r\nThis is a standalone response shape — it does not wrap the standard ApiResponse envelope."
      },
      "MailboxAddRequest": {
        "required": [
          "name",
          "userId"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Network id under which the mailbox will be created. When greater than 0, routes to\r\n`MailboxAddEx` for a specific network. Omit or pass null to create the mailbox\r\nunder the caller's own network via `MailboxAdd`.",
            "format": "int32"
          },
          "userId": {
            "type": "integer",
            "description": "User id of the mailbox owner. Required.",
            "format": "int32"
          },
          "name": {
            "maxLength": 128,
            "minLength": 3,
            "type": "string",
            "description": "Display name for the new mailbox. Must be between 3 and 128 characters. Required.\r\nMust not contain '<', '>', or 'javascript:'. Reserved, system, and competitor terms\r\n(e.g., `api`, `google`) are not permitted as a sole-word name; offensive terms\r\nare rejected in any position."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for creating a new ECGrid mailbox."
      },
      "MailboxBoolResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the operation completed successfully."
          },
          "action": {
            "type": [
              "null",
              "string"
            ],
            "description": "Identifies which of the six update-config branches was applied. One of:\r\n`activate`, `suspend`, `deleteOnDownload`, `managed`,\r\n`useType`, or `setContact`. Null on non-update-config endpoints\r\nthat share this response type."
          }
        },
        "additionalProperties": false,
        "description": "Response for mailbox configuration and delete endpoints that return a boolean success flag."
      },
      "MailboxConfig": {
        "type": "object",
        "properties": {
          "inBoxTimeout": {
            "type": "integer",
            "description": "Minutes before an unacknowledged inbox parcel is timed out and re-queued.",
            "format": "int32"
          },
          "segTerm": {
            "type": "integer",
            "description": "ASCII byte value used as the EDI segment terminator character for this mailbox.",
            "format": "int32"
          },
          "elmSep": {
            "type": "integer",
            "description": "ASCII byte value used as the EDI element separator character for this mailbox.",
            "format": "int32"
          },
          "subElmSep": {
            "type": "integer",
            "description": "ASCII byte value used as the EDI sub-element separator character for this mailbox.",
            "format": "int32"
          },
          "ebcdicFilter": {
            "type": [
              "null",
              "string"
            ],
            "description": "EBCDIC character filter string applied to inbound data before EDI parsing."
          },
          "ftpAsciiFilter": {
            "type": "boolean",
            "description": "When true, FTP transfers use ASCII mode; false uses binary mode."
          },
          "lowPassFilter": {
            "type": "boolean",
            "description": "When true, low-frequency polling is applied to reduce unnecessary network round-trips."
          },
          "mailbagPassThrough": {
            "type": "boolean",
            "description": "When true, mailbag envelopes are passed through without unwrapping individual interchanges."
          },
          "deleteOnDownload": {
            "type": "boolean",
            "description": "When true, parcels are automatically deleted from the inbox after download."
          },
          "stripDirectedEnvelope": {
            "type": "boolean",
            "description": "When true, directed ISA envelopes addressed to this mailbox are stripped before delivery."
          }
        },
        "additionalProperties": false,
        "description": "Per-mailbox EDI processing configuration applied to interchanges from a specific EDI ID. Controls delimiters, use type, and delete-on-download behavior."
      },
      "MailboxCreateResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The integer id assigned to the newly created mailbox.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/mailboxes/create containing the new mailbox id."
      },
      "MailboxGetByIdResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/MailboxIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Response for GET /v2/mailboxes/{id} containing a single mailbox record."
      },
      "MailboxIDInfo": {
        "type": "object",
        "properties": {
          "mailboxId": {
            "type": "integer",
            "description": "Unique numeric identifier for this mailbox.",
            "format": "int32"
          },
          "networkId": {
            "type": "integer",
            "description": "Owning network numeric identifier.",
            "format": "int32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of this mailbox."
          },
          "created": {
            "type": "string",
            "description": "UTC timestamp when this mailbox was created.",
            "format": "date-time"
          },
          "modified": {
            "type": "string",
            "description": "UTC timestamp when this mailbox was last modified.",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable description or notes about this mailbox."
          },
          "ownerUserId": {
            "$ref": "#/components/schemas/UserIDInfo"
          },
          "errorsUserId": {
            "$ref": "#/components/schemas/UserIDInfo"
          },
          "interconnectsUserId": {
            "$ref": "#/components/schemas/UserIDInfo"
          },
          "noticesUserId": {
            "$ref": "#/components/schemas/UserIDInfo"
          },
          "reportsUserId": {
            "$ref": "#/components/schemas/UserIDInfo"
          },
          "customerServiceUserId": {
            "$ref": "#/components/schemas/UserIDInfo"
          },
          "accountingUserId": {
            "$ref": "#/components/schemas/UserIDInfo"
          },
          "managed": {
            "type": "boolean",
            "description": "Indicates whether this mailbox is centrally managed by the owning network operator."
          },
          "useType": {
            "$ref": "#/components/schemas/UseType"
          },
          "config": {
            "$ref": "#/components/schemas/MailboxConfig"
          },
          "ecgridAccount": {
            "type": "boolean",
            "description": "Indicates whether this mailbox is a direct ECGrid account rather than a hosted mailbox."
          },
          "defaultAs2Id": {
            "type": [
              "null",
              "string"
            ],
            "description": "Default AS2 identifier assigned to this mailbox for AS2 comm channel matching."
          },
          "ownerInfo": {
            "$ref": "#/components/schemas/MailboxOwnerInfo"
          },
          "netOpsInfo": {
            "$ref": "#/components/schemas/MailboxNetOpsInfo"
          }
        },
        "additionalProperties": false,
        "description": "Mailbox record within a network. Each mailbox is an independent EDI endpoint with its own inbox, outbox, EDI IDs, comm channels, and users."
      },
      "MailboxListRequest": {
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "When provided, scopes the results to mailboxes belonging to this network id.\r\nOmit to return all mailboxes visible to the caller's API key.",
            "format": "int32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional name filter. Pass an empty string or omit to return all mailboxes.\r\nPlain terms are automatically wrapped as `*term*` for substring matching.\r\nInclude a `*` to control wildcard placement (e.g., `\"Acme*\"` for prefix-only)."
          }
        },
        "additionalProperties": false,
        "description": "Filter options for listing ECGrid mailboxes. All fields are optional."
      },
      "MailboxNetOpsInfo": {
        "type": "object",
        "properties": {
          "aliasNetworkId": {
            "type": "integer",
            "description": "NetOps alias network identifier used for internal routing of this mailbox.",
            "format": "int32"
          },
          "aliasMailboxId": {
            "type": "integer",
            "description": "NetOps alias mailbox identifier used for internal routing of this mailbox.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Network operations view of a mailbox, including alias network/mailbox IDs used for internal routing."
      },
      "MailboxOwnerInfo": {
        "type": "object",
        "properties": {
          "pricelistId": {
            "type": "integer",
            "description": "Numeric identifier of the price list applied to billing for this mailbox.",
            "format": "int32"
          },
          "contractId": {
            "type": "integer",
            "description": "Numeric identifier of the billing contract associated with this mailbox.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Ownership and billing metadata for a mailbox, including the assigned price list and contract identifiers."
      },
      "MailboxUpdateConfigRequest": {
        "type": "object",
        "properties": {
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Mailbox id to configure. Required for most combinations — see endpoint remarks.",
            "format": "int32"
          },
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Network id. Currently unused by this endpoint's routing — see `mailboxId`.",
            "format": "int32"
          },
          "useType": {
            "$ref": "#/components/schemas/UseType"
          },
          "userId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "User id to assign as a mailbox contact. Required (with `contactType` and `mailboxId`)\r\nto route to `MailboxSetContact`.",
            "format": "int32"
          },
          "contactType": {
            "$ref": "#/components/schemas/NetworkContactType"
          },
          "deleteOnDownload": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Controls whether parcels are automatically deleted from the mailbox inbox after download.\r\nProvide with `mailboxId` to route to `MailboxDeleteOnDownload`; the supplied\r\nvalue (true or false) is applied. When null, the delete-on-download setting is left unchanged."
          },
          "managed": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Controls whether the mailbox is in managed mode. Provide with `mailboxId` to route\r\nto `MailboxManaged`; the supplied value (true or false) is applied. When null, the\r\nmanaged setting is left unchanged."
          },
          "activate": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "When true, activates the specified mailbox. Provide with `mailboxId`\r\nto route to `MailboxActivate`. This is a one-shot action — null or false leaves the\r\nmailbox untouched."
          },
          "suspend": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "When true, suspends the specified mailbox. Provide with `mailboxId` to route\r\nto `MailboxSuspend`. This is a one-shot action — null or false leaves the mailbox untouched."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for updating mailbox configuration settings.\r\nExactly one of six valid field combinations must be present — see the endpoint remarks\r\nfor a full description of each supported combination."
      },
      "MailboxUpdateRequest": {
        "required": [
          "mailboxId"
        ],
        "type": "object",
        "properties": {
          "mailboxId": {
            "type": "integer",
            "description": "Mailbox id to update. Required and must be greater than 0.",
            "format": "int32"
          },
          "description": {
            "maxLength": 255,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ],
            "description": "Updated description for the mailbox. Up to 255 characters.\r\nPass null or empty to skip updating the description.\r\nMust not contain '<', '>', or 'javascript:'."
          },
          "name": {
            "maxLength": 128,
            "minLength": 3,
            "type": [
              "null",
              "string"
            ],
            "description": "Updated display name for the mailbox. Must be at least 3 and no more than 128 characters.\r\nPass null or empty to skip updating the name. Must not contain '<', '>', or 'javascript:'.\r\nReserved, system, and competitor terms (e.g., `api`, `google`) are not permitted\r\nas a sole-word name; offensive terms are rejected in any position."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for updating a mailbox's display name or description.\r\nAt least one of Name or Description must be non-empty."
      },
      "MailboxUpdateResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ApiResponse"
            },
            "description": "Array of update results — one entry per field updated (name and/or description)."
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/mailboxes/update containing one result per SOAP operation executed."
      },
      "MailboxX12DelimitersRequest": {
        "required": [
          "elmSep",
          "mailboxId",
          "segTerm",
          "subElmSep"
        ],
        "type": "object",
        "properties": {
          "mailboxId": {
            "type": "integer",
            "description": "Mailbox id to update. Required.",
            "format": "int32"
          },
          "segTerm": {
            "type": "integer",
            "description": "ASCII byte value for the X12 segment terminator character (e.g., 126 = tilde '~').",
            "format": "int32"
          },
          "elmSep": {
            "type": "integer",
            "description": "ASCII byte value for the X12 element separator character (e.g., 42 = asterisk '*').",
            "format": "int32"
          },
          "subElmSep": {
            "type": "integer",
            "description": "ASCII byte value for the X12 sub-element separator character (e.g., 62 = greater-than '>').",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for setting X12 EDI delimiter characters on a mailbox.\r\nAll delimiter values are expressed as ASCII byte codes."
      },
      "MailboxesListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/MailboxIDInfo"
            },
            "description": "Array of ECGrid mailbox records matching the supplied filter options."
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/mailboxes/list containing all matching mailbox records."
      },
      "ManifestInfo": {
        "type": "object",
        "properties": {
          "manifestDate": {
            "type": "string",
            "description": "UTC timestamp when this manifest event was recorded.",
            "format": "date-time"
          },
          "networkId": {
            "type": "integer",
            "description": "Network numeric identifier associated with this manifest entry.",
            "format": "int32"
          },
          "networkName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of the network associated with this manifest entry."
          },
          "type": {
            "$ref": "#/components/schemas/ManifestType"
          },
          "parcelId": {
            "type": "integer",
            "description": "Parcel identifier this manifest entry is associated with.",
            "format": "int64"
          },
          "interchangeId": {
            "type": "integer",
            "description": "Interchange identifier this manifest entry is associated with.",
            "format": "int64"
          },
          "statusCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Status code recorded at the time of this manifest event."
          },
          "statusMessage": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable description of the status at the time of this manifest event."
          },
          "statusColor": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display color code (e.g., hex or named color) for rendering this status in a UI."
          }
        },
        "additionalProperties": false,
        "description": "Parcel manifest record listing the interchanges contained within a single parcel, used for bulk download and acknowledgment workflows."
      },
      "ManifestType": {
        "enum": [
          "System",
          "Error",
          "Manual",
          "ECGridOS"
        ],
        "type": "string",
        "description": "Origin of a routing manifest log entry attached to a parcel. Identifies which component\r\nof the ECGrid platform generated the log entry."
      },
      "NetworkBoolResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the operation completed successfully."
          }
        },
        "additionalProperties": false,
        "description": "Response for network configuration and update endpoints that return a boolean success flag."
      },
      "NetworkContactType": {
        "enum": [
          "Owner",
          "Errors",
          "Interconnects",
          "Notices",
          "Reports",
          "Accounting",
          "CustomerService"
        ],
        "type": "string",
        "description": "Role of a designated contact person at an ECGrid network. Each role maps to a specific\r\nuser account that receives notifications for that category of network activity."
      },
      "NetworkFTPInfo": {
        "type": "object",
        "properties": {
          "ip": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "userId": {
            "type": [
              "null",
              "string"
            ]
          },
          "password": {
            "type": [
              "null",
              "string"
            ]
          },
          "account": {
            "type": [
              "null",
              "string"
            ]
          },
          "virtualDirectoryIn": {
            "type": [
              "null",
              "string"
            ]
          },
          "virtualDirectoryOut": {
            "type": [
              "null",
              "string"
            ]
          },
          "logicalDirectory": {
            "type": [
              "null",
              "string"
            ]
          },
          "maxThreads": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "FTP/SFTP server configuration for a network's outbound file delivery, including host, port, path, and credentials."
      },
      "NetworkGateway": {
        "type": "object",
        "properties": {
          "application": {
            "type": [
              "null",
              "string"
            ]
          },
          "applicationTimeOut": {
            "type": "integer",
            "format": "int32"
          },
          "applicationLogFile": {
            "type": [
              "null",
              "string"
            ]
          },
          "frequency": {
            "type": "integer",
            "format": "int32"
          },
          "minimumPolling": {
            "type": "integer",
            "format": "int32"
          },
          "handshake": {
            "$ref": "#/components/schemas/NetworkGatewayHandshake"
          },
          "commChannel": {
            "$ref": "#/components/schemas/NetworkGatewayCommChannel"
          },
          "connection": {
            "$ref": "#/components/schemas/NetworkGatewayConnection"
          }
        },
        "additionalProperties": false,
        "description": "Platform gateway node record linking a network to a specific infrastructure routing gateway, including its comm channel type and address."
      },
      "NetworkGatewayCommChannel": {
        "enum": [
          "none",
          "ftp",
          "sftp",
          "as2",
          "http",
          "oftp",
          "x400",
          "gisb",
          "rnif",
          "cxml",
          "ftpsslimplicit",
          "peppol",
          "as4",
          "undefined"
        ],
        "type": "string",
        "description": "Communication protocol used by a comm channel to exchange EDI or file data with a\r\ntrading partner. Appears as the `type` field on CommIDInfo records."
      },
      "NetworkGatewayConnection": {
        "enum": [
          "Internet",
          "VPN",
          "Dial",
          "Other"
        ],
        "type": "string",
        "description": "Physical or logical network connection type used by an ECGrid gateway to reach its\r\ntrading partner or VAN connection."
      },
      "NetworkGatewayHandshake": {
        "enum": [
          "Push",
          "Pull",
          "PushPull"
        ],
        "type": "string",
        "description": "File exchange handshake direction for an ECGrid gateway connection."
      },
      "NetworkGetByIdResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/NetworkIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Response for GET /v2/networks/{id} containing a single network record."
      },
      "NetworkGetContactRequest": {
        "required": [
          "contactType",
          "networkId"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": "integer",
            "description": "Network id to query. Required and must be greater than 0.",
            "format": "int32"
          },
          "contactType": {
            "$ref": "#/components/schemas/NetworkContactType"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for retrieving the user assigned to a network contact role."
      },
      "NetworkIDInfo": {
        "type": "object",
        "properties": {
          "networkId": {
            "type": "integer",
            "description": "Unique numeric identifier for this network (customer container).",
            "format": "int32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of this network."
          },
          "location": {
            "type": [
              "null",
              "string"
            ],
            "description": "Geographic location or data center where this network is hosted."
          },
          "adminContact": {
            "type": [
              "null",
              "string"
            ],
            "description": "Name of the primary administrative contact for this network."
          },
          "adminPhone": {
            "type": [
              "null",
              "string"
            ],
            "description": "Phone number of the primary administrative contact for this network."
          },
          "adminEmail": {
            "type": [
              "null",
              "string"
            ],
            "description": "Email address of the primary administrative contact for this network."
          },
          "lastContact": {
            "type": "string",
            "description": "UTC timestamp of the most recent successful connection or poll by this network.",
            "format": "date-time"
          },
          "type": {
            "$ref": "#/components/schemas/NetworkType"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "runStatus": {
            "$ref": "#/components/schemas/NetworkRunStatus"
          },
          "networkStatus": {
            "$ref": "#/components/schemas/NetworkStatus"
          },
          "ecgridAccount": {
            "type": "boolean",
            "description": "Indicates whether this network is a direct ECGrid account."
          },
          "ownerUserId": {
            "type": "integer",
            "description": "Numeric identifier of the user designated as the primary owner of this network.",
            "format": "int32"
          },
          "routingUserId": {
            "type": "integer",
            "description": "Numeric identifier of the user designated to handle routing decisions for this network.",
            "format": "int32"
          },
          "errorsUserId": {
            "type": "integer",
            "description": "Numeric identifier of the user designated to receive error notifications for this network.",
            "format": "int32"
          },
          "interconnectsUserId": {
            "type": "integer",
            "description": "Numeric identifier of the user designated to receive interconnect notifications for this network.",
            "format": "int32"
          },
          "noticesUserId": {
            "type": "integer",
            "description": "Numeric identifier of the user designated to receive general platform notices for this network.",
            "format": "int32"
          },
          "reportsUserId": {
            "type": "integer",
            "description": "Numeric identifier of the user designated to receive scheduled reports for this network.",
            "format": "int32"
          },
          "accountingUserId": {
            "type": "integer",
            "description": "Numeric identifier of the user designated to receive billing and accounting information for this network.",
            "format": "int32"
          },
          "customerServiceUserId": {
            "type": "integer",
            "description": "Numeric identifier of the user designated as the customer service contact for this network.",
            "format": "int32"
          },
          "homeWebsite": {
            "type": [
              "null",
              "string"
            ],
            "description": "Public-facing home website URL for this network."
          },
          "supportWebsite": {
            "type": [
              "null",
              "string"
            ],
            "description": "Support portal website URL for this network."
          },
          "loginWebsite": {
            "type": [
              "null",
              "string"
            ],
            "description": "Login portal website URL for this network's customers."
          },
          "created": {
            "type": "string",
            "description": "UTC timestamp when this network was created.",
            "format": "date-time"
          },
          "modified": {
            "type": "string",
            "description": "UTC timestamp when this network was last modified.",
            "format": "date-time"
          },
          "lastLog": {
            "$ref": "#/components/schemas/NetworkLog"
          },
          "ownerInfo": {
            "$ref": "#/components/schemas/NetworkOwnerInfo"
          },
          "netOpsInfo": {
            "$ref": "#/components/schemas/NetworkNetOpsInfo"
          }
        },
        "additionalProperties": false,
        "description": "Top-level customer container record. A network is the outermost object on the ECGrid platform — it holds one root mailbox, zero or more regular mailboxes, users, trading partner relationships, and billing configuration."
      },
      "NetworkListRequest": {
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 40,
            "type": [
              "null",
              "string"
            ],
            "description": "Optional name filter. Up to 40 characters. Pass an empty string to return all networks.\r\nIgnored when ECG_REST_V1.Controllers.NetworkListRequest.GetOutages is true."
          },
          "getOutages": {
            "type": "boolean",
            "description": "When true, returns only networks currently reporting an outage via `NetworkOutageList`.\r\nWhen false (default), returns all networks matching the optional `name` filter."
          }
        },
        "additionalProperties": false,
        "description": "Filter options for listing ECGrid networks. All fields are optional."
      },
      "NetworkLog": {
        "type": "object",
        "properties": {
          "logId": {
            "type": "integer",
            "description": "Unique numeric identifier for this log entry.",
            "format": "int32"
          },
          "logDate": {
            "type": "string",
            "description": "UTC timestamp when this log entry was recorded.",
            "format": "date-time"
          },
          "userId": {
            "type": "integer",
            "description": "Numeric identifier of the user whose action generated this log entry.",
            "format": "int32"
          },
          "type": {
            "$ref": "#/components/schemas/NetworkLogType"
          },
          "status": {
            "$ref": "#/components/schemas/NetworkLogStatus"
          },
          "authLevel": {
            "$ref": "#/components/schemas/AuthLevel"
          },
          "description": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable description of the activity recorded in this log entry."
          }
        },
        "additionalProperties": false,
        "description": "Audit log entry recording a configuration change or administrative event on a network, including the acting user and timestamp."
      },
      "NetworkLogStatus": {
        "enum": [
          "Start",
          "CheckIn",
          "Access",
          "Pause",
          "Restart",
          "Shutdown",
          "StatusChange"
        ],
        "type": "string",
        "description": "Lifecycle event type recorded in a network's activity log. Describes what operational\r\ntransition occurred on the network node at the time of logging."
      },
      "NetworkLogType": {
        "enum": [
          "SystemResponse",
          "SystemAutomated",
          "User"
        ],
        "type": "string",
        "description": "Indicates who or what generated a network activity log entry."
      },
      "NetworkNetOpsInfo": {
        "type": "object",
        "properties": {
          "billingUserId": {
            "type": "integer",
            "format": "int32"
          },
          "billingContact": {
            "type": [
              "null",
              "string"
            ]
          },
          "billingEmail": {
            "type": [
              "null",
              "string"
            ]
          },
          "billingType": {
            "type": "integer",
            "format": "int32"
          },
          "invoiceContact": {
            "type": [
              "null",
              "string"
            ]
          },
          "invoiceEmail": {
            "type": [
              "null",
              "string"
            ]
          },
          "softwareVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "commissioned": {
            "type": "string",
            "format": "date-time"
          },
          "decommissioned": {
            "type": "string",
            "format": "date-time"
          },
          "modified": {
            "type": "string",
            "format": "date-time"
          },
          "runDir": {
            "type": [
              "null",
              "string"
            ]
          },
          "internalDirectory": {
            "type": [
              "null",
              "string"
            ]
          },
          "externalDirectoryRoot": {
            "type": [
              "null",
              "string"
            ]
          },
          "externalDirectoryIn": {
            "type": [
              "null",
              "string"
            ]
          },
          "externalDirectoryOut": {
            "type": [
              "null",
              "string"
            ]
          },
          "archiveDays": {
            "type": "integer",
            "format": "int32"
          },
          "supportUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "blockSize": {
            "type": "integer",
            "format": "int32"
          },
          "envPerMb": {
            "type": "integer",
            "format": "int32"
          },
          "outBoxTimeOut": {
            "type": "integer",
            "format": "int32"
          },
          "masterAccount": {
            "type": [
              "null",
              "string"
            ]
          },
          "processId": {
            "type": "integer",
            "format": "int32"
          },
          "userName": {
            "type": [
              "null",
              "string"
            ]
          },
          "userDomain": {
            "type": [
              "null",
              "string"
            ]
          },
          "server": {
            "type": [
              "null",
              "string"
            ]
          },
          "aliasNetworkId": {
            "type": "integer",
            "format": "int32"
          },
          "aliasMailboxId": {
            "type": "integer",
            "format": "int32"
          },
          "inBoxPattern": {
            "type": [
              "null",
              "string"
            ]
          },
          "outBoxPattern": {
            "type": [
              "null",
              "string"
            ]
          },
          "x1256": {
            "$ref": "#/components/schemas/X1256"
          },
          "archiveDaysInternal": {
            "type": "integer",
            "format": "int32"
          },
          "archiveDaysExternal": {
            "type": "integer",
            "format": "int32"
          },
          "maxBatch": {
            "type": "integer",
            "format": "int32"
          },
          "dbOpenMaxCycles": {
            "type": "integer",
            "format": "int32"
          },
          "dbOpenMaxSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "gateway": {
            "$ref": "#/components/schemas/NetworkGateway"
          },
          "vpn": {
            "$ref": "#/components/schemas/NetworkVPN"
          },
          "ftpServer": {
            "$ref": "#/components/schemas/NetworkFTPInfo"
          },
          "ftpClient": {
            "$ref": "#/components/schemas/NetworkFTPInfo"
          }
        },
        "additionalProperties": false,
        "description": "Network operations view of a network, carrying extended routing, gateway, and infrastructure configuration not included in NetworkIDInfo."
      },
      "NetworkOwnerInfo": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "routingType": {
            "type": [
              "null",
              "string"
            ]
          },
          "routing": {
            "$ref": "#/components/schemas/NetworkRoutingType"
          },
          "legacyPassword": {
            "type": [
              "null",
              "string"
            ]
          },
          "interconnectContact": {
            "type": [
              "null",
              "string"
            ]
          },
          "interconnectEmail": {
            "type": [
              "null",
              "string"
            ]
          },
          "errorContact": {
            "type": [
              "null",
              "string"
            ]
          },
          "errorEmail": {
            "type": [
              "null",
              "string"
            ]
          },
          "config": {
            "$ref": "#/components/schemas/MailboxConfig"
          },
          "pricelistId": {
            "type": "integer",
            "format": "int32"
          },
          "contractId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Ownership and billing metadata for a network, including assigned price list, contract, and reseller chain."
      },
      "NetworkRoutingType": {
        "enum": [
          "Open",
          "OpenWithSenderValidation",
          "TradingPartnerPairs",
          "MultiNetwork",
          "ECGridOpen",
          "ECGridTradingPartnerPairs"
        ],
        "type": "string",
        "description": "Routing policy that governs which interchanges a network accepts and forwards to its\r\nmailboxes. More restrictive policies require pre-configured relationships."
      },
      "NetworkRunStatus": {
        "enum": [
          "Restart",
          "OffLine",
          "Active",
          "Sleeping",
          "Alert"
        ],
        "type": "string",
        "description": "Current operational state of an ECGrid network node process. Reflects whether the\r\nnode is actively processing traffic or in a non-operational state."
      },
      "NetworkStatus": {
        "enum": [
          "Redirected",
          "NormalOperation",
          "ECGridScheduledOutage",
          "ECGridUnscheduledOutage",
          "NetworkScheduledOutage",
          "NetworkUnscheduledOutage"
        ],
        "type": "string",
        "description": "Current health or outage status of an ECGrid network. Returned in network status summary\r\nreports to indicate whether traffic is flowing normally."
      },
      "NetworkType": {
        "enum": [
          "Network",
          "Router"
        ],
        "type": "string",
        "description": "Classification of an ECGrid network as a customer-facing network or an internal routing node."
      },
      "NetworkUpdateConfigRequest": {
        "required": [
          "networkId"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": "integer",
            "description": "Network id to configure. Required in all combinations.",
            "format": "int32"
          },
          "userId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "User id to assign as a network contact. Required when `contactType` is provided.",
            "format": "int32"
          },
          "contactType": {
            "$ref": "#/components/schemas/NetworkContactType"
          },
          "deleteOnDownload": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "When true, parcels are automatically deleted from the inbox after download.\r\nProvide with `networkId` to configure auto-delete behavior."
          },
          "url": {
            "type": [
              "null",
              "string"
            ],
            "description": "Website URL to associate with the network. Required when `websiteType` is provided."
          },
          "websiteType": {
            "$ref": "#/components/schemas/NetworkWebsiteType"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for updating network configuration settings.\r\nExactly one of three valid field combinations must be present:\r\n(`networkId + userId + contactType`),\r\n(`networkId + deleteOnDownload`), or\r\n(`networkId + url + websiteType`)."
      },
      "NetworkUpdateRequest": {
        "required": [
          "location",
          "name"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": "integer",
            "description": "Network id to update. Pass 0 to target the caller's own network.",
            "format": "int32"
          },
          "name": {
            "maxLength": 39,
            "minLength": 4,
            "type": "string",
            "description": "Updated display name. Must be between 4 and 39 characters. Required.\r\nMust not contain '<', '>', or 'javascript:'."
          },
          "location": {
            "maxLength": 254,
            "minLength": 1,
            "type": "string",
            "description": "Updated location string (city, state, or free-form location). Maximum 254 characters. Required.\r\nMust not contain '<', '>', or 'javascript:'."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for updating a network's display name and location."
      },
      "NetworkVPN": {
        "type": "object",
        "properties": {
          "localTunnel": {
            "type": [
              "null",
              "string"
            ]
          },
          "remoteTunnel": {
            "type": [
              "null",
              "string"
            ]
          },
          "encryptionDomain": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "sharedSecret": {
            "type": [
              "null",
              "string"
            ]
          },
          "encryptionMethod": {
            "$ref": "#/components/schemas/NetworkVPNEncryptionMethod"
          }
        },
        "additionalProperties": false,
        "description": "VPN tunnel configuration for a network, used for secure SFTP or private connectivity instead of public AS2 endpoints."
      },
      "NetworkVPNEncryptionMethod": {
        "enum": [
          "_3DES_SHA1",
          "_DES_SHA1",
          "_3DES_MD5",
          "_DES_MD5"
        ],
        "type": "string",
        "description": "Encryption and hashing algorithm combination used for a VPN tunnel on a network gateway."
      },
      "NetworkWebsiteType": {
        "enum": [
          "Home",
          "Support",
          "Login"
        ],
        "type": "string",
        "description": "Category of website URL stored on a network record."
      },
      "NetworkX12DelimitersRequest": {
        "required": [
          "elmSep",
          "networkId",
          "segTerm",
          "subElmSep"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": "integer",
            "description": "Network id to update. Required.",
            "format": "int32"
          },
          "segTerm": {
            "type": "integer",
            "description": "ASCII byte value for the X12 segment terminator character (e.g., 126 = tilde '~').",
            "format": "int32"
          },
          "elmSep": {
            "type": "integer",
            "description": "ASCII byte value for the X12 element separator character (e.g., 42 = asterisk '*').",
            "format": "int32"
          },
          "subElmSep": {
            "type": "integer",
            "description": "ASCII byte value for the X12 sub-element separator character (e.g., 62 = greater-than '>').",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for setting X12 EDI delimiter characters on a network.\r\nAll delimiter values are expressed as ASCII byte codes."
      },
      "NetworksGetContactResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/UserIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/networks/get-contact containing the user assigned to the requested contact role."
      },
      "NetworksListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/NetworkIDInfo"
            },
            "description": "Array of ECGrid network records visible to the caller's API key, optionally filtered by name or outage status."
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/networks/list containing all matching network records."
      },
      "NoteAttachment": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": [
              "null",
              "string"
            ]
          },
          "content": {
            "type": [
              "null",
              "string"
            ],
            "format": "byte"
          }
        },
        "additionalProperties": false,
        "description": "File attachment embedded in an administrative note, carrying the filename and base64-encoded content."
      },
      "Objects": {
        "enum": [
          "System",
          "User",
          "Network",
          "Mailbox",
          "ECGridID",
          "Interconnect",
          "Migration",
          "Parcel",
          "Interchange",
          "CarbonCopy",
          "CallBackEvent",
          "AS2",
          "Comm",
          "GISB",
          "InterconnectNote",
          "PriceList",
          "Contract",
          "Invoice"
        ],
        "type": "string",
        "description": "ECGrid platform object type. Identifies which type of object a callback event is\r\nmonitoring or which type of object was involved in a session event."
      },
      "ParcelAcknowledgmentNoteRequest": {
        "required": [
          "parcelId"
        ],
        "type": "object",
        "properties": {
          "parcelId": {
            "type": "integer",
            "description": "The ECGrid parcel ID to annotate. Obtain from an inbox list or upload response.",
            "format": "int64"
          },
          "subject": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional subject line for the acknowledgment note. Defaults to empty string."
          },
          "note": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional free-text body of the acknowledgment note. Defaults to empty string."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for POST /v2/parcels/acknowledgment-note. ParcelID is required; Subject and Note are optional annotation strings."
      },
      "ParcelConfirmRequest": {
        "required": [
          "parcelId"
        ],
        "type": "object",
        "properties": {
          "parcelId": {
            "type": "integer",
            "description": "ECGrid parcel ID to confirm. Obtain this from a prior inbox list or upload response.",
            "format": "int64"
          },
          "status": {
            "$ref": "#/components/schemas/ParcelStatus"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for POST /v2/parcels/confirm. Include `status` only when confirming\r\na pending acknowledgment — omitting it selects the standard download-confirm path."
      },
      "ParcelDownloadRequest": {
        "required": [
          "parcelId"
        ],
        "type": "object",
        "properties": {
          "parcelId": {
            "type": "integer",
            "description": "Parcel id to download. Required.",
            "format": "int64"
          },
          "noUpdate": {
            "type": "boolean",
            "description": "When true, reads the file content without marking the parcel as downloaded (ParcelDownloadNoUpdateA). When false (default), downloads and immediately confirms (ParcelDownloadA + ParcelDownloadConfirm)."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for downloading a parcel's file content."
      },
      "ParcelFindMailbagControlIDRequest": {
        "required": [
          "mailboxId",
          "networkId"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": "integer",
            "description": "Network ID that owns the target mailbox. Required.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "Mailbox ID to search within. Required. Pass 0 for the network root mailbox.",
            "format": "int32"
          },
          "mailbagControlId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Mailbag control ID string to match. Pass empty string to return all parcels in the mailbox."
          },
          "beginDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "Start of the date range filter. When provided, restricts results to parcels received on or after this date and routes to ParcelFindMailbagControlIDTo.",
            "format": "date-time"
          },
          "endDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "End of the date range filter. Only used when beginDate is provided. Defaults to now when omitted.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for POST /v2/parcels/find-mailbagcontrolid. NetworkID and MailboxID are required. Provide BeginDate+EndDate to restrict to a date window."
      },
      "ParcelIDInfo": {
        "type": "object",
        "properties": {
          "parcelId": {
            "type": "integer",
            "description": "Unique numeric identifier for this parcel file.",
            "format": "int64"
          },
          "parcelBytes": {
            "type": "integer",
            "description": "Size of the parcel as transmitted, in bytes.",
            "format": "int32"
          },
          "parcelDate": {
            "type": "string",
            "description": "UTC timestamp when this parcel arrived on the ECGrid platform.",
            "format": "date-time"
          },
          "actualBytes": {
            "type": "integer",
            "description": "Actual uncompressed size of the parcel content in bytes.",
            "format": "int32"
          },
          "networkIdFrom": {
            "type": "integer",
            "description": "Sending network numeric identifier.",
            "format": "int32"
          },
          "networkNameFrom": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of the sending network."
          },
          "mailboxIdFrom": {
            "type": "integer",
            "description": "Sending mailbox numeric identifier.",
            "format": "int32"
          },
          "mailboxNameFrom": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of the sending mailbox."
          },
          "networkIdTo": {
            "type": "integer",
            "description": "Receiving network numeric identifier.",
            "format": "int32"
          },
          "networkNameTo": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of the receiving network."
          },
          "mailboxIdTo": {
            "type": "integer",
            "description": "Receiving mailbox numeric identifier.",
            "format": "int32"
          },
          "mailboxNameTo": {
            "type": [
              "null",
              "string"
            ],
            "description": "Display name of the receiving mailbox."
          },
          "fileName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Original file name of the parcel as submitted by the sender."
          },
          "mailbagControlId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Mailbag control identifier used to group related parcels in a batch."
          },
          "archiveDate": {
            "type": "string",
            "description": "UTC timestamp when this parcel was moved to the archive.",
            "format": "date-time"
          },
          "statusDate": {
            "type": "string",
            "description": "UTC timestamp of the most recent status update for this parcel.",
            "format": "date-time"
          },
          "statusCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Current routing status code for this parcel."
          },
          "statusMessage": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable description of the current routing status."
          },
          "localStatus": {
            "type": "integer",
            "description": "Local delivery status code set by the receiving network node.",
            "format": "int32"
          },
          "localStatusDate": {
            "type": "string",
            "description": "UTC timestamp when the local delivery status was last updated.",
            "format": "date-time"
          },
          "valid": {
            "$ref": "#/components/schemas/ParcelValid"
          },
          "acknowledgment": {
            "type": [
              "null",
              "string"
            ],
            "description": "AS2 or 997/999 functional acknowledgment status string for this parcel."
          },
          "direction": {
            "$ref": "#/components/schemas/Direction"
          },
          "interchanges": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/InterchangeIDInfo"
            },
            "description": "Array of interchange envelopes contained within this parcel."
          },
          "log": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ManifestInfo"
            },
            "description": "Routing manifest log entries tracking the parcel through the ECGrid platform."
          }
        },
        "additionalProperties": false,
        "description": "Physical file record that moves through the ECGrid platform. A parcel lands in a mailbox inbox or outbox and can contain one or more EDI interchanges. Carries delivery protocol, status, timestamps, and size."
      },
      "ParcelIDInfoCollection": {
        "type": "object",
        "properties": {
          "pageSize": {
            "type": "integer",
            "description": "Number of parcel records returned per page.",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "description": "Current page number in the paginated result set (1-based).",
            "format": "int32"
          },
          "count": {
            "type": "integer",
            "description": "Number of parcel records included in this response page.",
            "format": "int32"
          },
          "totalRecords": {
            "type": "integer",
            "description": "Total number of parcel records matching the query across all pages.",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "description": "Total number of pages available for the query result set.",
            "format": "int32"
          },
          "parcelIdInfoList": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ParcelIDInfo"
            },
            "description": "Array of parcel info records on the current page."
          }
        },
        "additionalProperties": false,
        "description": "Paged result set for parcel list queries. Carries the current page of ParcelIDInfo records plus the pagination envelope."
      },
      "ParcelInboxPendingListRequest": {
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional. When provided with `mailboxId`, scopes the query to that specific mailbox and\r\nenables the `ParcelInBoxEx` or `ParcelInBoxExShort` routing paths.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional. When provided with `networkId`, scopes the query to that mailbox.\r\nPass `0` to target the network root mailbox.",
            "format": "int32"
          },
          "ecgridIdFrom": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional sender ECGrid ID filter. When provided together with `ecgridIdTo`,\r\n`networkId`, `mailboxId`, and `status`, triggers the\r\n`ParcelInBoxExShort` compact-result path.",
            "format": "int32"
          },
          "ecgridIdTo": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional recipient ECGrid ID filter. When provided together with `ecgridIdFrom`,\r\n`networkId`, `mailboxId`, and `status`, triggers the\r\n`ParcelInBoxExShort` compact-result path.",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/ParcelStatus"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for POST /v2/parcels/pending-inbox-list. All fields are optional; the\r\ncombination supplied selects the SOAP variant — see the endpoint remarks for routing details."
      },
      "ParcelListRequest": {
        "required": [
          "ecgridIdFrom",
          "ecgridIdTo"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Network id to scope the query. Required (with mailboxId) to use mailbox-scoped SOAP variants.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Mailbox id to scope the query. Required (with networkId) for mailbox-scoped variants. Pass 0 for root mailbox.",
            "format": "int32"
          },
          "beginDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "Start of the archive date range. Required. Interpreted as local time when timeZoneId or utcOffsetMinutes is supplied; otherwise treated as UTC.",
            "format": "date-time"
          },
          "endDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "End of the archive date range. Defaults to now when omitted. Same timezone interpretation as beginDate.",
            "format": "date-time"
          },
          "timeZoneId": {
            "type": [
              "null",
              "string"
            ],
            "description": "IANA or Windows timezone ID (preferred).\r\nExamples:\r\n- \"America/New_York\"\r\n- \"UTC\"\r\n- \"Pacific Standard Time\""
          },
          "utcOffsetMinutes": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional explicit offset in minutes (fallback).\r\nExample: -300 for EST",
            "format": "int32"
          },
          "ecgridIdFrom": {
            "type": "integer",
            "description": "Sender ECGrid ID filter. Pass -1 to match any sender. Required for archive queries.",
            "format": "int32"
          },
          "ecgridIdTo": {
            "type": "integer",
            "description": "Receiver ECGrid ID filter. Pass -1 to match any receiver. Required for archive queries.",
            "format": "int32"
          },
          "mailbagControlId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional mailbag control number to filter results to a specific mailbag. Pass empty string for all."
          },
          "pageNo": {
            "maximum": 32767,
            "minimum": 1,
            "type": [
              "null",
              "integer"
            ],
            "description": "Page number for paginated results (1-based). Defaults to 1.",
            "format": "int32"
          },
          "recordsPerPage": {
            "maximum": 1000,
            "minimum": 1,
            "type": [
              "null",
              "integer"
            ],
            "description": "Records per page. Defaults to 500. Capped at 1000 to protect the SOAP backend.",
            "format": "int32"
          },
          "desc": {
            "type": "boolean",
            "description": "When true, returns results in descending date order via the DescEx SOAP variant."
          },
          "short": {
            "type": "boolean",
            "description": "When true, returns a compact result set via the ExShort SOAP variant (fewer fields per parcel)."
          }
        },
        "additionalProperties": false,
        "description": "Filter options for inbox-list and outbox-list archive queries. BeginDate is required."
      },
      "ParcelSendTestFileRequest": {
        "required": [
          "documentType",
          "ecgridIdFrom",
          "ecgridIdTo"
        ],
        "type": "object",
        "properties": {
          "ecgridIdFrom": {
            "type": "integer",
            "description": "Sender ECGrid ID. The test parcel will appear to originate from this EDI address.",
            "format": "int32"
          },
          "ecgridIdTo": {
            "type": "integer",
            "description": "Receiver ECGrid ID. The test parcel will be delivered to this EDI address's inbox.",
            "format": "int32"
          },
          "documentType": {
            "$ref": "#/components/schemas/EDIStandard"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for POST /v2/parcels/send-test-file. All three fields are required."
      },
      "ParcelSetMailbagControlIDRequest": {
        "required": [
          "parcelId"
        ],
        "type": "object",
        "properties": {
          "parcelId": {
            "type": "integer",
            "description": "The ECGrid parcel ID to update. Must be greater than 0.",
            "format": "int64"
          },
          "mailbagControlId": {
            "type": [
              "null",
              "string"
            ],
            "description": "The mailbag control ID string to assign to the parcel. Pass empty string to clear an existing value."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for POST /v2/parcels/set-mailbagcontrolid. ParcelID is required."
      },
      "ParcelStatus": {
        "enum": [
          "InBoxReady",
          "InBoxTransferred",
          "x1256Pending",
          "as2Receive",
          "as2MDNSent",
          "as2MDNPending",
          "as2MDNRejected",
          "as2MDNConfirmed",
          "as2Sent",
          "as2SendFailed",
          "gisbReceived",
          "gisbSent",
          "gisbSendFailed",
          "cxmlReceived",
          "cxmlSent",
          "cxmlSendFailed",
          "ftpReceived",
          "x400Received",
          "smtpReceived",
          "oftpReceived",
          "oftpSendFailed",
          "oftpSent",
          "oftpAborted",
          "ftpSent",
          "ftpSendFailed",
          "as4Received",
          "as4MDNSent",
          "as4MDNPending",
          "as4MDNRejected",
          "as4MDNConfirmed",
          "as4Sent",
          "as4SendFailed",
          "outboxDeliveryError"
        ],
        "type": "string",
        "description": "Delivery or receipt status code for a parcel moving through the ECGrid platform.\r\nReflects the last protocol-specific action taken — use this to determine whether\r\nan AS2, FTP, OFTP, or other delivery completed, failed, or is pending a receipt."
      },
      "ParcelUpdateRequest": {
        "required": [
          "parcelId"
        ],
        "type": "object",
        "properties": {
          "parcelId": {
            "type": "integer",
            "description": "The ECGrid parcel ID to update. Must be greater than 0.",
            "format": "int64"
          },
          "statusLocal": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Customer-defined local status code to assign. Required when transLogOnly is absent — routes to ParcelUpdateLocalStatus.",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/ParcelStatus"
          },
          "transLogOnly": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "When present, routes to ParcelUpdateStatus. When true, updates the transaction log only without changing the parcel status visible to the trading partner."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for POST /v2/parcels/update. ParcelID is required. Provide transLogOnly+status for ParcelUpdateStatus, or statusLocal for ParcelUpdateLocalStatus."
      },
      "ParcelUploadRequest": {
        "required": [
          "contentBase64"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Network id to upload under. When supplied, routes to ParcelUploadExA with the specified network and optional mailbox.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Mailbox id within the network. Optional — only used when networkId is supplied. Pass 0 or omit for the root mailbox.",
            "format": "int32"
          },
          "fileName": {
            "maxLength": 256,
            "minLength": 1,
            "type": [
              "null",
              "string"
            ],
            "description": "Name of the EDI file being uploaded (e.g. invoice.edi). 1–256 characters. Required."
          },
          "contentBase64": {
            "minLength": 1,
            "type": "string",
            "description": "Base64-encoded content of the EDI file. Required. No size limit — the 4 MB Kestrel cap is disabled on this endpoint."
          },
          "ecgridIdFrom": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Sender ECGrid ID for explicit routing. Required (with ecgridIdTo) to route via ParcelUploadMftA.",
            "format": "int32"
          },
          "ecgridIdTo": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Receiver ECGrid ID for explicit routing. Required (with ecgridIdFrom) to route via ParcelUploadMftA.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for uploading a parcel to ECGrid for outbound delivery. FileName and ContentBase64 are required."
      },
      "ParcelValid": {
        "enum": [
          "Pending",
          "Invalid",
          "Valid",
          "PartialValid",
          "ValidNoneRouted",
          "Duplicate",
          "ZeroByte",
          "VallidRouted",
          "ValidPartialRouted",
          "ValidNoneRoutedx"
        ],
        "type": "string",
        "description": "EDI content validation result for a parcel after it passed through the ECGrid parser.\r\nIndicates whether the content was syntactically valid and whether routing targets were found."
      },
      "ParcelsBoolResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the operation completed successfully."
          }
        },
        "additionalProperties": false,
        "description": "Response for parcel endpoints that return a boolean success flag (cancel, confirm, reset)."
      },
      "ParcelsDownloadResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/FileInfo"
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/parcels/download/{id} when noUpdate=true, containing the file content."
      },
      "ParcelsGetByIdResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/ParcelIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Response for GET /v2/parcels/{id} containing the parcel record."
      },
      "ParcelsListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/ParcelIDInfoCollection"
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/parcels/inbox-list, outbox-list, and pending-inbox-list containing parcel collection results."
      },
      "ParcelsLongResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The ECGrid ParcelID assigned to the test parcel. Use this ID to track it through the inbox of the receiving mailbox.",
            "format": "int64"
          }
        },
        "additionalProperties": false,
        "description": "Response for Parcel_SendTestFile — the long ParcelID of the generated test parcel."
      },
      "ParcelsManifestResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ManifestInfo"
            },
            "description": "List of ManifestInfo records, one per interchange envelope in the parcel."
          }
        },
        "additionalProperties": false,
        "description": "Response for Parcel_GetManifest — list of interchange manifests within the parcel."
      },
      "ParcelsParcelIDInfoListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ParcelIDInfo"
            },
            "description": "List of ParcelIDInfo records matching the MailbagControlID search criteria. Empty list is a valid success response when no parcels match."
          }
        },
        "additionalProperties": false,
        "description": "Response for Parcel_FindByMailbagControlId — list of parcels matching the mailbag control ID."
      },
      "ParcelsUploadResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The int64 parcel id assigned to the uploaded parcel.",
            "format": "int64"
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/parcels/upload containing the assigned parcel id."
      },
      "PartnerAddRequest": {
        "required": [
          "ecgridId1",
          "ecgridId2"
        ],
        "type": "object",
        "properties": {
          "ecgridId1": {
            "type": "integer",
            "description": "ECGridID of the first trading partner EDI ID in the relationship. Required.",
            "format": "int32"
          },
          "ecgridId2": {
            "type": "integer",
            "description": "ECGridID of the second trading partner EDI ID in the relationship. Required.",
            "format": "int32"
          },
          "reference": {
            "maxLength": 16,
            "type": [
              "null",
              "string"
            ],
            "description": "Optional internal reference label for the relationship, such as a purchase order number. Up to 16 characters.\r\nWhen omitted or left empty, ECGridOS automatically fills the stored `reference1` field from the\r\nfirst 16 characters of tp2's mailbox name — longer mailbox names are silently truncated to 16.\r\nSupply an explicit value to control what is stored rather than relying on the auto-fill."
          },
          "contactName": {
            "maxLength": 48,
            "type": [
              "null",
              "string"
            ],
            "description": "Name of the contact person responsible for this trading partner relationship. Up to 48 characters.\r\nOptional — leave empty to create a partnership with no named contact (as the portal does).\r\nMust not contain '<', '>', or 'javascript:'."
          },
          "contactEmail": {
            "maxLength": 48,
            "type": [
              "null",
              "string"
            ],
            "description": "Email address of the contact person for this relationship. Up to 48 characters.\r\nOptional — leave empty to create a partnership with no contact email (as the portal does)."
          },
          "notifyContact": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "When true, sends a notification email to the contact when the relationship is created.\r\nDefaults to false."
          },
          "preconfirm": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "When true, bypasses the confirmation step and activates the relationship immediately.\r\nDefaults to false — leave false to require explicit confirmation before activation."
          },
          "note": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional setup note or message to include with the new partner relationship.\r\nMust not contain '<', '>', or 'javascript:'."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for creating a new ECGrid trading partner (interconnect) relationship.\r\nEcgridId1 and EcgridId2 are required; ContactName and ContactEmail are optional (may be empty)."
      },
      "PartnerCountRequest": {
        "required": [
          "maxDays"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Network id to scope the count. Required (with `mailboxId` and `ecgridId`)\r\nto route to `InterconnectCountEx`. All three fields must be present together.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Mailbox id to scope the count. Required (with `networkId` and `ecgridId`)\r\nto route to `InterconnectCountEx`.",
            "format": "int32"
          },
          "ecgridId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "ECGridID to scope the count to a specific EDI ID. Required (with `networkId`\r\nand `mailboxId`) to route to `InterconnectCountEx`.",
            "format": "int32"
          },
          "maxDays": {
            "type": "integer",
            "description": "Number of days back to include in the count. Required.\r\nControls the time window — use a larger value to capture older relationships.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for counting trading partner relationships within a time window.\r\nMaxDays is required. Provide NetworkId, MailboxId, and EcgridId together to scope\r\nthe count to a specific EDI ID."
      },
      "PartnerListRequest": {
        "type": "object",
        "properties": {
          "ecgridId1": {
            "type": [
              "null",
              "integer"
            ],
            "description": "ECGridID of the first trading partner. Provide with `ecgridId2` to route to\r\n`InterconnectListByECGridID`. Pass `-1` to match any first ID.",
            "format": "int32"
          },
          "ecgridId2": {
            "type": [
              "null",
              "integer"
            ],
            "description": "ECGridID of the second trading partner. Provide with `ecgridId1` to route to\r\n`InterconnectListByECGridID`. Pass `-1` to match any second ID.\r\nCannot both be -1.",
            "format": "int32"
          },
          "status": {
            "type": [
              "null",
              "string"
            ],
            "description": "Partner relationship status filter. Valid values: Active, Inactive, Pending, Suspended,\r\nCancelled. Required when not supplying ecgridId1+ecgridId2."
          },
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Network id to scope the status-based list. When provided, routes to\r\n`InterconnectListByStatusEx`. Must be greater than 0 when supplied.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Mailbox id to scope the status-based list to a specific mailbox. When provided without\r\n`networkId`, the session network is used automatically. Recommended for\r\nbroader-scope API keys to limit result size — mailbox-scoped API keys are already\r\nlimited to their own mailbox's visibility.",
            "format": "int32"
          },
          "maxDays": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Number of days back to include in the list. Defaults to 30 when not supplied.\r\nUse a smaller value combined with `mailboxId` to keep result set sizes manageable\r\non high-volume mailboxes.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Filter options for listing ECGrid trading partner relationships.\r\nSupply ecgridId1 + ecgridId2 to find relationships between specific EDI IDs,\r\nor supply status (with optional networkId/mailboxId) to filter by relationship state."
      },
      "PartnerNoteListRequest": {
        "required": [
          "interconnectId"
        ],
        "type": "object",
        "properties": {
          "interconnectId": {
            "type": "integer",
            "description": "Interconnect id of the partner relationship whose notes should be retrieved.\r\nRequired and must be greater than 0.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for retrieving the note history of a partner relationship."
      },
      "PartnerNoteRequest": {
        "required": [
          "authLevel",
          "emailTo",
          "interconnectId"
        ],
        "type": "object",
        "properties": {
          "interconnectId": {
            "type": "integer",
            "description": "Interconnect id of the partner relationship to annotate. Required and must be greater than 0.",
            "format": "int32"
          },
          "authLevel": {
            "$ref": "#/components/schemas/AuthLevel"
          },
          "note": {
            "type": [
              "null",
              "string"
            ],
            "description": "Text content of the note. Optional — may be omitted if an attachment is the primary content.\r\nMust not contain '<', '>', or 'javascript:'."
          },
          "attachmentName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Filename for an optional file attachment (e.g. `setup-guide.pdf`).\r\nMust be supplied together with `attachmentContent`.\r\nMust not contain '<', '>', or 'javascript:'."
          },
          "attachmentContent": {
            "type": [
              "null",
              "string"
            ],
            "description": "Base64-encoded content of the optional file attachment.\r\nMust be supplied together with `attachmentName`."
          },
          "emailTo": {
            "$ref": "#/components/schemas/eMailTo"
          },
          "otherEmailAddress": {
            "type": [
              "null",
              "string"
            ],
            "description": "Additional email address to notify when `emailTo` is set to `OtherEMail`.\r\nIgnored for other `emailTo` values."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for adding an administrative note to a partner relationship.\r\nInterconnectId, AuthLevel, and EmailTo are required."
      },
      "PartnerUpdateRequest": {
        "required": [
          "emailTo",
          "status"
        ],
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/StatusInterconnect"
          },
          "authLevel": {
            "$ref": "#/components/schemas/AuthLevel"
          },
          "note": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional note describing why the relationship was updated. Recorded against the\r\nrelationship's note history. Must not contain '<', '>', or 'javascript:'."
          },
          "emailTo": {
            "$ref": "#/components/schemas/eMailTo"
          },
          "otherEmailAddress": {
            "type": [
              "null",
              "string"
            ],
            "description": "Additional email address to notify when `emailTo` is set to `OtherEMail`.\r\nIgnored for other `emailTo` values."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for updating an existing ECGrid trading partner (interconnect) relationship.\r\nThe interconnect id travels in the route. Status and EmailTo are required;\r\nAuthLevel, Note, and OtherEmailAddress are optional."
      },
      "PartnersBoolResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the operation completed successfully."
          }
        },
        "additionalProperties": false,
        "description": "Response for partner endpoints that return a boolean success flag."
      },
      "PartnersCountResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/TableResult"
            },
            "description": "Tabular count data derived from the ECGridOS DataSet response — one entry per table, each with columns and rows."
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/partners/count containing tabular partner count data."
      },
      "PartnersCreateResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/InterconnectIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/partners containing the newly created partner relationship record."
      },
      "PartnersGetByIdResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/InterconnectIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Response for GET /v2/partners/{id} containing the partner relationship record."
      },
      "PartnersListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/InterconnectIDInfo"
            },
            "description": "Array of ECGrid partner (interconnect) records matching the supplied filter."
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/partners/list containing matching partner relationship records."
      },
      "PartnersNoteListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/InterconnectNoteObject"
            },
            "description": "Array of note records attached to the specified partner relationship, in chronological order."
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /v2/partners/notelist containing the note history for a partner relationship."
      },
      "PortalCreateRequest": {
        "required": [
          "mailboxId"
        ],
        "type": "object",
        "properties": {
          "mailboxId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "Mailbox id the portal will be created for. Must be greater than 0 — this endpoint provisions\r\nmailbox-level portals only. The root mailbox (mailboxId 0) is a network-level concept and its\r\nportal is provisioned through the network flow, not through this endpoint. The caller's\r\nauthorization is evaluated against the owning network of this mailbox, which is resolved via\r\nan ECGridOS lookup — not from the request payload.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for creating a new ECGrid portal site. Only MailboxId is required — the service\r\nderives the network scope, subdomain, and branding automatically."
      },
      "PortalCreateResult": {
        "type": "object",
        "properties": {
          "portalId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Elasticsearch document id of the newly created portal record. Use this for subsequent\r\nupdate / delete operations against the portal."
          },
          "subdomain": {
            "type": [
              "null",
              "string"
            ],
            "description": "DNS-safe subdomain label derived from the mailbox name. May carry a `-{mailboxId}` or\r\n`-mbx` suffix when the raw mailbox name collided with an existing portal or a reserved name."
          },
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Network id that owns the portal — resolved from the mailbox via ECGridOS, not from the request.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Mailbox id the portal was created for. Echoes the request's `MailboxId`.",
            "format": "int32"
          },
          "url": {
            "type": [
              "null",
              "string"
            ],
            "description": "Fully-qualified customer-facing URL, e.g. `acmeco.ecgrid.com`. Share this with the end customer."
          }
        },
        "additionalProperties": false,
        "description": "Result payload returned from a successful portal creation. Wrapped inside an `ApiResponse.data`\r\nenvelope on the `POST /portals/create` response."
      },
      "PortalExistsResult": {
        "type": "object",
        "properties": {
          "exists": {
            "type": "boolean",
            "description": "True when an active portal exists for the mailbox. False when no portal has been created yet;\r\nthe other fields on this object will be null in that case."
          },
          "portalId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Elasticsearch document id of the portal record. Null when ECG_REST_V1.Controllers.PortalExistsResult.Exists is false."
          },
          "subdomain": {
            "type": [
              "null",
              "string"
            ],
            "description": "Subdomain label for the portal (the DNS left-hand side). Null when ECG_REST_V1.Controllers.PortalExistsResult.Exists is false."
          },
          "url": {
            "type": [
              "null",
              "string"
            ],
            "description": "Fully-qualified customer-facing URL, e.g. `acmeco.ecgrid.com`.\r\nNull when ECG_REST_V1.Controllers.PortalExistsResult.Exists is false."
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable status: \"Portal found.\" or \"No portal exists for this mailbox.\"."
          }
        },
        "additionalProperties": false,
        "description": "Response payload for the `GET /portals/by-mailbox/{mailboxId}` endpoint.\r\nBoth \"found\" and \"not found\" outcomes are returned with HTTP 200 — distinguish via `Exists`."
      },
      "PortalsCreateResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/PortalCreateResult"
          }
        },
        "additionalProperties": false,
        "description": "Typed response for Portals_Create — data contains the created portal's details."
      },
      "PortalsGetByMailboxResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/PortalExistsResult"
          }
        },
        "additionalProperties": false,
        "description": "Typed response for Portals_GetByMailbox — data contains the portal existence check result."
      },
      "ReceiptType": {
        "enum": [
          "None",
          "SynchronousUnsigned",
          "SynchronousSigned",
          "AsynchronousUnsigned",
          "AsynchronousSigned"
        ],
        "type": "string",
        "description": "AS2 or AS4 MDN (Message Disposition Notification) receipt configuration for a comm channel.\r\nControls whether the trading partner returns a receipt and how it is delivered and signed."
      },
      "RefreshRequest": {
        "required": [
          "refreshToken"
        ],
        "type": "object",
        "properties": {
          "refreshToken": {
            "minLength": 1,
            "type": "string",
            "description": "The refresh token issued during a previous login or refresh call. Required.\r\nRefresh tokens are valid for 48 hours and are single-use — they are revoked upon exchange."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for exchanging a refresh token for a new token pair."
      },
      "RefreshResponse": {
        "type": "object",
        "properties": {
          "accessToken": {
            "type": [
              "null",
              "string"
            ],
            "description": "New short-lived JWT access token. Replaces the previous access token immediately."
          },
          "refreshToken": {
            "type": [
              "null",
              "string"
            ],
            "description": "New refresh token (48-hour lifetime). The previous refresh token is revoked upon\r\nexchange and cannot be reused."
          },
          "expires": {
            "type": "string",
            "description": "UTC datetime when the new access token expires.",
            "format": "date-time"
          },
          "responseTimeMs": {
            "type": "integer",
            "description": "Wall-clock time in milliseconds for token generation. Present for symmetry with\r\nLoginResponse; typically near zero since refresh does not call ECGridOS SOAP.",
            "format": "int64"
          }
        },
        "additionalProperties": false,
        "description": "Response payload returned by POST /auth/refresh containing the new token pair.\r\nThis is a standalone response shape — it does not wrap the standard ApiResponse envelope."
      },
      "ReportByDateRequest": {
        "required": [
          "endDate",
          "mailboxId",
          "networkId",
          "report",
          "startDate"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Network ID to scope the report to a specific customer network.\r\nMust be paired with mailboxId; omitting either defaults to the caller's session scope.\r\nMust be greater than 0.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "Optional. Mailbox ID to scope the report to a specific mailbox within the network.\r\nMust be paired with networkId; use 0 to reference the network's root mailbox.",
            "format": "int32"
          },
          "report": {
            "type": "integer",
            "description": "The numeric identifier of the report to run. Obtain valid IDs from the Report List\r\nendpoint. Required; must be a positive short integer matching a known report type.",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "description": "Start of the reporting date range, inclusive, in ISO 8601 UTC format.\r\nRequired; must be earlier than or equal to endDate — supplying a startDate after endDate returns 400.",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "description": "End of the reporting date range, inclusive, in ISO 8601 UTC format.\r\nRequired; must be later than or equal to startDate — supplying an endDate before startDate returns 400.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Request body for the Report by Date endpoint. Selects a report type and bounds the\r\nresult set to a specific date range, with optional network and mailbox scope."
      },
      "ReportInstantStatsRequest": {
        "required": [
          "minutes1",
          "minutes2"
        ],
        "type": "object",
        "properties": {
          "minutes1": {
            "type": "integer",
            "description": "Duration in minutes for the first (shorter) observation window.\r\nRequired; must be a positive integer less than minutes2.",
            "format": "int32"
          },
          "minutes2": {
            "maximum": 1440,
            "minimum": 0,
            "type": "integer",
            "description": "Duration in minutes for the second (longer) observation window.\r\nRequired; must be a positive integer greater than minutes1. Maximum 1440 (24 hours).",
            "format": "int32"
          },
          "networkId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional. Network ID to scope the counts to a specific customer network.\r\nMust be paired with mailboxId and ecgridId to use the Ex variant.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional. Mailbox ID to scope the counts to a specific mailbox within the network.\r\nMust be paired with networkId and ecgridId to use the Ex variant.",
            "format": "int32"
          },
          "ecgridId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional. ECGridID to further scope counts to a single EDI ID on the mailbox.\r\nOnly used when networkId and mailboxId are also provided. Pass 0 to include all EDI IDs.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request body for the Instant Stats endpoint. Specifies the two observation windows\r\nand optional network, mailbox, and EDI ID scope."
      },
      "ReportInterchangeStatsRequest": {
        "required": [
          "direction",
          "endTime",
          "startTime"
        ],
        "type": "object",
        "properties": {
          "startTime": {
            "type": "string",
            "description": "Start of the reporting window, inclusive, in ISO 8601 UTC format.\r\nRequired; must be earlier than endTime.",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "description": "End of the reporting window, inclusive, in ISO 8601 UTC format.\r\nRequired; must be later than startTime.",
            "format": "date-time"
          },
          "direction": {
            "$ref": "#/components/schemas/Direction"
          },
          "networkId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional. Network ID to scope the statistics to a specific customer network.\r\nMust be paired with mailboxId; must be greater than 0.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional. Mailbox ID to scope the statistics to a specific mailbox within the network.\r\nMust be paired with networkId; use 0 to reference the network's root mailbox.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request body for the Interchange Stats endpoint. Specifies the date range, direction\r\nfilter, and optional network and mailbox scope."
      },
      "ReportMonthlyRequest": {
        "required": [
          "month",
          "report"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional. Network ID to scope the report to a specific customer network.\r\nMust be paired with mailboxId; must be greater than 0.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional. Mailbox ID to scope the report to a specific mailbox within the network.\r\nMust be paired with networkId; use 0 to reference the network's root mailbox.",
            "format": "int32"
          },
          "report": {
            "type": "integer",
            "description": "The numeric identifier of the report to run. Obtain valid IDs from the Report List\r\nendpoint. Required; must be a positive short integer matching a known report type.",
            "format": "int32"
          },
          "month": {
            "type": "string",
            "description": "The target calendar month in ISO 8601 UTC format. Only the year and month components\r\nare used — pass the first day of the month at midnight UTC\r\n(e.g., 2026-04-01T00:00:00Z for April 2026). Required.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Request body for the Monthly Report endpoint. Selects a report type and target calendar\r\nmonth, with optional network and mailbox scope."
      },
      "ReportTrafficStatsRequest": {
        "required": [
          "numPeriods",
          "period",
          "targetTime"
        ],
        "type": "object",
        "properties": {
          "targetTime": {
            "type": "string",
            "description": "The reference timestamp from which periods are calculated going backward, in ISO 8601\r\nUTC format. Typically the current time or a past anchor point. Required.",
            "format": "date-time"
          },
          "numPeriods": {
            "type": "integer",
            "description": "Number of consecutive periods to return, counting back from targetTime.\r\nRequired; must be a positive integer within the maximum for the chosen period granularity\r\n(72 hours, 31 days, 26 weeks, 24 months).",
            "format": "int32"
          },
          "period": {
            "$ref": "#/components/schemas/StatisticsPeriod"
          },
          "networkId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional. Network ID to scope the statistics to a specific customer network.\r\nMust be paired with mailboxId; must be greater than 0.",
            "format": "int32"
          },
          "mailboxId": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional. Mailbox ID to scope the statistics to a specific mailbox within the network.\r\nMust be paired with networkId; use 0 to reference the network's root mailbox.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request body for the Traffic Stats endpoint. Specifies the reference timestamp, number\r\nof periods, period granularity, and optional network and mailbox scope."
      },
      "ReportsDataResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/TableResult"
            },
            "description": "Sequence of TableResult records, one per DataTable in the SOAP DataSet. Each record contains column names and data rows."
          }
        },
        "additionalProperties": false,
        "description": "Typed response for SOAP-based report endpoints — data is the table result set returned by the ECGridOS report method."
      },
      "RetCode": {
        "enum": [
          "Unknown",
          "Success",
          "SesssionTimeout",
          "AccessDenied",
          "NotFound",
          "InvalidID",
          "Duplicate",
          "IDExistsOnNetwork",
          "InvalidDataType",
          "InvalidDataLength",
          "DataError",
          "SQLError",
          "InternalError"
        ],
        "type": "string",
        "description": "Internal return code from an ECGridOS SOAP operation. Indicates the outcome category\r\nof the call before it is translated into an API error response."
      },
      "RoutingGroup": {
        "enum": [
          "ProductionA",
          "ProductionB",
          "Migration1",
          "Migration2",
          "NetOpsOnly1",
          "NetOpsOnly2",
          "ManagedFileTransfer",
          "SuperHub",
          "Test",
          "Suspense1",
          "Suspense2",
          "Suspense3"
        ],
        "type": "string",
        "description": "ECGrid internal routing group that an EDI ID's traffic flows through. Affects which\r\nnetwork nodes handle delivery and the priority of the traffic stream."
      },
      "SessionEvents": {
        "type": "object",
        "properties": {
          "apiCall": {
            "$ref": "#/components/schemas/APICall"
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "milliseconds": {
            "type": "integer",
            "format": "int32"
          },
          "ip": {
            "type": [
              "null",
              "string"
            ]
          },
          "returnCode": {
            "$ref": "#/components/schemas/RetCode"
          },
          "comment": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "additionalProperties": false,
        "description": "Session Events Object"
      },
      "SessionInfo": {
        "type": "object",
        "properties": {
          "ecgridOsVersion": {
            "type": [
              "null",
              "string"
            ],
            "description": "Version string of the ECGridOS SOAP API platform backing this session."
          },
          "sessionId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Unique string token identifying this authenticated session."
          },
          "sessionEventId": {
            "type": "integer",
            "description": "Numeric identifier of the most recent event within this session.",
            "format": "int32"
          },
          "userId": {
            "type": "integer",
            "description": "Numeric identifier of the authenticated user for this session.",
            "format": "int32"
          },
          "loginName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Login name (API key or username) used to authenticate this session."
          },
          "firstName": {
            "type": [
              "null",
              "string"
            ],
            "description": "First name of the authenticated user."
          },
          "lastName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Last name of the authenticated user."
          },
          "company": {
            "type": [
              "null",
              "string"
            ],
            "description": "Company or organization name of the authenticated user."
          },
          "email": {
            "type": [
              "null",
              "string"
            ],
            "description": "Email address of the authenticated user."
          },
          "phone": {
            "type": [
              "null",
              "string"
            ],
            "description": "Phone number of the authenticated user."
          },
          "timeZoneOffset": {
            "type": "number",
            "description": "User's UTC offset in hours for display purposes.",
            "format": "float"
          },
          "authLevel": {
            "$ref": "#/components/schemas/AuthLevel"
          },
          "lastLogin": {
            "type": "string",
            "description": "UTC timestamp of the user's previous successful login before this session.",
            "format": "date-time"
          },
          "openSessions": {
            "type": "integer",
            "description": "Number of concurrently active sessions for this user account.",
            "format": "int32"
          },
          "timeOut": {
            "type": "integer",
            "description": "Inactivity timeout in minutes before this session is automatically expired.",
            "format": "int32"
          },
          "networkId": {
            "type": "integer",
            "description": "Network numeric identifier the session is authenticated under.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "Mailbox numeric identifier the session is scoped to; 0 means network-level scope.",
            "format": "int32"
          },
          "ip": {
            "type": [
              "null",
              "string"
            ],
            "description": "IP address of the client that initiated this session."
          }
        },
        "additionalProperties": false,
        "description": "Active session record returned after a successful ECGridOS login. Carries the authenticated\r\nuser's identity, permission level, network/mailbox scope, and session token."
      },
      "SessionLogInfo": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Unique string token that identified this session."
          },
          "startTime": {
            "type": "string",
            "description": "UTC timestamp when this session was created.",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "description": "UTC timestamp when this session ended or was terminated.",
            "format": "date-time"
          },
          "expires": {
            "type": "string",
            "description": "UTC timestamp at which this session token would have expired.",
            "format": "date-time"
          },
          "networkId": {
            "type": "integer",
            "description": "Network numeric identifier the session was authenticated under.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "Mailbox numeric identifier the session was scoped to; 0 means network-level scope.",
            "format": "int32"
          },
          "userId": {
            "type": "integer",
            "description": "Numeric identifier of the user who owned this session.",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/SessionStatus"
          },
          "version": {
            "type": [
              "null",
              "string"
            ],
            "description": "ECGridOS platform version string at the time this session was active."
          },
          "events": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SessionEvents"
            },
            "description": "Array of individual API call events recorded during this session."
          }
        },
        "additionalProperties": false,
        "description": "Historical session record from the session audit log. Each entry covers one completed\r\nor terminated session, including its full event list of API calls made during that session."
      },
      "SessionRequest": {
        "required": [
          "maxRecords"
        ],
        "type": "object",
        "properties": {
          "maxRecords": {
            "type": "integer",
            "description": "Maximum number of session log entries to return. Required.\r\nLarger values return more history but may increase response time.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for retrieving the session activity log."
      },
      "SessionStatus": {
        "enum": [
          "Open",
          "Closed",
          "Expired"
        ],
        "type": "string",
        "description": "Lifecycle state of an ECGrid API session as recorded in the session log."
      },
      "StatisticsPeriod": {
        "enum": [
          "Hour",
          "Day",
          "Week",
          "Month"
        ],
        "type": "string",
        "description": "Time granularity used when grouping ECGrid traffic or usage statistics in reports."
      },
      "Status": {
        "enum": [
          "Development",
          "Active",
          "Preproduction",
          "Suspended",
          "Terminated"
        ],
        "type": "string",
        "description": "Generic lifecycle status for ECGrid objects including networks, mailboxes, users, comm\r\nchannels, and carbon copy rules. Determines whether the object is visible and operational."
      },
      "StatusCallBack": {
        "enum": [
          "Active",
          "Pending",
          "Completed",
          "Error",
          "Canceled"
        ],
        "type": "string",
        "description": "Delivery state of a callback queue entry. Tracks whether the webhook POST has been\r\nattempted, is pending, completed successfully, or failed."
      },
      "StatusECGridID": {
        "enum": [
          "Active",
          "AutoRoute",
          "Pending",
          "Suspended",
          "Terminated",
          "Duplicate"
        ],
        "type": "string",
        "description": "Lifecycle and routing status of an ECGrid EDI ID (trading partner address). Controls\r\nwhether the EDI ID will accept and route inbound interchanges."
      },
      "StatusInfo": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "Numeric status code value as defined in the ECGrid status code list.",
            "format": "int32"
          },
          "qualifier": {
            "type": [
              "null",
              "string"
            ],
            "description": "Short qualifier string categorizing this status code (e.g., \"OK\", \"ERR\")."
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable description of what this status code means."
          },
          "level": {
            "type": [
              "null",
              "string"
            ],
            "description": "Severity level of this status code (e.g., \"Info\", \"Warning\", \"Error\")."
          }
        },
        "additionalProperties": false,
        "description": "One entry from the ECGrid status code catalog. Translates a numeric status code into a\r\nhuman-readable message, qualifier, and severity level for display or logging."
      },
      "StatusInterconnect": {
        "enum": [
          "Pending",
          "Completed",
          "Canceled",
          "Delayed",
          "Problem",
          "AuthorizationRequired",
          "NoStatusChange"
        ],
        "type": "string",
        "description": "State of a trading partner interconnect relationship between two EDI IDs. An interconnect\r\nmust reach the Completed state before interchanges between the two EDI IDs are routed."
      },
      "StatusListGetAllResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/StatusInfo"
            },
            "description": "Complete list of StatusInfo records covering all ECGrid status codes and severity levels."
          }
        },
        "additionalProperties": false,
        "description": "Typed response for StatusList_GetAll — data is the complete list of ECGrid status codes."
      },
      "TPAddVANRequest": {
        "required": [
          "networkID"
        ],
        "type": "object",
        "properties": {
          "networkID": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "The ECGrid numeric network id that will own the routing relationship to this VAN-hosted\r\ntrading partner. Must be greater than 0.",
            "format": "int32"
          },
          "qualifier": {
            "maxLength": 4,
            "type": [
              "null",
              "string"
            ],
            "description": "The X12 ISA qualifier for the VAN-hosted trading partner's EDI address (e.g., \"01\" for DUNS,\r\n\"ZZ\" for mutually defined). Optional; maximum 4 characters."
          },
          "id": {
            "maxLength": 35,
            "minLength": 1,
            "type": [
              "null",
              "string"
            ],
            "description": "The EDI address value for the VAN-hosted trading partner. Must be 1–35 characters."
          },
          "description": {
            "maxLength": 35,
            "minLength": 3,
            "type": [
              "null",
              "string"
            ],
            "description": "Human-readable label for this VAN trading partner ID. Must be 3–35 characters. Does not\r\naffect EDI routing. Must not contain '<', '>', or 'javascript:'."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for adding a VAN-hosted trading partner EDI address to an ECGrid network.\r\nUse this when the trading partner's EDI connectivity is provided by a third-party VAN rather\r\nthan ECGrid directly."
      },
      "TPGetMailboxDefaultRequest": {
        "required": [
          "mailboxID",
          "networkID"
        ],
        "type": "object",
        "properties": {
          "networkID": {
            "type": "integer",
            "description": "The ECGrid numeric network id to look up the default mailbox for. Must be greater than 0.",
            "format": "int32"
          },
          "mailboxID": {
            "type": "integer",
            "description": "The ECGrid numeric mailbox id within the network to look up the default for. Supply 0\r\nto reference the root mailbox.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for retrieving the default mailbox ECGridID for a network and mailbox combination.\r\nBoth NetworkID and MailboxID are required."
      },
      "TPMoveRequest": {
        "required": [
          "ecGridID"
        ],
        "type": "object",
        "properties": {
          "ecGridID": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "The unique ECGrid numeric identifier of the EDI address to move. Must be greater than 0.",
            "format": "int32"
          },
          "moveDateTime": {
            "type": [
              "null",
              "string"
            ],
            "description": "The scheduled date and time for the move to take effect. Required when invoking TPMove\r\n(no NetworkID, no MailboxID) or TPMoveEx (NetworkID provided). Must not be in the past.\r\nNot used by TPMoveMailbox (immediate move).",
            "format": "date-time"
          },
          "networkID": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The ECGrid numeric network id to move the ECGrid ID into. When provided, invokes TPMoveEx\r\nto schedule a cross-network move at MoveDateTime. Takes precedence over MailboxID routing.",
            "format": "int32"
          },
          "mailboxID": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The ECGrid numeric mailbox id to move the ECGrid ID into. When provided without NetworkID,\r\ninvokes TPMoveMailbox for an immediate intra-network mailbox transfer. When provided together\r\nwith NetworkID, specifies the target mailbox within the destination network for TPMoveEx.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for moving an ECGrid ID to a different network, mailbox, or scheduling a move.\r\nECGridID is always required. The combination of NetworkID, MailboxID, and MoveDateTime controls\r\nwhich SOAP operation is invoked."
      },
      "TPUpdateDataEMailRequest": {
        "required": [
          "ecGridID",
          "eMailSystem",
          "payloadPosition"
        ],
        "type": "object",
        "properties": {
          "ecGridID": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "The unique ECGrid numeric identifier of the EDI address whose email delivery settings will\r\nbe updated. Must be greater than 0.",
            "format": "int32"
          },
          "eMailSystem": {
            "$ref": "#/components/schemas/EMailSystem"
          },
          "dataEMail": {
            "type": [
              "null",
              "string"
            ],
            "description": "The destination email address where EDI data notifications are sent. Optional; when null or\r\nempty the system uses the mailbox-level default data email address."
          },
          "payloadPosition": {
            "$ref": "#/components/schemas/EMailPayload"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for configuring email delivery settings on an ECGrid ID. Controls how inbound\r\nEDI data for this trading partner is forwarded via email. ECGridID, EMailSystem, and PayloadPosition\r\nare required."
      },
      "TPUpdateDescriptionRequest": {
        "required": [
          "ecGridID"
        ],
        "type": "object",
        "properties": {
          "ecGridID": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "The unique ECGrid numeric identifier of the EDI address whose description will be updated.\r\nMust be greater than 0.",
            "format": "int32"
          },
          "description": {
            "maxLength": 35,
            "minLength": 3,
            "type": [
              "null",
              "string"
            ],
            "description": "The new human-readable label for the ECGrid ID. Must be 3–35 characters. Does not affect\r\nEDI routing; used for display purposes in portals and reports. Must not contain '<', '>', or 'javascript:'."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for updating the description of an ECGrid ID via POST. Both ECGridID and\r\nDescription are provided in the body. For the PUT variant that uses the id as a path parameter,\r\nuse PUT /ids/{id}."
      },
      "TPX12DelimitersRequest": {
        "required": [
          "ecGridID",
          "elmSep",
          "segTerm",
          "subElmSep"
        ],
        "type": "object",
        "properties": {
          "ecGridID": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "The unique ECGrid numeric identifier of the EDI address whose X12 delimiters will be set.\r\nMust be greater than 0.",
            "format": "int32"
          },
          "segTerm": {
            "type": "integer",
            "description": "The byte value (0–255) to use as the X12 segment terminator character. This character marks\r\nthe end of each X12 segment in outbound interchanges for this trading partner.",
            "format": "int32"
          },
          "elmSep": {
            "type": "integer",
            "description": "The byte value (0–255) to use as the X12 element separator character. This character\r\ndelimits individual data elements within each X12 segment for this trading partner.",
            "format": "int32"
          },
          "subElmSep": {
            "type": "integer",
            "description": "The byte value (0–255) to use as the X12 subelement separator character. This character\r\ndelimits composite data subelements within an element for this trading partner.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request payload for setting custom X12 delimiter byte values on an ECGrid ID. All four fields\r\nare required. Delimiter overrides apply to all X12 interchanges processed for this trading partner."
      },
      "TableResult": {
        "type": "object",
        "properties": {
          "columns": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            },
            "description": "Column names for this table, in the order returned by the SOAP DataSet."
          },
          "rows": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "object",
              "additionalProperties": { }
            },
            "description": "Data rows as dictionaries keyed by column name."
          }
        },
        "additionalProperties": false,
        "description": "A single table from the DataSet returned by a report SOAP method, shaped for JSON serialization."
      },
      "UseType": {
        "enum": [
          "Undefined",
          "Test",
          "Production",
          "TestAndProduction"
        ],
        "type": "string",
        "description": "Indicates whether an EDI ID, comm channel, or mailbox handles test traffic, production\r\ntraffic, or both. Affects routing filtering and partner visibility."
      },
      "UserAddRequest": {
        "required": [
          "authLevel",
          "cellCarrier",
          "company",
          "email",
          "firstName",
          "lastName",
          "loginName",
          "password"
        ],
        "type": "object",
        "properties": {
          "networkId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional Network ID.",
            "format": "int32"
          },
          "mailboxId": {
            "maximum": 2147483647,
            "minimum": -1,
            "type": [
              "null",
              "integer"
            ],
            "description": "The Mailbox ID this user should belong to. Use 0 for Root or Network Level",
            "format": "int32"
          },
          "loginName": {
            "maxLength": 128,
            "minLength": 8,
            "type": "string",
            "description": "Login name (email allowed). Must be between 8 and 128 characters."
          },
          "password": {
            "maxLength": 128,
            "minLength": 8,
            "pattern": "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[^a-zA-Z0-9]).+$",
            "type": "string",
            "description": "Password: Must be between 8 and 128 characters, must contain at least\r\none lowercase, one uppercase, one number, and one special character."
          },
          "firstName": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "description": "First name, up to 50 characters. Must not contain '<', '>', or 'javascript:'."
          },
          "lastName": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "description": "Last name, up to 50 characters. Must not contain '<', '>', or 'javascript:'."
          },
          "company": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "description": "Company name, up to 50 characters. Must not contain '<', '>', or 'javascript:'."
          },
          "email": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "description": "User email address, up to 128 characters.",
            "format": "email"
          },
          "phone": {
            "maxLength": 20,
            "type": [
              "null",
              "string"
            ],
            "description": "Phone number, up to 20 characters."
          },
          "cellPhone": {
            "maxLength": 20,
            "type": [
              "null",
              "string"
            ],
            "description": "Cell phone number, up to 20 characters."
          },
          "cellCarrier": {
            "$ref": "#/components/schemas/CellCarrier"
          },
          "authLevel": {
            "$ref": "#/components/schemas/AuthLevel"
          }
        },
        "additionalProperties": false,
        "description": "Represents a request to add a new user, including required credentials, contact information, and authorization\r\nsettings."
      },
      "UserByNameRequest": {
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 128,
            "minLength": 8,
            "type": [
              "null",
              "string"
            ],
            "description": "Name or email address to search.\r\nLogin name or email addresses.",
            "example": "jane.smith@example.com"
          }
        },
        "additionalProperties": false,
        "description": "Gets or sets the user name or email address to search for."
      },
      "UserGeneratePasswordRequest": {
        "type": "object",
        "properties": {
          "length": {
            "maximum": 120,
            "minimum": 8,
            "type": "integer",
            "description": "Length for the generated password. Default is 13.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Represents a request to generate a new password for a user, specifying the desired password length."
      },
      "UserIDInfo": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "description": "Unique numeric identifier for this user account.",
            "format": "int32"
          },
          "loginName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Login name (API key or username) used to authenticate as this user."
          },
          "recoveryQuestion": {
            "type": [
              "null",
              "string"
            ],
            "description": "Security recovery question text set by the user for account recovery."
          },
          "firstName": {
            "type": [
              "null",
              "string"
            ],
            "description": "First name of this user."
          },
          "lastName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Last name of this user."
          },
          "company": {
            "type": [
              "null",
              "string"
            ],
            "description": "Company or organization name associated with this user account."
          },
          "email": {
            "type": [
              "null",
              "string"
            ],
            "description": "Email address for this user, used for notifications and account recovery."
          },
          "phone": {
            "type": [
              "null",
              "string"
            ],
            "description": "Primary phone number for this user."
          },
          "cellPhone": {
            "type": [
              "null",
              "string"
            ],
            "description": "Mobile/cell phone number for SMS notifications."
          },
          "cellCarrier": {
            "$ref": "#/components/schemas/CellCarrier"
          },
          "timeZoneOffset": {
            "type": "integer",
            "description": "User's UTC offset in hours for display purposes.",
            "format": "int32"
          },
          "networkId": {
            "type": "integer",
            "description": "Network numeric identifier this user account belongs to.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "Mailbox numeric identifier this user is scoped to; 0 means network-level scope.",
            "format": "int32"
          },
          "authLevel": {
            "$ref": "#/components/schemas/AuthLevel"
          },
          "created": {
            "type": "string",
            "description": "UTC timestamp when this user account was created.",
            "format": "date-time"
          },
          "modified": {
            "type": "string",
            "description": "UTC timestamp when this user account was last modified.",
            "format": "date-time"
          },
          "lastLogin": {
            "type": "string",
            "description": "UTC timestamp of the most recent successful login for this user.",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          },
          "lockedOut": {
            "type": "boolean",
            "description": "Indicates whether this user account is currently locked out due to failed login attempts."
          },
          "openSessions": {
            "type": "integer",
            "description": "Number of concurrently active sessions for this user account.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "User account record for an ECGrid network-level or mailbox-level user. Carries login credentials, contact details, authorization level, and session state."
      },
      "UserListRequest": {
        "type": "object",
        "properties": {
          "networkId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional filter by network.",
            "format": "int32"
          },
          "mailboxId": {
            "maximum": 2147483647,
            "minimum": -1,
            "type": [
              "null",
              "integer"
            ],
            "description": "Optional filter by mailbox.\r\n- null or -1 → treated as -1\r\n- 0 → root mailbox",
            "format": "int32"
          },
          "name": {
            "maxLength": 40,
            "type": [
              "null",
              "string"
            ],
            "description": "Optional name filter.\r\nMay be a full email address.",
            "example": "john.doe@example.com"
          },
          "lockedOut": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Only return locked-out users."
          }
        },
        "additionalProperties": false,
        "description": "Represents the parameters used to request a filtered list of users."
      },
      "UserPasswordRequest": {
        "required": [
          "password"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "The ID of the User.",
            "format": "int32"
          },
          "password": {
            "maxLength": 128,
            "minLength": 8,
            "pattern": "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[^a-zA-Z0-9]).+$",
            "type": "string",
            "description": "Passsword to Set: Must be between 8 and 128 characters, must contain at least one lower-case, one upper-case, one number, and one special character."
          }
        },
        "additionalProperties": false,
        "description": "Represents a request to set or update a user's password."
      },
      "UserRoleRequest": {
        "required": [
          "authLevel"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "The ID of the User.",
            "format": "int32"
          },
          "authLevel": {
            "$ref": "#/components/schemas/AuthLevel"
          }
        },
        "additionalProperties": false,
        "description": "Represents a request to assign or specify a user's authorization level within the system."
      },
      "UserSendSMSRequest": {
        "required": [
          "text",
          "userId"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "description": "The ID of the User.",
            "format": "int32"
          },
          "text": {
            "maxLength": 140,
            "minLength": 1,
            "type": "string",
            "description": "Message Text to send."
          }
        },
        "additionalProperties": false,
        "description": "Send an SMS to a User."
      },
      "UserSetNetworkMailboxRequest": {
        "required": [
          "mailboxId",
          "networkId",
          "userId"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "description": "The ID of the User.",
            "format": "int32"
          },
          "networkId": {
            "type": "integer",
            "description": "The id of the target network to assign this user to. Obtain from Networks_List or Networks_GetById.",
            "format": "int32"
          },
          "mailboxId": {
            "type": "integer",
            "description": "The id of the target mailbox within the network. Pass 0 to assign the user at root/network level.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Change a User's Network/Mailbox."
      },
      "UserUpdateConfigRequest": {
        "required": [
          "userId"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "description": "The ID of the User.",
            "format": "int32"
          },
          "maxSessions": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Max number of open sessions a user can have.",
            "format": "int32"
          },
          "activate": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Set to true to reactivate a suspended user via UserActivate. Mutually exclusive with suspend and maxSessions."
          },
          "suspend": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Set to true to suspend an active user via UserSuspend. Mutually exclusive with activate and maxSessions."
          }
        },
        "additionalProperties": false,
        "description": "Request payload for applying a targeted configuration change to an existing user account.\r\nUserId is required. Supply one of MaxSessions, Activate, or Suspend — providing more than\r\none is a validation error. Activate re-enables a suspended user; Suspend pauses an active user."
      },
      "UserUpdateRequest": {
        "required": [
          "authLevel",
          "cellCarrier",
          "company",
          "email",
          "firstName",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": [
              "null",
              "integer"
            ],
            "description": "The ID of the User.",
            "format": "int32"
          },
          "firstName": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "description": "First name, up to 50 characters. Must not contain '<', '>', or 'javascript:'."
          },
          "lastName": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "description": "Last name, up to 50 characters. Must not contain '<', '>', or 'javascript:'."
          },
          "company": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Company name, up to 50 characters. Must not contain '<', '>', or 'javascript:'."
          },
          "email": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "description": "User email address, up to 128 characters.",
            "format": "email"
          },
          "phone": {
            "maxLength": 20,
            "type": [
              "null",
              "string"
            ],
            "description": "Phone number, up to 20 characters."
          },
          "cellPhone": {
            "maxLength": 20,
            "type": [
              "null",
              "string"
            ],
            "description": "Cell phone number, up to 20 characters."
          },
          "cellCarrier": {
            "$ref": "#/components/schemas/CellCarrier"
          },
          "authLevel": {
            "$ref": "#/components/schemas/AuthLevel"
          }
        },
        "additionalProperties": false,
        "description": "Represents a request to update an existing user's profile information."
      },
      "UsersBoolResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "True when the operation completed successfully. Null if the call did not succeed."
          }
        },
        "additionalProperties": false,
        "description": "Response envelope for bool-returning user operations (delete, reset, set-password, set-role, send-sms, set-network-mailbox, update-config, update)."
      },
      "UsersCreateResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "integer"
            ],
            "description": "The ECGrid user id assigned to the newly created account. Null if the call did not succeed.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Response envelope for User_Create — data is the integer id assigned to the newly created user."
      },
      "UsersGenerateKeyResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "string"
            ],
            "description": "The newly generated ECGridOS API key. The previous key is immediately invalidated. Null if the call did not succeed."
          }
        },
        "additionalProperties": false,
        "description": "Response envelope for User_GenerateKey — data is the newly generated ECGridOS API key string."
      },
      "UsersGeneratePasswordResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "string"
            ],
            "description": "The randomly generated password string of the requested length. Null if the call did not succeed."
          }
        },
        "additionalProperties": false,
        "description": "Response envelope for User_GeneratePassword — data is the generated password string."
      },
      "UsersGetByIdResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/UserIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Response envelope for User_GetById — data is the ECGrid UserIDInfo record for the requested user."
      },
      "UsersGetByNameResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/UserIDInfo"
          }
        },
        "additionalProperties": false,
        "description": "Response envelope for User_GetByName — data is the ECGrid UserIDInfo record matching the supplied login name."
      },
      "UsersGetKeyResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "string"
            ],
            "description": "The ECGridOS API key string for the specified user. Null if the call did not succeed."
          }
        },
        "additionalProperties": false,
        "description": "Response envelope for User_GetKey — data is the ECGridOS API key string for the requested user."
      },
      "UsersGetMeResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "$ref": "#/components/schemas/SessionInfo"
          }
        },
        "additionalProperties": false,
        "description": "Response envelope for User_GetMe — data is the SessionInfo for the currently authenticated caller."
      },
      "UsersListResponse": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "format": "int32",
            "example": 200
          },
          "message": {
            "type": [
              "null",
              "string"
            ],
            "description": "Optional message describing the response. Empty string on a routine success.",
            "example": ""
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ],
            "description": "Trace identifier for debugging and log correlation. Matches the request's TraceIdentifier,\r\nso support can look the call up in the audit log.",
            "example": "0HN7K2A1B3C:00000001"
          },
          "success": {
            "type": "boolean",
            "description": "True if the operation completed successfully.",
            "example": true
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/UserIDInfo"
            },
            "description": "The list of ECGrid UserIDInfo records returned by the query. Null if the call did not succeed."
          }
        },
        "additionalProperties": false,
        "description": "Response envelope for User_List — data is the list of ECGrid UserIDInfo records matching the filter criteria."
      },
      "VersionResponse": {
        "type": "object",
        "properties": {
          "rest": {
            "type": [
              "null",
              "string"
            ],
            "description": "ECGrid REST API version and build identifier (e.g. `v2.6 (Build 1042)`)."
          },
          "ecgridOs": {
            "type": [
              "null",
              "string"
            ],
            "description": "ECGridOS SOAP backend version string. Returns `Unknown` if the SOAP call fails."
          }
        },
        "additionalProperties": false,
        "description": "Response payload returned by GET /auth/version containing API version strings.\r\nThis is a standalone response shape — it does not wrap the standard ApiResponse envelope."
      },
      "X1256": {
        "type": "object",
        "properties": {
          "passwordFrom": {
            "type": [
              "null",
              "string"
            ]
          },
          "passwordTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "qualifierFrom": {
            "type": [
              "null",
              "string"
            ]
          },
          "idFrom": {
            "type": [
              "null",
              "string"
            ]
          },
          "qualifierTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "idTo": {
            "type": [
              "null",
              "string"
            ]
          },
          "version": {
            "type": [
              "null",
              "string"
            ]
          },
          "production": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "X1256 Object"
      },
      "eMailTo": {
        "enum": [
          "NoEMail",
          "Requestor",
          "Network",
          "RequestorAndNetwork",
          "Other",
          "RequestorAndOther",
          "NetworkAndOther",
          "EMailAll"
        ],
        "type": "string",
        "description": "Recipient audience for an automated ECGrid email notification."
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Invalid request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Authentication required",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "NotFound": {
        "description": "Resource not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "ServerError": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "ECGrid API key. Passed as the X-API-Key request header. Obtain via the ECGrid User Account.",
        "name": "X-API-Key",
        "in": "header"
      },
      "Bearer": {
        "type": "http",
        "description": "JWT Bearer token. Obtain via the /auth/login endpoint. Pass as: Authorization: Bearer <token>",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "ApiKey": [ ],
      "Bearer": [ ]
    }
  ],
  "tags": [
    {
      "name": "Auth",
      "description": "Authentication and session issuance for API access — login, logout, session refresh, and JWT bearer token management."
    },
    {
      "name": "Callbacks",
      "description": "Webhooks that fire when a parcel reaches a specified status in an inbox or outbox. The standard alternative to polling; also used to trigger AS2 auto-send on outbound parcels."
    },
    {
      "name": "CarbonCopies",
      "description": "Routing rules that duplicate parcels or specific interchanges to an additional set of EDI IDs during delivery — e.g., copy every invoice to the accounting team's mailbox."
    },
    {
      "name": "Certificates",
      "description": "SSH keys, SSL/TLS certificates, and X.509 certificates used for AS2 signing and encryption, SFTP authentication, and other secure transport needs."
    },
    {
      "name": "Comms",
      "description": "Connection-type configuration for how bytes move between ECGrid and trading partners — primarily AS2, plus SFTP and other transport protocols."
    },
    {
      "name": "IDs",
      "description": "EDI IDs (trading partner addresses — ISA qualifier+id for X12, UNB for EDIFACT) configured on a mailbox. One mailbox can hold many EDI IDs; the platform routes inbound parcels to the right mailbox by matching the EDI ID."
    },
    {
      "name": "Interchanges",
      "description": "Individual EDI envelopes (X12 ISA-IEA, EDIFACT UNB-UNZ) or non-EDI payloads (text, JSON, XML, cXML, etc.) carried inside parcels. A single parcel may contain one or many interchanges."
    },
    {
      "name": "Keys",
      "description": "Key/value metadata attached to objects (mailbox, partner, EDI ID, etc.) used during routing or communication. Lets customers add custom headers, routing hints, and per-partner overrides without polluting the main object structure."
    },
    {
      "name": "Mailboxes",
      "description": "Communication endpoints within a network. Each mailbox has its own inbox, outbox, users, and EDI IDs. The network's root mailbox is mailboxId 0 and must be referenced together with the owning network id."
    },
    {
      "name": "Networks",
      "description": "Top-level customer container representing a retailer, manufacturer, or service provider. A network owns all mailboxes, network-level users, and cross-mailbox trading partner relationships under it."
    },
    {
      "name": "Parcels",
      "description": "The actual files that move through the system. Parcels land in a mailbox's inbox or outbox and can contain one or many interchanges. All send, receive, and confirm operations happen at the parcel level."
    },
    {
      "name": "Partners",
      "description": "Trading partner relationships — the sender/receiver pairing between two EDI IDs (keyed by ECGridID) that authorizes interchange exchange between them."
    },
    {
      "name": "Portals",
      "description": "Branded customer-facing UI provisioning for networks and mailboxes. Networks can have their own portal with custom CSS, logo, and theme; mailbox portals inherit branding from their parent network portal when one exists."
    },
    {
      "name": "Reports",
      "description": "Traffic, usage, and statistics reports — monthly summaries, instant-stats snapshots, traffic stats, mailbox/interchange counts, and ad-hoc reporting across networks and mailboxes."
    },
    {
      "name": "StatusLists",
      "description": "Lookup lists of status codes and enumerations used across parcels, interchanges, callbacks, and other EDI flows."
    },
    {
      "name": "Users",
      "description": "User accounts at network or mailbox scope. Each user holds their own API key and permission set; the auth level drives what they can read and modify."
    }
  ]
}