Set requested date for payment of purchase invoice
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
payments
-
bankCharges string
-
chartOfAccountsId integer
-
lossOnDebtors string
-
payrollPayments array[integer]
-
purchasePayments array[integer]
-
salesPayments array[integer]
-
valueDate string
PATCH /api-v1/purchase-invoice/{invoiceId}/payment/{paymentId}/requested-date
curl \
-X PATCH http://10.10.10.132/api-v1/purchase-invoice/{invoiceId}/payment/{paymentId}/requested-date \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '{"bankCharges":"string","chartOfAccountsId":42,"lossOnDebtors":"string","payrollPayments":[42],"purchasePayments":[42],"salesPayments":[42],"valueDate":"string"}'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
{
"bankCharges": "string",
"chartOfAccountsId": 42,
"lossOnDebtors": "string",
"payrollPayments": [
42
],
"purchasePayments": [
42
],
"salesPayments": [
42
],
"valueDate": "string"
}
Response examples (200)
{
"data": {},
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"data": "string",
"errorCode": "string",
"fieldName": "string",
"isSevere": true
}
]
},
"valid": true
}