Skip to main content
POST
/
executePayment
executePayment
curl --request POST \
  --url https://dashu.sa/api/external/executePayment \
  --header 'Content-Type: application/json' \
  --data '
{
  "apiKey": "<string>",
  "data": {
    "Suppliers": [
      {}
    ]
  },
  "test": true
}
'
{
  "IsSuccess": true,
  "Message": "Invoice Created Successfully!",
  "ValidationErrors": null,
  "Data": {
    "InvoiceId": 927972,
    "IsDirectPayment": false,
    "PaymentURL": "https://demo.MyFatoorah.com/Ar/KWT/PayInvoice/Checkout?invoiceKey=0106292797237&paymentGatewayId=20",
    "CustomerReference": "noshipping-nosupplier"
  }
}

Documentation Index

Fetch the complete documentation index at: https://paydocs.dashu.sa/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

apiKey
string
required
The API Key of your account.
data
object
required
test
boolean
Set this property to true to send the request to the development environment.
{
  "IsSuccess": true,
  "Message": "Invoice Created Successfully!",
  "ValidationErrors": null,
  "Data": {
    "InvoiceId": 927972,
    "IsDirectPayment": false,
    "PaymentURL": "https://demo.MyFatoorah.com/Ar/KWT/PayInvoice/Checkout?invoiceKey=0106292797237&paymentGatewayId=20",
    "CustomerReference": "noshipping-nosupplier"
  }
}

Response properties

IsSuccess
boolean
required
The response status.
Message
string
required
The description of the response status.
ValidationErrors
array|null
required
List of validation errors (if any).
Data
object
required

Error Codes

Here’s a list of possible error codes of this endpoint.
CodeDescription
1Missing or invalid api key
2InvoiceValue is a required parameter.
3Suppliers is not valid.
4wrong supplier code.
5An error meessage from the bank.