Create Installment Link

Create Installment links for online transactions including e-commerce orders, invoices, and remote payments. Ideal for businesses collecting payments via email, SMS, or web sharing.

Online Flow

  • Generate Installment link via API or merchant portal
  • Share link with customer (email/SMS/messaging)
  • Customer completes payment online
  • Payment processes with confirmations sent
  • Digital receipt delivered automatically
  • Webhook notification sent to your system
πŸ“˜

API Reference

For complete request/response schemas and interactive testing Create Installment Link.

πŸ”— Endpoint

POST /payment_links/{store_id}/create

Path Parameters

ParameterTypeRequiredDescription
store_idstringβœ…Your unique store identifier from the Merchant Portal

Request Parameters

ParameterTypeRequiredDefaultDescription
amountnumberβœ…-Payment amount in your store's currency
titlestring❌-Payment link title customers will see
descriptionstring❌-Detailed description of the payment
singleUseboolean❌trueIf true, link can only be used once
selectedDatestring❌-Expiry date in ISO 8601 format
client_phone_numberstring❌-Customer phone in international format
client_emailstring❌-Customer email address
client_first_namestring❌-Customer first name
client_last_namestring❌-Customer last name
address_requiredboolean❌falseRequire customer address
languagestring❌"ar"Payment page language: "en" or "ar"
send_smsboolean❌trueSend SMS notifications
callback_urlstring❌-Webhook URL for payment updates
metadataobject❌-Custom data for tracking

Request Example

{
  "amount": 299.99,
  "title": "Order #12345 - Premium Headphones",
  "description": "Wireless Noise-Cancelling Headphones - Black",
  "singleUse": true,
  "selectedDate": "2024-12-31T23:59:59Z",
  "client_phone_number": "+966501234567",
  "client_email": "[email protected]",
  "client_first_name": "Ahmed",
  "language": "en",
  "send_sms": true,
  "callback_url": "https://mystore.com/webhook/payment-complete"
}

Response Example

{
  "payment_link_id": "550e8400-e29b-41d4-a716-446655440000",
  "url": "https://pay.sa.amwal.tech/payment-link/550e8400-e29b-41d4-a716-446655440000"
}
{
  "error": "Validation Error",
  "error_code": "INVALID_AMOUNT",
  "message": "Amount must be greater than zero",
  "details": {
    "amount": ["This field must be a positive number"]
  }
}

Best Practices

  • Use longer expiry times for customer convenience
  • Include detailed descriptions and customer information
  • Enable email/SMS notifications
  • Use single-use links for invoices and orders
  • Collect customer address for shipping when needed