The get all product ownerships operation will get all products, with ownership relation from users.
Request
Request URI
Method | Request URI |
---|---|
GET | https://{company-name}.helloid.com/api/v1/productownership/?{skip={skip}}&{take={take}} |
Request parameters
Parameter | Description |
---|---|
{company-name} | The company name of the target company |
{skip} | Optional. The amount of ownerships to skip, ordered by ProductSKU. If not {take} parameter is supplied, all records from the {skip} forward are returned. |
{take} | Optional. The amount of ownerships to request, ordered by ProductSKU. |
Request headers
None.
Request body
None.
Request body parameters
None.
Response
Response status
Code | Description |
---|---|
200(OK) | Indicates that the operation was successful. |
400(BAD REQUEST) | Indicates that the operation was not successful. There were validation errors or the request body was malformed. |
401(UNAUTHORIZED) | Indicates that no authentication header was given or the api key and secret were invalid. If the api key and secret were valid check the configuration in your portal, it is possibilty these were IP restricted or are disabled. |
404(NOT FOUND) | Specified productownership was not found. |
Sample response body
[
{
"username": "Administrator",
"productSku": "1234-567-890b",
"timeOfApproval": null,
"source": null,
"quantity": 1
}
]
Please also see error result.
Please also see common HTTP status codes.
Example request with cURL
Replace placeholder values surrounded by {
}
with the actual values.
curl -u {api-key}:{api-secret} -X GET https://{company-name}.helloid.com/api/v1/productownership/
curl -u {api-key}:{api-secret} -X GET https://{company-name}.helloid.com/api/v1/productownership/?skip=5&take=10