PORTOS Developers
  • 👋Introduction
  • 📖Glossary
  • HTTP Status codes
  • Error models
  • Error codes
  • Validation constraints
  • Resource names
  • 🔒User rights
  • Device environments
  • 🌍Localization
  • 🔍NData query syntax
  • OpenAPI specification
  • Data models
  • Authentication
    • 🔐Authentication schemes
      • JWT Bearer Authentication
      • HMAC Authentication
  • ⚡Notifications
    • SignalR
    • Webhooks
  • API reference
    • 🔑API keys
    • 🛍️Article categories
    • 💼Companies
    • 💱Currencies
    • 👫Customers
    • 📈Daily sales reports
    • 🖥️Devices
    • 🖨️Fiscals
    • ❤️Health check
    • 📃License
    • 🎚️Modifiers
    • 👨‍🍳Order endpoints
    • 🛎️Orders
    • 🪙Payment types
    • ☕Plus
    • 🔏Roles
    • 🔐Sessions
    • ⚙️Settings
    • 🔎Stock takings
    • 🔢Stock transfer numbering
    • 🚚Stock transfers
    • 📦Stocks
    • 🧾Tickets
      • Ticket Model States
      • Ticket Operations and User Rights
      • Ticket Model Mathematics
    • 👨‍💼Users
    • ⚖️Vats
    • 🪑Zones
  • 3rd Party Integrations
    • Introduction
    • Online orders API
    • Rewards API
    • PDA Files
  • Previous versions
    • Migration to V4.1
    • Migration to V4
    • Legacy documentation
Powered by GitBook
On this page
  • ProblemDetails
  • PortosValidationProblemDetails
  • PortosValidationProblemDetailsError
  • ResourceInfo

Was this helpful?

Error models

This article describes API error formats

PreviousHTTP Status codesNextError codes

Last updated 2 years ago

Was this helpful?

Based on response , one of following error models are returned in response body.

ProblemDetails

A machine-readable format for specifying errors in HTTP API responses based on .

Name
Type
Description

type

string?

A URI reference [RFC3986] that identifies the problem type.

title

string?

A short, human-readable summary of the problem type.

status

int?

The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.

detail

string?

A human-readable explanation specific to this occurrence of the problem.

instance

string?

A request URI path.

traceId

string?

Unique identifier to represent this request in trace logs.

errorCode

int?

resource

PortosValidationProblemDetails

This class inherits all properties from , and adds properties listed below:

Name
Type
Description

errors

Collection of errors. Each element represents one broken validation rule.

PortosValidationProblemDetailsError

Name
Type
Description

memberName

string

Property name.

message

string

Message that describes error.

code

string?

ResourceInfo

Name
Type
Description

name

string

id

string

Unique resource identifier

version

int?

Resource version

, if applicable.

Information about resource present in request. Available when errorCode is

One of , if applicable.

HTTP status code
https://tools.ietf.org/html/rfc7807
ProblemDetails
API error code
validation constraints
Resource name
ResourceInfo?
PortosValidationProblemDetailsError[]
6 (Version mismatch)