Skip to main content

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 PathData TypeTypeDescription
Pull_ListStatuses_RQCRoot element
Pull_ListStatuses_RQ/AuthenticationC, MAuthentication details
Pull_ListStatuses_RQ/Authentication/AccessKeyString(100)MAccess key
Pull_ListStatuses_RQ/Authentication/SecretKeyString(100)MSecret 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 PathData TypeTypeDescription
Pull_ListStatuses_RSCRoot element
Pull_ListStatuses_RS/StatusString(100)MStatus description
Pull_ListStatuses_RS/Status@IDIntegerMStatus ID
Pull_ListStatuses_RS/ResponseIDString(32)MUnique response ID
Pull_ListStatuses_RS/StatusesCA collection of statuses
Pull_ListStatuses_RS/Statuses/StatusInfoString(100)MStatus description
Pull_ListStatuses_RS/Statuses/StatusInfo@IDIntegerMStatus ID