English
Multi-unit Price Calculation Interface
About 133 wordsLess than 1 minute
2026-10-23
Description
Multi-unit Price Calculation Interface.
Request Specification
Method: POST + application/json
Endpoint: https://${Cloud Domain}/cgi/crm/v2/data/mutipleunit/service/calcpricebyunit?thirdTraceId=${Random String}
Headers: Refer to Common Parameters
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | Map | Yes | Data map |
| product_id | String | Yes | Product ID |
| unit_id | String | Yes | Unit of measure ID |
| quantity | Int | Yes | Quantity |
Request Example
{
"data": {
"product_id": "5a9907a1f125ae0a1axxxxxx",
"unit_id": "5a9907a1f125ae0a1axxxxxx",
"quantity": 1
}
}Response Parameters
| Parameter | Type | Description |
|---|---|---|
| traceId | string | Unique request ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | Error Codes |
Response Example
{
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}Notes
- Do not use the
messagefield in the response for logical judgments, aserrorMessagemay change.
