API Reference
Log In
API Reference

Errors

Errors use the HTTP status and a JSON body. Show message to developers, branch on code, and quote request_id to Paper.id support.

HTTPCodeWhat happenedWhat to do
400VALIDATION_FAILEDA field is missing or invalid; see details.Fix the listed fields.
401INVALID_CREDENTIALSClient ID or secret is missing or wrong.Check both headers and the environment.
403IP_NOT_ALLOWEDThe request came from an IP outside your allowlist.Add the IP in Settings › API Integration.
404NOT_FOUNDNo object with that ID in your company.Check the ID and environment.
409PARTNER_NAME_MISMATCHThe partner_number exists with a different name.Send the stored name, or update the partner first.
409INVOICE_NOT_DELETABLEThe invoice is paid or partially paid.Cancel or credit it in the dashboard.
409IDEMPOTENCY_KEY_REUSEDSame key, different body.Use a new key for a new action.
422E_STAMP_QUOTA_EMPTYNo e-Meterai stamps left.Top up your quota.
405METHOD_NOT_ALLOWEDThe HTTP method isn't supported on this path.Check the method in the reference.
429RATE_LIMITEDToo many requests.Wait for Retry-After seconds.
500INTERNAL_ERRORSomething failed at Paper.id.Retry with the same idempotency key; contact support with request_id.

Example error response:

{
  "error": {
    "code": "VALIDATION_FAILED",
    "message": "due_date must be on or after invoice_date.",
    "details": [
      {
        "field": "due_date",
        "issue": "before_invoice_date"
      }
    ]
  },
  "request_id": "req_01JD3K6Q9W2M"
}