Body Envelope
Every response is contained in an envelope which means each response has a predictable set of keys with which you can interact.
meta
The meta key helps communicate extra information regarding a response to the developer.
meta
Key | Type | Optional? | Description | Example |
---|---|---|---|---|
code | Number | Up to a 5-digit code that represents the status of the request | 20000 | |
type | String | short string, which is the name of the returned HTTP status | OK | |
message | String | Human-readable description of the specific meta code | The request was successfully processed by AfterShip. | |
errors | object[] | ✔ | Detailed error information to indicate the error in the request. It only exists in error responses. |
Error
Key | Type | Description | Example |
---|---|---|---|
path | String | Error path of the request | data.product.title |
info | String | Human-readable description of the specific error | Title is invalid |
Normal Response
preparing...