Blacklists
Request fields, responses, and examples for v1 blacklists.
These v1 operations are active. Use an API key for SDK integrations. See authentication for credentials and store selection, or follow the first request guide.
bearerAuthstoreAuthAuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
X-STORE<token>Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
limit?integerNumber of items to return per page.
1 <= value <= 10015page?integerPage number to return.
1 <= value1A paginated list of blacklist rules.
application/json- response
data*array<>links*meta*curl -X GET 'https://sell.app/api/v1/blacklists'{ "data": [ { "id": 1, "type": "EMAIL", "data": "leo.martin@example.com", "description": "Block the address used by our launch-day load-test bot.", "created_at": "2022-12-12T12:12:12.000000Z", "updated_at": "2022-12-12T12:12:12.000000Z", "store_id": 1 } ], "links": { "first": "https://sell.app/api/v1/blacklists?page=1", "last": "https://sell.app/api/v1/blacklists?page=1", "prev": null, "next": null }, "meta": { "current_page": 1, "from": 1, "last_page": 1, "path": "https://sell.app/api/v1/blacklists", "per_page": 15, "to": 1, "total": 1, "links": [ { "url": null, "label": "« Previous", "active": false }, { "url": "https://sell.app/api/v1/blacklists?page=1", "label": "1", "active": true }, { "url": null, "label": "Next »", "active": false } ] }}bearerAuthstoreAuthAuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
X-STORE<token>Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
application/json- body
type*BlacklistTypeThe type of blacklist rule.
"ASN""COUNTRY""EMAIL""IP""WILDCARD_EMAIL"data*stringThe value to blacklist.
description*stringWhy this rule is being created.
The newly created blacklist rule.
application/json- response
data*A blacklist rule that blocks purchases matching the provided details.
curl -X POST 'https://sell.app/api/v1/blacklists' \ -H 'Content-Type: application/json' \ -d '{ "type": "ASN", "data": "string", "description": "string"}'{ "data": { "id": 1, "type": "WILDCARD_EMAIL", "data": "@blocked.example", "description": "Retired after the growth experiment ended.", "created_at": "2022-12-12T12:12:12.000000Z", "updated_at": "2022-12-12T12:12:12.000000Z", "store_id": 1 }}bearerAuthstoreAuthAuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
X-STORE<token>Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
blacklist*integerThe unique identifier of the blacklist rule.
The requested blacklist rule.
application/json- response
data*A blacklist rule that blocks purchases matching the provided details.
curl -X GET 'https://sell.app/api/v1/blacklists/1'{ "data": { "id": 1, "type": "WILDCARD_EMAIL", "data": "@blocked.example", "description": "Retired after the growth experiment ended.", "created_at": "2022-12-12T12:12:12.000000Z", "updated_at": "2022-12-12T12:12:12.000000Z", "store_id": 1 }}bearerAuthstoreAuthAuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
X-STORE<token>Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
blacklist*integerThe unique identifier of the blacklist rule.
application/json- body
Provide one or more fields to update an existing blacklist rule.
type?BlacklistTypeThe type of blacklist rule.
"ASN""COUNTRY""EMAIL""IP""WILDCARD_EMAIL"data?stringThe updated value to blacklist.
description?stringThe updated reason for this rule.
The updated blacklist rule.
application/json- response
data*A blacklist rule that blocks purchases matching the provided details.
curl -X PATCH 'https://sell.app/api/v1/blacklists/1' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "id": 1, "type": "WILDCARD_EMAIL", "data": "@blocked-domain.example", "description": "Block purchases from this email domain.", "created_at": "2022-12-12T12:12:12.000000Z", "updated_at": "2022-12-12T12:12:12.000000Z", "store_id": 1 }}bearerAuthstoreAuthAuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
X-STORE<token>Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
blacklist*integerThe unique identifier of the blacklist rule.
The blacklist rule was deleted successfully.
application/json- response
data*A blacklist rule that blocks purchases matching the provided details.
curl -X DELETE 'https://sell.app/api/v1/blacklists/1'{ "data": { "id": 1, "type": "WILDCARD_EMAIL", "data": "@blocked.example", "description": "Retired after the growth experiment ended.", "created_at": "2022-12-12T12:12:12.000000Z", "updated_at": "2022-12-12T12:12:12.000000Z", "store_id": 1 }}