Reject up to 200 invoice proposals
Reject several proposals from the verification queue in one request. Each item is the reject body plus proposalId, and a proposal appears at most once. Each item is handled on its own, in the order sent, exactly as the single route handles it. A refused item changes nothing for the others, and its result carries the status and problem the single route answers, with the same code. The request itself answers 200 unless the token, the integration configuration or the body is refused, which happens before any item is handled. On a 429, wait as long as Retry-After says, then send the same batch again.
/v1/billing/batch/reject-proposalsAuthorizationOAuth2 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>.
application/jsonitemsobject[]requiredFrom 1 to 200 items. They are handled in this order.
Show propertiesHide properties
objectreasonstringrequiredThe reason in your own words, 1 to 1000 characters.
proposalIdstring<uuid>requiredThe id of the proposal this item rules on.
One result per item, in the order sent.
resultsobject[]requiredOne result per item, in the order the items were sent.
Show propertiesHide properties
objectstatusnumberrequiredAlways 200: the item was handled.
200resultInvoiceProposalrequiredInvoice material awaiting your verification. If you pass it, it becomes an invoice. Amounts are in minor units of currency.
Show propertiesHide properties
idstring<uuid>requiredThe proposal id. Pass or reject the proposal by it.
invoiceRunIdstring<uuid>requiredThe invoice run that created the proposal.
invoiceNumberintegerHydda One's own number, which the invoice keeps if the proposal passes. Absent only on some older rejected or cancelled proposals.
organizationIdstring<uuid>requiredThe organization the proposal belongs to.
operationalContextIdstring<uuid>requiredThe operational context the proposal was created in.
contractIdstring<uuid>requiredThe contract the proposal bills.
recipientAgentIdstring<uuid>requiredThe customer the proposal bills.
recipientAgentNamestringrequiredThe customer's name as written on the proposal.
billingAccountIdstring<uuid>requiredThe billing account the invoice would be sent to.
documentKindstringrequiredWhether the document is an invoice or a credit note. A credit note names the invoice it credits.
invoicecredit-notecreditedInvoiceIdstring<uuid>On a proposed credit note, the invoice it credits. Absent otherwise.
billingStreamstringrequiredWhere the charges come from: contractual for the contract's own products, running for purchases beside it, such as bookings.
contractualrunningrequestedInvoiceDatestring<date>requiredThe invoice date to issue with, as an ISO date (YYYY-MM-DD).
requestedDueDatestring<date>The due date to issue with, as an ISO date. Absent on a credit note.
paymentTermsDaysintegerThe payment terms in days that give the requested due date. Absent on a credit note.
statusstringrequiredWhere the proposal stands: proposed awaits your verdict, passed and rejected are your verdicts, and cancelled means an operator withdrew it.
proposedpassedrejectedcancelledcurrencystringrequiredAn ISO 4217 currency code, for example SEK.
SEKNOKDKKEURUSDGBPtotalNetMinorUnitsintegerrequiredThe total excluding VAT, in minor units. Negative on a credit note.
totalVatMinorUnitsintegerrequiredThe total VAT, in minor units.
totalGrossMinorUnitsintegerrequiredThe total including VAT, in minor units.
externalReferencestringYour own id for the invoice, attached when you passed the proposal.
rejectionReasonstringWhy the proposal was rejected, as it was reported.
passedAtstring<date-time>When the proposal was passed, as an ISO 8601 timestamp in UTC.
rejectedAtstring<date-time>When the proposal was rejected, as an ISO 8601 timestamp in UTC.
cancelledAtstring<date-time>When an operator cancelled the proposal, as an ISO 8601 timestamp in UTC.
createdAtstring<date-time>requiredWhen the proposal was created, as an ISO 8601 timestamp in UTC.
updatedAtstring<date-time>requiredWhen the proposal last changed, as an ISO 8601 timestamp in UTC.
statusintegerrequiredThe HTTP status the single route answers this refusal with, such as 400, 403, 404 or 409. 500 when the item failed unexpectedly.
problemProblemrequiredAn RFC 9457 problem details body. Every failed request returns one.
Show propertiesHide properties
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 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_CONFIGUREDBILLING_INTEGRATION_GATE_NOT_DECLAREDparametersobjectValues 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.
Too many requests. Wait and try again.
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.
BILLING_BATCH_THROTTLEDparametersobjectValues 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.