Yogupay
  • Welcome!
  • Getting Started
    • Signing Up
    • Onboarding Process
    • Environments
    • Compliance
      • Documents Required
      • Terms & Conditions
      • Licenses
      • Privacy Policy
  • Business Dashboard
    • Login
    • Dashboard
    • View Balances
    • Add Money (Deposit)
    • Adding a Beneficiary
    • Send Money
    • Swap Currencies
    • Whitelist your IPs
    • Viewing Transactions
  • Developers
    • Authentication
    • API response codes
    • 🏦Bank Codes
    • 💱Currency Codes
    • View Account Balances
    • View All Transactions
    • Get Transaction By ID
    • 🌍Payout Africa
      • 🇬🇭Payout Ghana
      • 🇰🇪Payout Kenya
      • 🇳🇬Payout Nigeria
        • Verify Bank Account NGN
      • 🇺🇬Payout Uganda
      • 🇨🇲Payout Cameroon
      • 🇨🇮Payout Ivory Coast
    • 🌎Payout LATAM
Powered by GitBook
On this page
  1. Developers

Get Transaction By ID

This endpoint retrieves the details of a specific transaction using the transaction code.

POST / auth/view-transaction

The request should include the transaction code in the raw request body.

Headers

Name
Value

Content-Type

application/json

Token

<token>

Body

Name
Type
Description

transaction_code

string

The Transaction Code of the transaction to be viewed.

payment_reference

string

A reference unique to your system

For the body of the request above, you can either use transaction_code or payment_reference to query the transaction

Response

curl --location 'http://sandbox.yogupay.com/auth/view-transaction' \
--header 'token: [Generated after login]' \
--data '{
  "transaction_code": "ECQ14Y4PQS"
}'

{
    "status": 0,
    "transaction": {
        "id": 6537,
        "transaction_code": "ECQ14Y4PQS",
        "transaction_type": "MOBILE MONEY",
        "transaction_source_currency_code": "KES",
        "source_amount": 50,
        "transaction_destination_currency_code": "KES",
        "destination_amount": 50,
        "transaction_charge": 0,
        "total_amount_charged": 50,
        "recipient_msisdn": 254702423791,
        "recipient_bank_account": "",
        "recipient_bank_code": "",
        "recipient_email": "johndoe@yogupay.com",
        "recipient_name": "John Doe",
        "sender_narrative": "Payment",
        "created_at": "2024-11-04T14:06:23.000Z",
        "status": 2
    },
    "transaction_status": "Successful"
}
PreviousView All TransactionsNextPayout Africa

Last updated 22 days ago