Void invoice
Void an invoice in a to_pay
status. This action generates a corresponding credit note.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
Indicates if an email for the generated credit note should be sent to the customer.
Response
Invoice ID.
"inv_1eTaiytfA0i2Va"
Invoice number. Generated by Hyperline using the sequential numbering and format defined in your settings.
"INV-35"
Type of the invoice.
invoice
: Legal invoice to be paid by your customer.credit_note
: Legal credit note cancelling an invoice and refunding your customer.document
: Custom document with no legal value. Can be generated from a subscription to meet specific needs.
invoice
, credit_note
, document
, child_invoice_ref
, child_creditnote_ref
"invoice"
If the invoice is of type document
you can give it a custom name (displayed on the final PDF).
Current invoice status.
draft
: Invoice is in draft mode (not finalized yet).open
: Invoice for the current billing period, which will be issued at the end of the period (used for invoices with usage-based data).grace_period
: Invoice is in a review period after being issued for the billing period and before becoming due for payment.to_pay
: Invoice is awaiting payment.partially_paid
: Invoice is partially paid.paid
: Invoice is fully paid.voided
: Invoice has been voided and is no longer valid.closed
: Invoice was not issued and has been discarded.error
: Invoice failed to be paid.archived
: A previous version of an invoice.charged_on_parent
: Invoice is charged on the parent customer.pending_parent_concat
: Invoice is pending invoices concatenation on the parent customer to be grouped.
draft
, open
, to_pay
, grace_period
, partially_paid
, paid
, voided
, closed
, error
, missing_info
, archived
, charged_on_parent
, pending_parent_concat
"paid"
Unique identifier generated by Hyperline to ease reconciliation with payment. Useful for bank transfer.
"V0KAHOU6J3"
Reference to the purchase order linked to the invoice.
"PO-12345"
ID of the original invoice this credit note is linked to (only used for credit note).
Number of the original invoice this credit note is linked to (only used for credit note).
Currency code. See ISO 4217.
EUR
, AED
, AFN
, XCD
, ALL
, AMD
, AOA
, ARS
, USD
, AUD
, AWG
, AZN
, BAM
, BBD
, BDT
, XOF
, BGN
, BHD
, BIF
, BMD
, BND
, BOB
, BRL
, BSD
, BTN
, NOK
, BWP
, BYR
, BZD
, CAD
, CDF
, XAF
, CHF
, NZD
, CLP
, CNY
, COP
, CRC
, CUP
, CVE
, ANG
, CZK
, DJF
, DKK
, DOP
, DZD
, EGP
, MAD
, ERN
, ETB
, FJD
, FKP
, GBP
, GEL
, GHS
, GIP
, GMD
, GNF
, GTQ
, GYD
, HKD
, HNL
, HRK
, HTG
, HUF
, IDR
, ILS
, INR
, IQD
, IRR
, ISK
, JMD
, JOD
, JPY
, KES
, KGS
, KHR
, KMF
, KPW
, KRW
, KWD
, KYD
, KZT
, LAK
, LBP
, LKR
, LRD
, LSL
, LYD
, MDL
, MGA
, MKD
, MMK
, MNT
, MOP
, MRO
, MUR
, MVR
, MWK
, MXN
, MYR
, MZN
, NAD
, XPF
, NGN
, NIO
, NPR
, OMR
, PAB
, PEN
, PGK
, PHP
, PKR
, PLN
, PYG
, QAR
, RON
, RSD
, RUB
, RWF
, SAR
, SBD
, SCR
, SDG
, SEK
, SGD
, SHP
, SLL
, SOS
, SRD
, SSP
, STD
, SYP
, SZL
, THB
, TJS
, TMT
, TND
, TOP
, TRY
, TTD
, TWD
, TZS
, UAH
, UGX
, UYU
, UZS
, VEF
, VND
, VUV
, WST
, YER
, ZAR
, ZMW
, ZWL
"EUR"
Sum of the amount and taxes amount of all products on the invoice. Expressed in the currency's smallest unit.
24000
Amount still need to be paid for the invoice. Expressed in the currency's smallest unit.
0
Amount already paid for the invoice. Expressed in the currency's smallest unit.
24000
Amount corresponding to the recurring non-variable part of the total amount. Expressed in the currency's smallest unit.
20000
Total amount without the taxes amount. Expressed in the currency's smallest unit.
20000
Tax amount of the invoice. Expressed in the currency's smallest unit.
20
Tax amount of the invoice. Expressed in the currency's smallest unit.
4000
standard
: Default behavior, tax is automatically computed and applied.exempt
: No tax rate applied because the customer country doesn't require it.reverse_charge
: No tax rate applied because the customer is eligible to EU reverse charge.manual
: Tax rate has been manually specified when creating the invoice.not_eligible
: You've disabled tax collection in this country.
exempt
, standard
, reverse_charge
, manual
, not_eligible
"standard"
Amount corresponding to the discounted part of the total amount. Expressed in the currency's smallest unit.
0
Conversion rate used between the invoice currency and your accounting currency.
1
Amount converted using the conversion rate. Expressed in the currency's smallest unit.
24000
Date of the conversion of the amount.
"2024-10-13T02:00:00.000Z"
ID of the payment method used to pay the invoice.
"pm_1ryTrMj4TTAT1N"
Custom note added to the invoice.
"Thank you for your purchase!"
ID of the subscription related to the invoice.
"sub_amiaWZ3lzDIWaoT"
Start date of the billing period of the invoice.
"2024-10-13T00:00:00.000Z"
End date of the billing period of the invoice.
"2024-11-13T00:00:00.000Z"
Emission date of the invoice.
"2024-10-13T00:00:00.000Z"
Due date of the invoice. Computed from the emission date and the payment delay configured in your settings.
"2024-11-12T00:00:00.000Z"
Date corresponding to the refund of the invoice, previously paid. A credit note exists with an original invoice ID equals to this invoice ID.
"2024-10-13T02:00:00.000Z"
Date the invoice grace period ended. This happens at the emission date + the grace period duration configured in your settings.
"2024-10-13T02:00:00.000Z"
Date the invoice was fully paid.
"2024-10-15T14:01:56.000Z"
Date of the last update
"2024-10-15T14:01:56.000Z"
Was this page helpful?