Initiating A Wireout Payout

When you're ready to perform a wire-out transaction you can check for an estimate of fees by passing in a dollar amount and callinggetWireoutNairaEstimate.

This is an estimate for reference purposes, the final transaction amount might vary slightly depending on when the payment is initiated and when it expires.

getWireoutNairaEstimate.gql
query {
  getWireoutNairaEstimate(dollarAmount: 400){
    estimate
    expiresAt
    rate
  }
}

Then you can perform a wire out transfer, You'll need the id returned when you created a wire out account then specific the amount:

createPayout.gql
mutation {
  createPayout(wireoutAccount: "fsaffkls32s", amount: 400) {
    amount
    createdAt
    id
    status
    trackingRef
    wireoutAccount
  }
}

Save the trackingRef and idthis will allow to periodically check the status of your transaction.

Last updated