Welcome to the API Reference for CoCart.
https://example-store.com/wp-json/cocart/
200 OK
HTTP status.
Some general information about response:
null
instead of being returned as blank strings or omitted.Content-Type
for the header.
Body Type | Content-Type |
---|---|
form-data | application/json |
raw | application/json |
x-www-form-urlencoded | application/x-www-form-urlencoded |
variation
or cart_item_data
. Use any of the tools available to help test the API with if you are unsure.
Error Code | Error Type |
---|---|
400 Bad Request | Invalid request, e.g. using an unsupported HTTP method. |
401 Unauthorized | Authentication or permission error, e.g. incorrect login. |
403 Forbidden | Not allowed to process this action or have permission. |
404 Not Found | Requests to resources that don’t exist or are missing. |
405 Method Not Allowed | A request method is not supported for the requested resource. |
406 Not Acceptable | Indicates that the server could not produce a response. |
500 Internal Server Error | Server error |
WP REST API error example
CoCart error example
code
, message
and data
attribute.