GET v{version}/products/{productId}/nutrition
Details
Get a product nutrition response for a specific product.
https://api.procurewizard.com/v1.0/products/{productId}/nutritionRequest
URI Parameters
These are parameters passed as part of the URL in the request.
Name | Description | Type | Additional information |
---|---|---|---|
productId |
The ID of the product to retrieve nutrition data for. |
integer |
Required |
version |
The API version parameter. The current version is 1.0. |
string |
None |
Response
Response Description
A response object of ProductNutritionResponseName | Description | Type | Additional information |
---|---|---|---|
data |
The responses data. |
ProductNutritionResponseData |
None |
jsonApi |
Implementation details of JSON:API. |
Implementation |
None |
links |
Related links. |
Links |
None |
meta |
A meta object used to include non-standard meta-information. Client meta data will be ignored by the server. |
MetaData |
None |
Response Formats
Example responses of what the data might contain.
{
"data": {
"id": "12345",
"type": "productnutrition",
"attributes": {
"averageWeight": 1.1,
"energy": 1.1,
"energyKcal": 1.1,
"fat": 1.1,
"saturates": 1.1,
"carbohydrate": 1.1,
"sugars": 1.1,
"fibre": 1.1,
"protein": 1.1,
"salt": 1.1
}
},
"links": {
"self": {
"href": "http://example-url-1.com"
},
"related": {
"href": "http://example-url-1.com"
}
},
"meta": {
"copyright": "© 2025 The Access Group"
},
"jsonApi": {
"version": "1.0"
}
}
<ProductNutritionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api.Nutrition">
<JsonApi xmlns:d2p1="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api.JsonApi" xmlns="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api">
<d2p1:Version>1.0</d2p1:Version>
</JsonApi>
<Links xmlns="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api.JsonApi">
<Related xmlns:d3p1="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api">
<d3p1:Href>http://example-url-1.com/</d3p1:Href>
<d3p1:Meta i:nil="true" />
</Related>
<Self xmlns:d3p1="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api">
<d3p1:Href>http://example-url-1.com/</d3p1:Href>
<d3p1:Meta i:nil="true" />
</Self>
</Links>
<Meta xmlns="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api.JsonApi">
<Copyright>© 2025 The Access Group</Copyright>
</Meta>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api.Nutrition" xmlns="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api">
<Id xmlns="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api.JsonApi">12345</Id>
<Attributes xmlns="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api.JsonApi">
<d2p1:Carbohydrate>1.1</d2p1:Carbohydrate>
<d2p1:Energy>1.1</d2p1:Energy>
<d2p1:EnergyKcal>1.1</d2p1:EnergyKcal>
<d2p1:Fat>1.1</d2p1:Fat>
<d2p1:Fibre>1.1</d2p1:Fibre>
<d2p1:Protein>1.1</d2p1:Protein>
<d2p1:Salt>1.1</d2p1:Salt>
<d2p1:Saturates>1.1</d2p1:Saturates>
<d2p1:Sugars>1.1</d2p1:Sugars>
<d2p1:AverageWeight>1.1</d2p1:AverageWeight>
</Attributes>
</Data>
</ProductNutritionResponse>