The get product ownership operation will get all the users that have a product ownership relation with the specified product.
Request
Request URI
Method | Request URI |
---|---|
GET | https://{company-name}.helloid.com/api/v1/productownership/{ProductSKU} |
Request parameters
Parameter | Description |
---|---|
{company-name} | The company name of the target company |
{ProductSKU} | The code (SKU) of the target product. |
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/{SelfServiceProductSKUWithOptions}