QorePay logo
QorePay logo

Retrieve a billing template client by client's ID.

GET

https://gate.qorepay.com/api/v1/billing_templates/{template-id}/clients/{client-id}

HEADER PARAMS

  • authorization

    String

    required

    Set value to BEARER SECRET_KEY

  • content-type

    String

    required

    Set value to JSON

PATH PARAMS

  • template_id

    string

    required

    ID associated with the billing template.

  • client_id

    string

    required

    ID associated with the client.

RESPONSES

  • 200

    OK

Query

Javascript


  const options = {
    method: 'GET',
    headers: {
      accept: 'application/json'
    }
  };

  fetch('https://gate.qorepay.com/api/v1/billing_templates/{id}/clients/{id}', options)
    .then(response => response.json())
    .then(response => console.log(response))
    .catch(err => console.error(err));

Sample Response

JSON


{
  "results": [
    {
      "type": "string",
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "created_on": 1619740800,
      "updated_on": 1619740800,
      "client_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "number_of_billing_cycles_passed": 0,
      "invoice_reference": "string",
      "status": "inactive",
      "subscription_billing_scheduled_on": "2020-04-30",
      "payment_method_whitelist": [
        "string"
      ],
      "send_invoice_on_charge_failure": true,
      "send_invoice_on_add_subscriber": false,
      "send_receipt": true
    }
  ],
  "next": "string",
  "previous": "string"
}