Skip to content

Raise the invoices that are due

POST
/invoices/run
curl --request POST \
--url https://example.com/invoices/run \
--cookie bottle.session_token=<bottle.session_token>

What the nightly job does, on demand. Every customer on a cycle whose window has closed gets their invoice, one period at a time; running it twice raises nothing twice.

What was raised

Media typeapplication/json
object
raised
required
integer
waiting
required
integer
Examplegenerated
{
"raised": 1,
"waiting": 1
}

Not signed in

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Not a member, or without the permission this needs

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"
}
]
}