Create an invoice series
Start invoicing a customer on a schedule. See Create a series.
Authorizations
User API key authentication. Create a key under Settings → API keys in the Slash dashboard (https://app.slash.com/global-settings/api-keys) and send the x-legal-entity header naming the legal entity to act on with every request. Keys scoped to a legal entity are rejected with 403 user_api_key_required.
Headers
Unique caller-generated key for one create request. Once an authenticated, schema-valid request reaches the operation, the key is permanently consumed for that operation and legal entity whether the operation succeeds or fails. Reusing it in that scope returns 409 and never replays a response, unlike API v1, which replays the original response for a matching key.
1 - 255The legal entity to act on. Required on every request; a user API key can act on any legal entity its user has access to.
^le_[a-zA-Z0-9]+$Body
Customer id with the le_cus_ prefix.
Which days the series issues an invoice on.
- Weekly
- Monthly on a date
- Monthly on a weekday
The first day the series can issue an invoice on: today or later in timezone.
The IANA timezone the series' dates are in.
1"America/New_York"
Each invoice is due this many days after it's issued.
0 <= x <= 3651 - 200 elementsThe account payments settle into, with the sa_group_ prefix. Required when the legal entity has more than one account that can receive payments.
A virtual account to settle into instead of the account's primary one, with the subaccount_ prefix.
Defaults to { "type": "never" }.
- Never
- After a number of invoices
- On a date
Taken off the line items' subtotal before tax.
- Percentage
- Fixed
Tax as a percent of the subtotal after the discount.
0 <= x <= 1001 - 50010How the customer can pay, each type at most once. bank_transfer is always offered.
4Response
The created series.
Issues the same invoice to a customer on a schedule. Each invoice is created scheduled ahead of its send date, is sent at 9:00 in the series' timezone, and then behaves like any other invoice. All amounts are in USD.
Series id with the inv_series_ prefix.
"inv_series_2rj4l7hmrrrcv"
See How a series works.
active, ended, cancelled The account payments settle into, with the sa_group_ prefix.
Which days the series issues an invoice on.
- Weekly
- Monthly on a date
- Monthly on a weekday
The first day the series can issue an invoice on.
The IANA timezone the series' dates are in.
"America/New_York"
Each invoice is due this many days after it's issued.
When the series stops issuing invoices.
- Never
- After a number of invoices
- On a date
Each invoice's amounts.
Customer id with the le_cus_ prefix.
The virtual account payments settle into, with the subaccount_ prefix. Absent when they settle into the account's primary virtual account.
Taken off the line items' subtotal before tax.
- Percentage
- Fixed
Tax as a percent of the subtotal after the discount.
When the next invoice goes out. Only on active series.
The next invoice, already created as scheduled, with the inv_ prefix. Only on active series.