GET
/
api
/
v1
/
transaction
/
{transactionId}
curl --request GET \
  --url https://api-m.dexchange.sn/api/v1/transaction/{transactionId} \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "transaction": {
    "ServiceName": "<string>",
    "ServiceCode": "<string>",
    "Amount": 123,
    "Number": "<string>",
    "Status": "<string>",
    "Initiated_at": "2023-11-07T05:31:56Z",
    "Completed_at": "2023-11-07T05:31:56Z"
  }
}

Transaction Status

Retrieve the details and status of a specific transaction.

Endpoint

GET /api/v1/transaction/{transactionId}

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer YOUR_API_KEY

URL Parameters

ParameterTypeDescription
transactionIdstringUnique transaction identifier

Response

Successful Response (200)

{
  "message": "Transaction fetched successfully",
  "transaction": {
    "ServiceName": "Orange Money Senegal",
    "ServiceCode": "OM_SN_CASHOUT",
    "OperatorApi": "OM789012345",
    "Type": "CASHOUT",
    "Amount": 1000,
    "Number": "771234567",
    "Status": "SUCCESS",
    "Initiated_at": "2024-03-20T10:30:00Z",
    "Completed_at": "2024-03-20T10:35:00Z"
  }
}

Error Response (404)

{
  "message": ["No transaction found"],
  "success": false
}

Error Codes

HTTP CodeDescription
400Invalid parameters
401Invalid API key
403API under maintenance
404Transaction not found

Request Example

curl -X GET https://api-m.dexchange.sn/api/v1/transaction/TID123456789 \
  -H "Authorization: Bearer YOUR_API_KEY"

Notes

  1. Possible Statuses

    • PENDING - Awaiting processing
    • PROCESSING - Being processed
    • SUCCESS - Transaction successful
    • FAILED - Transaction failed
    • CANCELLED - Transaction cancelled
  2. Security

    • Only transactions linked to your API key are accessible
    • Expired transactions are also returned
    • History is maintained for reference

Authorizations

Authorization
string
header
required

Entrez votre clé API comme: Bearer <API_KEY>

Path Parameters

transactionId
string
required

ID de la transaction

Response

200
application/json

Transaction trouvée

The response is of type object.

GET
/
api
/
v1
/
transaction
/
{transactionId}
curl --request GET \
  --url https://api-m.dexchange.sn/api/v1/transaction/{transactionId} \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "transaction": {
    "ServiceName": "<string>",
    "ServiceCode": "<string>",
    "Amount": 123,
    "Number": "<string>",
    "Status": "<string>",
    "Initiated_at": "2023-11-07T05:31:56Z",
    "Completed_at": "2023-11-07T05:31:56Z"
  }
}

Transaction Status

Retrieve the details and status of a specific transaction.

Endpoint

GET /api/v1/transaction/{transactionId}

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer YOUR_API_KEY

URL Parameters

ParameterTypeDescription
transactionIdstringUnique transaction identifier

Response

Successful Response (200)

{
  "message": "Transaction fetched successfully",
  "transaction": {
    "ServiceName": "Orange Money Senegal",
    "ServiceCode": "OM_SN_CASHOUT",
    "OperatorApi": "OM789012345",
    "Type": "CASHOUT",
    "Amount": 1000,
    "Number": "771234567",
    "Status": "SUCCESS",
    "Initiated_at": "2024-03-20T10:30:00Z",
    "Completed_at": "2024-03-20T10:35:00Z"
  }
}

Error Response (404)

{
  "message": ["No transaction found"],
  "success": false
}

Error Codes

HTTP CodeDescription
400Invalid parameters
401Invalid API key
403API under maintenance
404Transaction not found

Request Example

curl -X GET https://api-m.dexchange.sn/api/v1/transaction/TID123456789 \
  -H "Authorization: Bearer YOUR_API_KEY"

Notes

  1. Possible Statuses

    • PENDING - Awaiting processing
    • PROCESSING - Being processed
    • SUCCESS - Transaction successful
    • FAILED - Transaction failed
    • CANCELLED - Transaction cancelled
  2. Security

    • Only transactions linked to your API key are accessible
    • Expired transactions are also returned
    • History is maintained for reference

Authorizations

Authorization
string
header
required

Entrez votre clé API comme: Bearer <API_KEY>

Path Parameters

transactionId
string
required

ID de la transaction

Response

200
application/json

Transaction trouvée

The response is of type object.