> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spurtcommerce.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Credit

The Credit add-on provides customer account credit management for commerce transactions. It supports credit balances, transaction history, and the use of available credit during checkout, with configurable rules for credit lifecycle and notifications.

## Key Features

* Maintain customer credit balances.
* Record credit transactions for traceability.
* Integrate available credit as a payment option during checkout.
* Maintain transaction history and an audit trail.
* Support balance notifications and credit expiry management.

## Package Structure

```text theme={"theme":{"light":"github-dark-default","dark":"github-light-default"}}
Credit/
├── controllers/
├── migrations/
├── models/
├── repository/
└── service/
```

## How It Works

1. An administrator configures credit rules and customer eligibility.
2. Credit is assigned or adjusted according to the configured business process.
3. Customer credit transactions are recorded in the transaction history.
4. At checkout, the payment workflow can use available credit where applicable.
5. Balance and expiry notifications help administrators and customers monitor credit usage.

## Components

* Models represent customer credit and credit transactions.
* Controllers expose credit-management operations.
* The repository provides access to credit records.
* The service layer applies credit rules and transaction logic.
* Migrations create the required database structures.

## Configuration

Configure the following settings after the add-on has been discovered and enabled. Only apply settings supported by the supplied package version.

* Configure initial credit amounts for new customers, if that policy is used.
* Define credit expiry policies and notification thresholds.
* Set the transaction types and rules supported by the business.
* Validate how credit is presented as a checkout payment option.

## Installation (Pre-built Premium Add-on)

This add-on is delivered as a **pre-built JavaScript package** by SpurtCommerce. Install the supplied compiled files; **you do not need to run a TypeScript build**.

### Before you begin

* Confirm that the add-on package is intended for the SpurtCommerce version and edition installed in your project.
* Back up the application files and database before installing a new add-on or applying its migrations.
* Extract the supplied add-on archive. The package normally contains `index.js` (which exports the `spurtcommerceAddon` manifest), compiled folders such as `controllers/`, `models/`, `repositories/`, `services/`, `migrations/`, and may include an optional hook file and `package.json`.
* Work from the SpurtCommerce project root - the directory containing the application’s `main.js` and `package.json`.

### Step 1: Place the add-on in `add-ons/`

Create an `add-ons/` directory in the project root if it does not already exist. Copy the supplied add-on folder into it. Use the folder name provided with the add-on package and retain the supplied internal file structure.

There are two supported layouts.

**Layout A - compiled files directly inside the add-on folder**

```text theme={"theme":{"light":"github-dark-default","dark":"github-light-default"}}
my-spurtcommerce-project/
├── add-ons/
│   └── <addon-name>/
│       ├── index.js
│       ├── controllers/
│       ├── models/
│       ├── repositories/
│       ├── services/
│       └── migrations/
├── main.js
└── package.json
```

**Layout B - keep the `dist/` directory inside the add-on folder**

```text theme={"theme":{"light":"github-dark-default","dark":"github-light-default"}}
my-spurtcommerce-project/
├── add-ons/
│   └── <addon-name>/
│       ├── package.json
│       └── dist/
│           ├── index.js
│           ├── controllers/
│           ├── models/
│           ├── repositories/
│           ├── services/
│           └── migrations/
├── main.js
└── package.json
```

For Layout B, the add-on folder must contain a root-level `package.json` that points to the compiled entry file. For example:

```json theme={"theme":{"light":"github-dark-default","dark":"github-light-default"}}
{
  "name": "<addon-name>",
  "version": "1.0.0",
  "main": "dist/index.js"
}
```

Alternatively, create `add-ons/<addon-name>/index.js` with this content:

```javascript theme={"theme":{"light":"github-dark-default","dark":"github-light-default"}}
module.exports = require('./dist');
```

**Important:** The add-on registry does not discover a nested `dist/` directory as a package entry by itself. When retaining `dist/`, provide the root-level `package.json` or `index.js` entry point shown above.

### Step 2: Add add-on-specific environment settings

Check the add-on's configuration section and the README or handover notes included with the supplied package. If the add-on requires environment variables - for example, a Redis connection, socket port, payment gateway credentials, or an external service key - add the exact variables to the SpurtCommerce project's `.env` file.

