Skip to main content

Credit Payment

If you want to process credit payments and deduct the funds from your registered merchant account you can use this endpoint:

Endpoint

POST /agentPayment?hash={{hash}}

Base URL: https://edahab.net/api/api/

Request Body

These properties are essential for the process:

{
"apiKey": "your-api-key",
"transactionAmount": 1,
"phoneNumber": "65",
"transactionId": 123,
"currency": "SLSH"
}

Request Parameters

  • API Key: A unique string provided to you.
  • Transaction Amount: The desired transfer amount.
  • Phone Number: The recipient's phone number.
  • TransactionId: A unique identifier from your side that distinguishes the transaction.
  • Currency: USD or SLSH, with USD being the default.

Response Body

{
"TransactionStatus": "Approved",
"TransactionMesage": "You have sent x amount to x number",
"PhoneNumber": "INV123456789",
"TransactionId": "MP260222.1316"
}

Response Parameters

The properties of the response returned by the eDahab API are as follows:

  • TransactionStatus: Indicates whether transaction completed or not.
  • TransactionMesage: eDahab confirmation message.
  • PhoneNumber: The recipient's phone number.
  • currency: the currency