Gateway Response Codes

When calling the DPO Pay by Network API, the gateway returns a numeric Result and human-readable ResultExplanation value.

Use these codes to determine next steps in your payment flow.

000 means success.
All other codes indicate a validation, configuration, or processing error.


Response Fields

FieldDescription
ResultNumeric response code indicating the outcome
ResultExplanationText explanation of the result
TransTokenReturned when a token is successfully created
TransRefDPO transaction reference (if created)
notesAdditional notes (if provided)
AllocationIDReturned for xPay allocation payments
AllocationCodeReceiver merchant code (xPay allocation)

Common Response Codes

CodeMeaningAction for Developer
000Transaction createdProceed → redirect shopper or process next step
801Missing Company TokenEnsure CompanyToken is included
802Invalid Company TokenVerify token value / environment
803Missing or invalid Request typeSet <Request>createToken</Request> (or correct operation)
804XML formatting errorEnsure valid XML structure & field case
901Field exceeds max lengthTrim values (names, refs, descriptions)
902Missing mandatory fieldsCheck payment + customer fields
904Unsupported currencyUse valid currency for merchant account
905Transaction exceeds limitUse smaller amount or contact support
906Monthly merchant limit exceededContact DPO Support
922Invalid provider referenceVerify payment provider configuration
923Allocation > PaymentAmountCheck allocation data (xPay only)
930Invalid block payment codeReview merchant configuration
940CompanyRef already paidTreat as duplicate order or display existing status
950Required tag missingCheck body tags match docs exactly
960Tag sent multiple timesRemove duplicate XML fields

Best Practices

  • Log Result + ResultExplanation + TransRef (if present).
  • If you get 804 (XML error), validate structure & remove BOM/whitespace.
  • For 940 duplicate reference, query status before retrying.
  • For merchant limit codes (905,906), send customer friendly decline message.

Related Guides

TopicLink
Create Token/developers/create-token
Callback Processing/developers/payment-callbacks
Status Lookup/developers/verify-token
Refund / Void/developers/refund-void

Next Step: Verify Token Example

Most merchants pair this table with polling for final status:

<API3G>
  <CompanyToken>{{CompanyToken}}</CompanyToken>
  <Request>verifyToken</Request>
  <TransToken>{{TransToken}}</TransToken>
</API3G>

Support

If you hit an unclear gateway response, contact DPO Support and include:

  • TransRef or TransToken
  • CompanyRef
  • Full raw XML request (with token masked)
  • Full raw XML response
  • Timestamp and environment