Skip to content

Number every customer without an account number

POST
/account-numbers/fill
curl --request POST \
--url https://example.com/account-numbers/fill \
--cookie __Host-bottle.session_token=<__Host-bottle.session_token>

Gives the next number to each customer in use without one, oldest first. Only when Bottle numbers customers; otherwise nothing changes. Numbers already given are kept.

How many customers were numbered

Media typeapplication/json
object
numbered
required
integer

Example generated

{
"numbered": 1
}

Not signed in

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Not an owner or admin

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Validation failed

Media typeapplication/json
object
error
required
string
Allowed values: validation
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string

Example

{
"error": "validation",
"issues": [
{
"path": "email",
"message": "Invalid email"
}
]
}