Documentation is still being updated. Some content maybe unfinished.
cURL
curl --request GET \ --url {protocol}://{host}/wp-json/cocart/v2/sessions/{id} \ --header 'Authorization: Basic <encoded-value>'
{ "session_key": "<string>", "cart": {}, "customer": {}, "session_expiry": "2023-11-07T05:31:56Z" }
Gets a specific cart session by session key.
Basic authentication with username and password.
Unique session key for the cart session.
Cart session retrieved successfully.
Unique session key.
Cart data for this session.
Customer data for this session.
Session expiry date.
Was this page helpful?