Pliro Docs
Homepage
  • Introduction
  • Pliro Site
    • The customer account page
    • The offers page
    • The subscribe page
    • Offer pages
    • Offer subscribe pages
    • The free offering page
    • The free offering subscribe page
  • Pliro Connect
    • Sign in customers
    • Update customer information
    • Silent re-authentication
    • Sign customers out of Pliro
    • Sign-out notifications
    • Example integration
    • Signing keys
  • API
    • Authentication
    • Errors
      • Error codes
    • Pagination
    • Versioning
    • Endpoint reference
  • Test environment
Powered by GitBook
On this page
  • The error object
  • Properties
  1. API

Errors

Learn how to interpret API error responses.

PreviousAuthenticationNextError codes

Last updated 1 year ago

Pliro's API uses standard HTTP status codes to indicate the success or failure of a request. Codes in the 200-299 range indicate success, codes in the 400-499 range indicate a client error (e.g., omitting a required parameter or not providing a valid API token), and codes in the 500-599 range indicate an error with Pliro's servers (these should be rare).

All error responses include an error object:

$ curl -G $PLIRO_API_BASE_URL/2023-04-11/customers \
  -u $PLIRO_API_KEY: \
  -d limit=0
{
  "error": {
    "code": "invalid_param",
    "message": "limit must be greater than or equal to 1 but was 0."
  }
}

The error object

{
  "code": "invalid_param",
  "message": "limit must be greater than or equal to 1 but was 0."
}

Properties

code string A short string identifying the error. See for a full list of possible codes.

message string A message providing more details about the error.

error codes