Query Product Lines by Brand
Introduction
This API returns product line summary information about a subset of the product lines associated with the brandId in the request.
Method | Service Name | Service Type |
---|---|---|
GET | productManagement/v1/productLines | Synchronous |
- Post-Production URI:
https://api.certification.blackhawknetwork.com/productManagement/v1/productLines?brandId={brandId}
- Production URI:
https://api.blackhawknetwork.com/productManagement/v1/productLines?brandId={brandId}
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.
Parameter | 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/productManagement/v1/productLines?brandId={brandId}
The following parameters are available:
Parameter | Description | Type | Required |
---|---|---|---|
brandId | The internal identifier for the brand | String | Y |
Response Elements
The following elements are returned in the response.
Name | Description | Type |
---|---|---|
productLineSummaryList | List of matching product line summary entities. | List |
total | Total count returned from the query. | Integer |
Product Line Summary
Name | Description | Type | Max Length | Mandatory |
---|---|---|---|---|
entityId | A reference to the URI for the product line. | URI | 255 | N |
brandName | The name of the brand. | String | 255 | Y |
brandLogoImage | The URI of the logo image of the brand. | String | 255 | N |
productLineName | Name of the product line. | String | Y | |
brandId | ID of the brand. | String | 26 | N |
productLineStatus | The status of the product line. The possible values are in the Product Line Status enumeration. | Enum | N | |
accountType | The account type of the product line. The possible values are in the Account Type enumeration. | Enum | N | |
paymentNetworkType | The payment network type of the product line. The possible values are in the Payment Network Type enumeration. | Enum | N | |
startDate | The date from which the product line becomes active. | Date | Y | |
endDate | The date at which the product line becomes inactive. | Date | N | |
locale | The two-character ISO 639-1 language code followed by the two-character country code, separated by an underscore, e.g., en_US. | Locale | 5 | N |
Product Line Status
Enum Value | Description |
---|---|
DRAFT | New product line in draft mode. |
ACTIVATED | Product line in active mode. |
SUSPENDED | Product line in suspended mode. |
Account Type
Enum Value | Description |
---|---|
CREDIT_CARD | Credit card |
GIFT_CARD | Gift card |
LOYALTY_CARD | Loyalty card |
PHONE_CARD | Phone card |
Payment Network Type
Enum Value | Description |
---|---|
VISA | Visa |
MASTERCARD | Master Card |
DISCOVER | Discover |
AMEX | American Express |
Sample Request and Response
Click on the tabs below to see a sample GET request and the sample response.
GET /productManagement/v1/productLines?brandId=R9V1V5D3XYRD8MC6ZQQ2Q6TRJM HTTP/1.1
requestorID: ZPZB7DDS20PNHALMZCBX14RVCM
Content-Type: application/json; charset=UTF-8
Accept: application/json; charset=UTF-8
Host: api.blackhawknetwork.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.2 (java 1.5)
HTTP/1.1 200 OK
Date: Fri, 06 Jul 2012 22:31:51 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 2027
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
{
"results": [
{
"entityId": "https://api.blackhawknetwork.com/productManagement/v1/productLine/AM3AN6ALP15AVT87BKPRVFVFS8",
"brandName": "SAFEWAY",
"brandId": "R9V1V5D3XYRD8MC6ZQQ2Q6TRJM",
"brandLogoImage": "www.image",
"productLineStatus": "ACTIVATED",
"productLineType": "RETAILER_CARD",
"startDate": "2014-06-27T19:14:45.000+0000",
"endDate": "2014-06-27T19:14:45.000+0000",
"locale": "en"
}
],
"total": 1
}
Updated 7 months ago