ApiResourcesStore settings
Manage a custom domain
Retrieve or disconnect a store-scoped custom domain.
Disconnecting removes the persisted mapping and schedules the existing Cloudflare and edge-cache cleanup flow.
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
Path Parameters
customDomain*integer
The customDomain path parameter.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://sell.app/api/v2/store/custom-domains/0"{
"data": {
"id": 0,
"domain": "example.com",
"status": "pending",
"hostname_status": "string",
"ssl_status": "string",
"ownership_verification": {},
"ssl_validation_records": [
{}
],
"cname_target": "example.com",
"last_checked_at": "2019-08-24T14:15:22Z",
"verified_at": "2019-08-24T14:15:22Z"
}
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "Rule not found."
}{
"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
Path Parameters
customDomain*integer
The customDomain path parameter.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://sell.app/api/v2/store/custom-domains/0"{
"data": {
"id": 0,
"domain": "example.com",
"status": "pending",
"hostname_status": "string",
"ssl_status": "string",
"ownership_verification": {},
"ssl_validation_records": [
{}
],
"cname_target": "example.com",
"last_checked_at": "2019-08-24T14:15:22Z",
"verified_at": "2019-08-24T14:15:22Z"
}
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "Rule not found."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}