List General Statuses - Pull_ListStatuses
Distribution Hub API will provide a response including:
- unique response identifier (ResponseID). You will use it to troubleshoot when communication with the API Support. Make sure that you log it.
- response StatusInfo providing you with feedback on the performed transaction
note
You may wish to translate the StatusInfo to your own jargon before displaying them to your clients. The DH StatusInfo is designed to provide technical feedback to developers and some business context specific to your product may be needed.
Use Cases
- Status display
- Status filtering
- Data validation
Best Practices
- Refresh weekly/monthly: New StatusInfo items may be added
Request
XML request
<Pull_ListStatuses_RQ>
<Authentication>
<AccessKey>[AccessKey]</AccessKey>
<SecretKey>[SecretKey]</SecretKey>
</Authentication>
</Pull_ListStatuses_RQ>
Request fields
| XML Path | Data Type | Type | Description |
|---|---|---|---|
| Pull_ListStatuses_RQ | C | Root element | |
| Pull_ListStatuses_RQ/Authentication | C, M | Authentication details | |
| Pull_ListStatuses_RQ/Authentication/AccessKey | String(100) | M | Access key |
| Pull_ListStatuses_RQ/Authentication/SecretKey | String(100) | M | Secret key |
Response
XML response
<Pull_ListStatuses_RS>
<Status ID="0">Success</Status>
<ResponseID>d3144ddc232f40ccb2b974e0e4ef66f5</ResponseID>
<Statuses>
<StatusInfo ID="-7">Access Denied</StatusInfo>
<StatusInfo ID="-6">This request was rate limited. Maximum number of requests allowed for this API method with specified parameters is {0} per {1} sliding window. You have reached this limit. Please try again.</StatusInfo>
<StatusInfo ID="-5">This request was rate limited. Maximum concurrent requests allowed for this API method with specified parameters is {0}. You have reached this limit. Please try again.</StatusInfo>
<StatusInfo ID="-4">Incorrect login or password</StatusInfo>
<StatusInfo ID="-3">Invalid request. {0}</StatusInfo>
<StatusInfo ID="-2">This request cannot be processed. {0}</StatusInfo>
<StatusInfo ID="-1">The XML contains not implemented method</StatusInfo>
...
</Statuses>
</Pull_ListStatuses_RS>
Response fields
| XML Path | Data Type | Type | Description |
|---|---|---|---|
| Pull_ListStatuses_RS | C | Root element | |
| Pull_ListStatuses_RS/Status | String(100) | M | Status description |
| Pull_ListStatuses_RS/Status@ID | Integer | M | Status ID |
| Pull_ListStatuses_RS/ResponseID | String(32) | M | Unique response ID |
| Pull_ListStatuses_RS/Statuses | C | A collection of statuses | |
| Pull_ListStatuses_RS/Statuses/StatusInfo | String(100) | M | Status description |
| Pull_ListStatuses_RS/Statuses/StatusInfo@ID | Integer | M | Status ID |