Seller Team Quotas
The GetQuotaInfo endpoint returns information about the seller team quotas.
How to query seller team quotas
HTTP POST Request
| Request Type | Example URL |
|---|---|
| POST | {{url_base}}/GetQuotaInfo |
| Example | http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetQuotaInfo" |
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| SellerNo | String(25) | Yes | External code of the seller |
| ProductNo | String(25) | No | External code of the product |
| QuotaDate | DataHora | Yes | Quota date |
| ValidateSellerByUser | Boolean | No | Flag indicating that the seller external code will be validated by the user code |
Note
- When the
ProductNoparameter is not provided, quotas for all products will be returned.
Return
| Parameter | Type | Required | Description |
|---|---|---|---|
| WebServiceReturn | WebServiceReturn | Yes | Standard WebService response information in method execution |
| SalesTeamCode | Integer | Yes | Seller team code |
| SalesTeamName | String(25) | Yes | Seller team name |
| GetQuotaInfoDataList | GetQuotaInfoDataList | Yes | Object containing the seller team quota information |
📝 GetQuotaInfoDataList Object
The GetQuotaInfoDataList object represents a list of seller team quota information.
Return Parameters
Parameter Type Required Description ProductNo String(25) No External code of the product ProductionCode String(10) No Product code in production QuotaTotalQty Integer No Total quota QuotaConsumedQty Integer No Consumed quota QuotaAvailableQty Integer No Available quota
Request Example
curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetQuotaInfo"' \
--header 'Content-Type: application/json' \
--data '{
"SellerNo": "01.361",
"QuotaDate": "2025-01-07"
}'
Response Example
{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
},
"SalesTeamCode": 1001,
"SalesTeamName": "Equipe Norte",
"GetQuotaInfoDataList": [
{
"ProductNo": "67890",
"ProductionCode": "P1234",
"QuotaTotalQty": 500,
"QuotaConsumedQty": 200,
"QuotaAvailableQty": 300
}
]
}
🐞 Possible Errors
| Code | Message |
|---|---|
| QUO‑001 | The informed seller does not have a linked sales team! |
| QUO‑002 | No quota was found with the specified parameters! |