Skip to content
Sign in Create account

POST transparency/toggle

POST /api/v1/transparency/toggle

POST /api/v1/transparency/toggle. Reads the transparency feed or inclusion status for a receipt hash.

Authenticate with a portal session token.

Responses

200 Successful response.

application/json object

  • enabled boolean required
  • message string required
    One of: "Transparency log enabled.", "Transparency log disabled."
  • public_feed_updated boolean required

Generated sample

{
  "enabled": true,
  "message": "Transparency log enabled.",
  "public_feed_updated": true
}
401 Authentication is required or the supplied credentials are not accepted.

application/json Error

  • error string required
  • message string
403 The authenticated principal lacks the required permission.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string

502 The organization setting was saved but the public transparency feed was not updated.

application/json ReceiptsTransparencyToggleFailure

  • enabled boolean required
  • error object required
    • code string required
    • message string required
    • type string required
  • public_feed_updated boolean required
    Value: false