GET v{version}/recipes/{recipeId}/products

Details

Get a product array response for a recipe.

https://api.procurewizard.com/v1.0/recipes/{recipeId}/products

Request

URI Parameters

These are parameters passed as part of the URL in the request.

Name Description Type Additional information
recipeId

The unique ID of the recipe.

integer

Required

version

The API version parameter. The current version is 1.0.

string

None

Response

Response Description

A response object of ProductArrayResponse
Name Description Type Additional information
data

The responses data. This is an array of ProductResponseData objects. If there are no items in the collection, then an empty array is returned.

Collection of ProductResponseData

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": "product",
      "attributes": {
        "name": "Sample string 1",
        "manufactorCode": "Sample string 2",
        "packSize": "Sample string 3",
        "packsInCase": 4.0,
        "unitsInPack": 5,
        "unitSize": 6.0,
        "unitMeasureId": 7,
        "categoryId": 8,
        "properties": [
          {
            "name": "Sample string 1",
            "value": "Sample string 2"
          },
          {
            "name": "Sample string 1",
            "value": "Sample string 2"
          }
        ],
        "ingredientDeclarations": [
          {
            "name": "Sample string 1",
            "ingredientDeclaration": "Sample string 2"
          },
          {
            "name": "Sample string 1",
            "ingredientDeclaration": "Sample string 2"
          }
        ]
      }
    },
    {
      "id": "12345",
      "type": "product",
      "attributes": {
        "name": "Sample string 1",
        "manufactorCode": "Sample string 2",
        "packSize": "Sample string 3",
        "packsInCase": 4.0,
        "unitsInPack": 5,
        "unitSize": 6.0,
        "unitMeasureId": 7,
        "categoryId": 8,
        "properties": [
          {
            "name": "Sample string 1",
            "value": "Sample string 2"
          },
          {
            "name": "Sample string 1",
            "value": "Sample string 2"
          }
        ],
        "ingredientDeclarations": [
          {
            "name": "Sample string 1",
            "ingredientDeclaration": "Sample string 2"
          },
          {
            "name": "Sample string 1",
            "ingredientDeclaration": "Sample string 2"
          }
        ]
      }
    }
  ],
  "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"
  }
}
    
    
<ProductArrayResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api.Products">
  <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.Products" xmlns="http://schemas.datacontract.org/2004/07/ProcureWizard.Infrastructure.Api">
    <d2p1:ProductResponseData>
      <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:CategoryId>8</d2p1:CategoryId>
        <d2p1:IngredientDeclarations>
          <d2p1:SupplierLite>
            <d2p1:IngredientDeclaration>Sample string 2</d2p1:IngredientDeclaration>
            <d2p1:Name>Sample string 1</d2p1:Name>
          </d2p1:SupplierLite>
          <d2p1:SupplierLite>
            <d2p1:IngredientDeclaration>Sample string 2</d2p1:IngredientDeclaration>
            <d2p1:Name>Sample string 1</d2p1:Name>
          </d2p1:SupplierLite>
        </d2p1:IngredientDeclarations>
        <d2p1:ManufactorCode>Sample string 2</d2p1:ManufactorCode>
        <d2p1:Name>Sample string 1</d2p1:Name>
        <d2p1:PackSize>Sample string 3</d2p1:PackSize>
        <d2p1:PacksInCase>4</d2p1:PacksInCase>
        <d2p1:ProductProperties>
          <d2p1:ProductProperty>
            <d2p1:Name>Sample string 1</d2p1:Name>
          </d2p1:ProductProperty>
          <d2p1:ProductProperty>
            <d2p1:Name>Sample string 1</d2p1:Name>
          </d2p1:ProductProperty>
        </d2p1:ProductProperties>
        <d2p1:UnitMeasureId>7</d2p1:UnitMeasureId>
        <d2p1:UnitSize>6</d2p1:UnitSize>
        <d2p1:UnitsInPack>5</d2p1:UnitsInPack>
      </Attributes>
    </d2p1:ProductResponseData>
    <d2p1:ProductResponseData>
      <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:CategoryId>8</d2p1:CategoryId>
        <d2p1:IngredientDeclarations>
          <d2p1:SupplierLite>
            <d2p1:IngredientDeclaration>Sample string 2</d2p1:IngredientDeclaration>
            <d2p1:Name>Sample string 1</d2p1:Name>
          </d2p1:SupplierLite>
          <d2p1:SupplierLite>
            <d2p1:IngredientDeclaration>Sample string 2</d2p1:IngredientDeclaration>
            <d2p1:Name>Sample string 1</d2p1:Name>
          </d2p1:SupplierLite>
        </d2p1:IngredientDeclarations>
        <d2p1:ManufactorCode>Sample string 2</d2p1:ManufactorCode>
        <d2p1:Name>Sample string 1</d2p1:Name>
        <d2p1:PackSize>Sample string 3</d2p1:PackSize>
        <d2p1:PacksInCase>4</d2p1:PacksInCase>
        <d2p1:ProductProperties>
          <d2p1:ProductProperty>
            <d2p1:Name>Sample string 1</d2p1:Name>
          </d2p1:ProductProperty>
          <d2p1:ProductProperty>
            <d2p1:Name>Sample string 1</d2p1:Name>
          </d2p1:ProductProperty>
        </d2p1:ProductProperties>
        <d2p1:UnitMeasureId>7</d2p1:UnitMeasureId>
        <d2p1:UnitSize>6</d2p1:UnitSize>
        <d2p1:UnitsInPack>5</d2p1:UnitsInPack>
      </Attributes>
    </d2p1:ProductResponseData>
  </Data>
</ProductArrayResponse>
    

Back