Body
The properties of the external commission to update.
-
The code for the end or side of the transaction.
Values are
BorS. -
The percentage of the commission paid to the external agent. This will be specified as a decimal. For example, 5% will be specified as 0.05.
-
The amount of the commission paid to the external agent.
-
The code for the method used to calculate the commission.
Values are
AorP. -
The code for the method of payment for the commission.
Values are
B,N, orE. -
The unique id of the external agent associated with this commission.
PATCH
/v1/external-commissions/{externalCommissionId}
curl \
--request PATCH 'https://api.lwolf.com/backoffice/v1/external-commissions/{externalCommissionId}' \
--header "Content-Type: application/json" \
--data '{"amount":0,"endCode":"B","percentage":0,"externalAgentId":"string","paymentMethodCode":"B","calculationMethodCode":"A"}'
Request example
{
"amount": 0,
"endCode": "B",
"percentage": 0,
"externalAgentId": "string",
"paymentMethodCode": "B",
"calculationMethodCode": "A"
}
Response examples (200)
{
"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"
}
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"
}