Site Certificate
Get a Site’s SSL TLS Certificate Information
GET https://api.bigcommerce.com/stores/{store_hash}/v3/sites/{site_id}/certificateRequest
Obtain information about a site’s SSL/TLS certificate.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- site_id in path - integerrequired
example
curl --request GET \
--url 'https://api.bigcommerce.com/stores/[store_hash]/v3/sites/[site_id]/certificate' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: {{token}}'
Response
OK
Body
object | application/json
dataobject
Upsert a Site’s SSL TLS Certificate Information
PUT https://api.bigcommerce.com/stores/{store_hash}/v3/sites/{site_id}/certificateRequest
- If a value for
url
is not supplied, the saved certificate is associated with the specified site’sprimary
URL. - Use caution. Because this endpoint upserts, supplying an SSL certificate for a domain that already has a certificate connected overwrites the domain’s extant certificate.'
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- site_id in path - integerrequired
- Content-Type in header with default of application/json - stringrequiredThe MIME type of the request body.
Body
object | application/json
urlstring
URL for the site.Example: kittens.mybigcommerce.comcertificateobject
example
{
"url": "kittens.mybigcommerce.com",
"certificate": {
"certificate": "string",
"private_key": "string",
"intermediate_certificates": "string"
}
}
Response
OK
Body
object | application/json
dataobject
example
{
"data": {},
"meta": {}
}
Get Site Certificates
GET https://api.bigcommerce.com/stores/{store_hash}/v3/sites/certificatesRequest
Return all SSL certificates connected to domains within a store.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- urls:in in query - arrayA comma-separated list that filters certificates by one or more URLs.Type: array[string]
example
curl --request GET \
--url 'https://api.bigcommerce.com/stores/[store_hash]/v3/sites/certificates' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: {{token}}'
Response
OK
Body
object | application/json
dataarray[object]
example
{
"data": [
{
"common_name": "store.com",
"subject_alternative_names": [
"store.com",
"www.store.com"
],
"validity_not_before": "2018-01-04T04:15:50.000Z",
"validity_not_after": "2018-01-04T04:15:50.000Z",
"signing_algorithm": "string",
"issuer": "string",
"certificate": "string",
"intermediate_certificates": "string"
}
],
"meta": {}
}
Did you find what you were looking for?