Resolve Installment Link

⚙️ Online Resolution Features

  • Web-optimized installment interface with mobile-responsive design
  • Email/SMS confirmation and digital receipt generation
  • Customer account creation and seamless redirect
📘

API Reference

For complete request/response schemas and interactive testing Resolve Installment link.

Request

POST /payment_links/{payment_link_id}/resolve

Parameters

ParameterTypeRequiredDescription
payment_link_idstring (UUID)Online payment link ID to resolve

Request Body (Optional)

{
  "device_type": "desktop",
  "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
  "referrer": "email_link",
  "customer_context": {
    "return_url": "https://mystore.com/order-complete",
    "language_preference": "en"
  }
}

Request Properties

PropertyTypeDescription
device_typestringDevice type accessing the payment link (desktop, mobile, tablet)
user_agentstringBrowser user agent for analytics
referrerstringSource that referred the customer
customer_context.return_urlstringURL to redirect customer after payment
customer_context.language_preferencestringCustomer's preferred language

Response

Success Response (200)

{
  "transaction": {
    "id": "c037cf31-0402-4706-a3be-973f8bc2e64c",
    "amount": "299.99000",
    "status": "pending",
    "payment_method": "CREDIT_CARD",
    "created_at": "2025-01-28T12:42:43.538320+03:00",
    "client_email": "[email protected]",
    "client_first_name": "Ahmed",
    "client_phone_number": "+966501234567"
  },
  "payment_interface": "web"
}

Error Response (400)

{
  "error": "Payment link expired",
  "error_code": "LINK_EXPIRED",
  "message": "This payment link has expired. Please contact the merchant to request a new payment link."
}

Response Properties

PropertyTypeDescription
transactionobjectComplete transaction details
transaction.idstring (UUID)Unique transaction identifier
transaction.amountstringTransaction amount with 5 decimal precision
transaction.statusstringTransaction status (pending, completed, failed)
transaction.payment_methodstringPayment method used by customer
payment_interfacestringRecommended interface (web, qr_display, terminal_native)