GetSupplierDocuments

Endpoint

Overview

The "GetSupplierDocuments" endpoint is a GET request. It is used to get the supplier documents. Detailed functionality of how to use this endpoint is explained in the Multiple Suppliers section.

The endpoint on Swagger is GetSupplierDocuments.

Now, we are going to declare the endpoint and its models along with each accepted parameter and possible value.

📘

Request Header

Add "Authorization": "Bearer {Token}" to request header. Token of demo configuration can be found here.


Request Model

The request is a GET request with the following parameters:

Input ParameterTypeDescription
SupplierCodeinteger

Response Model

The response is an array of SupplierFileView objects as follows:

Response FieldTypeDescription
FileUrl stringThe document URL.
FileType integer1 for Civil Id
2 for Commercial License
3 for Articles of Association
4 for Signature Authorization
5 for Others
6 for Civil ID Back
7 for Instagram
16 for Civil IDs of All Owners
17 for Civil ID of Manager
20 for Commercial Register
21 for Bank Account Letter
25 for Website
26 for 3rd Parties
27 for Basic regulations list (For charities only)
28 for Board of Directors Agreement (For charities only)
FileTypeName stringIt can be:
Commercial License, Signature Authorisation, Articles of Association, Civil ID, Civil ID back, 3-parties contract/ agreement, and Others.
ExpireDate string

Sample Message

/v2/GetSupplierDocuments?SupplierCode=69
[
    {
        "FileUrl": "https://mfstoragemedia.blob.core.windows.net/mfdmfiles/Files/Suppliers/3-ArticlesOfAssociation.pdf",
        "FileType": 3,
        "FileTypeName": "Articles of Association",
        "ExpireDate": null
    },
    {
        "FileUrl": null,
        "FileType": 1,
        "FileTypeName": "Commercial License",
        "ExpireDate": null
    },
    {
        "FileUrl": null,
        "FileType": 2,
        "FileTypeName": "Signature Authorisation",
        "ExpireDate": null
    },
    {
        "FileUrl": null,
        "FileType": 4,
        "FileTypeName": "Civil Id",
        "ExpireDate": null
    },
    {
        "FileUrl": null,
        "FileType": 5,
        "FileTypeName": "Civil Id Back",
        "ExpireDate": null
    },
    {
        "FileUrl": null,
        "FileType": 6,
        "FileTypeName": "3-parties contract/ agreement",
        "ExpireDate": null
    },
    {
        "FileUrl": null,
        "FileType": 7,
        "FileTypeName": "Others",
        "ExpireDate": null
    }
]