ApiResourcesStore settings

Refresh custom-domain status

Re-run Cloudflare validation and persist the latest hostname and SSL state.

Call this after publishing the returned ownership and certificate validation records.

POST
/v2/store/custom-domains/{customDomain}/refresh

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 POST "https://sell.app/api/v2/store/custom-domains/0/refresh"
{
  "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."
    ]
  }
}