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
enabledboolean requiredmessagestring requiredOne of:"Transparency log enabled.","Transparency log disabled."public_feed_updatedboolean 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
errorstring requiredmessagestring
403 The authenticated principal lacks the required permission.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 The request was rate limited. API-generated responses are JSON;
Response headers
Retry-Afterstring headerSeconds to wait before retrying, when provided.
X-RateLimit-Scopestring headerIdentifies the scope of the request limit, when provided.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string
502 The organization setting was saved but the public transparency feed was not updated.
application/json ReceiptsTransparencyToggleFailure
enabledboolean requirederrorobject requiredcodestring requiredmessagestring requiredtypestring required
public_feed_updatedboolean requiredValue:false