Description
Returns a list of brand memberships for a brand
Important: A runtime error will occur if targeted brand does not have timed membership enabled by a Mulah admin
Parameters
Parameter | Type | Value | Required |
operation_name | String | brandMemberships | true |
variables | JSON | $JSON_OBJECT | true |
$JSON_OBJECT Structure
Key | Type | Value | Required |
brandId | String | $SHARED_BRAND_ID | true |
Tip: $SHARED_BRAND_ID can be obtained via Accessible Brands
Example
Request
curl \
-X POST \
-H "Content-Type: application/json" \
-H "Token: $TOKEN" \
-d '{
"operation_name": "brandMemberships",
"variables": {
"brandId": $SHARED_BRAND_ID
}
}' \
https://mulahpoints.com/third_party
Response
{
"data": {
"thirdParty": {
"brand": {
"name": $TEST_NAME,
"memberships": [
{
"id": $TEST_ID,
"title": $TEST_TITLE
}
]
}
}
},
"errors": []
}