ApiDocuments
Get available supplier names by asset IDs
Returns a list of unique supplier names from documents associated with the provided asset IDs.
Access restricted to roles:
- admin
- manufacturer-admin
- manufacturer-user
- producer-admin
- producer-user
- sales-agent
Authorization
bearer AuthorizationBearer <token>
In: header
Query Parameters
assetId*array<string>
List of asset IDs to filter suppliers by
supplier?boolean
Filter by supplier document flag. If omitted, returns all documents. If true, returns only supplier documents. If false, returns only non-supplier documents.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/documents/available/suppliers?assetId=0223327b-9270-4478-b11a-597b8885440d&assetId=51df6794-32c2-40dc-9f9b-43a1c9bd914d"{
"data": [
[]
]
}{
"errors": [
{
"errorCode": "BadRequest",
"message": "The request payload is invalid.",
"extension": {}
}
]
}{
"errors": [
{
"errorCode": "Unauthorized",
"message": "Authentication is required to access this resource.",
"extension": {}
}
]
}{
"errors": [
{
"errorCode": "NoPermission",
"message": "You do not have permission to access this resource.",
"extension": {}
}
]
}{
"errors": [
{
"errorCode": "InternalServerError",
"message": "An unexpected error occurred. See logs for further details or create a support ticket.",
"extension": {}
}
]
}