For the complete documentation index, see llms.txt. This page is also available as Markdown.

Adfali

Provided by the Bank of Commerce and Development

Send OTP

This request will validate the customer identity, send OTP and register an unpaid invoice.

Send OTP

POST https://api.plutus.ly/api/v1/transaction/edfali/verify

Send the OTP to the customer's phone number to initiate the transaction

Headers

Name
Type
Description

Authorization*

String

Bearer: [Access token]

X-API-KEY*

String

API Key

Request Body

Name
Type
Description

mobile_number*

String

Mobile number 09XXXXXXXX

amount*

String

Transaction amount in Libyan dinars.

Formatting is allowed with a maximum of two decimal places: XXX, XX.X, XX.XX

{
    "status": 200,
    "result": {
        "process_id": xxxxxxxxxxxxx
    },
    "message": "OTP has been sent to your mobile number"
}
{
    "error": {
        "status": 4xx,
        "code": "ERROR_CODE_PLACEHOLDER",
        "message": "ERROR_MESSAGE_PLACEHOLDER"
    }
}

You can review the Errors section for all possible errors

Check out the example Verify Process (Send OTP) in the Plutu PHP Examples document on GitHub.

Confirm

Pay the unpaid transaction

Confirm

POST https://api.plutus.ly/api/v1/transaction/edfali/confirm

Confirm to pay the transaction

Headers

Name
Type
Description

Authorization*

String

Bearer: [Access token]

X-API-KEY*

String

API Key

Request Body

Name
Type
Description

process_id*

String

Process ID is returned in the verify step

code*

String

OTP code is sent to customer's phone number

amount*

String

Transaction amount in Libyan dinars.

Formatting is allowed with a maximum of two decimal places: XXX, XX.X, XX.XX

invoice_no*

String

Invoice number associated with transaction, must be unique and not previously used.

customer_ip

String

Customer IP address

You can review the Errors section for all possible errors

Check out the example Confirm Process (Pay) in the Plutu PHP Examples document on GitHub.

Last updated