Skip to content

Every open request to pay by invoice

GET
/billing/admin/invoice-requests
curl --request GET \
--url https://api.sloose.com/billing/admin/invoice-requests \
--header 'Authorization: Bearer <token>'

Backoffice route: a staff session, or ADMIN_TOKEN; never a customer’s session. The staff-wide queue (#1337): every org’s open request, oldest first, a hundred at most, with the org it is from. A request whose mail never arrived is found here too. One from an org billed by invoice already is closed billed as it is read.

The open requests.

Media typeapplication/json
object
requests
required
Array<object>
object
id
required
string
status
required
string
Allowed values: open billed declined
billingEntity
required
string
country
required
string
taxId
required
string | null
poNumber
required
string | null
currency
required
string
createdAt
required
string
decidedAt
required
string | null
orgId
required
string
orgName
required
string
Example
{
"requests": [
{
"status": "open"
}
]
}

A bearer that is neither the token nor a live session (code: AUTH_REQUIRED).

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

A customer’s session, an API token, or no bearer at all — not staff, and not the ADMIN_TOKEN (code: ADMIN_REQUIRED).

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

Report a problem with this page