An org’s requests to pay by invoice
GET
/billing/admin/orgs/{orgId}/invoice-requests
const url = 'https://api.sloose.com/billing/admin/orgs/org_9f3c/invoice-requests';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sloose.com/billing/admin/orgs/org_9f3c/invoice-requests \ --header 'Authorization: Bearer <token>'Backoffice route: a staff session, or ADMIN_TOKEN; never a customer’s session. Newest first, twenty at most: what the org asked for on Plan (#1337), open or answered.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”orgId
required
The org id.
string
Example
org_9f3cThe org id.
Responses
Section titled “Responses”The requests.
Media typeapplication/json
object
requests
required
Array<object>
object
id
required
string
status
required
string
billingEntity
required
string
country
required
string
taxId
required
string | null
poNumber
required
string | null
currency
required
string
createdAt
required
string
decidedAt
required
string | null
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"}