Skip to main content

Payment Auth from Web

Initiate a payment authorization request. The user receives a push notification on their MobileID app showing the transaction details to confirm or reject.

Endpoint

POST /api/organization/paymentauthorizationfromweb
https://sandbox-services.mobileid.dj/api/organization/paymentauthorizationfromweb

Headers

HeaderRequiredDescription
AuthorizationYesBearer YOUR_JWT_TOKEN

Query Parameters

ParameterTypeRequiredDescription
client_idstringYesNNI of the user authorizing the payment
preContextTitlestringYesContext message shown to the user on their device
transaction_idstringYesUnique transaction identifier from your system
timeoutintegerYesSeconds before the request expires (e.g. 15)
amountdecimalYesPayment amount (e.g. 62.65)
currencystringYesCurrency code (e.g. usd, djf)
beneficiary_namestringYesName of the payment recipient
beneficiary_bankstringYesBank of the payment recipient
beneficiary_accountstringYesAccount number of the payment recipient
referencestringNoOptional free-text reference for the transaction

Response

{
"ref": "<encrypted_reference_token>"
}
FieldTypeDescription
refstringReference token — use with Check Status to poll the result

Example Request

POST /api/organization/paymentauthorizationfromweb
?client_id=YOUR_CLIENT_NIN
&preContextTitle=Payment+confirmation
&transaction_id=TXN-20240418-001
&timeout=15
&amount=150.00
&currency=djf
&beneficiary_name=ACME+Corp
&beneficiary_bank=CAC
&beneficiary_account=00012345678
&reference=INV-2024-042
Host: sandbox-services.mobileid.dj
Authorization: Bearer YOUR_JWT_TOKEN

Notes

  • The transaction_id should be unique per transaction in your system.
  • The preContextTitle is displayed prominently on the user's device — keep it clear and concise.
  • After receiving the ref, poll Check Status until a terminal status is returned.