Update number series
https://api.light.inc/v1/number-series/{numberSeriesId}
Changes the given fields of a number series. The next number can only move forward once a bill has taken a number. A retry with the same X-Idempotency-Key within 24 hours returns the first result instead.
Permission: vendors:update
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
Path parameters
-
numberSeriesIdstring · uuidrequired
Headers
-
X-Idempotency-Keystring
Request body
application/json;charset=UTF-8
-
namestringName of the number series, unique in the company. Omitting it keeps the current value.
-
prefixstringText put before the number, such as EES-. Can be empty. It can't change once a bill has taken a number from the series. Omitting it keeps the current value.
-
suffixstringText put after the number. Omitting it keeps the current suffix, null removes it. It can't change once a bill has taken a number from the series.
-
paddinginteger · int32Number of digits the number is padded to with leading zeros, from 1 to 10. It can't change once a bill has taken a number from the series. Omitting it keeps the current value.
-
nextNumberinteger · int64The number the next self-billed bill that uses this series gets, up to 999999999999999. Once a bill has taken a number from the series it can only move forward: a number lower than the current next number is refused. Omitting it keeps the current value.
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.