API documentation
Integrations
Analytics
Billable events
Companies
Custom properties
Customers
Customers > Credits
Customers > Payment methods
Integrations
Invoices
Invoices > Transactions
Invoicing entities
Organisations
Payments
Price configurations
Products
Quotes
Subscriptions
- GETGet subscriptions
- GETGet subscription
- GETGet subscription phases
- GETGet subscription phase
- POSTCreate subscription update
- POSTCreate subscription updates
- POSTCreate subscription
- PUTUpdate subscription
- POSTActivate subscription
- POSTCancel subscription
- POSTPause subscription
- POSTReactivate subscription
- POSTRefresh seat products
- POSTRefresh subscriptions
- POSTReinstate subscription
- POSTTransition subscription to next phase
Third-party apps
Wallets
Create invoices
Create new invoices in batch (max 50 items).
curl --request POST \
--url https://api.hyperline.co/v1/invoices/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"customer_id": "inv_1eTaiytfA0i2Va",
"currency": "EUR",
"invoicing_entity_id": "ive_47484fjdhy5",
"number": "INV-35",
"type": "invoice",
"status": "paid",
"reference": "V0KAHOU6J3",
"purchase_order": "PO-12345",
"tax_rate": 20,
"payment_method_strategy": "external",
"payment_method_id": "pm_1ryTrMj4TTAT1N",
"emitted_at": "2024-10-13T00:00:00.000Z",
"due_at": "2024-11-12T00:00:00.000Z",
"settled_at": "2024-10-15T14:01:56.000Z",
"line_items": [
{
"description": "Access fee for the period of November 2024",
"units_count": 1,
"tax_rate": 20,
"period_start": "2024-10-13T00:00:00.000Z",
"period_end": "2024-11-13T00:00:00.000Z",
"product_id": "itm_KbLcWt2qm5p1S2",
"name": "Platform access",
"unit_amount": 24000
}
],
"custom_note": "Thank you for your purchase!",
"batch_invoice_id": "invoice-123"
}
]'
{
"successes": [
{
"id": "inv_1eTaiytfA0i2Va",
"number": "INV-35",
"type": "invoice",
"document_name": "<string>",
"status": "paid",
"reference": "V0KAHOU6J3",
"purchase_order": "PO-12345",
"original_invoice_id": "<string>",
"original_invoice_number": "<string>",
"currency": "EUR",
"total_amount": 24000,
"amount_due": 0,
"amount_paid": 24000,
"amount_fixed": 20000,
"amount_excluding_tax": 20000,
"tax_rate": 20,
"tax_amount": 4000,
"tax_scheme": "standard",
"discount_amount": 0,
"conversion_rate": 1,
"converted_amount": 24000,
"converted_at": "2024-10-13T02:00:00.000Z",
"payment_method_id": "pm_1ryTrMj4TTAT1N",
"custom_note": "Thank you for your purchase!",
"customer": {
"id": "cus_Typ0px2W0aiEtl",
"name": "Acme",
"email": "billing@acme.com",
"external_id": "<string>",
"vat_number": "FR123456789",
"address": {
"name": "Acme",
"line1": "5 rue de Paradis",
"line2": "<string>",
"city": "Paris",
"zip": "75010",
"state": "<string>",
"country": "FR"
}
},
"seller": {
"id": "ive_47484fjdhy5",
"name": "Name of the invoicing entity",
"tax_id": "FR5878986578",
"address": {
"name": "Acme",
"line1": "5 rue de Paradis",
"line2": "<string>",
"city": "Paris",
"zip": "75010",
"state": "<string>",
"country": "FR"
}
},
"subscription_id": "sub_amiaWZ3lzDIWaoT",
"period_starts_at": "2024-10-13T00:00:00.000Z",
"period_ends_at": "2024-11-13T00:00:00.000Z",
"emitted_at": "2024-10-13T00:00:00.000Z",
"due_at": "2024-11-12T00:00:00.000Z",
"refunded_at": "2024-10-13T02:00:00.000Z",
"grace_period_ended_at": "2024-10-13T02:00:00.000Z",
"settled_at": "2024-10-15T14:01:56.000Z",
"updated_at": "2024-10-15T14:01:56.000Z",
"line_items": [
{
"id": "ili_0FACNpeoEFkGu3",
"name": "Platform access",
"product_id": "itm_KbLcWt2qm5p1S2",
"product_type": "flat_fee",
"units_count": 1,
"unit_amount": 24000,
"amount": 24000,
"amount_excluding_tax": 20000,
"tax_rate": 20,
"tax_rate_id": "<string>",
"tax_amount": 4000,
"discount_amount": 0,
"discount_percent": 123,
"period_starts_at": "2024-10-13T00:00:00.000Z",
"period_ends_at": "2024-11-13T00:00:00.000Z"
}
],
"transactions": [
{
"id": "tra_2QdJDDUej969ev",
"type": "subscription",
"amount": 31500,
"currency": "EUR",
"customer_id": "cus_QalW2vTAdkR6IY",
"provider_id": "pi_xxxxxxxxxx",
"process_at": "2023-11-12T07:38:39.222Z",
"refunded_at": "2024-10-13T02:00:00.000Z",
"last_refreshed_at": "2024-10-13T02:00:00.000Z",
"provider_fee": {
"amount": 24000,
"currency": "EUR",
"exchange_rate": 123
},
"payment_method_type": "card",
"payment_method": {
"id": "pm_1xMpj5bwRqN7LM",
"status": "active",
"type": "card",
"last_4_digits": 2718,
"expiration_date": "2026-11",
"brand": "visa"
},
"status": "settled"
}
],
"coupons": [
{
"id": "cou_DKL4Xcb5VSa8CQ",
"name": "Partner discount",
"discount_amount": 2000,
"discount_percent": 123,
"line_item_ids": [
"ili_0FACNpeoEFkGu3"
]
}
],
"batch_invoice_id": "invoice-123"
}
],
"errors": [
{
"error": "<any>",
"batch_invoice_id": "<string>"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Customer ID.
"inv_1eTaiytfA0i2Va"
Name of the line item as it will appear on the invoice. Default to the product name.
"Platform access"
Amount of one unit of the product related to the invoice line item. Default to the product price amount. Expressed in currency's smallest unit.
24000
Description of the line item as it will appear on the invoice. Default to the product description.
"Access fee for the period of November 2024"
Count of units of the product related to the invoice line item.
1
Tax rate of the invoice line item.
0 <= x <= 100
20
Start date of the period corresponding to the line item charge.
"2024-10-13T00:00:00.000Z"
End date of the period corresponding to the line item charge.
"2024-11-13T00:00:00.000Z"
Product ID related to the invoice line item.
"itm_KbLcWt2qm5p1S2"
A unique identifier for the invoices in the batch
"invoice-123"
Currency code of the invoice. 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"
ID of the invoicing entity attached to the invoice.
"ive_47484fjdhy5"
Invoice number. If specified, the invoice number will not be generated by Hyperline. You are responsible for avoiding duplicates and ensuring it does not impact the numbering sequence in Hyperline.
"INV-35"
invoice
, credit_note
, document
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.
to_pay
, paid
, draft
"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"
Tax rate of the invoice.
0 <= x <= 100
20
Payment method strategy used to charge the invoice. Only applies to to_pay
status.
current
: Use the current default payment method of the customer.external
: Manage the payment of the invoice outside of Hyperline.
current
, external
"external"
ID of the payment method used to pay the invoice.
"pm_1ryTrMj4TTAT1N"
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 the invoice was fully paid.
"2024-10-15T14:01:56.000Z"
Custom note added to the invoice.
"Thank you for your purchase!"
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!"
Customer ID.
"cus_Typ0px2W0aiEtl"
Customer name.
"Acme"
Email to which all communications will be sent.
"billing@acme.com"
ID of the customer in your system. This helps matching your customer with the one on Hyperline.
Customer tax number.
"FR123456789"
Customer billing address.
Address name.
"Acme"
Address first line.
"5 rue de Paradis"
Address second line (optional).
Address city.
"Paris"
Address ZIP code.
"75010"
Address state (only for US country).
Two-letter country code in ISO format. See ISO 3166 Alpha 2.
AD
, AE
, AF
, AG
, AI
, AL
, AM
, AO
, AQ
, AR
, AS
, AT
, AU
, AW
, AX
, AZ
, BA
, BB
, BD
, BE
, BF
, BG
, BH
, BI
, BJ
, BL
, BM
, BN
, BO
, BQ
, BR
, BS
, BT
, BV
, BW
, BY
, BZ
, CA
, CC
, CD
, CF
, CG
, CH
, CI
, CK
, CL
, CM
, CN
, CO
, CR
, CU
, CV
, CW
, CX
, CY
, CZ
, DE
, DJ
, DK
, DM
, DO
, DZ
, EC
, EE
, EG
, EH
, ER
, ES
, ET
, FI
, FJ
, FK
, FM
, FO
, FR
, GA
, GB
, GD
, GE
, GF
, GG
, GH
, GI
, GL
, GM
, GN
, GP
, GQ
, GR
, GS
, GT
, GU
, GW
, GY
, HK
, HM
, HN
, HR
, HT
, HU
, IC
, ID
, IE
, IL
, IM
, IN
, IO
, IQ
, IR
, IS
, IT
, JE
, JM
, JO
, JP
, KE
, KG
, KH
, KI
, KM
, KN
, KP
, KR
, KW
, KY
, KZ
, LA
, LB
, LC
, LI
, LK
, LR
, LS
, LT
, LU
, LV
, LY
, MA
, MC
, MD
, ME
, MF
, MG
, MH
, MK
, ML
, MM
, MN
, MO
, MP
, MQ
, MR
, MS
, MT
, MU
, MV
, MW
, MX
, MY
, MZ
, NA
, NC
, NE
, NF
, NG
, NI
, NL
, NO
, NP
, NR
, NU
, NZ
, OM
, PA
, PE
, PF
, PG
, PH
, PK
, PL
, PM
, PN
, PR
, PS
, PT
, PT-20
, PT-30
, PW
, PY
, QA
, RE
, RO
, RS
, RU
, RW
, SA
, SB
, SC
, SD
, SE
, SG
, SH
, SI
, SJ
, SK
, SL
, SM
, SN
, SO
, SR
, SS
, ST
, SV
, SX
, SY
, SZ
, TC
, TD
, TF
, TG
, TH
, TJ
, TK
, TL
, TM
, TN
, TO
, TR
, TT
, TV
, TW
, TZ
, UA
, UG
, UM
, US
, UY
, UZ
, VA
, VC
, VE
, VG
, VI
, VN
, VU
, WF
, WS
, XK
, YE
, YT
, ZA
, ZM
, ZW
"FR"
ID of the invoicing entity attached to the invoice.
"ive_47484fjdhy5"
Name of the invoicing entity
"Name of the invoicing entity"
Tax identifier / VAT number of the invoicing entity
"FR5878986578"
Seller address.
Address name.
"Acme"
Address first line.
"5 rue de Paradis"
Address second line (optional).
Address city.
"Paris"
Address ZIP code.
"75010"
Address state (only for US country).
Two-letter country code in ISO format. See ISO 3166 Alpha 2.
AD
, AE
, AF
, AG
, AI
, AL
, AM
, AO
, AQ
, AR
, AS
, AT
, AU
, AW
, AX
, AZ
, BA
, BB
, BD
, BE
, BF
, BG
, BH
, BI
, BJ
, BL
, BM
, BN
, BO
, BQ
, BR
, BS
, BT
, BV
, BW
, BY
, BZ
, CA
, CC
, CD
, CF
, CG
, CH
, CI
, CK
, CL
, CM
, CN
, CO
, CR
, CU
, CV
, CW
, CX
, CY
, CZ
, DE
, DJ
, DK
, DM
, DO
, DZ
, EC
, EE
, EG
, EH
, ER
, ES
, ET
, FI
, FJ
, FK
, FM
, FO
, FR
, GA
, GB
, GD
, GE
, GF
, GG
, GH
, GI
, GL
, GM
, GN
, GP
, GQ
, GR
, GS
, GT
, GU
, GW
, GY
, HK
, HM
, HN
, HR
, HT
, HU
, IC
, ID
, IE
, IL
, IM
, IN
, IO
, IQ
, IR
, IS
, IT
, JE
, JM
, JO
, JP
, KE
, KG
, KH
, KI
, KM
, KN
, KP
, KR
, KW
, KY
, KZ
, LA
, LB
, LC
, LI
, LK
, LR
, LS
, LT
, LU
, LV
, LY
, MA
, MC
, MD
, ME
, MF
, MG
, MH
, MK
, ML
, MM
, MN
, MO
, MP
, MQ
, MR
, MS
, MT
, MU
, MV
, MW
, MX
, MY
, MZ
, NA
, NC
, NE
, NF
, NG
, NI
, NL
, NO
, NP
, NR
, NU
, NZ
, OM
, PA
, PE
, PF
, PG
, PH
, PK
, PL
, PM
, PN
, PR
, PS
, PT
, PT-20
, PT-30
, PW
, PY
, QA
, RE
, RO
, RS
, RU
, RW
, SA
, SB
, SC
, SD
, SE
, SG
, SH
, SI
, SJ
, SK
, SL
, SM
, SN
, SO
, SR
, SS
, ST
, SV
, SX
, SY
, SZ
, TC
, TD
, TF
, TG
, TH
, TJ
, TK
, TL
, TM
, TN
, TO
, TR
, TT
, TV
, TW
, TZ
, UA
, UG
, UM
, US
, UY
, UZ
, VA
, VC
, VE
, VG
, VI
, VN
, VU
, WF
, WS
, XK
, YE
, YT
, ZA
, ZM
, ZW
"FR"
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"
Invoice line item ID.
"ili_0FACNpeoEFkGu3"
Name of the line item, corresponding to the related product.
"Platform access"
Product ID related to the invoice line item.
"itm_KbLcWt2qm5p1S2"
Product type related to the invoice line item.
flat_fee
, seat
, dynamic
, credit
"flat_fee"
Count of units of the product related to the invoice line item.
1
Amount of one unit of the product related to the invoice line item. Expressed in the currency's smallest unit.
24000
Total amount of the invoice line item. Expressed in the currency's smallest unit.
24000
Total amount without the taxes amount of the invoice line item. Expressed in the currency's smallest unit.
20000
Tax rate of the invoice line item.
20
Custom tax rate ID applied to the invoice line item.
Tax amount of the invoice line item. Expressed in the currency's smallest unit.
4000
Amount corresponding to the discounted part of the total amount of the invoice line item. Expressed in the currency's smallest unit.
0
Percentage applied to compute the discounted part of the invoice line amount. Only if coupons applied are percentage based.
Start date of the period corresponding to the line item charge.
"2024-10-13T00:00:00.000Z"
End date of the period corresponding to the line item charge.
"2024-11-13T00:00:00.000Z"
Transaction ID.
"tra_2QdJDDUej969ev"
Transaction type.
subscription
: The transaction is related to a subscription payment.one_time
: The transaction is related to a one-time payment.refund
: The transaction is related to a refund payment.
subscription
, one_time
, refund
"subscription"
Transaction amount.
31500
Transaction currency.
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"
ID of the customer linked to the transaction.
"cus_QalW2vTAdkR6IY"
ID of the transaction on the payment provider (Stripe, Mollie, GoCardless, ...) side.
"pi_xxxxxxxxxx"
Date corresponding to the processing of the transaction. If in the future, the transaction is scheduled to be processed.
"2023-11-12T07:38:39.222Z"
Date corresponding to the refund of the transaction.
"2024-10-13T02:00:00.000Z"
Date corresponding to the last synchronization of the details with the payment provider.
"2024-10-13T02:00:00.000Z"
Fee applied by the Payment Service Provider. Only supported for Stripe.
Monetary amount. Expressed in currency's smallest unit.
24000
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"
card
, direct_debit
, direct_debit_ach
, direct_debit_bacs
Payment method ID.
"pm_1xMpj5bwRqN7LM"
Payment method status.
active
: The payment method is ready to be used.pending
: The payment method is pending activation or being validated.
active
, pending
"active"
Payment method type.
card
: Credit or debit carddirect_debit_sepa
: SEPA Direct Debitdirect_debit_ach
: ACH Direct Debit with an US bank accountdirect_debit_bacs
: Bacs Direct Debit with an UK bank account
card
"card"
Last four digits of the card.
2718
Expiration date of the card using YYYY-MM format.
"2026-11"
Brand of the card.
"visa"
Transaction status.
scheduled
: The transaction is scheduled to be processed in the future.to_process
: The transaction is waiting to be processed by our system.pending
: The transaction has been authorized by the related payment processor, but the banking transaction is not yet settled.settled
: The transaction has been cleared on the banking side, the money transfer is fully completed.cancelled
: The transaction has been cancelled and won't be processed again.
scheduled
, to_process
, pending
, settled
, cancelled
"settled"
Coupon ID.
"cou_DKL4Xcb5VSa8CQ"
Coupon name.
"Partner discount"
Amount to apply as a discount on the total amount (excluding taxes) of a subscription. Expressed in the currency's smallest unit.
2000
Percentage to apply as a discount on the amount (excluding taxes) of a product.
IDs of the line items to which the coupon applies.
["ili_0FACNpeoEFkGu3"]
A unique identifier for the invoices in the batch
"invoice-123"
Was this page helpful?
curl --request POST \
--url https://api.hyperline.co/v1/invoices/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"customer_id": "inv_1eTaiytfA0i2Va",
"currency": "EUR",
"invoicing_entity_id": "ive_47484fjdhy5",
"number": "INV-35",
"type": "invoice",
"status": "paid",
"reference": "V0KAHOU6J3",
"purchase_order": "PO-12345",
"tax_rate": 20,
"payment_method_strategy": "external",
"payment_method_id": "pm_1ryTrMj4TTAT1N",
"emitted_at": "2024-10-13T00:00:00.000Z",
"due_at": "2024-11-12T00:00:00.000Z",
"settled_at": "2024-10-15T14:01:56.000Z",
"line_items": [
{
"description": "Access fee for the period of November 2024",
"units_count": 1,
"tax_rate": 20,
"period_start": "2024-10-13T00:00:00.000Z",
"period_end": "2024-11-13T00:00:00.000Z",
"product_id": "itm_KbLcWt2qm5p1S2",
"name": "Platform access",
"unit_amount": 24000
}
],
"custom_note": "Thank you for your purchase!",
"batch_invoice_id": "invoice-123"
}
]'
{
"successes": [
{
"id": "inv_1eTaiytfA0i2Va",
"number": "INV-35",
"type": "invoice",
"document_name": "<string>",
"status": "paid",
"reference": "V0KAHOU6J3",
"purchase_order": "PO-12345",
"original_invoice_id": "<string>",
"original_invoice_number": "<string>",
"currency": "EUR",
"total_amount": 24000,
"amount_due": 0,
"amount_paid": 24000,
"amount_fixed": 20000,
"amount_excluding_tax": 20000,
"tax_rate": 20,
"tax_amount": 4000,
"tax_scheme": "standard",
"discount_amount": 0,
"conversion_rate": 1,
"converted_amount": 24000,
"converted_at": "2024-10-13T02:00:00.000Z",
"payment_method_id": "pm_1ryTrMj4TTAT1N",
"custom_note": "Thank you for your purchase!",
"customer": {
"id": "cus_Typ0px2W0aiEtl",
"name": "Acme",
"email": "billing@acme.com",
"external_id": "<string>",
"vat_number": "FR123456789",
"address": {
"name": "Acme",
"line1": "5 rue de Paradis",
"line2": "<string>",
"city": "Paris",
"zip": "75010",
"state": "<string>",
"country": "FR"
}
},
"seller": {
"id": "ive_47484fjdhy5",
"name": "Name of the invoicing entity",
"tax_id": "FR5878986578",
"address": {
"name": "Acme",
"line1": "5 rue de Paradis",
"line2": "<string>",
"city": "Paris",
"zip": "75010",
"state": "<string>",
"country": "FR"
}
},
"subscription_id": "sub_amiaWZ3lzDIWaoT",
"period_starts_at": "2024-10-13T00:00:00.000Z",
"period_ends_at": "2024-11-13T00:00:00.000Z",
"emitted_at": "2024-10-13T00:00:00.000Z",
"due_at": "2024-11-12T00:00:00.000Z",
"refunded_at": "2024-10-13T02:00:00.000Z",
"grace_period_ended_at": "2024-10-13T02:00:00.000Z",
"settled_at": "2024-10-15T14:01:56.000Z",
"updated_at": "2024-10-15T14:01:56.000Z",
"line_items": [
{
"id": "ili_0FACNpeoEFkGu3",
"name": "Platform access",
"product_id": "itm_KbLcWt2qm5p1S2",
"product_type": "flat_fee",
"units_count": 1,
"unit_amount": 24000,
"amount": 24000,
"amount_excluding_tax": 20000,
"tax_rate": 20,
"tax_rate_id": "<string>",
"tax_amount": 4000,
"discount_amount": 0,
"discount_percent": 123,
"period_starts_at": "2024-10-13T00:00:00.000Z",
"period_ends_at": "2024-11-13T00:00:00.000Z"
}
],
"transactions": [
{
"id": "tra_2QdJDDUej969ev",
"type": "subscription",
"amount": 31500,
"currency": "EUR",
"customer_id": "cus_QalW2vTAdkR6IY",
"provider_id": "pi_xxxxxxxxxx",
"process_at": "2023-11-12T07:38:39.222Z",
"refunded_at": "2024-10-13T02:00:00.000Z",
"last_refreshed_at": "2024-10-13T02:00:00.000Z",
"provider_fee": {
"amount": 24000,
"currency": "EUR",
"exchange_rate": 123
},
"payment_method_type": "card",
"payment_method": {
"id": "pm_1xMpj5bwRqN7LM",
"status": "active",
"type": "card",
"last_4_digits": 2718,
"expiration_date": "2026-11",
"brand": "visa"
},
"status": "settled"
}
],
"coupons": [
{
"id": "cou_DKL4Xcb5VSa8CQ",
"name": "Partner discount",
"discount_amount": 2000,
"discount_percent": 123,
"line_item_ids": [
"ili_0FACNpeoEFkGu3"
]
}
],
"batch_invoice_id": "invoice-123"
}
],
"errors": [
{
"error": "<any>",
"batch_invoice_id": "<string>"
}
]
}