Acknowledge a billing notice
const url = 'https://api.sloose.com/orgs/org_9f3c/billing/notices/ntc_4d19/ack';const options = {method: 'POST', 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 POST \ --url https://api.sloose.com/orgs/org_9f3c/billing/notices/ntc_4d19/ack \ --header 'Authorization: Bearer <token>'Dismisses a notice for the person asking, so it stops being shown TO THEM — everywhere it is shown: its settings page and the organisation’s banner (GET …/billing/standing). Dismissing is each person’s own: one administrator’s does not hide a notice from another. The three-day warning of a trial’s end (trial_ending) is quieted for a day and then shown again until the trial ends, and dismissed again for another day; the trial’s end (trial_ended) is not dismissed at all, but said on Plan for as long as it is true. Dismissing does not resolve the underlying problem.
Session only: billing is a person’s to manage, never an organisation’s API token’s (D5); and a staff member’s view dismisses nothing in the member’s name.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation id the session was issued for. A token for one organisation can never read another.
Example
org_9f3cThe organisation id the session was issued for. A token for one organisation can never read another.
The notice id.
Example
ntc_4d19The notice id.
Responses
Section titled “Responses”The notice, dismissed for this person: acknowledgedAt is when.
A notice as it is shown: these fields and no others. What the product keeps to act on a notice is not handed on — a failed payment’s invoice page included, which the organisation’s standing gives only to a person who may pay it.
object
When the person asking dismissed it, or null: dismissing is each person’s own (#729).
The settings page the notice is shown on, which is the page its email names (Plan, or Usage & credits).
Whether a person may dismiss it. The trial’s end is not dismissed but said on Plan for as long as it is true.
On a closed dispute only: the payment had also been refunded, whole or in part, and the refund took the credits it asked for.
Example
{ "page": "plan", "refunded": "whole"}No bearer, or one that no longer resolves: a session that is unknown or expired (code: AUTH_REQUIRED), or an API token that was revoked or expired (TOKEN_REVOKED, TOKEN_EXPIRED), whose organisation is gone (ORG_NOT_FOUND) or whose member or user row is (MEMBERSHIP_GONE).
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}The bearer’s role is too low, it was issued for a different organisation, it is an API token (SESSION_REQUIRED), or it is a staff member’s view (STAFF_VIEW), which keeps nothing in the member’s name. Like every route behind a session: a session signed in but in no organisation is refused code: NO_ORG, a banned person code: BANNED, and a closed organisation code: ORG_CLOSED.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}No such notice on this organisation.
object
Examplegenerated
{ "error": "example"}A notice nobody dismisses (NOT_DISMISSIBLE): the trial’s end, which Plan says for as long as it is true.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}The restore switch is on (code: MAINTENANCE): every route but /health and /robots.txt is refused before anything is read, except the operator’s own POST /staff/people/{id}/delete with the ADMIN_TOKEN. Sloose is down for maintenance. Please try again in a few minutes.
object
Example
{ "code": "MAINTENANCE"}Headers
Section titled “Headers”Seconds until asking again is worth it (300 while the switch is on).