/hoseassembly/{hoseAssemblyId}/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 Assembly
postHoseAssemblyIdPrice
Code samples
const inputBody = '{
"type": "object",
"properties": {
"params": {
"type": "object",
"properties": {
"customerId": {
"type": "string",
"format": "objectId",
"description": "Optional customer ID for pricing"
}
}
}
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('https://goldleaf.app/api/v1/hoseassembly/{hoseAssemblyId}/price',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /hoseassembly/{hoseAssemblyId}/price
Retrieve pricing information for a specific hose assembly
Retrieves pricing information for a hose assembly by its ID, optionally for a specific customer.
Body parameter
{
"type": "object",
"properties": {
"params": {
"type": "object",
"properties": {
"customerId": {
"type": "string",
"format": "objectId",
"description": "Optional customer ID for pricing"
}
}
}
}
}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| hoseAssemblyId | path | string(objectId) | true | none |
| body | body | object | false | Optional customer ID to retrieve customer-specific pricing |
| » params | body | object | false | none |
| »» customerId | body | string(objectId) | false | Optional customer ID for pricing |
Example responses
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | none | None |
| 500 | Internal Server Error | Server error | string |
