Description (Company's Document List)
Show the documents related with that company. (GET)Queries
In order to search you can add in the url the follow parameters.
- * limit - control the records show on each page (if not set, default load 40 records)
- * page - control load the number of the page
Example:
https://api-h2h-staging.yedpay.com/v1/companies/{{company_id}}/documents?limit=50&page=1
End Point
https://api-h2h-staging.yedpay.com/v1/companies/{{company_id}}/documents
Variable
| # | Name | Type | Description |
|---|---|---|---|
| 1 | company_id | String | Company's ID |
Request Header
| # | Key | Value | Description |
|---|---|---|---|
| 1 | Authorization | Bearer {{access_token}} | Login Token |
Body
| # | Name | Type | Description |
|---|
Response
| # | Name | Type | Description |
|---|---|---|---|
| 1 | success | Boolean | Request Document List Success or Fail |
| 2 | data | Array | Include all Document Information (document_iD, name etc..) |
| 3 | meta | Array | Include all Pagination's Information (total, count, total_pages, etc..) |
Success Response - data
| # | Name | Type | Description |
|---|---|---|---|
| 1 | id | String | Id of the File |
| 2 | user_id | String | Id of the User |
| 3 | type | String | Type of the File |
| 4 | name | String | Name of the File |
| 5 | description | String | Description of the File |
| 6 | mime | String | MIME Type of the File |
| 7 | size | Integer | Size of the File |
| 8 | shared | Boolean | Whether the File is Shared or Not (true/false) |
| 9 | br_number | String | Business Registration number (for type="br" or "store_br" only) |
| 10 | branch_number | Numeric String | Branch number of the BR (for type="br" or "store_br" only) |
| 11 | registered_company_name | String | Company name displayed in the BR (for "br" type file only) |
| 12 | type_of_business | Integer | Type of business registered via the BR (for "br" type file only) |
| 13 | expiry_date | String | Expiry Date of the BR (format: yyyy-MM-dd) (for type="br" or "store_br" only) |
| 14 | ci_number | String | Number of the CI (for last "ci" type file only) |
| 15 | ir_number | String | Number of the IR (for last "ir" type file only) |
| 16 | company_name | String | Company name displayed in the CI/IR (for last "ci" / "ir" type file only) |
| 17 | date_of_establishment | String | CI's date of establishment (format: yyyy-MM-dd) (for last "ci" type file only) |
Example Success Response
{
"success": true,
"data": [
{
"id": "Z6YD1K61",
"user_id": "0L73EZRG",
"uploader_id": "KRMKPVLW",
"fileable_type": "App\Models\Company",
"fileable_id": "GRE9W3R5",
"type": "ci",
"name": "xxxxxxxxxxxx",
"description": "xxxxxxxxxxxxx",
"mime": "xxxxxxx",
"size": 481474,
"shared": false,
"updated_at": 2026-01-26 11:27:00,
"ci_number": "71855814",
"company_name": "xxxxxxxxxxxx",
"date_of_establishment": "2026-01-26"
},
{
"id": "KRV3PJL8",
"user_id": "V63N7N6P",
"uploader_id": "1LD517LM",
"fileable_type": "App\Models\Company",
"fileable_id": "46G49ZLP",
"type": "br",
"name": "xxxxxxxxxxxx",
"description": "xxxxxxxxxxxxx",
"mime": "xxxxxxx",
"size": 258135,
"shared": false,
"updated_at": 2026-01-26 11:27:00,
"registered_company_name": "xxxxxxxxx",
"type_of_business": 1,
"br_number": "63026230",
"branch_number": "009",
"expiry_date": "2026-01-26"
}
],
"meta": {
"pagination": {
"total": 2,
"count": 2,
"per_page": 40,
"current_page": 1,
"total_pages": 1,
"links": []
}
}
}
Example Error Response
{
"success": false,
"message": "Unauthenticated.",
"status": 500
}
v1.89.5-20251216 © The Payment Cards Group Limited. All rights reserved.