Multi super order Id list

List of all super order id according to the link id.

Method


GET https://api.ninjapay.me/webextension/api/v1/fiat/realtime-payment-link/link/multi-order-list?page=1&search=&by_date=&filter=&sort=

Parameters

  • page : String - Page number for pagination

  • link_id; String - Link id of payment link.

  • date : String - Pass date in YYYY-MM-DD format (example 2024-01-01)

  • filter: String - Filter according to transaction status

  • sort: String - Sort by amount (value = ASC, DESC), if nothing is passed then sort by date desc.

Response

{
    "status": true,
    "page": 1,
    "total_page": 1,
    "next": true,
    "data": [
        {
            "title": "",
            "received_amount": "1",
            "total_amount": "1",
            "currency": "INR",
            "allow_partial": false,
            "single_use": true,
            "cus_phone": "",
            "cus_email": "",
            "cus_name": "",
            "ask_during_payment": null,
            "only_phone_number": null,
            "only_email": null,
            "link_expiry": null,
            "remainder_on_sms": null,
            "remainder_on_whatsapp": null,
            "invoice": null,
            "enable_qr_code": true,
            "customer_reference_id": null,
            "include_cust_ref_payment_link": true,
            "redirect_url": null,
            "include_order_id_redirection": false,
            "custom_thanks_msg": null,
            "custom_logo_url": "",
            "custom_button_text": null,
            "terms_conditions": null,
            "reference_note": null,
            "created_at": "2024-08-02T06:08:54.000Z",
            "updated_at": "2024-08-02T06:08:54.000Z",
            "status": "PAID",
            "extras": null,
            "type": "1",
            "super_order_id": "FT_RTPL_SOJi9xjlZULk3GZTdCJtbN",
            "link_id": "RTLC5YwJUrJlTGdQZXoFMdZ",
            "is_plugin_linked": true,
            "is_api_call": false,
            "renew_at": null,
            "expiry_days": null,
            "custom_webhook": "https://api.ninjapay.me/webextension/api/v1/fiat/paywall/webhook",
            "cus_phone_code": "",
            "allow_tip": false,
            "reference_order_id": null,
            "link": "https://ninjapay.me/fiat/pl/RTLC5YwJUrJlTGdQZXoFMdZ"
        }
    ],
    "message": "List of payment links"
}

Code Example

const params = new URLSearchParams({ page: 1 });

const options = {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'API_KEY'
  }
};

fetch('https://api.ninjapay.me/webextension/api/v1/fiat/realtime-payment-link/link'+params , options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
  

Last updated