projects.products

Overview

A lending product describes any sort of lending service that you want to offer to your users. The Lending Products API allows you to create and manage these service offerings which can be used across all your lending apps within a project. The core component of each product are the Lending Terms. These terms dictate how each lending contract is created.

"productId": string,
"productType": string,
"status": number,
"displayName": string,
"displayPriority": number,
"terms": object(LendingTerms),
"description": string | null,
"skuId": string | null,
"labels": object(Labels) | null

Fields

List

GET https://lending.wezaapis.com/v1/projects/{projectId}/products

Lists all lending products available for a project.

Path Parameters

Query Parameters

Headers

{
    "products": [
        {
            "uid": "b3143625-5171-5c3d-8fbf-97e100bd4bd0",
            "name": "projects/random-chars-191382/products/30_day_loan_1_repayment",
            "status": 1,
            "createdAt": "2020-07-27T14:40:53.747Z",
            "productId": "30_day_loan_1_repayment",
            "productType": "loan",
            "displayName": "30 day loan (1 repayment)",
            "displayPriority": 999,
            "terms": {
                "period": "30 days",
                "interest": {
                    "type": "compound",
                    "termPeriod": "7 days",
                    "baseRate": 0.15,
                    "adjustment": {
                        "action": "add",
                        "target": "repayment",
                        "valueType": "absolute"
                    },
                    "maxEffectiveRate": 0.8,
                    "riskPremiumRate": 0
                },
                "repaymentInterval": "30 days"
            },
            "charges": [
                {
                    "name": "adjustments/lending.wezaapis.com/product/service_charge",
                    "kind": "lending.wezaapis.com/product/service_charge",
                    "action": "deduct",
                    "target": "principal",
                    "valueType": "relative",
                    "displayName": "administration fee",
                    "value": 0.02
                }
            ],
            "labels": null,
            "description": "30 day loan with 1 repayment."
        }
    ],
    "nextPageToken": null
}

Request Body

The request body should be empty.

Response Body

If successful, the response will contain data with the following structure.

{
  "products": [
    {
      object(LendingProduct)
    }
  ],
  "nextPageToken": string,
}

Fields

Authorization

Requires any one of the following OAuth scopes:

  • platform

  • platform.lending

  • platform.lending:read

The authenticated user must have the lending.products.list permission.

Last updated