Body
The properties of the commission to update.
-
The unique id of the agent that gets the commission.
-
The total commission amount the agent is receiving. This includes any fees that were subtracted.
-
The percentage of the total commission for the agent. This will be specified as a decimal. For example, 5% will be specified as 0.05.
-
The code representing the end or side of the transaction.
Values are
BorS. -
The total number of ends or sides this commission represents.
Minimum value is
0, maximum value is2. -
The code representing the calculation method used for the commission. This will be "A" for amount or "P" for percentage.
Values are
AorP.
PATCH
/v1/commissions/{id}
curl \
--request PATCH 'https://api.lwolf.com/backoffice/v1/commissions/{id}' \
--header "Content-Type: application/json" \
--data '{"amount":0,"agentId":"string","endCode":"B","endCount":0,"percentage":0,"calculationMethodCode":"A"}'
Request example
{
"amount": 0,
"agentId": "string",
"endCode": "B",
"endCount": 0,
"percentage": 0,
"calculationMethodCode": "A"
}
Response examples (200)
{
"id": "string",
"fees": [
{
"id": "string",
"fee": {
"name": "string",
"shortName": "string"
},
"amount": 0,
"taxAmount": 0,
"percentage": 0,
"taxPercentage": 0,
"createdTimestamp": "string",
"modifiedTimestamp": "string",
"paymentMethodCode": "string",
"calculationMethodCode": "A"
}
],
"agent": {
"lastName": "string",
"firstName": "string",
"middleName": "string"
},
"amount": 0,
"office": {
"code": "string",
"name": "string"
},
"agentId": "string",
"endCode": "B",
"endCount": 0,
"officeId": "string",
"taxAmount": 0,
"percentage": 0,
"totalFeeAmount": 0,
"createdTimestamp": "string",
"modifiedTimestamp": "string",
"totalFeeTaxAmount": 0,
"calculationMethodCode": "A"
}
Response examples (400)
{
"id": "string",
"code": 0,
"details": [
"string"
],
"message": "string"
}
Response examples (401)
{
"id": "string",
"code": 0,
"details": [
"string"
],
"message": "string"
}
Response examples (403)
{
"id": "string",
"code": 0,
"details": [
"string"
],
"message": "string"
}
Response examples (404)
{
"id": "string",
"code": 0,
"details": [
"string"
],
"message": "string"
}
Response examples (422)
{
"id": "string",
"code": 0,
"details": [
"string"
],
"message": "string"
}