List deleted invoices you may still hold
Poll this to learn about invoices an operator deleted after you attached your reference to them. Discard your own copy of each, such as a draft in your ERP, then report it discarded. An item stays on the queue until you do. Report a whole page in one request with POST /v1/billing/batch/report-discarded. Refused with 400 when the organization has no invoicing integration that handles sending.
/v1/billing/withdrawal-queueAuthorizationOAuth2 access token · headerrequiredAn access token for an Application, from the client_credentials grant. An integration of your own uses the same grant. A connector from Hydda gets its token from the installation-token grant instead. Send it as Authorization: Bearer <token>.
limitintegerThe most items to return, from 1 to 200. Defaults to 50.
The deleted invoices to discard.
itemsobject[]requiredUp to limit deleted invoices, oldest first. Empty when there is nothing to discard.
Show propertiesHide properties
objectinvoiceIdstring<uuid>requiredThe id of the deleted invoice. Report the discard by it.
invoiceNumberintegerrequiredHydda One's own number for the deleted invoice.
documentKindstringrequiredWhether the document is an invoice or a credit note. A credit note names the invoice it credits.
invoicecredit-notebusinessContextIdstring<uuid> | nullrequiredThe business context that owned the contract the invoice billed. Null when unknown.
externalReferencestringrequiredYour own id for the invoice in your system, 1 to 200 characters and unique in the organization. Payments can be reported by it in place of Hydda One's id.
withdrawnAtstring<date-time>requiredWhen the invoice was deleted, as an ISO 8601 timestamp in UTC.
The request is not valid, or a business rule refused it. code names the rule.
typestringrequiredAlways about:blank.
titlestringrequiredThe HTTP status phrase, for example Not Found.
statusintegerrequiredThe HTTP status code.
detailstringWhat went wrong, for a person to read. Do not parse it.
codestringNames the rule that refused the request, when the failure has one. Match on this, not on detail.
VALIDATION_FAILEDBILLING_INTEGRATION_NOT_CONFIGUREDparametersobjectValues the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.
issuesobject[]With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.
The access token is missing, expired or not valid.
typestringrequiredAlways about:blank.
titlestringrequiredThe HTTP status phrase, for example Not Found.
statusintegerrequiredThe HTTP status code.
detailstringWhat went wrong, for a person to read. Do not parse it.
codestringNames the rule that refused the request. Match on this, not on detail.
parametersobjectValues the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.
issuesobject[]With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.
The token does not allow this request.
typestringrequiredAlways about:blank.
titlestringrequiredThe HTTP status phrase, for example Not Found.
statusintegerrequiredThe HTTP status code.
detailstringWhat went wrong, for a person to read. Do not parse it.
codestringNames the rule that refused the request. Match on this, not on detail.
parametersobjectValues the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.
issuesobject[]With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.