Create number series
https://api.light.inc/v1/number-series
Creates a number series for self-billed bills. Assign it to a vendor through the vendor's defaultSelfBilledNumberSeriesId. Send the same request with the same X-Idempotency-Key within 24 hours to get back the series the first call created.
Permissions checked: vendors:create and vendors:update. What a call needs depends on the caller, the record and the request.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Headers
-
X-Idempotency-Keystring
Request body
application/json;charset=UTF-8
-
namestringName of the number series, unique in the company.
-
prefixstringText put before the number, such as EES-. Can be empty.
-
suffixstringText put after the number. Leave it out when the series has none; an empty text is refused.
-
paddinginteger · int32Number of digits the number is padded to with leading zeros, from 1 to 10.
-
nextNumberinteger · int64The number the first self-billed bill that uses this series gets, from 1 to 999999999999999.
Response
-
idstring · uuidUnique identifier of the number series.
-
namestringName of the number series, unique in the company.
-
prefixstringText put before the number, such as EES-.
-
suffixstringText put after the number. Null when the series has none.
-
paddinginteger · int32Number of digits the number is padded to with leading zeros. A longer number is not cut.
-
nextNumberinteger · int64The number the next self-billed bill that uses this series gets.
-
nextNumberPreviewstringThe next number with its prefix, padding and suffix, such as EES-0083.
-
statusstringACTIVE series can be assigned to vendors and bills. ARCHIVED series can't, but still number the bills and vendors that already use them.
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACTIVEARCHIVED -
createdAtstring · date-timeTimestamp when the number series was created.