Skip to content
Sign in Create account

Verify a receipt chain segment

POST /api/receipt/chain-verify

Records the caller's reported chain result and invalidates the cached status. This is a client claim, not gateway verification; the response echoes the submitted chain_ok value and does not attest that the claim is true.

Authenticate with an API key or a portal session token.

Request body

application/json object

  • break_detected_at string (date-time) or null
  • chain_ok boolean required
  • entries_verified integer required
    Range: at least 0

Example

{
  "break_detected_at": null,
  "chain_ok": true,
  "entries_verified": 42
}

Responses

200 Client claim recorded.

application/json object

  • chain_ok boolean required
  • recorded boolean required
    Value: true

Generated sample

{
  "chain_ok": true,
  "recorded": true
}
401 Missing or invalid API key or bearer token.

application/json object

Any keys are accepted.

403 The caller does not meet the route requirements: accepted Terms of Service and Privacy Policy.

application/json object

Any keys are accepted.

422 Claim fields failed validation.

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