PayOrc
Payment Link

Payment Link Details

Fetch complete details of a payment link including status, amount, expiry, and transaction history.

Version: 3.0.0

Generate an API Key for the Payment Link channel before making requests.

Retrieve the full details of a payment link including its configuration, status, amount, expiry, customer information, and associated transaction list. Use the data_id returned from the create endpoint.

Endpoint

MethodURL
GEThttps://api.payorc.com/payment-links/v1/details?data_id=YOUR_LINK_ID

Please use the test credentials for sandbox testing.

Authentication

HeaderTypeDescription
merchant-keyStringYour merchant key
merchant-secretStringYour merchant secret

Query Parameters

FieldTypeRequiredDescription
data_idStringYesData ID of the payment link to fetch

Response (200 OK)

FieldTypeDescription
dataObjectPayment link details
data.data_idStringData ID of the payment link
data.link_idStringHuman-readable link reference number
data.amountObjectAmount details
data.amount.currencyStringISO 4217 currency code (3 characters)
data.amount.valueNumberPayment amount
data.shipping_feeNumberShipping fee
data.convenience_feeNumberConvenience fee
data.no_quantity_per_transactionNumberMaximum quantity per transaction
data.no_of_transactions_per_userObjectTransaction limits per user
data.no_of_transactions_per_user.no_limitStringyes if unlimited, no otherwise
data.no_of_transactions_per_user.frequencyStringFrequency: per_day, per_month, or till_expiry
data.no_of_transactions_per_user.quantityNumber | StringQuantity allowed, or "No Limit" when no_limit is yes
data.total_quantity_allowedObjectTotal quantity limits
data.total_quantity_allowed.no_limitStringyes if unlimited, no otherwise
data.total_quantity_allowed.frequencyStringFrequency: per_day, per_month, or till_expiry
data.total_quantity_allowed.quantityNumber | StringQuantity allowed, or "No Limit" when no_limit is yes
data.link_expiryObjectExpiry configuration
data.link_expiry.is_expiryStringyes if expiry is set, no otherwise
data.link_expiry.end_dateStringExpiry date (YYYY-MM-DD), or "No expiry" when is_expiry is no
data.payment_linkStringShareable payment URL
data.descriptionStringLink description
data.error_msgStringCustom error message (if set)
data.statusStringActivated or Deactivated
data.payment_listArrayTransaction list for this payment link
data.qr_codeStringQR code as base64 image
data.customer_nameStringCustomer name (empty string if not set)
data.customer_emailStringCustomer email (empty string if not set)
data.product_detailsStringProduct details (empty string if not set)
data.m_order_idStringMerchant order ID (empty string if not set)
data.m_customer_idStringMerchant customer ID (empty string if not set)
data.customer_mobileStringCustomer mobile number (empty string if not set)
data.customer_mobile_codeStringMobile country code (empty string if not set)
data.split_billNumber0 = disabled, 1 = enabled
data.tipNumber0 = disabled, 1 = enabled
data.urlsObjectRedirect and webhook URLs configured on this link
data.urls.successStringSuccess redirect URL (empty string if not set)
data.urls.failureStringFailure redirect URL (empty string if not set)
data.urls.cancelStringCancel redirect URL (empty string if not set)
data.urls.webhook_urlStringWebhook URL for orders from this link (empty string if not set)
messageStringResponse message
statusStringResponse status
codeStringResponse code (00 on success)

Code Examples

curl -X GET "https://api.payorc.com/payment-links/v1/details?data_id=lnk_8x7kP2mN4qR" \
  -H "merchant-key: YOUR_MERCHANT_KEY" \
  -H "merchant-secret: YOUR_MERCHANT_SECRET"

Example Response

{
  "data": {
    "data_id": "6a1d4f160b1b43999539e9ad1cc9565d",
    "link_id": "0000002058",
    "amount": {
      "currency": "AED",
      "value": 100
    },
    "shipping_fee": 50,
    "convenience_fee": 20,
    "no_quantity_per_transaction": 9,
    "no_of_transactions_per_user": {
      "no_limit": "no",
      "frequency": "per_day",
      "quantity": 3
    },
    "total_quantity_allowed": {
      "no_limit": "yes",
      "frequency": "per_day",
      "quantity": "No Limit"
    },
    "link_expiry": {
      "is_expiry": "yes",
      "end_date": "2026-12-31"
    },
    "payment_link": "https://checkout.payorc.com/checkout/qr/6a1d4f160b1b43999539e9ad1cc9565d",
    "description": "Product purchase",
    "error_msg": "",
    "status": "Activated",
    "payment_list": [],
    "qr_code": "data:image/png;base64,...",
    "customer_name": "",
    "customer_email": "",
    "product_details": "Wireless Bluetooth Headphones",
    "m_order_id": "ORD-2026-001",
    "m_customer_id": "CUST-123",
    "customer_mobile": "9876543210",
    "customer_mobile_code": "91",
    "split_bill": 0,
    "tip": 0,
    "urls": {
      "success": "https://merchant.example.com/success",
      "failure": "https://merchant.example.com/failure",
      "cancel": "https://merchant.example.com/cancel",
      "webhook_url": "https://merchant.example.com/webhook"
    }
  },
  "message": "Details fetched successfully.",
  "status": "success",
  "code": "00"
}

Error Response

{
  "message": "Invalid id.",
  "status": "fail",
  "code": "E0044"
}

On this page