Error codes · Keys and signatures

Signature expired

Codesignature_expired
Status401
If this was an orderBought nothing — an earlier copy may have: resume the same id
Send it again unchanged?Yes — see What to do
.NET SDKInvalidCredentialsException

An earlier copy of this order may have gone through

This request bought nothing, but it was refused before Anis looked at the order, so it says nothing about an earlier attempt with the same operation id. Fix the cause first (restore access, or fix how the request is signed), then resume the same id (or read it with GET /orders/{operationId}). Never place it again under a new id.

What it means

Reserved. Anis does not send this code today: a signature that is too old, or signed on a clock that is out, is answered invalid_credentials — on purpose, so a refusal never says which part of a signature failed.

What to do

  • Handle it like invalid_credentials if you ever receive it.
  • Keep your server clock synchronised (NTP), and sign every attempt afresh.

Example

The body of the refusal. Its type is the address of this page.

{
  "type": "https://developers.anis.ly/errors/signature-expired",
  "title": "Signature expired",
  "status": 401,
  "code": "signature_expired",
  "requestId": "01J9R2K8T4V6XQ0M3B7C5D9E1F"
}