Calculate Tier
Calculates the commissions and fees for a tier. No data is saved during this call and the only data that is used in the calculations is the data that is passed in the tier object.
Body
The tier object holding all the data to use in the calculation.
-
The unique id.
-
The date and time of creation in UTC time.
-
The date and time last modification in UTC time.
-
The name of the tier.
-
The close price for the tier.
-
The date the tier closed.
-
The code for the status of the tier.
Values are
C,F,O, orX. -
The unique id of the classification associated with this tier.
-
The total commission amount for the selling end or side of the tier.
-
The commission percentage for the selling end or side of the tier. This will be specified as a decimal. For example, 5% will be specified as 0.05.
-
The code representing the method used to calculate the selling commission.
Values are
AorP. -
The total commission amount for the buying end or side of the tier.
-
The commission percentage for the buying end or side of the tier. This will be specified as a decimal. For example, 5% will be specified as 0.05.
-
The code representing the method used to calculate the buying commission.
Values are
AorP. -
A read only representation of a transaction classification.
Additional properties are NOT allowed.
-
A collection of commissions associated with the tier.
Represents a commission for an agent on a transaction.
-
A collection of external commissions associated with the tier.
Represents a commission paid to an external agent involved in a transaction.
curl \
--request POST 'https://api.lwolf.com/backoffice/v1/tiers/calculate-tier' \
--header "Content-Type: application/json" \
--data '{"id":"string","name":"string","closeDate":"string","closePrice":0,"statusCode":"C","commissions":[{"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"}],"classification":{"code":"string","name":"string","endCount":0,"endTypeCode":"B"},"classificationId":"string","createdTimestamp":"string","modifiedTimestamp":"string","externalCommissions":[{"id":"string","amount":0,"endCode":"B","percentage":0,"externalAgent":{"id":"string","endCode":"B","lastName":"string","typeCode":"B","firstName":"string","addressCity":"string","companyName":"string","addressLine1":"string","addressLine2":"string","faxNumberMain":"string","phoneNumberMain":"string","createdTimestamp":"string","emailAddressMain":"string","addressPostalCode":"string","modifiedTimestamp":"string","paymentMethodCode":"B","addressCountryCode":"string","addressProvinceCode":"string","phoneNumberBusiness":"string","emailAddressBusiness":"string"},"externalAgentId":"string","createdTimestamp":"string","modifiedTimestamp":"string","paymentMethodCode":"B","calculationMethodCode":"A"}],"buyingCommissionAmount":0,"sellingCommissionAmount":0,"buyingCommissionPercentage":0,"sellingCommissionPercentage":0,"buyingCommissionCalculationMethodCode":"A","sellingCommissionCalculationMethodCode":"A"}'
{
"id": "string",
"name": "string",
"closeDate": "string",
"closePrice": 0,
"statusCode": "C",
"commissions": [
{
"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"
}
],
"classification": {
"code": "string",
"name": "string",
"endCount": 0,
"endTypeCode": "B"
},
"classificationId": "string",
"createdTimestamp": "string",
"modifiedTimestamp": "string",
"externalCommissions": [
{
"id": "string",
"amount": 0,
"endCode": "B",
"percentage": 0,
"externalAgent": {
"id": "string",
"endCode": "B",
"lastName": "string",
"typeCode": "B",
"firstName": "string",
"addressCity": "string",
"companyName": "string",
"addressLine1": "string",
"addressLine2": "string",
"faxNumberMain": "string",
"phoneNumberMain": "string",
"createdTimestamp": "string",
"emailAddressMain": "string",
"addressPostalCode": "string",
"modifiedTimestamp": "string",
"paymentMethodCode": "B",
"addressCountryCode": "string",
"addressProvinceCode": "string",
"phoneNumberBusiness": "string",
"emailAddressBusiness": "string"
},
"externalAgentId": "string",
"createdTimestamp": "string",
"modifiedTimestamp": "string",
"paymentMethodCode": "B",
"calculationMethodCode": "A"
}
],
"buyingCommissionAmount": 0,
"sellingCommissionAmount": 0,
"buyingCommissionPercentage": 0,
"sellingCommissionPercentage": 0,
"buyingCommissionCalculationMethodCode": "A",
"sellingCommissionCalculationMethodCode": "A"
}
{
"id": "string",
"name": "string",
"closeDate": "string",
"closePrice": 0,
"statusCode": "C",
"commissions": [
{
"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"
}
],
"classification": {
"code": "string",
"name": "string",
"endCount": 0,
"endTypeCode": "B"
},
"classificationId": "string",
"createdTimestamp": "string",
"modifiedTimestamp": "string",
"externalCommissions": [
{
"id": "string",
"amount": 0,
"endCode": "B",
"percentage": 0,
"externalAgent": {
"id": "string",
"endCode": "B",
"lastName": "string",
"typeCode": "B",
"firstName": "string",
"addressCity": "string",
"companyName": "string",
"addressLine1": "string",
"addressLine2": "string",
"faxNumberMain": "string",
"phoneNumberMain": "string",
"createdTimestamp": "string",
"emailAddressMain": "string",
"addressPostalCode": "string",
"modifiedTimestamp": "string",
"paymentMethodCode": "B",
"addressCountryCode": "string",
"addressProvinceCode": "string",
"phoneNumberBusiness": "string",
"emailAddressBusiness": "string"
},
"externalAgentId": "string",
"createdTimestamp": "string",
"modifiedTimestamp": "string",
"paymentMethodCode": "B",
"calculationMethodCode": "A"
}
],
"buyingCommissionAmount": 0,
"sellingCommissionAmount": 0,
"buyingCommissionPercentage": 0,
"sellingCommissionPercentage": 0,
"buyingCommissionCalculationMethodCode": "A",
"sellingCommissionCalculationMethodCode": "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"
}