Do not add placeholder values to production. Keep credentials private and do not commit real secrets to source control. If the add-on does not specify additional environment variables, no add-on-specific `.env` change is required.

### Step 3: Install only additional dependencies required by the add-on

The SpurtCommerce application already provides its core dependencies, such as TypeORM, `routing-controllers`, and `typedi`. Install an additional third-party package only when it is explicitly listed as a requirement in the supplied add-on documentation or package manifest.

Run any required command from the project root:

```bash theme={"theme":{"light":"github-dark-default","dark":"github-light-default"}}
npm install <package-name>
```

Do not reinstall the SpurtCommerce core dependencies or run a build for the pre-built add-on. The package handover notes should identify any additional dependency that is required.

### Step 4: Start or restart SpurtCommerce

Start the application using the normal command for your project. For example:

```bash theme={"theme":{"light":"github-dark-default","dark":"github-light-default"}}
node main.js
```

or:

```bash theme={"theme":{"light":"github-dark-default","dark":"github-light-default"}}
npm start
```

If the server is already running, restart it after copying the add-on files or changing `.env` values. No manual edits to `main.js` or SpurtCommerce core loader files are required when the project has the supported add-on registry.

### Step 5: Allow the core loaders to register the add-on

During startup, SpurtCommerce performs the add-on integration through its loader lifecycle:

1. **Discovery (`addonRegistry`):** Scans the `add-ons/` directory, loads the add-on entry file, and validates/caches its `spurtcommerceAddon` manifest.
2. **Database and migrations (`typeormLoader`):** Registers the add-on's TypeORM entities and migrations, runs the migrations, seeds the add-on's plugin record where defined, and calls `manifest.initialize(dataSource)` when provided.
3. **Plugin registration (`pluginLoader`):** Registers the add-on's `pluginName` in the application’s plugin module.
4. **API routes (`expressLoader`):** Mounts the add-on's store, vendor, and admin controllers under the `/api/*` route space.
5. **Hooks (`HookUtil`):** Registers the event hooks included with the add-on so relevant core events can invoke them.

This is performed by the host application at startup. Do not manually run the add-on migrations or register controllers/entities in core files unless the add-on's own handover guide specifically requires an exception.

### Step 6: Verify add-on discovery and activation

After startup, check the application console for a discovery message similar to:

```text theme={"theme":{"light":"github-dark-default","dark":"github-light-default"}}
[AddonRegistry] Discovered local add-on: <AddonPluginName> (<addon-name>)
```

Then verify that the plugin record is enabled. You can check the Plugins area in the Admin application or query the database:

```sql theme={"theme":{"light":"github-dark-default","dark":"github-light-default"}}
SELECT id, plugin_name, slug_name, plugin_status
FROM plugins
WHERE slug_name = '<addon-slug>';
```

Confirm that `plugin_status` is `1`. If the add-on is disabled, enable it through the Admin application where supported, or follow your platform’s plugin administration procedure.

Finally, test the add-on's documented API routes and its corresponding Admin, Vendor, or Store workflow. Test in a development or staging environment before enabling the add-on for production users.

### Installation troubleshooting

| Symptom | Likely cause | What to check |
| - | - | - |
| Add-on is not discovered | Entry file is missing, folder is misplaced, or nested `dist/` has no root entry point | Confirm `add-ons/<addon-name>/index.js`, or add the root `package.json` with `main: "dist/index.js"` / root shim as shown above |
| API returns `404` | Server was not restarted, controllers were not loaded, or package entry file was not found | Restart the server and check the `[AddonRegistry] Discovered local add-on` log |
| API returns `403` or plugin is unavailable | Plugin record is disabled | Check `plugin_status` and enable the add-on in Admin where available |
| Startup reports a missing module | An add-on-specific third-party dependency is not installed | Install the missing package in the project root only after confirming it is required by the add-on |
| Migration or database error | Host database configuration is invalid, migration failed, or the add-on is not compatible with the project version | Review startup logs, confirm the target SpurtCommerce version, back up the database, and contact SpurtCommerce support with the error details |

> **Version and delivery note:** Premium add-ons are supplied as compiled packages for a compatible SpurtCommerce release. Use the package delivered for your project version. Do not substitute source-build instructions, rename internal files, or mix compiled packages from different releases unless SpurtCommerce confirms compatibility.

## Operational Notes

