مركز المطورين

مستكشف الـ API

عدّل الحقول لبناء طلب حقيقي، وشاهد الكود الجاهز للنسخ ونموذج الاستجابة المتوقعة. لا يتم تنفيذ أي عملية حقيقية من هذه الصفحة.

المعاملات

الطلب

curl 'https://sandbox-api.nmapay.com/api/v1/payment-gateway/initiate' \
  -H 'X-API-KEY: <YOUR_API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
  "orderId": "12345",
  "currency": "SAR",
  "amount": 100,
  "auth": "N",
  "recurringInit": "N",
  "customerDetails": {
    "name": "John Doe",
    "email": "john@example.com",
    "phone": "+966500000000"
  },
  "successUrl": "https://your-site.com/success",
  "failureUrl": "https://your-site.com/failure"
}'

الاستجابة

اضغط «شغّل الطلب» لعرض نموذج الاستجابة.