Endpoint
Authentication
This endpoint requires authentication. Include a valid bearer token in the Authorization header. Permission Required:company:find-one
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v3/product/company/{documentId}
company:find-one
{
"message": "Company record retrieved successfully",
"data": {
"document_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Acme Corporation",
"internal": "ACME",
"description": "A leading technology company",
"image": "https://example.com/logo.png",
"is_actived": true,
"is_deleted": false,
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z",
"deleted_at": null
},
"meta": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 200,
"timestamp": "2024-01-01T00:00:00.000Z"
}
}
{
"error": {
"code": "BAD_REQUEST",
"message": "Invalid field: 'invalid_field'. The specified field does not exist in the table."
},
"meta": {
"correlation": "...",
"status": 400,
"timestamp": "..."
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "Record with document_id '550e8400-e29b-41d4-a716-446655440000' not found"
},
"meta": {
"correlation": "...",
"status": 404,
"timestamp": "..."
}
}
curl -X GET 'https://api.bbrands.io/api/v3/product/company/550e8400-e29b-41d4-a716-446655440000' \
-H 'Authorization: Bearer YOUR_TOKEN'
curl -X GET 'https://api.bbrands.io/api/v3/product/company/550e8400-e29b-41d4-a716-446655440000?fields=name,internal,description' \
-H 'Authorization: Bearer YOUR_TOKEN'
curl -X GET 'https://api.bbrands.io/api/v3/product/company/550e8400-e29b-41d4-a716-446655440000?populate=relation1,relation2' \
-H 'Authorization: Bearer YOUR_TOKEN'
Was this page helpful?