Credit changes affect customer purchasing power. Test balance updates, checkout application, transaction history, and expiry handling with non-production accounts before enabling the module.

## Summary

The Credit add-on extends SpurtCommerce with the capabilities described above. It is delivered as a compiled premium package and is loaded by the SpurtCommerce add-on registry when installed according to the steps above.

## API Endpoints

The endpoint definitions below are derived from the supplied controller files. All routes are mounted under the SpurtCommerce `/api` prefix. Each entry describes the operation and lists the path, query, body, or file inputs identified by the controller annotations.

**Controller routes documented:** 34.

### Store API

#### StoreCreditController

### `POST /api/store-credit`

**Definition:** Applies for Credit.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Body | `annualTurnover` | String | Optional | Annual turnover range |
| Body | `balanceSheetDocument` | String | Optional | Balance sheet document filename |
| Body | `balanceSheetDocumentPath` | String | Optional | Balance sheet document path |
| Body | `businessType` | String | As defined by the controller | Business type (e.g. Private Limited) |
| Body | `companyLegalName` | String | As defined by the controller | Company legal name |
| Body | `expectedMonthlyPurchase` | Number | Optional | Expected monthly purchase |
| Body | `panNumber` | String | As defined by the controller | PAN number |
| Body | `preferredPaymentTerms` | String | Optional | Preferred payment terms (Net15/Net30/Net45/Net60/Net90) |
| Body | `primaryBankName` | String | Optional | Primary bank name |
| Body | `purposeOfCredit` | String | Optional | Purpose of credit |
| Body | `registeredAddress` | String | As defined by the controller | Registered business address |
| Body | `requestedCreditLimit` | Number | Optional | Requested credit limit |
| Body | `status` | Number | Optional | 0=draft, 1=pending |
| Body | `taxNumber` | String | Optional | GST/Tax number |
| Body | `taxReturnDocument` | String | Optional | Tax return document filename |
| Body | `taxReturnDocumentPath` | String | Optional | Tax return document path |
| Body | `termsAccepted` | Number | Optional | Terms accepted (0/1) |
| Body | `tradeReferences` | Object\[] | Optional | Trade references array |
| Body | `yearsInBusiness` | Number | As defined by the controller | Years in business |

**Request model:** `ApplyCreditRequest` is used by the controller for payload validation.

**Authorization:** The controller applies the `customer` access context.

### `GET /api/store-credit/dashboard`

**Definition:** Returns credit dashboard information for the vendor, including application-related summary information.

**Authorization:** The controller applies the `customer` access context.

### `GET /api/store-credit/activity`

**Definition:** Retrieves the recent Credit Activity.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Query | `limit` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `limit=10` | Number | Optional | Number of records |
| Query | `offset` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |

**Authorization:** The controller applies the `customer` access context.

### `GET /api/store-credit`

**Definition:** Retrieves the my Credit Application.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Query | `applicationId` | string | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `count` | boolean | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `limit` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `offset` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `status` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |

**Authorization:** The controller applies the `customer` access context.

### `POST /api/store-credit/pay-now`

**Definition:** Initiates (Offline Payment Request).

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Body | `amount` | Number | As defined by the controller | Amount to pay |
| Body | `remarks` | String | Optional | Payment remarks |

**Authorization:** The controller applies the `customer` access context.

### `GET /api/store-credit/master-data`

**Definition:** Returns the reference data used to populate the credit application workflow.

**Authorization:** The controller applies the `customer` access context.

### `GET /api/store-credit/:id`

**Definition:** Returns the credit application details for the requested application ID.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `id` | number | As defined by the controller | Identifies the resource in the route. |

**Authorization:** The controller applies the `customer` access context.

### `PUT /api/store-credit/:id`

**Definition:** Updates credit Application.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `id` | number | As defined by the controller | Application ID |

**Request model:** `UpdateCreditRequest` is used by the controller for payload validation.

**Authorization:** The controller applies the `customer` access context.

#### StoreCreditLimitExtensionController

### `POST /api/store-credit-limit/extension-request`

**Definition:** Submits a customer request to extend the available credit limit. The request body contains the requested extension amount and reason.

**Authorization:** The controller applies the `customer` access context.

### Vendor API

#### VendorCreditController

### `GET /api/vendor-credit/applications`

