All pages
Powered by GitBook
1 of 1

Loading...

Error

The Error object represents an error response returned by the Marketplace API when it encounters a non-2xx HTTP response code. This object includes the following fields:

Field
Type
Description

title

string

A short description of the problem.

type

string

A URI reference that identifies the error type (Problem Details / RFC 7807).

Field
Type
Description

object

Parameters that can be used in a message with {{name}} a template.

status

number

The HTTP status code returned by the server.

details

string

(Optional) A detailed description of the error message.

traceId

string

(Optional) Represents an identifier used to trace a request.

errors

object

(Optional) A detailed list of errors that can be connected to the request data.

message

string

The message text with markdown allowed.

properties

list<string>

List of object properties affected by the error.

id

string

Message identifier used for the localization process.

Examples

Detailed Errors

Parameter Errors Fields

{
  "title": "Order update failed",
  "detail": "External ID is too long",
  "status": 400,
  "type": "https://docs.platform.softwareone.com/developer-resources/rest-api/errors/commerce#MPTCOM03-0078",
  "traceId": "00-00000000000000000000000000000000-000000000000000-00"
}
 {
  "title": "Order update failed",
  "detail": "Value of listing does not correspond to a valid listing; External ID is too long",
  "status": 400,
  "type": "https://docs.platform.softwareone.com/developer-resources/rest-api/errors/billing#MPTBIL03-0078",
  "traceId": "00-00000000000000000000000000000000-000000000000000-00",
  "errors": [
    {
      "message": "Value of listing does not correspond to a valid listing",
      "properties": [ "listing.id" ]
    },
    {
      "message": "External ID is too long",
      "properties": [ "externalId" ]
    }
  ]
}

parameters