200Successful Response
Schema: SuccessEnvelope_VendorCreditResponse_
successbooleanmessagestringcodestringdataVendorCreditResponse
/api/v1/vendor-credits/{vendor_credit_id}Update a draft vendor credit.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
vendor_credit_idstringrequiredSchema: VendorCreditUpdate
amount_centsintegerCredit amount in cents
reasonVendorCreditReasonEnumReason for the vendor credit
descriptionstringDescription of the credit
bill_idstringOriginal bill being credited
ledger_idstringExpense or asset ledger to reverse when issued
issue_datestring · dateIssue date
line_itemsarray · VendorCreditLineItemLine items for credit detail
allocation_linesarray · JournalEntryLineItemSplit the credit across expense/asset accounts on issue. When provided, ledger_id is ignored.
internal_notesstringInternal notes
vendor_credit_numberstringVendor's reference number
Schema: SuccessEnvelope_VendorCreditResponse_
successbooleanmessagestringcodestringdataVendorCreditResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject