Get Transaction

This query returns information for a transaction initiated/authorized via the Transfers API. The reference parameter is a unique identifier for the payment on the client's end.

query {
  getTransaction(reference:"ref000100") {
      id
      reference
      amount
      sourceBankAccount
      sourceBankAccountName
      destinationBankAccount
      description
      createdAt
      status
    }
}

Response

{
  "data": {
    "getTransaction": {
      "id": "0afc3d1f-eebc-4609-8d78-75e9ad560492",
      "reference": "ref000100",
      "amount": 100,
      "sourceBankAccount": "1234567890",
      "sourceBankAccountName": "FirstName MiddleName LastName",
      "destinationBankAccount": "0123456789",
      "description": "",
      "createdAt": "2021-08-06 21:24:29.260101 +0100 WAT",
      "status": "Pending"
    }
  }
}

Request Parameters

Field

Scalar

Required

Description

reference

String

Yes

This is a unique identifier for the payment on the client's end

Response

Field

Scalar

Required

Description

id

String

Yes

This is a unique identifier for the payment on the client's end

reference

String

Yes

This is a unique identifier for the payment on the client's end

amount

Float

Yes

The amount that was to be transferred.

sourceBankAccount

String

Yes

The account number debit was attempted from

sourceBankAccountName

String

Yes

The account name on bank profile debit was attempted from

destinationBankAccount

String

Yes

The account number credit was attempted to

destinationBankCode

String

Yes

The bank code of the destinationAccountNumber

description

String

Yes

Description of the payment status

createdAt

String

Yes

The date the payment was initiated

status

String

Yes

The status of the payment

Last updated