Overview
Encompass Partner Connect uses conventional HTTP
response codes to indicate the success or failure of an API request. Documented below are success, client error, and server error status codes used by the platform. Look here for an extensive reference of HTTP
response codes.
I. Commonly Used Success Responses:
Status Code | Description |
---|---|
200 Ok | The request has succeeded. |
201 Created | The request has succeeded and created a new resource. |
202 Accepted | The request has been accepted but not yet acted upon - usually to acknowledge acceptance of an asynchronous task. |
204 No Content | There is no content to respond with for this request, but the headers may be useful. |
II. Commonly Used Client Error Responses:
Status Code | Description |
---|---|
400 Bad Request | The server could not understand the request due to invalid syntax. |
401 Unauthorized | The client must correctly authenticate itself to get the requested response. |
403 Forbidden | The client is authenticated but not authorized to access the requested content. |
404 Forbidden | The server can not find the requested resource. |
405 Method Not Allowed | The request method is known by the server but has been disabled and cannot be used. |
409 Conflict | The request conflicts with the current state of the server. |
415 Unsupported Media Type | The media format of the requested data is not supported by the server, so the server is rejecting the request. |
III. Commonly Used Server Error Responses:
Status Code | Description |
---|---|
500 Internal Server Error | The server has encountered a situation it doesn't know how to handle. |
502 Bad Gateway | The server, while working as a gateway, got an invalid response. |
503 Service Unavailable | The server is not ready to handle the request. |
504 Gateway Timeout | The server was acting as a gateway and couldn't get a response in time. |
Note: 500
, 502
, 503
, and 504
status codes indicate system exceptions and are very rarely thrown by the platform (refer to the API Service Level Agreement). If any of these status codes consistently occur for your environment, please contact EPC Support.
Error Messages
Most error HTTP statuses thrown by the API will be accompanied with an error message in the response body. Error messages follow the standard structure illustrated below:
[
{
"code": "EPC-1015",
"description": "Product name is required",
"type": "system",
"fieldId": "name",
"resourceId": "PRODUCT"
}
]
Attribute | Description |
---|---|
code | Unique code for the error |
description | Human-friendly description for the error |
type | Error type. Currently, all errors are system errors |
fieldId | Resource field related to the error |
resourceId | Resource related to the error. It can be PRODUCT , ORIGIN , or TRANSACTION |
Below is an index of the errors you may encounter when interacting with the API, and their error code and description.
API Error Codes and Descriptions
Error Code | Description |
---|---|
EPC-1001 | Field is required |
EPC-1002 | Parameter {0} is required |
EPC-1003 | Start index should be a positive integer |
EPC-1004 | Limit should be a positive integer and within range 1 and {0} |
EPC-1005 | Start date {0} should be in ISO date format and less than current date |
EPC-1006 | Start date {0} should be before end date {1} |
EPC-1007 | End date {0} should be in ISO date format and less than current date |
EPC-1010 | Unauthorized |
EPC-1011 | Forbidden |
EPC-1016 | Partner integration url is required |
EPC-1017 | Partner integration type is required |
EPC-1020 | Request type is required for request and response entitlements |
EPC-1021 | Transaction entitlement is required |
EPC-1031 | PLM format is required |
EPC-1033 | Credential is required |
EPC-1035 | Response status is required |
EPC-1036 | Event text is required |
EPC-1037 | Event type is required |
EPC-1039 | Resource id required |
EPC-1040 | Resource name does not end with correct extension |
EPC-1041 | Invalid resource name |
EPC-1042 | Resource name is required |
EPC-1043 | Resource id {0} exists more than once in the {1} |
EPC-1044 | Resource id {0} already exists on the transaction |
EPC-1053 | Product listing name is required |
EPC-1056 | Product already exists for partner id {0} and product name {1} |
EPC-1057 | At least one request type is required for a product |
EPC-1058 | Request type cannot be empty |
EPC-1059 | Duplicate request types are not allowed |
EPC-1065 | Data entitlement request type does not exist in product |
EPC-1066 | Request type with existing data entitlements cannot be removed |
EPC-1067 | Duplicate request type within data entitlements |
EPC-1068 | Duplicate request type within the same data entitlement |
EPC-1069 | {0} data entitlement field is required |
EPC-1070 | Partner webhook information is required |
EPC-1071 | Partner webhook url is required |
EPC-1072 | Webhook events are required |
EPC-1073 | Webhook event type is invalid |
EPC-1074 | Webhook resource name is required |
EPC-1075 | Webhook resource name is invalid |
EPC-1076 | Name is readonly |
EPC-1077 | Product not found for partner id {0} and product name {1} |
EPC-1078 | {0} is a readonly attribute |
EPC-1079 | Unauthorized to access product details |
EPC-1080 | Partner webhook url is required |
EPC-1081 | Resource events for required for webhook subscription |
EPC-1082 | Resource name associated with the webhook subscription is required |
EPC-1083 | Webhook subscription has duplicate resource name |
EPC-1205 | Error creating product |
EPC-1206 | Error updating product |
EPC-1207 | Invalid product content |
EPC-1208 | Product search requires partner id, product name or tag key/tag value |
EPC-1209 | Partner id is readonly |
EPC-1210 | Integration type is readonly |
EPC-1211 | required properties do not exist |
EPC-1212 | Invalid JsonPath(s) {0} |
EPC-1213 | Data entitlement cannot have empty jsonpath |
EPC-1214 | Invalid tenant pattern in allow or deny |
EPC-1329 | Resource name required |
EPC-1330 | At least one resource is required |
EPC-1331 | Mime type is either missing or invalid |
EPC-1332 | File extension is required |
EPC-1333 | Resource id {0} does not exist on {1} |
EPC-1334 | Either loan or resource is required |
EPC-1338 | Error is required for failed response status |
EPC-1339 | Error code is required |
EPC-1340 | Error description is required |
EPC-1341 | Response status should be failed when an error is present |
EPC-1342 | Invalid numeric value |
EPC-1343 | Should be a number and greater than zero |
EPC-1400 | Invalid or expired Partner Access Token |