Create Installment linkAsk AIpost https://backend.sa.amwal.tech/payment_links/{store_id}/createPath Paramsstore_idstringrequiredYour store ID from the Merchant PortalBody Paramsamountdoublerequired≥ 0.01Payment amount in your store's currency. Must be greater than 0. Will be rounded to 5 decimal places.titlestringlength ≤ 200Payment link title that customers will see. For in-store: keep it short for terminal displays. For online: make it descriptive and professional.descriptionstringlength ≤ 500Detailed description of what the payment is for. This helps customers understand the charge. For in-store: include item details or receipt reference.order_idstringlength ≤ 50External identifier like the e-commerce order ID.singleUsebooleanDefaults to trueIf true, the payment link can only be used once. If false, multiple payments can be made until manually disabled or expired. Recommended: true for invoices and in-store transactions, false for donation links.truefalseselectedDatedate-timeExpiry date for the payment link in ISO 8601 format. For in-store: typically short duration (15-30 minutes). For online: longer periods (days/weeks). Leave empty for no expiration.client_phone_numberstringCustomer's phone number in international format (E.164). Used for SMS notifications and customer identification. For in-store: can be collected at terminal.client_emailstringCustomer's email address. For in-store: optional for digital receipts.client_first_namestringlength ≤ 50Customer's first name. Personalizes the payment experience and appears on receipts.client_last_namestringlength ≤ 50Customer's last name. Used together with first name for complete customer identification.address_requiredbooleanDefaults to falseSet to true if you need the customer to provide their address during payment. For in-store: rarely needed unless for delivery orders.truefalseclient_street1stringlength ≤ 100Customer's primary street address. Only used if you want to pre-fill address information.client_street2stringlength ≤ 100Secondary address line (apartment, suite, etc.). Optional address information.client_countrystringCustomer's country code in ISO 3166-1 alpha-2 format (2 letters). Examples: SA, AE, EG, US, GBclient_citystringlength ≤ 50Customer's city name. Used for billing and shipping address if required.client_statestringlength ≤ 50Customer's state or province. Required for some countries like US, Canada.client_postcodestringlength ≤ 20Customer's postal or ZIP code. Format varies by country.languagestringenumDefaults to arLanguage for the payment page and communications. 'en' for English, 'ar' for Arabic.enarAllowed:enarsend_smsbooleanDefaults to trueWhether to send SMS notifications to the customer. For in-store: can notify customer of successful payment. Requires valid phone number.truefalsesms_languagestringenumDefaults to arLanguage for SMS notifications. Independent of payment page language.arenAllowed:arensend_receipt_smsbooleanDefaults to falseSend digital receipt via SMS after successful payment. Particularly useful for in-store transactions.truefalseonly_show_bank_installmentsbooleanDefaults to falseIf true, only bank installment payment options will be shown to customers. Useful for high-value purchases.truefalseonly_show_pay_in_fullbooleanDefaults to falseIf true, only full payment options will be shown (no installments). Cannot be true if only_show_bank_installments is true.truefalsepasskey_enabledbooleanDefaults to falseEnable passkey authentication for enhanced security. Customers can use biometric authentication or security keys.truefalsecallback_urluriYour webhook URL that will receive payment status updates. Must be HTTPS. Essential for automated payment processing and real-time POS integration.metadataobjectCustom data that you want to associate with this payment link. Will be returned in webhooks and API responses. For in-store: include terminal info, cashier details, transaction context.metadata objectbranchstringlength ≤ 50Branch identifier if your business has multiple locations. Essential for in-store transactions to track location-based sales.Responses 200Online payment link created successfully. Share this link with your customer via email, SMS, or any messaging platform. 400Invalid input data for online payment 401Authentication failedUpdated about 2 months ago