API Reference › Servicing Workspace › Accounting export › Replace the account mapping Replace the account mapping PUT https://sandbox.api.lendeasy.ai /v1/servicing/admin/accounting-export/mappings Implemented Bearer token ·MANAGE_SERVICING_ACCOUNTING_MAPPING
Replaces the mapping as a whole, so the set you send is the set in force.
cURL Node Python
Request
curl -X PUT https://sandbox.api.lendeasy.ai /v1/servicing/admin/accounting-export/mappings \
-H "Authorization: Bearer $TOKEN" \
-H "LendEasy-Tenant: $TENANT" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"mappings": [
{
"ledgerAccount": "LOANS_RECEIVABLE",
"externalAccountId": "42"
}
]
}' await fetch(`https://sandbox.api.lendeasy.ai /v1/servicing/admin/accounting-export/mappings` , {
method: "PUT" ,
headers: { Authorization: `Bearer ${token}` , "LendEasy-Tenant" : tenant, "Idempotency-Key" : idempotencyKey, "Content-Type" : "application/json" },
body: JSON.stringify({
"mappings": [
{
"ledgerAccount": "LOANS_RECEIVABLE",
"externalAccountId": "42"
}
]
}),
});requests.put(
f"https://sandbox.api.lendeasy.ai /v1/servicing/admin/accounting-export/mappings" ,
headers={"Authorization" : f"Bearer {token}" , "LendEasy-Tenant" : tenant, "Idempotency-Key" : idempotency_key},
json={
"mappings": [
{
"ledgerAccount": "LOANS_RECEIVABLE",
"externalAccountId": "42"
}
]
},
)200 400 403 409
{
"mappedAccounts": 18
}{
"developerMessage": "Request was understood but rejected; inspect errors for field-level causes.",
"httpStatusCode": "400",
"defaultUserMessage": "The request could not be applied.",
"userMessageGlobalisationCode": "validation.msg.validation.errors.exist",
"errors": []
}{
"developerMessage": "Request was understood but rejected; inspect errors for field-level causes.",
"httpStatusCode": "403",
"defaultUserMessage": "The request could not be applied.",
"userMessageGlobalisationCode": "error.msg.not.authorized",
"errors": []
}{
"developerMessage": "Request was understood but rejected; inspect errors for field-level causes.",
"httpStatusCode": "409",
"defaultUserMessage": "The request could not be applied.",
"userMessageGlobalisationCode": "idempotency.request.in.flight",
"errors": []
}Path & query parameters Field Type Description LendEasy-Tenant required in header string Opaque active LendEasy tenant-registry identifier. Supply exactly one instance; no alternate tenant selector is accepted. Idempotency-Key optional in header string Optional replay key for this logical mutation. Omission creates a fresh server-owned key for this attempt; blank, repeated, or longer-than-50-character values are rejected.
Body parameters Field Type Description mappings required array<object> ledgerAccount string externalAccountId string
cURL Node Python
Request
curl -X PUT https://sandbox.api.lendeasy.ai /v1/servicing/admin/accounting-export/mappings \
-H "Authorization: Bearer $TOKEN" \
-H "LendEasy-Tenant: $TENANT" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"mappings": [
{
"ledgerAccount": "LOANS_RECEIVABLE",
"externalAccountId": "42"
}
]
}' await fetch(`https://sandbox.api.lendeasy.ai /v1/servicing/admin/accounting-export/mappings` , {
method: "PUT" ,
headers: { Authorization: `Bearer ${token}` , "LendEasy-Tenant" : tenant, "Idempotency-Key" : idempotencyKey, "Content-Type" : "application/json" },
body: JSON.stringify({
"mappings": [
{
"ledgerAccount": "LOANS_RECEIVABLE",
"externalAccountId": "42"
}
]
}),
});requests.put(
f"https://sandbox.api.lendeasy.ai /v1/servicing/admin/accounting-export/mappings" ,
headers={"Authorization" : f"Bearer {token}" , "LendEasy-Tenant" : tenant, "Idempotency-Key" : idempotency_key},
json={
"mappings": [
{
"ledgerAccount": "LOANS_RECEIVABLE",
"externalAccountId": "42"
}
]
},
)200 400 403 409
{
"mappedAccounts": 18
}{
"developerMessage": "Request was understood but rejected; inspect errors for field-level causes.",
"httpStatusCode": "400",
"defaultUserMessage": "The request could not be applied.",
"userMessageGlobalisationCode": "validation.msg.validation.errors.exist",
"errors": []
}{
"developerMessage": "Request was understood but rejected; inspect errors for field-level causes.",
"httpStatusCode": "403",
"defaultUserMessage": "The request could not be applied.",
"userMessageGlobalisationCode": "error.msg.not.authorized",
"errors": []
}{
"developerMessage": "Request was understood but rejected; inspect errors for field-level causes.",
"httpStatusCode": "409",
"defaultUserMessage": "The request could not be applied.",
"userMessageGlobalisationCode": "idempotency.request.in.flight",
"errors": []
}