Skip to main content

Seller Team Quotas

The GetQuotaInfo endpoint returns information about the seller team quotas.


How to query seller team quotas​

HTTP POST Request

Request TypeExample URL
POST{{url_base}}/GetQuotaInfo
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetQuotaInfo"

Input Parameters​

ParameterTypeRequiredDescription
SellerNoString(25)YesExternal code of the seller
ProductNoString(25)NoExternal code of the product
QuotaDateDataHoraYesQuota date
ValidateSellerByUserBooleanNoFlag indicating that the seller external code will be validated by the user code
Note
  • When the ProductNo parameter is not provided, quotas for all products will be returned.

Return​

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information in method execution
SalesTeamCodeIntegerYesSeller team code
SalesTeamNameString(25)YesSeller team name
GetQuotaInfoDataListGetQuotaInfoDataListYesObject containing the seller team quota information

📝 GetQuotaInfoDataList Object​

The GetQuotaInfoDataList object represents a list of seller team quota information.

Return Parameters​

ParameterTypeRequiredDescription
ProductNoString(25)NoExternal code of the product
ProductionCodeString(10)NoProduct code in production
QuotaTotalQtyIntegerNoTotal quota
QuotaConsumedQtyIntegerNoConsumed quota
QuotaAvailableQtyIntegerNoAvailable 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​

CodeMessage
QUO‑001The informed seller does not have a linked sales team!
QUO‑002No quota was found with the specified parameters!