By Demog
Introduction
This operation returns a list of submissions that match the search criteria for the BPID provided.
Method | Service | API Name | Service Type |
---|---|---|---|
POST | submissions | findbydemog → Explore | Synchronous |
URI: {baseUrl}/submissions/v1/findbydemog
This API does not return the status of the submissions themselves. Once you have obtained the tracking numbers and campaign codes you will need to use the TrackSubmissionByTrackingNumber API to fetch the submission status information.
Header Elements
The header must contain the elements needed to authenticate the request.
Parameter | Description | Type | Required |
---|---|---|---|
authorization | This is where you will send your encoded JWT auth token you obtained from Get Auth Token. Must be in the form: Authorization: Bearer {auth-token-string} | String | Yes |
Request Elements
The following query parameters are supported in the request.
Name | Description | Type | Required |
---|---|---|---|
BPID | The unique identifier for the business partner. This value will be provided to you by your Account Manager. | String | Yes |
firstName | The first name to use in the submission search. | String | Yes |
lastName | The last name to use in the submission search. | String | Yes |
zipCode | The ZIP Code to use in the submission search. | String | Yes |
phoneNumber | The phone number to use in the submission search. Numbers only | String | No |
The email address to use in the submission search. | String | No |
Request Sample
URI: https://certification.promob2b.bhnapi.com/submissions/v1/findbydemog
{
"bpId": "98765",
"firstName": "RONALD",
"lastName": "MALLARD",
"zipCode": "94588"
}
Response
Response Elements
Name | Description | Type | Required |
---|---|---|---|
timestamp | Timestamp when the request completed processing. | Integer | Yes |
status | Status of the response. This will match the HTTP Status Code in the header of the response. Example: 404 | String | Yes |
error | If the request was not processed successfully this will indicate the error condition encountered. Example: "Not Found" | String | Yes (if status is ERROR ) |
message | The detailed error message. This will be null if the request completed successfully. Example: "Campaign Code 32-99999 could not be found" | String | Yes (if status is ERROR ) |
path | The path called in the request excluding the baseUrl. | String | Yes |
trackDetails | The information about the submissions associated to the search terms that were found in Hawk Redeem for the BPID provided. | Array of JSON Objects | Yes |
Track Details
Name | Description | Type | Required |
---|---|---|---|
trackingNumber | The tracking number for the submission | String | Yes |
campaignCode | The campaign code for the submission. | String | Yes |
campaignShortName | The short name for the campaign matching the campaign code for the submission. | String | Yes |
submissionSubmitDate | This is the postmark date on submission, if not present then it is the submission insert date | String | Yes |
Response Sample
{
"status": 200,
"error": null,
"message": null,
"path": "/submissions/v1/findbydemog",
"timestamp": 1586790456023,
"correlationId": null,
"trackDetails": [{
"trackingNumber": "918920317",
"campaignCode": "32-12345",
"campaignShortName": "Up to $4 Park and Company Rebate",
"submissionSubmitDate": "04/09/2020"
}, {
"trackingNumber": "918920315",
"campaignCode": "32-54321",
"campaignShortName": "Up to $8 Park and Company Rebate",
"submissionSubmitDate": "04/09/2020"
}
]
}
{
"status": 400,
"error": "Bad Request",
"message": null,
"path": "/submissions/v1/findbydemog",
"timestamp": 1586790825246,
"trackDetails": null
}
Updated over 4 years ago