Splits the specified purchase invoice payment. Returns 200 on success, or 400 if the operation is not valid.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
PUT
/api-v1/purchase-invoice/{invoiceId}/payment/{paymentId}/split
curl \
--request PUT 'https://wyzio.app/api-v1/purchase-invoice/{invoiceId}/payment/{paymentId}/split' \
--header "Content-Type: application/json" \
--data '{"receivableByAccountId":42,"valueDate":"2026-01-01T00:00:00.000Z","requestedAmount":"100.55","paidAmount":"100.55","bankCharges":"100.55","lossOnDebtors":"100.55"}'
Request examples
# Headers
# Payload
{
"receivableByAccountId": 42,
"valueDate": "2026-01-01T00:00:00.000Z",
"requestedAmount": "100.55",
"paidAmount": "100.55",
"bankCharges": "100.55",
"lossOnDebtors": "100.55"
}
Response examples (200)
{
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"valid": true
}