**Definition:** Returns the credit applications belonging to the vendor, with pagination and optional filtering by status or keyword.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Query | `count` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `keyword` | Not specified in controller signature | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `limit` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `offset` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `status` | Not specified in controller signature | As defined by the controller | Filter, pagination, or lookup value read from the query string. |

**Authorization:** The controller applies the `vendor` access context.

### `GET /api/vendor-credit/applications/:id`

**Definition:** Returns the selected credit application for the current vendor, identified by its application ID.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `id` | number | As defined by the controller | Identifies the resource in the route. |

**Authorization:** The controller applies the `vendor` access context.

### `POST /api/vendor-credit/applications/:id/decision`

**Definition:** Records the vendor decision for a credit application using the validated credit decision request payload.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `id` | number | As defined by the controller | Identifies the resource in the route. |

**Request model:** `CreditDecisionRequest` is used by the controller for payload validation.

**Authorization:** The controller applies the `vendor` access context.

### `GET /api/vendor-credit/dashboard`

**Definition:** Returns credit dashboard information for the vendor, including application-related summary information.

**Authorization:** The controller applies the `vendor` access context.

### `GET /api/vendor-credit/:id/transactions`

**Definition:** Retrieves the vendor - Customer Credit Transactions.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `id` | number | As defined by the controller | Application ID |
| Query | `limit` | number = 20 | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `limit=20` | Number | Optional | Limit |

**Authorization:** The controller applies the `vendor` access context.

### `GET /api/vendor-credit/payments`

**Definition:** Retrieves the pending Payment Requests.

**Authorization:** The controller applies the `vendor` access context.

### `PUT /api/vendor-credit/payments/:transactionId/confirm`

**Definition:** Confirms offline Payment.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `transactionId` | number | As defined by the controller | Transaction ID |
| Body | `remarks` | String | Optional | Vendor confirmation remarks |

**Authorization:** The controller applies the `vendor` access context.

### `POST /api/vendor-credit/transactions/debit`

**Definition:** Creates debit Transaction.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Body | `amount` | Number | As defined by the controller | Debit amount |
| Body | `customerId` | Number | As defined by the controller | Customer ID |
| Body | `description` | String | As defined by the controller | Description |
| Body | `dueDate` | String | Optional | Due date (YYYY-MM-DD) |
| Body | `invoiceRef` | String | Optional | Invoice reference |

**Authorization:** The controller applies the `vendor` access context.

### `POST /api/vendor-credit/aging/remind`

**Definition:** Sends payment Reminder.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `customerId` | number | As defined by the controller | Customer ID |

**Authorization:** The controller applies the `vendor` access context.

### `POST /api/vendor-credit/aging/:customerId/call-log`

**Definition:** Logs a Call.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `customerId` | number | As defined by the controller | Customer ID |
| Body | `notes` | String | As defined by the controller | Call notes |

**Authorization:** The controller applies the `vendor` access context.

### `POST /api/vendor-credit/aging/:customerId/escalate`

**Definition:** Escalates overdue Account.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `customerId` | number | As defined by the controller | Customer ID |
| Body | `reason` | String | As defined by the controller | Escalation reason |

**Authorization:** The controller applies the `vendor` access context.

### `PUT /api/vendor-credit/:customerId/update-limit`

**Definition:** Updates customer Credit Limit.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `customerId` | number | As defined by the controller | Customer ID |
| Body | `newLimit` | Number | As defined by the controller | New credit limit |
| Body | `reason` | String | As defined by the controller | Reason for change |

**Authorization:** The controller applies the `vendor` access context.

### `PUT /api/vendor-credit/:customerId/close-credit`

**Definition:** Updates vendor - Close Customer Credit.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `customerId` | number | As defined by the controller | Customer ID |
| Body | `reason` | String | As defined by the controller | Reason for closing credit |

**Authorization:** The controller applies the `vendor` access context.

### `GET /api/vendor-credit/top-accounts`

**Definition:** Retrieves the top Credit Accounts.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Query | `duration` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `limit` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `limit=5` | Number | Optional | Number of top accounts |

**Authorization:** The controller applies the `vendor` access context.

### `GET /api/vendor-credit/recent-activity`

**Definition:** Retrieves the full Recent Activity List.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Query | `limit` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `limit=20` | Number | Optional | Limit |
| Query | `offset` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `offset=0` | Number | Optional | Offset |

