{
  "openapi": "3.1.1",
  "info": {
    "title": "VibriaVending | v1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "http://airtime-data.vibrianet.com/"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "VibriaVending"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/airtime-reconciliation": {
      "get": {
        "tags": [
          "AdminAirtimeReconciliation"
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminAirtimeReconciliationItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminAirtimeReconciliationItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminAirtimeReconciliationItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/airtime-reconciliation/{transactionId}/retry": {
      "post": {
        "tags": [
          "AdminAirtimeReconciliation"
        ],
        "parameters": [
          {
            "name": "transactionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAirtimeRetryQueued"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAirtimeRetryQueued"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAirtimeRetryQueued"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/audit-logs/options": {
      "get": {
        "tags": [
          "AdminAuditLogs"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAuditLogFilterOptions"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAuditLogFilterOptions"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAuditLogFilterOptions"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/audit-logs": {
      "get": {
        "tags": [
          "AdminAuditLogs"
        ],
        "parameters": [
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "maxLength": 160,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "Action",
            "in": "query",
            "schema": {
              "maxLength": 80,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "EntityType",
            "in": "query",
            "schema": {
              "maxLength": 80,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "ActorUserId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "FromUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "ToUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAuditLogPage"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAuditLogPage"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAuditLogPage"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/data-reconciliation": {
      "get": {
        "tags": [
          "AdminDataReconciliation"
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminDataReconciliationItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminDataReconciliationItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminDataReconciliationItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/data-reconciliation/{transactionId}/retry": {
      "post": {
        "tags": [
          "AdminDataReconciliation"
        ],
        "parameters": [
          {
            "name": "transactionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminDataRetryQueued"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminDataRetryQueued"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminDataRetryQueued"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/merchant-route-tests/merchants": {
      "get": {
        "tags": [
          "AdminMerchantRouteTest"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantListItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantListItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantListItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/merchant-route-tests/options": {
      "get": {
        "tags": [
          "AdminMerchantRouteTest"
        ],
        "parameters": [
          {
            "name": "merchantId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminMerchantRouteTestOptions"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminMerchantRouteTestOptions"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminMerchantRouteTestOptions"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/merchant-route-tests": {
      "post": {
        "tags": [
          "AdminMerchantRouteTest"
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminMerchantRouteTestRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminMerchantRouteTestRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminMerchantRouteTestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminMerchantRouteTestResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminMerchantRouteTestResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminMerchantRouteTestResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/provider-tests/options": {
      "get": {
        "tags": [
          "AdminProviderTest"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminProviderTestOption"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminProviderTestOption"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminProviderTestOption"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/provider-tests": {
      "get": {
        "tags": [
          "AdminProviderTest"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminProviderTestHistoryItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminProviderTestHistoryItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminProviderTestHistoryItem"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "AdminProviderTest"
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminProviderTestRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminProviderTestRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminProviderTestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminProviderTestResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminProviderTestResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminProviderTestResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/reports": {
      "get": {
        "tags": [
          "AdminReports"
        ],
        "parameters": [
          {
            "name": "GroupBy",
            "in": "query",
            "schema": {
              "maxLength": 16,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "MerchantId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ProviderId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Network",
            "in": "query",
            "schema": {
              "maxLength": 32,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "ServiceType",
            "in": "query",
            "schema": {
              "maxLength": 16,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "maxLength": 24,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "FromUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "ToUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminReportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminReportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminReportResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/transactions/{transactionId}": {
      "get": {
        "tags": [
          "AdminTransactions"
        ],
        "parameters": [
          {
            "name": "transactionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTransactionItem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTransactionItem"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTransactionItem"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/transactions": {
      "get": {
        "tags": [
          "AdminTransactions"
        ],
        "parameters": [
          {
            "name": "MerchantId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ProviderId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Network",
            "in": "query",
            "schema": {
              "maxLength": 32,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "ServiceType",
            "in": "query",
            "schema": {
              "maxLength": 16,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "ServiceCode",
            "in": "query",
            "schema": {
              "maxLength": 64,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "maxLength": 24,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "maxLength": 160,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "FromUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "ToUtc",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTransactionPage"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTransactionPage"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTransactionPage"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/transactions/dashboard": {
      "get": {
        "tags": [
          "AdminTransactions"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTransactionDashboard"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTransactionDashboard"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTransactionDashboard"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/airtime-services": {
      "get": {
        "tags": [
          "Airtime"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AirtimeServiceDefinition"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AirtimeServiceDefinition"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AirtimeServiceDefinition"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/airtime": {
      "post": {
        "tags": [
          "Airtime"
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AirtimePurchaseRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AirtimePurchaseRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AirtimePurchaseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/airtime-routes": {
      "get": {
        "tags": [
          "AirtimeRouteAdministration"
        ],
        "parameters": [
          {
            "name": "merchantId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantServiceRouteDirectoryItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantServiceRouteDirectoryItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantServiceRouteDirectoryItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/airtime-routes/provider-services": {
      "post": {
        "tags": [
          "AirtimeRouteAdministration"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAirtimeProviderServiceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAirtimeProviderServiceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAirtimeProviderServiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AirtimeProviderServiceCreated"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AirtimeProviderServiceCreated"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AirtimeProviderServiceCreated"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/airtime-routes/{serviceCode}/active": {
      "put": {
        "tags": [
          "AirtimeRouteAdministration"
        ],
        "parameters": [
          {
            "name": "serviceCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureMerchantServiceRouteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureMerchantServiceRouteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureMerchantServiceRouteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantServiceRouteSaved"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantServiceRouteSaved"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantServiceRouteSaved"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/airtime-services": {
      "get": {
        "tags": [
          "AirtimeServiceAdministration"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AirtimeServiceAdminItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AirtimeServiceAdminItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AirtimeServiceAdminItem"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "AirtimeServiceAdministration"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAirtimeServiceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAirtimeServiceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAirtimeServiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AirtimeServiceAdminItem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AirtimeServiceAdminItem"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AirtimeServiceAdminItem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/data-plans": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "parameters": [
          {
            "name": "serviceCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantDataPlanItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantDataPlanItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantDataPlanItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/data": {
      "post": {
        "tags": [
          "Data"
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataPurchaseRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataPurchaseRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataPurchaseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/data-plans": {
      "get": {
        "tags": [
          "DataPlanAdministration"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DataPlanAdminItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DataPlanAdminItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DataPlanAdminItem"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "DataPlanAdministration"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataPlanRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataPlanRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataPlanRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DataPlanAdminItem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataPlanAdminItem"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataPlanAdminItem"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/data-services": {
      "get": {
        "tags": [
          "DataServiceAdministration"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DataServiceAdminItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DataServiceAdminItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DataServiceAdminItem"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "DataServiceAdministration"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataServiceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataServiceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataServiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DataServiceAdminItem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataServiceAdminItem"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataServiceAdminItem"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/merchants": {
      "get": {
        "tags": [
          "MerchantAdministration"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantListItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantListItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantListItem"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "MerchantAdministration"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMerchantRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMerchantRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMerchantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantCreatedResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantCreatedResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantCreatedResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/merchants/{merchantId}": {
      "get": {
        "tags": [
          "MerchantAdministration"
        ],
        "parameters": [
          {
            "name": "merchantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantListItem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantListItem"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantListItem"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/merchant-routes/overview": {
      "get": {
        "tags": [
          "MerchantRouteOverview"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantRouteOverviewItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantRouteOverviewItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantRouteOverviewItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/token": {
      "post": {
        "tags": [
          "MerchantToken"
        ],
        "parameters": [
          {
            "name": "X-API-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantAccessTokenResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantAccessTokenResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantAccessTokenResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/me": {
      "get": {
        "tags": [
          "MerchantToken"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantTokenIdentityResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantTokenIdentityResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantTokenIdentityResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/merchant/wallet": {
      "get": {
        "tags": [
          "MerchantWallet"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantWalletResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantWalletResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantWalletResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/csrf": {
      "get": {
        "tags": [
          "PortalAuth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/auth/login": {
      "post": {
        "tags": [
          "PortalAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/auth/me": {
      "get": {
        "tags": [
          "PortalAuth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/auth/logout": {
      "post": {
        "tags": [
          "PortalAuth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/services": {
      "get": {
        "tags": [
          "ProductServiceAdministration"
        ],
        "parameters": [
          {
            "name": "serviceType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProductServiceAdminItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProductServiceAdminItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProductServiceAdminItem"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ProductServiceAdministration"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProductServiceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProductServiceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProductServiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProductServiceAdminItem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductServiceAdminItem"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductServiceAdminItem"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/providers": {
      "get": {
        "tags": [
          "ProviderAdministration"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderListItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderListItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderListItem"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ProviderAdministration"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProviderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProviderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProviderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderListItem"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderListItem"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderListItem"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/providers/adapters": {
      "get": {
        "tags": [
          "ProviderAdministration"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderAdapterOption"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderAdapterOption"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderAdapterOption"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/providers/services": {
      "get": {
        "tags": [
          "ProviderAdministration"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderServiceOption"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderServiceOption"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderServiceOption"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ProviderAdministration"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataProviderServiceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataProviderServiceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDataProviderServiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderServiceOption"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderServiceOption"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderServiceOption"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/providers/{providerId}/credentials": {
      "put": {
        "tags": [
          "ProviderAdministration"
        ],
        "parameters": [
          {
            "name": "providerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProviderCredentialsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProviderCredentialsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProviderCredentialsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/providers/services/{providerServiceId}/data-catalog": {
      "get": {
        "tags": [
          "ProviderDataCatalog"
        ],
        "parameters": [
          {
            "name": "providerServiceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderDataPlanCatalogItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderDataPlanCatalogItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProviderDataPlanCatalogItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/data-routes": {
      "get": {
        "tags": [
          "RouteAdministration"
        ],
        "parameters": [
          {
            "name": "merchantId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantServiceRouteDirectoryItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantServiceRouteDirectoryItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantServiceRouteDirectoryItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/data-routes/{serviceCode}/active": {
      "put": {
        "tags": [
          "RouteAdministration"
        ],
        "parameters": [
          {
            "name": "serviceCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureMerchantServiceRouteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureMerchantServiceRouteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureMerchantServiceRouteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantServiceRouteSaved"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantServiceRouteSaved"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MerchantServiceRouteSaved"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/services": {
      "get": {
        "tags": [
          "ServiceDirectory"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantServiceDirectoryItem"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantServiceDirectoryItem"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MerchantServiceDirectoryItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transactions/{transactionId}": {
      "get": {
        "tags": [
          "Transactions"
        ],
        "parameters": [
          {
            "name": "transactionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/merchants/{merchantId}/wallet/credits": {
      "post": {
        "tags": [
          "WalletAdministration"
        ],
        "parameters": [
          {
            "name": "merchantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManualWalletCreditRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ManualWalletCreditRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ManualWalletCreditRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ManualWalletCreditResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManualWalletCreditResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManualWalletCreditResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AdminAirtimeAttemptItem": {
        "required": [
          "attemptNumber",
          "attemptType",
          "providerCode",
          "providerName",
          "providerWeightPercent",
          "providerServiceCode",
          "status",
          "providerReference",
          "message",
          "createdAtUtc",
          "dispatchStartedAtUtc",
          "completedAtUtc",
          "configuredFallbackProviderCode",
          "configuredFallbackProviderName"
        ],
        "type": "object",
        "properties": {
          "attemptNumber": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "attemptType": {
            "type": "string"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "providerWeightPercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "providerServiceCode": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "providerReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": "string"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "dispatchStartedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "completedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "configuredFallbackProviderCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "configuredFallbackProviderName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AdminAirtimeReconciliationItem": {
        "required": [
          "transactionId",
          "merchantCode",
          "merchantName",
          "network",
          "serviceCode",
          "recipient",
          "amountKobo",
          "status",
          "providerCode",
          "providerName",
          "providerWeightPercent",
          "providerServiceCode",
          "message",
          "sendCount",
          "maximumSends",
          "fundsReserved",
          "canRetry",
          "createdAtUtc",
          "updatedAtUtc",
          "attempts"
        ],
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "format": "uuid"
          },
          "merchantCode": {
            "type": "string"
          },
          "merchantName": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "serviceCode": {
            "type": "string"
          },
          "recipient": {
            "type": "string"
          },
          "amountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "status": {
            "type": "string"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "providerWeightPercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "providerServiceCode": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "sendCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maximumSends": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fundsReserved": {
            "type": "boolean"
          },
          "canRetry": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "attempts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAirtimeAttemptItem"
            }
          }
        }
      },
      "AdminAirtimeRetryQueued": {
        "required": [
          "transactionId",
          "attemptNumber",
          "maximumSends",
          "providerCode",
          "providerName",
          "status",
          "fundsReserved"
        ],
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "format": "uuid"
          },
          "attemptNumber": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maximumSends": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "fundsReserved": {
            "type": "boolean"
          }
        }
      },
      "AdminAuditLogActorOption": {
        "required": [
          "id",
          "email"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string"
          }
        }
      },
      "AdminAuditLogFilterOptions": {
        "required": [
          "actions",
          "entityTypes",
          "actors"
        ],
        "type": "object",
        "properties": {
          "actions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "entityTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "actors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAuditLogActorOption"
            }
          }
        }
      },
      "AdminAuditLogItem": {
        "required": [
          "id",
          "createdAtUtc",
          "actorUserId",
          "actorEmail",
          "action",
          "entityType",
          "entityId",
          "reason",
          "correlationId",
          "beforeJson",
          "afterJson"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "actorUserId": {
            "type": "string",
            "format": "uuid"
          },
          "actorEmail": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "entityType": {
            "type": "string"
          },
          "entityId": {
            "type": "string"
          },
          "reason": {
            "type": [
              "null",
              "string"
            ]
          },
          "correlationId": {
            "type": "string"
          },
          "beforeJson": {
            "type": [
              "null",
              "string"
            ]
          },
          "afterJson": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AdminAuditLogPage": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "totalPages",
          "items"
        ],
        "type": "object",
        "properties": {
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalPages": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAuditLogItem"
            }
          }
        }
      },
      "AdminDataAttemptItem": {
        "required": [
          "attemptNumber",
          "attemptType",
          "providerCode",
          "providerName",
          "providerServiceCode",
          "providerBundleCode",
          "status",
          "providerReference",
          "message",
          "createdAtUtc",
          "dispatchStartedAtUtc",
          "completedAtUtc"
        ],
        "type": "object",
        "properties": {
          "attemptNumber": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "attemptType": {
            "type": "string"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "providerServiceCode": {
            "type": "string"
          },
          "providerBundleCode": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "providerReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": "string"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "dispatchStartedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "completedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "AdminDataReconciliationItem": {
        "required": [
          "transactionId",
          "merchantCode",
          "merchantName",
          "network",
          "serviceCode",
          "recipient",
          "merchantBundleCode",
          "providerBundleCode",
          "amountKobo",
          "status",
          "providerCode",
          "providerName",
          "providerServiceCode",
          "message",
          "sendCount",
          "maximumSends",
          "fundsReserved",
          "canRetry",
          "createdAtUtc",
          "updatedAtUtc",
          "attempts"
        ],
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "format": "uuid"
          },
          "merchantCode": {
            "type": "string"
          },
          "merchantName": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "serviceCode": {
            "type": "string"
          },
          "recipient": {
            "type": "string"
          },
          "merchantBundleCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "providerBundleCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "amountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "status": {
            "type": "string"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "providerServiceCode": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "sendCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maximumSends": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fundsReserved": {
            "type": "boolean"
          },
          "canRetry": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "attempts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminDataAttemptItem"
            }
          }
        }
      },
      "AdminDataRetryQueued": {
        "required": [
          "transactionId",
          "attemptNumber",
          "maximumSends",
          "providerCode",
          "providerName",
          "providerBundleCode",
          "status",
          "fundsReserved"
        ],
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "format": "uuid"
          },
          "attemptNumber": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maximumSends": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "providerBundleCode": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "fundsReserved": {
            "type": "boolean"
          }
        }
      },
      "AdminMerchantRouteTestOptions": {
        "required": [
          "merchantId",
          "merchantCode",
          "merchantName",
          "services"
        ],
        "type": "object",
        "properties": {
          "merchantId": {
            "type": "string",
            "format": "uuid"
          },
          "merchantCode": {
            "type": "string"
          },
          "merchantName": {
            "type": "string"
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminMerchantRouteTestServiceOption"
            }
          }
        }
      },
      "AdminMerchantRouteTestRequest": {
        "required": [
          "merchantId",
          "serviceType",
          "serviceCode",
          "phoneNumber"
        ],
        "type": "object",
        "properties": {
          "merchantId": {
            "type": "string",
            "format": "uuid"
          },
          "serviceType": {
            "pattern": "^(AIRTIME|DATA)$",
            "type": "string"
          },
          "serviceCode": {
            "maxLength": 32,
            "minLength": 0,
            "type": "string"
          },
          "phoneNumber": {
            "maxLength": 24,
            "minLength": 0,
            "type": "string"
          },
          "amountKobo": {
            "maximum": 9223372036854776000,
            "minimum": 0,
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "bundleCode": {
            "maxLength": 64,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AdminMerchantRouteTestResult": {
        "required": [
          "transaction",
          "replayed"
        ],
        "type": "object",
        "properties": {
          "transaction": {
            "$ref": "#/components/schemas/AdminTransactionItem"
          },
          "replayed": {
            "type": "boolean"
          }
        }
      },
      "AdminMerchantRouteTestServiceOption": {
        "required": [
          "serviceCode",
          "serviceType",
          "network",
          "displayName",
          "dataPlans"
        ],
        "type": "object",
        "properties": {
          "serviceCode": {
            "type": "string"
          },
          "serviceType": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "dataPlans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchantDataPlanItem"
            }
          }
        }
      },
      "AdminProviderTestApplicationRequest": {
        "required": [
          "providerServiceId",
          "serviceType",
          "phoneNumber",
          "amountKobo",
          "dataPlanId"
        ],
        "type": "object",
        "properties": {
          "providerServiceId": {
            "type": "string",
            "format": "uuid"
          },
          "serviceType": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          },
          "amountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "dataPlanId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "AdminProviderTestHistoryItem": {
        "required": [
          "testId",
          "createdAtUtc",
          "result"
        ],
        "type": "object",
        "properties": {
          "testId": {
            "type": "string",
            "format": "uuid"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "result": {
            "$ref": "#/components/schemas/AdminProviderTestResult"
          }
        }
      },
      "AdminProviderTestOption": {
        "required": [
          "providerServiceId",
          "providerId",
          "providerCode",
          "providerName",
          "adapterKey",
          "serviceType",
          "serviceCode",
          "network",
          "displayName",
          "providerServiceCode",
          "hasCredentials",
          "dataPlans"
        ],
        "type": "object",
        "properties": {
          "providerServiceId": {
            "type": "string",
            "format": "uuid"
          },
          "providerId": {
            "type": "string",
            "format": "uuid"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "adapterKey": {
            "type": "string"
          },
          "serviceType": {
            "type": "string"
          },
          "serviceCode": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "providerServiceCode": {
            "type": "string"
          },
          "hasCredentials": {
            "type": "boolean"
          },
          "dataPlans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminProviderTestPlanOption"
            }
          }
        }
      },
      "AdminProviderTestPlanOption": {
        "required": [
          "id",
          "providerBundleCode",
          "displayName",
          "providerCostKobo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "providerBundleCode": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "providerCostKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "AdminProviderTestRequest": {
        "required": [
          "providerServiceId",
          "serviceType",
          "phoneNumber"
        ],
        "type": "object",
        "properties": {
          "providerServiceId": {
            "type": "string",
            "format": "uuid"
          },
          "serviceType": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string"
          },
          "phoneNumber": {
            "maxLength": 24,
            "minLength": 0,
            "type": "string"
          },
          "amountKobo": {
            "maximum": 9223372036854776000,
            "minimum": 0,
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "dataPlanId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "AdminProviderTestResult": {
        "required": [
          "testId",
          "applicationRequest",
          "serviceType",
          "serviceCode",
          "network",
          "providerCode",
          "providerName",
          "recipient",
          "amountKobo",
          "providerBundleCode",
          "status",
          "message",
          "providerReference",
          "applicationHttpStatus",
          "providerCalls",
          "createdAtUtc",
          "requestHash"
        ],
        "type": "object",
        "properties": {
          "testId": {
            "type": "string",
            "format": "uuid"
          },
          "applicationRequest": {
            "$ref": "#/components/schemas/AdminProviderTestApplicationRequest"
          },
          "serviceType": {
            "type": "string"
          },
          "serviceCode": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "recipient": {
            "type": "string"
          },
          "amountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "providerBundleCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "providerReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "applicationHttpStatus": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "providerCalls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderHttpExchange"
            }
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "requestHash": {
            "type": "string"
          },
          "replayed": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "AdminReportResult": {
        "required": [
          "groupBy",
          "transactionCount",
          "succeededCount",
          "failedCount",
          "unresolvedCount",
          "totalAmountKobo",
          "successfulAmountKobo",
          "rows"
        ],
        "type": "object",
        "properties": {
          "groupBy": {
            "type": "string"
          },
          "transactionCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "succeededCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "failedCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unresolvedCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalAmountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "successfulAmountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminReportRow"
            }
          }
        }
      },
      "AdminReportRow": {
        "required": [
          "key",
          "label",
          "transactionCount",
          "succeededCount",
          "failedCount",
          "unresolvedCount",
          "totalAmountKobo",
          "successfulAmountKobo"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "transactionCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "succeededCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "failedCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unresolvedCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalAmountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "successfulAmountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "AdminTransactionDashboard": {
        "required": [
          "activeMerchantCount",
          "activeProviderCount",
          "activeRouteCount",
          "transactionCount",
          "needsAttentionCount",
          "succeededCount",
          "failedCount",
          "reservedFundsKobo",
          "successfulSalesKobo",
          "recentTransactions"
        ],
        "type": "object",
        "properties": {
          "activeMerchantCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "activeProviderCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "activeRouteCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "transactionCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "needsAttentionCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "succeededCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "failedCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "reservedFundsKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "successfulSalesKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "recentTransactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminTransactionItem"
            }
          }
        }
      },
      "AdminTransactionItem": {
        "required": [
          "id",
          "idempotencyKey",
          "merchantId",
          "merchantCode",
          "merchantName",
          "serviceType",
          "network",
          "serviceCode",
          "recipient",
          "merchantBundleCode",
          "providerBundleCode",
          "amountKobo",
          "currency",
          "providerCostKobo",
          "providerCode",
          "providerName",
          "providerWeightPercent",
          "providerServiceCode",
          "adapterKey",
          "status",
          "message",
          "providerReference",
          "correlationId",
          "createdAtUtc",
          "updatedAtUtc",
          "completedAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "idempotencyKey": {
            "type": "string",
            "format": "uuid"
          },
          "merchantId": {
            "type": "string",
            "format": "uuid"
          },
          "merchantCode": {
            "type": "string"
          },
          "merchantName": {
            "type": "string"
          },
          "serviceType": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "serviceCode": {
            "type": "string"
          },
          "recipient": {
            "type": "string"
          },
          "merchantBundleCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "providerBundleCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "amountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "currency": {
            "type": "string"
          },
          "providerCostKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "providerWeightPercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "providerServiceCode": {
            "type": "string"
          },
          "adapterKey": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "providerReference": {
            "type": [
              "null",
              "string"
            ]
          },
          "correlationId": {
            "type": "string"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "completedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "AdminTransactionPage": {
        "required": [
          "page",
          "pageSize",
          "totalCount",
          "totalPages",
          "items"
        ],
        "type": "object",
        "properties": {
          "page": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pageSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalPages": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminTransactionItem"
            }
          }
        }
      },
      "AirtimeProviderServiceCreated": {
        "required": [
          "providerServiceId",
          "serviceCode",
          "providerCode",
          "providerName",
          "providerServiceCode"
        ],
        "type": "object",
        "properties": {
          "providerServiceId": {
            "type": "string",
            "format": "uuid"
          },
          "serviceCode": {
            "type": "string"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "providerServiceCode": {
            "type": "string"
          }
        }
      },
      "AirtimePurchaseRequest": {
        "required": [
          "network",
          "serviceCode",
          "phoneNumber"
        ],
        "type": "object",
        "properties": {
          "network": {
            "maxLength": 24,
            "minLength": 0,
            "type": "string"
          },
          "serviceCode": {
            "maxLength": 32,
            "minLength": 0,
            "type": "string"
          },
          "phoneNumber": {
            "maxLength": 24,
            "minLength": 0,
            "type": "string"
          },
          "amountKobo": {
            "maximum": 9223372036854776000,
            "minimum": 1,
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "AirtimeServiceAdminItem": {
        "required": [
          "serviceCode",
          "network",
          "displayName",
          "isActive",
          "createdAtUtc"
        ],
        "type": "object",
        "properties": {
          "serviceCode": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AirtimeServiceDefinition": {
        "required": [
          "serviceCode",
          "network",
          "displayName"
        ],
        "type": "object",
        "properties": {
          "serviceCode": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          }
        }
      },
      "ConfigureMerchantServiceRouteRequest": {
        "required": [
          "merchantId"
        ],
        "type": "object",
        "properties": {
          "merchantId": {
            "type": "string",
            "format": "uuid"
          },
          "defaultProviderServiceId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "isActive": {
            "type": "boolean"
          },
          "weightedProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WeightedProviderServiceInput"
            }
          },
          "reason": {
            "maxLength": 500,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateAirtimeProviderServiceRequest": {
        "required": [
          "providerId",
          "serviceCode"
        ],
        "type": "object",
        "properties": {
          "providerId": {
            "type": "string",
            "format": "uuid"
          },
          "serviceCode": {
            "maxLength": 32,
            "minLength": 0,
            "type": "string"
          },
          "reason": {
            "maxLength": 500,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateAirtimeServiceRequest": {
        "required": [
          "networkCode",
          "displayName"
        ],
        "type": "object",
        "properties": {
          "networkCode": {
            "maxLength": 24,
            "minLength": 0,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "displayName": {
            "maxLength": 80,
            "minLength": 0,
            "type": "string"
          },
          "reason": {
            "maxLength": 500,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateDataPlanRequest": {
        "required": [
          "providerServiceId",
          "providerBundleCode",
          "merchantBundleCode",
          "displayName"
        ],
        "type": "object",
        "properties": {
          "providerServiceId": {
            "type": "string",
            "format": "uuid"
          },
          "providerBundleCode": {
            "maxLength": 120,
            "minLength": 0,
            "type": "string"
          },
          "merchantBundleCode": {
            "maxLength": 64,
            "minLength": 0,
            "pattern": "^[A-Za-z0-9_-]{3,64}$",
            "type": "string"
          },
          "displayName": {
            "maxLength": 120,
            "minLength": 0,
            "type": "string"
          },
          "sellingPriceKobo": {
            "maximum": 9223372036854776000,
            "minimum": 1,
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "providerCostKobo": {
            "maximum": 9223372036854776000,
            "minimum": 1,
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "reason": {
            "maxLength": 500,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateDataProviderServiceRequest": {
        "required": [
          "providerId",
          "serviceCode"
        ],
        "type": "object",
        "properties": {
          "providerId": {
            "type": "string",
            "format": "uuid"
          },
          "serviceCode": {
            "maxLength": 32,
            "minLength": 0,
            "type": "string"
          },
          "reason": {
            "maxLength": 500,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateDataServiceRequest": {
        "required": [
          "networkCode",
          "displayName"
        ],
        "type": "object",
        "properties": {
          "networkCode": {
            "maxLength": 24,
            "minLength": 0,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "displayName": {
            "maxLength": 80,
            "minLength": 0,
            "type": "string"
          },
          "reason": {
            "maxLength": 500,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateMerchantRequest": {
        "required": [
          "code",
          "name",
          "operationsEmail"
        ],
        "type": "object",
        "properties": {
          "code": {
            "maxLength": 64,
            "minLength": 3,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "name": {
            "maxLength": 200,
            "minLength": 2,
            "type": "string"
          },
          "operationsEmail": {
            "maxLength": 256,
            "minLength": 0,
            "type": "string"
          }
        }
      },
      "CreateProductServiceRequest": {
        "required": [
          "serviceType",
          "networkCode",
          "displayName"
        ],
        "type": "object",
        "properties": {
          "serviceType": {
            "maxLength": 12,
            "minLength": 0,
            "type": "string"
          },
          "networkCode": {
            "maxLength": 24,
            "minLength": 0,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "displayName": {
            "maxLength": 80,
            "minLength": 0,
            "type": "string"
          },
          "reason": {
            "maxLength": 500,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateProviderRequest": {
        "required": [
          "code",
          "name",
          "adapterKey"
        ],
        "type": "object",
        "properties": {
          "code": {
            "maxLength": 32,
            "minLength": 0,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          "name": {
            "maxLength": 120,
            "minLength": 0,
            "type": "string"
          },
          "adapterKey": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string"
          },
          "credentialsJson": {
            "maxLength": 8192,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          },
          "credentialScope": {
            "type": "string"
          }
        }
      },
      "DataPlanAdminItem": {
        "required": [
          "id",
          "adminReference",
          "providerServiceId",
          "providerCode",
          "providerName",
          "serviceCode",
          "providerServiceCode",
          "providerBundleCode",
          "merchantBundleCode",
          "displayName",
          "sellingPriceKobo",
          "providerCostKobo",
          "isActive",
          "createdAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "adminReference": {
            "type": "string"
          },
          "providerServiceId": {
            "type": "string",
            "format": "uuid"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "serviceCode": {
            "type": "string"
          },
          "providerServiceCode": {
            "type": "string"
          },
          "providerBundleCode": {
            "type": "string"
          },
          "merchantBundleCode": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "sellingPriceKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "providerCostKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "DataPurchaseRequest": {
        "required": [
          "serviceCode",
          "bundleCode",
          "phoneNumber"
        ],
        "type": "object",
        "properties": {
          "serviceCode": {
            "maxLength": 32,
            "minLength": 0,
            "type": "string"
          },
          "bundleCode": {
            "maxLength": 64,
            "minLength": 0,
            "type": "string"
          },
          "phoneNumber": {
            "maxLength": 24,
            "minLength": 0,
            "type": "string"
          }
        }
      },
      "DataServiceAdminItem": {
        "required": [
          "serviceCode",
          "network",
          "displayName",
          "isActive",
          "createdAtUtc"
        ],
        "type": "object",
        "properties": {
          "serviceCode": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "LoginRequest": {
        "required": [
          "email",
          "password"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "password": {
            "type": "string"
          }
        }
      },
      "ManualWalletCreditRequest": {
        "required": [
          "reference",
          "reason"
        ],
        "type": "object",
        "properties": {
          "amountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "reference": {
            "maxLength": 120,
            "minLength": 1,
            "type": "string"
          },
          "reason": {
            "maxLength": 500,
            "minLength": 3,
            "type": "string"
          }
        }
      },
      "ManualWalletCreditResponse": {
        "required": [
          "journalEntryId",
          "merchantId",
          "currency",
          "amountKobo",
          "availableBalanceKobo",
          "reference",
          "reason",
          "createdAtUtc",
          "replayed"
        ],
        "type": "object",
        "properties": {
          "journalEntryId": {
            "type": "string",
            "format": "uuid"
          },
          "merchantId": {
            "type": "string",
            "format": "uuid"
          },
          "currency": {
            "type": "string"
          },
          "amountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "availableBalanceKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "reference": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "replayed": {
            "type": "boolean"
          }
        }
      },
      "MerchantAccessTokenResponse": {
        "required": [
          "tokenType",
          "accessToken",
          "expiresIn",
          "expiresAtUtc"
        ],
        "type": "object",
        "properties": {
          "tokenType": {
            "type": "string"
          },
          "accessToken": {
            "type": "string"
          },
          "expiresIn": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "MerchantCreatedResponse": {
        "required": [
          "merchant",
          "credentials"
        ],
        "type": "object",
        "properties": {
          "merchant": {
            "$ref": "#/components/schemas/MerchantListItem"
          },
          "credentials": {
            "$ref": "#/components/schemas/OneTimeMerchantCredentials"
          }
        }
      },
      "MerchantDataPlanItem": {
        "required": [
          "serviceCode",
          "network",
          "bundleCode",
          "displayName",
          "sellingPriceKobo",
          "currency"
        ],
        "type": "object",
        "properties": {
          "serviceCode": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "bundleCode": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "sellingPriceKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "currency": {
            "type": "string"
          }
        }
      },
      "MerchantListItem": {
        "required": [
          "id",
          "code",
          "name",
          "operationsEmail",
          "isActive",
          "availableKobo",
          "apiKeyPrefix",
          "createdAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "operationsEmail": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "availableKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "apiKeyPrefix": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "MerchantRouteOverviewItem": {
        "required": [
          "merchantId",
          "merchantCode",
          "merchantName",
          "merchantIsActive",
          "serviceCode",
          "serviceType",
          "network",
          "serviceName",
          "serviceIsActive",
          "isConfigured",
          "isActive",
          "updatedAtUtc",
          "defaultProvider",
          "primaryProviders"
        ],
        "type": "object",
        "properties": {
          "merchantId": {
            "type": "string",
            "format": "uuid"
          },
          "merchantCode": {
            "type": "string"
          },
          "merchantName": {
            "type": "string"
          },
          "merchantIsActive": {
            "type": "boolean"
          },
          "serviceCode": {
            "type": "string"
          },
          "serviceType": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "serviceName": {
            "type": "string"
          },
          "serviceIsActive": {
            "type": "boolean"
          },
          "isConfigured": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "updatedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "defaultProvider": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MerchantRouteOverviewProvider"
              }
            ]
          },
          "primaryProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchantRouteOverviewProvider"
            }
          }
        }
      },
      "MerchantRouteOverviewProvider": {
        "required": [
          "providerServiceId",
          "providerCode",
          "providerName",
          "providerServiceCode",
          "providerIsActive",
          "providerServiceIsActive",
          "weightPercent"
        ],
        "type": "object",
        "properties": {
          "providerServiceId": {
            "type": "string",
            "format": "uuid"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "providerServiceCode": {
            "type": "string"
          },
          "providerIsActive": {
            "type": "boolean"
          },
          "providerServiceIsActive": {
            "type": "boolean"
          },
          "weightPercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MerchantRouteProviderOption": {
        "required": [
          "providerServiceId",
          "providerCode",
          "providerName",
          "adapterKey",
          "providerServiceCode",
          "isDefault",
          "weightPercent",
          "activePlanCount",
          "consecutiveAvailabilityFailures",
          "circuitOpenUntilUtc"
        ],
        "type": "object",
        "properties": {
          "providerServiceId": {
            "type": "string",
            "format": "uuid"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "adapterKey": {
            "type": "string"
          },
          "providerServiceCode": {
            "type": "string"
          },
          "isDefault": {
            "type": "boolean"
          },
          "weightPercent": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "activePlanCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "consecutiveAvailabilityFailures": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "circuitOpenUntilUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "MerchantServiceDirectoryItem": {
        "required": [
          "serviceCode",
          "serviceType",
          "network",
          "displayName",
          "isVendingEnabled"
        ],
        "type": "object",
        "properties": {
          "serviceCode": {
            "type": "string"
          },
          "serviceType": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "isVendingEnabled": {
            "type": "boolean"
          }
        }
      },
      "MerchantServiceRouteDirectoryItem": {
        "required": [
          "merchantId",
          "merchantCode",
          "serviceCode",
          "serviceType",
          "network",
          "displayName",
          "isConfigured",
          "isActive",
          "defaultProviderServiceId",
          "defaultProviderCode",
          "defaultProviderName",
          "availableProviders"
        ],
        "type": "object",
        "properties": {
          "merchantId": {
            "type": "string",
            "format": "uuid"
          },
          "merchantCode": {
            "type": "string"
          },
          "serviceCode": {
            "type": "string"
          },
          "serviceType": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "isConfigured": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "defaultProviderServiceId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "defaultProviderCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "defaultProviderName": {
            "type": [
              "null",
              "string"
            ]
          },
          "availableProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchantRouteProviderOption"
            }
          }
        }
      },
      "MerchantServiceRouteSaved": {
        "required": [
          "merchantId",
          "merchantCode",
          "serviceCode",
          "isActive",
          "defaultProviderServiceId",
          "defaultProviderCode",
          "defaultProviderName",
          "updatedAtUtc",
          "weightedProviders"
        ],
        "type": "object",
        "properties": {
          "merchantId": {
            "type": "string",
            "format": "uuid"
          },
          "merchantCode": {
            "type": "string"
          },
          "serviceCode": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "defaultProviderServiceId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "defaultProviderCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "defaultProviderName": {
            "type": [
              "null",
              "string"
            ]
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "weightedProviders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WeightedProviderServiceInput"
            }
          }
        }
      },
      "MerchantTokenIdentityResponse": {
        "required": [
          "merchantId",
          "merchantCode"
        ],
        "type": "object",
        "properties": {
          "merchantId": {
            "type": "string",
            "format": "uuid"
          },
          "merchantCode": {
            "type": "string"
          }
        }
      },
      "MerchantWalletJournalItem": {
        "required": [
          "id",
          "entryType",
          "amountKobo",
          "availableBalanceAfterKobo",
          "reference",
          "reason",
          "createdAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "entryType": {
            "type": "string"
          },
          "amountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "availableBalanceAfterKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "reference": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "MerchantWalletResponse": {
        "required": [
          "merchantCode",
          "currency",
          "availableKobo",
          "reservedKobo",
          "recentEntries"
        ],
        "type": "object",
        "properties": {
          "merchantCode": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "availableKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "reservedKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "recentEntries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MerchantWalletJournalItem"
            }
          }
        }
      },
      "OneTimeMerchantCredentials": {
        "required": [
          "portalEmail",
          "initialPortalPassword",
          "apiKey"
        ],
        "type": "object",
        "properties": {
          "portalEmail": {
            "type": "string"
          },
          "initialPortalPassword": {
            "type": "string"
          },
          "apiKey": {
            "type": "string"
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProductServiceAdminItem": {
        "required": [
          "serviceCode",
          "serviceType",
          "network",
          "displayName",
          "isActive",
          "createdAtUtc"
        ],
        "type": "object",
        "properties": {
          "serviceCode": {
            "type": "string"
          },
          "serviceType": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ProviderAdapterOption": {
        "required": [
          "adapterKey",
          "displayName",
          "developmentOnly",
          "supportsAirtime",
          "supportsData",
          "supportsAirtimeSales",
          "supportsDataSales"
        ],
        "type": "object",
        "properties": {
          "adapterKey": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "developmentOnly": {
            "type": "boolean"
          },
          "supportsAirtime": {
            "type": "boolean"
          },
          "supportsData": {
            "type": "boolean"
          },
          "supportsAirtimeSales": {
            "type": "boolean"
          },
          "supportsDataSales": {
            "type": "boolean"
          }
        }
      },
      "ProviderDataPlanCatalogItem": {
        "required": [
          "providerBundleCode",
          "displayName",
          "providerCostKobo"
        ],
        "type": "object",
        "properties": {
          "providerBundleCode": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "providerCostKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "ProviderHttpExchange": {
        "required": [
          "createdAtUtc",
          "method",
          "url",
          "httpStatusCode",
          "requestPayload",
          "responsePayload",
          "transportMessage"
        ],
        "type": "object",
        "properties": {
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "method": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "httpStatusCode": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "requestPayload": {
            "type": [
              "null",
              "string"
            ]
          },
          "responsePayload": {
            "type": [
              "null",
              "string"
            ]
          },
          "transportMessage": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProviderListItem": {
        "required": [
          "id",
          "code",
          "name",
          "adapterKey",
          "hasCredentials",
          "credentialScopes",
          "isActive",
          "createdAtUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "adapterKey": {
            "type": "string"
          },
          "hasCredentials": {
            "type": "boolean"
          },
          "credentialScopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ProviderServiceOption": {
        "required": [
          "id",
          "providerId",
          "providerCode",
          "providerName",
          "adapterKey",
          "serviceCode",
          "providerServiceCode",
          "isActive",
          "activePlanCount"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "providerId": {
            "type": "string",
            "format": "uuid"
          },
          "providerCode": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "adapterKey": {
            "type": "string"
          },
          "serviceCode": {
            "type": "string"
          },
          "providerServiceCode": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "activePlanCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "UpdateProviderCredentialsRequest": {
        "type": "object",
        "properties": {
          "credentialsJson": {
            "maxLength": 8192,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          },
          "credentialScope": {
            "type": "string"
          },
          "reason": {
            "maxLength": 500,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "VendResponse": {
        "required": [
          "transactionId",
          "status",
          "message",
          "network",
          "serviceCode",
          "recipient",
          "amountKobo",
          "priceKobo",
          "currency",
          "statusUrl",
          "createdAtUtc",
          "updatedAtUtc",
          "serviceType",
          "bundleCode"
        ],
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "serviceCode": {
            "type": "string"
          },
          "recipient": {
            "type": "string"
          },
          "amountKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "priceKobo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "currency": {
            "type": "string"
          },
          "statusUrl": {
            "type": "string"
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "serviceType": {
            "type": "string"
          },
          "bundleCode": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "WeightedProviderServiceInput": {
        "required": [
          "providerServiceId"
        ],
        "type": "object",
        "properties": {
          "providerServiceId": {
            "type": "string",
            "format": "uuid"
          },
          "weightPercent": {
            "maximum": 100,
            "minimum": 1,
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "VibriaVending"
    },
    {
      "name": "AdminAirtimeReconciliation"
    },
    {
      "name": "AdminAuditLogs"
    },
    {
      "name": "AdminDataReconciliation"
    },
    {
      "name": "AdminMerchantRouteTest"
    },
    {
      "name": "AdminProviderTest"
    },
    {
      "name": "AdminReports"
    },
    {
      "name": "AdminTransactions"
    },
    {
      "name": "Airtime"
    },
    {
      "name": "AirtimeRouteAdministration"
    },
    {
      "name": "AirtimeServiceAdministration"
    },
    {
      "name": "Catalog"
    },
    {
      "name": "Data"
    },
    {
      "name": "DataPlanAdministration"
    },
    {
      "name": "DataServiceAdministration"
    },
    {
      "name": "MerchantAdministration"
    },
    {
      "name": "MerchantRouteOverview"
    },
    {
      "name": "MerchantToken"
    },
    {
      "name": "MerchantWallet"
    },
    {
      "name": "PortalAuth"
    },
    {
      "name": "ProductServiceAdministration"
    },
    {
      "name": "ProviderAdministration"
    },
    {
      "name": "ProviderDataCatalog"
    },
    {
      "name": "RouteAdministration"
    },
    {
      "name": "ServiceDirectory"
    },
    {
      "name": "Transactions"
    },
    {
      "name": "WalletAdministration"
    }
  ]
}