Creating Payouts

Validate Addresses Before Making Requests

Before making an API call to create a payout, we highly recommend pre-validate the destination address format to reduce the number of errors.

It is recommended because users sometimes submit wrong addresses e.g. xyz - in such a case, the API call will result in the following error message from our API:

{
  "errorList": [
    {
      "parameter": "payOutInstruction",
      "code": "invalidPayout",
      "message": "Invalid Instruction for Payout"
    }
  ]
}

Please use the following endpoint to pre-validate addresses before making your POST /api/v1/pay/summary call:

Validate Address

Use Unique References

When creating payout transactions, make sure that you use a unique value in the reference field for your POST /api/pay/summary call. Otherwise, the API responds with a relevant error message:

{
  "errorList": [
    {
      "parameter": "reference",
      "code": "unique",
      "message": "Duplicate Reference"
    }
  ]
}

Examples

Below you can see Payout cURL examples for each one of the cryptocurrencies that Coindirect supports.

Last updated

Was this helpful?