ApiResourcesStore settings
Update analytics settings
Configure GA4, Meta Pixel, and TikTok Pixel identifiers and write-only server credentials.
Secret fields are write-only. Omit a secret to preserve it, provide a value to replace it, or send null to remove it.
Authorization
bearerAuth storeAuth AuthorizationBearer <token>
Provide your SellApp API key as a bearer token.
In: header
X-STORE<token>
Select the SellApp store for this API request.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://sell.app/api/v2/store/settings/analytics" \ -H "Content-Type: application/json" \ -d '{}'{
"data": {
"id": 0,
"name": "string",
"slug": "string",
"visibility": "PUBLIC",
"timezone": "string",
"currency": "str",
"dark_mode": "light",
"status": {
"accessible": true,
"verified": true,
"locked": true
},
"analytics": {
"ga4_measurement_id": "string",
"meta_pixel_id": "string",
"tiktok_pixel_id": "string",
"ga4_api_secret_configured": true,
"meta_access_token_configured": true,
"tiktok_access_token_configured": true
},
"marketing": {
"abandoned_cart": {}
}
}
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}Authorization
bearerAuth storeAuth AuthorizationBearer <token>
Provide your SellApp API key as a bearer token.
In: header
X-STORE<token>
Select the SellApp store for this API request.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://sell.app/api/v2/store/settings/analytics" \ -H "Content-Type: application/json" \ -d '{}'{
"data": {
"id": 0,
"name": "string",
"slug": "string",
"visibility": "PUBLIC",
"timezone": "string",
"currency": "str",
"dark_mode": "light",
"status": {
"accessible": true,
"verified": true,
"locked": true
},
"analytics": {
"ga4_measurement_id": "string",
"meta_pixel_id": "string",
"tiktok_pixel_id": "string",
"ga4_api_secret_configured": true,
"meta_access_token_configured": true,
"tiktok_access_token_configured": true
},
"marketing": {
"abandoned_cart": {}
}
}
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}