Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
PATCH
/api-v1/sales-invoice/{invoiceId}/payment/{paymentId}/payment-method
curl \
--request PATCH 'https://wyzio.app/api-v1/sales-invoice/{invoiceId}/payment/{paymentId}/payment-method' \
--header "Content-Type: application/json" \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42" \
--data '{"id":42,"currencyId":42,"businessUnitId":42,"accountNumber":"string","organizationId":42,"localizations":{"id":42,"en":"string","fr":"string","de":"string","it":"string"},"type":"BALANCE_SHEET","isActive":true,"startDate":"string","endDate":"string","isPurchaseInvoicesEnabled":true,"isSalesInvoicesEnabled":true,"isExpenseReportEnabled":true,"isCashAccountEnabled":true,"isPaymentMethodEnabled":true,"isFXAutoAdjustmentEnabled":true,"isBusinessUnitSplitEnabled":true,"warnings":"string","immobilizationChartOfAccountId":42,"immobilizationType":"LINEAR_DEPRECIATION_DIRECT"}'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42
# Payload
{
"id": 42,
"currencyId": 42,
"businessUnitId": 42,
"accountNumber": "string",
"organizationId": 42,
"localizations": {
"id": 42,
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"type": "BALANCE_SHEET",
"isActive": true,
"startDate": "string",
"endDate": "string",
"isPurchaseInvoicesEnabled": true,
"isSalesInvoicesEnabled": true,
"isExpenseReportEnabled": true,
"isCashAccountEnabled": true,
"isPaymentMethodEnabled": true,
"isFXAutoAdjustmentEnabled": true,
"isBusinessUnitSplitEnabled": true,
"warnings": "string",
"immobilizationChartOfAccountId": 42,
"immobilizationType": "LINEAR_DEPRECIATION_DIRECT"
}
Response examples (200)
{
"data": {},
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"valid": true
}