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 org’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 org’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 org id the session was issued for. A token for one org can never read another.
Example
org_9f3cThe org id the session was issued for. A token for one org 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 org’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.
Example
{ "page": "plan"}No bearer, or one that is expired, revoked or no longer resolves to a member.
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 org, 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.
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 org.
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"}