201Successful Response
Schema: SuccessEnvelope_VendorCreditResponse_
successbooleanmessagestringcodestringdataVendorCreditResponse
/api/v1/vendor-creditsCreate a new vendor credit in draft status.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: VendorCreditCreate
vendor_idstringrequiredVendor issuing the credit
amount_centsintegerrequiredCredit amount in cents
reasonVendorCreditReasonEnumVendorCreditReasonEnumReason for the vendor credit
descriptionstringDescription of the credit
bill_idstringOriginal bill being credited (optional)
ledger_idstringExpense or asset ledger to reverse when issued (defaults to Uncategorized Expense)
issue_datestring · dateIssue date (defaults to today)
line_itemsarray · VendorCreditLineItemOptional line items for credit detail
internal_notesstringInternal notes
vendor_credit_numberstringVendor's reference number from the credit document
Schema: SuccessEnvelope_VendorCreditResponse_
successbooleanmessagestringcodestringdataVendorCreditResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject