---
updatedAt: 2026-08-16T05:24:11.000Z
agentTools:
  projectIndex: https://docs.wirexapp.com/llms.txt
---

# Test api request parsing

This one exists only to test that API request parsing works correctly from body, query, path and header

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "request.TestBody": {
        "properties": {
          "instance": {
            "$ref": "#/components/schemas/request.TestSubBody"
          },
          "service": {
            "example": "BankingService",
            "type": "string"
          }
        },
        "required": [
          "service"
        ],
        "type": "object"
      },
      "request.TestSubBody": {
        "properties": {
          "instance": {
            "example": "BS-1",
            "type": "string"
          }
        },
        "required": [
          "instance"
        ],
        "type": "object"
      },
      "response.ErrorCategory": {
        "properties": {
          "category": {
            "type": "string"
          },
          "grpc_status_code": {
            "type": "integer"
          },
          "http_status_code": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "response.ErrorDetails": {
        "properties": {
          "details": {
            "type": "string"
          },
          "key": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "response.ErrorReason": {
        "properties": {
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "response.ErrorResponse": {
        "properties": {
          "error_category": {
            "$ref": "#/components/schemas/response.ErrorCategory"
          },
          "error_description": {
            "type": "string"
          },
          "error_details": {
            "items": {
              "$ref": "#/components/schemas/response.ErrorDetails"
            },
            "type": "array"
          },
          "error_reason": {
            "$ref": "#/components/schemas/response.ErrorReason"
          }
        },
        "type": "object"
      },
      "response.TestResponse": {
        "properties": {
          "X-Aud": {
            "example": "aud",
            "type": "string"
          },
          "instance": {
            "example": "BS-1",
            "type": "string"
          },
          "service": {
            "example": "BankingService",
            "type": "string"
          },
          "status": {
            "example": "ok",
            "type": "string"
          },
          "type": {
            "example": "status",
            "type": "string"
          }
        },
        "required": [
          "X-Aud",
          "instance",
          "service",
          "status",
          "type"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "Anonymous": {
        "description": "No authorization required.",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "contact": {
      "email": "company@wirexpaychain.com",
      "name": "API Support Team"
    },
    "description": "The **Wirex Corporate API** provides businesses with a seamless way to manage corporate finances using blockchain technology. It supports corporate registration, KYB verification, employee onboarding, corporate card issuance, and SEPA/ACH bank transfers—all without direct fiat interaction. Transactions are executed directly from a **non-custodial crypto account**, ensuring security, transparency, and full control over funds.",
    "title": "Wirex Corporate BaaS API",
    "version": "1.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/api/v1/test/{type}": {
      "get": {
        "description": "This one exists only to test that API request parsing works correctly from body, query, path and header",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Aud",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {
                "$ref": "#/components/schemas/request.TestBody"
              }
            }
          },
          "description": "Body data",
          "required": true,
          "x-originalParamName": "bodyData"
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response.TestResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response.ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response.ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "Anonymous": []
          }
        ],
        "summary": "Test api request parsing",
        "tags": [
          "Test"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api-business.wirexapp.com"
    },
    {
      "url": "https://api-business.wirexapp.tech"
    }
  ],
  "tags": [
    {
      "description": "This API section exists solely for testing purposes. It is not intended to be used in production. Or anywhere else for that matter. If you\nsee it, pretend it’s a magical unicorn and walk away slowly.",
      "name": "Test"
    }
  ],
  "x-readme": {}
}
```