Get Module
Retrieves the settings of a B2B module, such as quotes or shopping lists, and whether the module is enabled for the store.
HTTP Request
- URL:
/module/{module} - Method:
GET - Headers:
accessToken: Required. Your API access token.
- Required scope: None. Any valid access token can call this endpoint.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
module | String | Required. The module name. See the list below. |
Supported Modules
shoppingList, quote, dynamicPricing, offlineOrder, offlineInvoice, salesRep, corporate, zoneBasedProduct, storeCredit, processingFee, dynamicInventory, customerPartNumber, budgetManagement
cURL Example
curl --location '<BASE_URL>/module/quote' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The module settings were returned successfully.
- 400 Bad Request: The module name is not valid, or the module has not been set up.
Sample JSON Response
{
"success": true,
"data": {
"_id": "65f0c3a7d1e2f3a4b5c6d7e8",
"negotiatePrice": true,
"maxNegotiatePriceCount": 1,
"allowB2C": true,
"showGuestButton": true,
"defaultExpiryDays": 15,
"showButtonInPDP": true,
"status": true
}
}
Response Details
Module Data
| Field | Type | Description |
|---|---|---|
_id | String | Unique identifier of the module settings. |
status | Boolean | Whether the module is enabled for the store. |
| Other fields | Varies | The module's settings. They differ for each module; the example shows quote. |
Notes
- Module names are case-sensitive.
- Check
statusto know whether a feature is turned on before using its endpoints.