Documentation is still being updated. Some content maybe unfinished.
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.
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"
}Basic authentication with username and password.
Unique session key for the cart session.
Was this page helpful?