201Successful Response
Schema: SuccessEnvelope_BillResponse_
successbooleanmessagestringcodestringdataBillResponse
/api/v1/billsCreate a new bill in draft status. Optionally include 'recurring' config to also create a recurring template.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: BillCreateRequest
descriptionstringDescription of what the bill is for.
currencystringCurrency for the bill (USD, CAD, AUD, EUR, or GBP). Defaults to business default.
vendor_idstringUUID of the vendor this bill is from.
bill_numberstringBill/invoice number from the vendor. Auto-generated if not provided.
payment_term_idstringOptional UUID of the payment term the vendor billed under (Net 30, Due on Receipt ...). Recorded for reference; the due date is its own field, so a date you set yourself always wins over the term.
typestringBill type: 'recurring' (monthly rent, subscriptions) or 'one_time'.
expected_amountintegerExpected bill amount in cents.
expected_paid_on_datestring · date-time | stringExpected payment date (ISO 8601 format).
s3_keystringS3 key of uploaded bill document (PDF/image).
recurringRecurringConfigIf provided, creates a recurring template for this bill.
submitted_for_reviewbooleanWhen true, marks this draft as a client-submitted expense and notifies the assigned advisor to confirm or deny it.
Schema: SuccessEnvelope_BillResponse_
successbooleanmessagestringcodestringdataBillResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.