/hosekit/{hoseKitId}/price v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Hose Kits
postHoseKitIdPrice
Code samples
const inputBody = '{
"type": "object",
"properties": {
"params": {
"type": "object",
"properties": {
"customerId": {
"type": "string",
"format": "objectId",
"nullable": true,
"description": "Optional customer ID for pricing context"
}
}
}
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':{
"type": "string"
}
};
fetch('https://goldleaf.app/api/v1/hosekit/{hoseKitId}/price',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /hosekit/{hoseKitId}/price
Retrieve pricing information for a specific hose kit
Retrieves pricing information for a specific hose kit.
Body parameter
{
"type": "object",
"properties": {
"params": {
"type": "object",
"properties": {
"customerId": {
"type": "string",
"format": "objectId",
"nullable": true,
"description": "Optional customer ID for pricing context"
}
}
}
}
}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| Authorization | header | string | true | Bearer token for authentication |
| hoseKitId | path | string(objectId) | true | ID of the hose kit to get pricing for |
| body | body | object | false | none |
| » params | body | object | false | none |
| »» customerId | body | string(objectId)¦null | false | Optional customer ID for pricing context |
Example responses
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Pricing information retrieved successfully | None |
| 500 | Internal Server Error | Server error. | string |
