Body
The commission to create.
-
The unique id.
-
The date and time of creation in UTC time.
-
The date and time last modification in UTC time.
-
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. -
The total amount in tax applied to the commission.
-
The total amount of fees applied to the commission.
-
The total amount in tax applied to just the fees for the commission.
-
The list of fees associated with the commission.
Represents a fee that is related to a commission.
-
A read only representation of an agent.
Additional properties are NOT allowed.
-
A read only representation of an office.
Additional properties are NOT allowed.
Responses
-
OK
-
Request succeeded.
-
Invalid request. See response body for details.
-
Unauthorized. See response body for details.
-
Permission denied. See response body for details.
-
Not found. See response body for details.
-
Conflict. See response body for details.
-
Validation failed. See response body for details.
curl \
--request POST 'https://api.lwolf.com/backoffice/v1/transactions/{transactionId}/tiers/{tierId}/commissions' \
--header "Content-Type: application/json" \
--data '{"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"}'
{
"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"
}
{
"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"
}
{
"id": "string",
"code": 0,
"details": [
"string"
],
"message": "string"
}
{
"id": "string",
"code": 0,
"details": [
"string"
],
"message": "string"
}
{
"id": "string",
"code": 0,
"details": [
"string"
],
"message": "string"
}
{
"id": "string",
"code": 0,
"details": [
"string"
],
"message": "string"
}
{
"id": "string",
"code": 0,
"details": [
"string"
],
"message": "string"
}
{
"id": "string",
"code": 0,
"details": [
"string"
],
"message": "string"
}