---
agentTools:
  projectIndex: https://developer.stockal.com/llms.txt
---

# Upload Doc

The Upload Doc API allows the API user to upload documents for the International Remittance for Education. (These documents are checked at the bank's end for every transaction)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "FOREX UAT",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api-er.stockal.com"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v1/client/accounts/upload-doc": {
      "post": {
        "summary": "Upload Doc",
        "description": "The Upload Doc API allows the API user to upload documents for the International Remittance for Education. (These documents are checked at the bank's end for every transaction)",
        "operationId": "upload-doc",
        "parameters": [
          {
            "name": "userAccountId",
            "in": "query",
            "description": "userAccountId of remitter/student/beneficiary",
            "required": true,
            "schema": {
              "type": "string",
              "default": "0ca9ed3f-9dc8-4311-9cb8-99f20069013d"
            }
          },
          {
            "name": "fileName",
            "in": "query",
            "description": "Name of file to be uploaded",
            "schema": {
              "type": "string",
              "default": "Pan(1)"
            }
          },
          {
            "name": "docType",
            "in": "query",
            "description": "docType should be either of the following values: [\"PAN\", \"PASSPORT\"]",
            "required": true,
            "schema": {
              "type": "string",
              "default": "PAN"
            }
          },
          {
            "name": "fileType",
            "in": "query",
            "description": "Allowed file types are 'pdf', 'jpg', 'jpeg', 'png'",
            "required": true,
            "schema": {
              "type": "string",
              "default": "pdf"
            }
          },
          {
            "name": "side",
            "in": "query",
            "description": "Which side of doc is to be uploaded: [\"front\",\"back\"]",
            "required": true,
            "schema": {
              "type": "string",
              "default": "back"
            }
          },
          {
            "name": "api-key",
            "in": "header",
            "description": "API Key",
            "required": true,
            "schema": {
              "type": "string",
              "default": "<api-key>"
            }
          },
          {
            "name": "auth-key",
            "in": "header",
            "description": "Auth key generated via the \"Generate Auth key API\"",
            "required": true,
            "schema": {
              "type": "string",
              "default": "<auth-key>"
            }
          },
          {
            "name": "userId",
            "in": "header",
            "description": "User Id as generated via the \"Create Account (sign-Up) API\". Identifier of an individual user, you can map this to the User identification at your end.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "fa4dba28-48f3-4b4f-865e-c0d56fab1e64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "description": "File which should be less than 5Mb",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"status\": 200,\n    \"message\": \"Success\",\n    \"data\": {\n        \"message\": \"PAN added\",\n        \"accountDocId\": \"7e1d6877-0fc5-4e3e-847f-c86e699e2861\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "integer",
                      "example": 200,
                      "default": 0
                    },
                    "message": {
                      "type": "string",
                      "example": "Success"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "message": {
                          "type": "string",
                          "example": "PAN added"
                        },
                        "accountDocId": {
                          "type": "string",
                          "example": "7e1d6877-0fc5-4e3e-847f-c86e699e2861"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "application/json": {
                "examples": {
                  "User Not Found": {
                    "value": "{\n    \"status\": 500,\n    \"message\": \"user not found for ded54f83-998a-4f26-8cdc-535e360d07\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "integer",
                      "example": 500,
                      "default": 0
                    },
                    "message": {
                      "type": "string",
                      "example": "user not found for ded54f83-998a-4f26-8cdc-535e360d07"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "65f7eea5ffb5b00018e3df78:65f5e957070ace006a6075c5"
}
```