Parameters
JSON body
Request body
application/jsoncostIdstringRequiredExternal id of the cost to edit.
namestringOptionalLength: 1–200
category"rent" | "energy" | "utilities" | "cleaning" | "marketing" | "payroll" | "supplies" | "insurance" | "taxes" | "services" | "other"Optionaltype"fixed" | "variable"OptionaldefaultAmountMoneynumberOptionalRange: 0–∞
appliesFromstringOptionalappliesTostring | nullOptionalOne of 2:
Variant 1
string
Variant 2
null
isActivebooleanOptionalrecurringIntervalMonthsnumberOptionalRange: 1–36
paymentDayOfMonthnumber | nullOptionalOne of 2:
Variant 1
number
Range: 1–28
Variant 2
null
notestring | nullOptionalOne of 2:
Variant 1
string
Variant 2
null
contactExternalIdstring | nullOptionalOne of 2:
Variant 1
string
External id of the supplier (shop__contact.external_id). null clears the link.
Variant 2
null
payerContactExternalIdstring | nullOptionalOne of 2:
Variant 1
string
External id of the "PLÁTCE" (shop__contact.external_id). null clears the link, omit to keep the current value.
Variant 2
null