Logo
maya API Documentation

Subscribe newsletter

PUT {{baseUrl}}/newsletter/subscribe

Service urls:
http://yourdomain.com/api/rest/newsletter/subscribe
OR
http://yourdomain.com/index.php?route=rest/account/newsletter&subscribe=1

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
X-Oc-Session
string (Required) User session id
Accept
string




RESPONSES

status OK

{ "success": 1, "error": [ "Error description", "Error description" ], "data": {} }



Curl
curl -X PUT 'https://api.opencart-api.com/api/rest/newsletter/subscribe' -H 'X-Oc-Session: voluptate' -H 'Accept: application/json'

ENDPOINTS