Retrieves a marketing consent.
You can only call this method when authenticated as a Wix app or Wix user identity.
Marketing consent ID.
The requested marketing consent.
curl -X GET \
'https://www.wixapis.com/marketing-consent/v1/marketing-consent/22916e0c72-afe4-41a2-9b88-75888559a904' \
-H 'Authorization: <AUTH>'
{
"marketingConsent": {
"id": "22916e0c72-afe4-41a2-9b88-75888559a904",
"revision": "1",
"details": {
"type": "EMAIL",
"email": "mytest@test.com"
},
"state": "CONFIRMED",
"lastConfirmationActivity": {
"source": "IN_PERSON",
"description": "Confirmed by Samantha.",
"updatedDate": "2022-10-03T00:00:00Z",
"optInLevel": "UNKNOWN_OPT_IN_LEVEL"
},
"extendedFields": {},
"created_date": "2022-11-16T14:07:50.150Z",
"updated_date": "2022-11-16T14:07:50.150Z"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.