Split sales invoice payment
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Path parameters
-
invoiceId
-
paymentId
Body Required
payment
-
bankCharges string
-
lossOnDebtors string
-
paidAmount string
-
receivableByAccountId integer
-
requestedAmount string
-
valueDate string
PUT /api-v1/sales-invoice/{invoiceId}/payment/{paymentId}/split
curl \
-X PUT http://wyzio.app/api-v1/sales-invoice/{invoiceId}/payment/{paymentId}/split \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '{"bankCharges":"string","lossOnDebtors":"string","paidAmount":"string","receivableByAccountId":42,"requestedAmount":"string","valueDate":"string"}'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
{
"bankCharges": "string",
"lossOnDebtors": "string",
"paidAmount": "string",
"receivableByAccountId": 42,
"requestedAmount": "string",
"valueDate": "string"
}
Response examples (200)
{
"data": {},
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"data": "string",
"errorCode": "string",
"fieldName": "string",
"isSevere": true
}
]
},
"valid": true
}