Whitelabel
🛡
This API is secured — you need to pass access token in the
Authorization header.Sending an invitation to advertisers to the shop
Typically, inviting advertisers to the shop is done via the panel in the “Advertisers” tab (visible only to whitelabel). This endpoint provides the same functionality via API, which is useful when we want to automate the process of inviting advertisers.
POST https://api.adshero.io/v1/invitations/shop/{shopId}/whitelabel HTTP/2
Authorization: Bearer {access_token}
Content-Type: application/json
{
"firstName": "string",
"lastName": "string",
"email": "string",
"sellerIds": [ "string" ],
"brands": [ "string" ]
}curl --location --request POST \
'https://api.adshero.io/v1/invitations/shop/{shopId}/whitelabel' \
--header 'Authorization: Bearer {access_token}' \
--header 'Content-Type: application/json' \
--data '{
"firstName": "string",
"lastName": "string",
"email": "string",
"sellerIds": [ "string" ],
"brands": [ "string" ]
}'Parameter descriptions:
firstName— Seller’s first name.lastName— Seller’s last name.email— Email address — this is the address where the seller will receive the invitation to create an account. If incorrect, the seller won’t be able to use Ads.sellerIds— Seller ID — Identifier of the seller from the feed (external_seller_id). It can be empty, but in that case, thebrandsfield must be filled. Defines the products the seller has access to advertise.brands— Brand — Identifier of the brand from the feed (brand). It can be empty, but in that case, thesellerIdsfield must be filled. Defines the products the seller has access to advertise.