- Loyalty Points — after you deduct points from the loyalty wallet.
- Direct Contribution — after you collect payment through your own infrastructure (no card or PSP data sent to Akhdar).
loyalty_points or direct_contribution, and Delivery Emissions may be enabled separately. See Contributions for the four supported combinations and request shapes.
Assumptions
You are integrating server-to-server. After API access is granted, your integration team receives a partner API key and an environment-specific base URL. The secret is shown once: store it securely and never log it. This credential is for partner server-to-server use only. Sandbox and Production are separate. Use the environment-specific base URL provided to your integration team.1
Request API access
Request API Access
Open Akhdar’s contact form to request API access.
2
Configure credentials
Set placeholders only. Replace them with the values provided to your integration team.
AKHDAR_API_KEY— partner API key{baseUrl}— environment-specific base URL
3
Confirm first contribution
Use the request for your Partner method.
- Loyalty Points
- Direct Contribution
After points deduction:
4
Check the response
A successful confirmation returns HTTP
201 with status: confirmed. The response includes contribution_method and method-specific fields (points or amount_halalas / partner_payment_reference).Save the transaction_id. A confirmed status is terminal and the contribution is non-refundable.