**Authorization:** The controller applies the `vendor` access context.

### `PUT /api/vendor-credit/extension-requests/:customerId/decision`

**Definition:** Approves or Reject Extension Request.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `customerId` | number | As defined by the controller | Customer ID |
| Body | `action` | String | As defined by the controller | approve / reject |
| Body | `remarks` | String | Optional | Vendor remarks |

**Authorization:** The controller applies the `vendor` access context.

#### VendorCreditLimitExtensionController

### `GET /api/vendor-credit-limit/list`

**Definition:** Returns vendor credit-limit extension requests, with pagination and optional status or keyword filtering.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Query | `count` | boolean | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `keyword` | string | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `limit` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `offset` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |
| Query | `status` | number | As defined by the controller | Filter, pagination, or lookup value read from the query string. |

**Authorization:** The controller applies the `vendor` access context.

### `GET /api/vendor-credit-limit/:id`

**Definition:** Returns the details of a selected credit-limit extension request.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `id` | number | As defined by the controller | Identifies the resource in the route. |

**Authorization:** The controller applies the `vendor` access context.

### `POST /api/vendor-credit-limit/:id/decision`

**Definition:** Records the vendor decision for the selected credit-limit extension request.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Path | `id` | number | As defined by the controller | Identifies the resource in the route. |

**Authorization:** The controller applies the `vendor` access context.

#### VendorCreditPolicyController

### `GET /api/vendor-credit/policy`

**Definition:** Retrieves the credit Policy.

**Authorization:** The controller applies the `vendor` access context.

### `PUT /api/vendor-credit/policy`

**Definition:** Updates credit Policy.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Body | `approvalHierarchy` | Object\[] | Optional | Array of \{ level, role, maxLimit } |
| Body | `autoApproveEnabled` | Number | Optional | 0 or 1 |
| Body | `autoApproveLimitCap` | Number | Optional | Max limit for auto-approve |
| Body | `autoApproveScoreThreshold` | Number | Optional | Min score for auto-approve |
| Body | `autoRejectEnabled` | Number | Optional | 0 or 1 |
| Body | `autoRejectScoreThreshold` | Number | Optional | Max score for auto-reject |
| Body | `defaultPaymentTerms` | String | Optional | Net15 / Net30 / Net45 / Net60 / Net90 |
| Body | `dynamicLimitIncreaseEnabled` | Number | Optional | 0 or 1 |
| Body | `interestRate` | Number | Optional | Interest rate % per month |
| Body | `maxCapExistingBuyer` | Number | Optional | Max credit cap for existing buyers |
| Body | `maxCapNewBuyer` | Number | Optional | Max credit cap for new buyers |
| Body | `riskTolerance` | String | Optional | low / moderate / high |
| Body | `turnoverMultiplier` | Number | Optional | % of turnover as recommended limit |
| Body | `weightBankStatement` | Number | Optional | Bank statement weightage |
| Body | `weightBureauScore` | Number | Optional | Bureau score weightage |
| Body | `weightBusinessAge` | Number | Optional | Business age weightage |
| Body | `weightGstCompliance` | Number | Optional | GST compliance weightage |

**Authorization:** The controller applies the `vendor` access context.

### `POST /api/vendor-credit/policy/reset`

**Definition:** Processes reset Credit Policy to Default.

**Authorization:** The controller applies the `vendor` access context.

### `GET /api/vendor-credit/policy/customer/:customerId`

**Definition:** Retrieves the customer-Specific Policy.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Body | `customerId` | Number | As defined by the controller | Customer ID |

**Authorization:** The controller applies the `vendor` access context.

### `PUT /api/vendor-credit/policy/customer/:customerId`

**Definition:** Updates customer-Specific Policy Override.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Body | `customerId` | Number | As defined by the controller | Customer ID |

**Authorization:** The controller applies the `vendor` access context.

### `POST /api/vendor-credit/policy/customer/:customerId/reset`

**Definition:** Processes reset Customer Policy to Vendor Default.

**Inputs**

| Location | Parameter | Type | Requirement | Description |
| - | - | - | - | - |
| Body | `customerId` | Number | As defined by the controller | Customer ID |

**Authorization:** The controller applies the `vendor` access context.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.