Query Product Catalogs by IDs
Introduction
This operation queries product catalog summary information by catalog IDs.
Method | Service Name | Service Type |
---|---|---|
GET | productCatalogManagement/v1/productCatalogs | Synchronous |
-
Post-Production URI:
https://api.certification.blackhawknetwork.com/productCatalogManagement/v1/productCatalogs?catalogIds={catalogId 1};{catalogId 2}
-
Production URI:
https://api.blackhawknetwork.com/productCatalogManagement/v1/productCatalogs?catalogIds={catalogId 1};{catalogId 2}
Request Header Attributes
Note that all three of the header attributes are optional; however, if you want idempotency support then you should specify all three on every request.
Name | Description | Type | Required |
---|---|---|---|
requestorId | A value defined by the client application that can be used to uniquely identify that client application. If the client application does not specify a value, a globally unique identifier will be filled in automatically. | String | N |
requestId | A value defined by the client application that can be used to uniquely identify that specific request from the client. This value should be set if the client application wants to take advantage of an idempotent operation on a service. | String | N |
previousAttempts | The number of times this same request has been attempted unsuccessfully before. A value that is greater than zero will cause the service to view this request as a retry attempt and it will be treated idempotently. | Integer | N |
In our example we will be sending the following values in the header:
Content-Type: application/json
requestorId: 1234
requestId: 2019-06-12T15:35:28-0500
previousAttempts: 0
Request Elements
Since this is a get request the request elements need to be sent in the URI itself. https://api.blackhawknetwork.com/productCatalogManagement/v1/productCatalogs?catalogIds={catalogId 1};{catalogId 2}
The following parameters are available:
Name | Description | Type | Required |
---|---|---|---|
catalogIds | The internal identifier for the catalogs. | String | Y |
Response Elements
The following elements are returned in the response.
Name | Description | Type |
---|---|---|
productCatalogSummaryList | List of matching product catalog summary entities. | List |
total | The total number of entities existing in the system matching the given criteria. | Integer |
Product Catalog Summary List
Name | Description | Type | Max Length | Mandatory |
---|---|---|---|---|
version | The version of product catalog | Integer | Y | |
name | The name of the product catalog | String | 255 | Y |
Sample Request and Response
Click on the tabs below to see a sample GET request and the sample response.
GET /productCatalogManagement/v1/productCatalogs?catalogIds=NQZBRDYB2GC7YTTVPC2TKT8118;Y0CDTY4JMPPRJPLHHM4N132HG4 HTTP/1.1
User-Agent: curl/7.23.1 (x86_64-pc-win32) libcurl/7.23.1 OpenSSL/0.9.8r zlib/1.2.5
Host: api.blackhawknetwork.com
Accept: */*
requestorId: CLMMVC5PQRRYHGZCG6LX47Z6T8
HTTP/1.1 200 OK
Content-Type: application/json
Date: Mon, 08 Oct 2012 07:01:47 GMT
{
"results":[
{
"entityId":"http://api.blackhawknetwork.com/productCatalogManagement/v1/productCatalog/Y0CDTY4JMPPRJPLHHM4N132HG4",
"name":"FacebookCatalog",
"version":2
},
{
"entityId":"http://api.blackhawknetwork.com/productCatalogManagement/v1/productCatalog/NQZBRDYB2GC7YTTVPC2TKT8118",
"name":"GoogleCatalog1",
"version":4
}
],
"total":2
}
Updated 4 months ago