CentralCSP
APICompliance

Get the website compliance summary

Returns PCI DSS 6.4.3 readiness for one website: its payment pages and rules, how many scripts are in the inventory, and how many have been reviewed.

Requires the viewer role on the website and the compliance plan feature.

GET
/v1/workspaces/{workspaceId}/websites/{websiteId}/compliance

Authorization

headerAuthorizationBearer <JWT>

An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.

Path Parameters

workspaceId*string

The workspace's id.

websiteId*string

The website's id.

Response Body

PCI DSS 6.4.3 readiness for one website.

application/json
  1. response
id*string
name*string

Display name of the website.

url*|

Address of the site. Empty when none was ever recorded.

endpointEnabled*boolean

Whether the website is collecting reports. The inventory only stays current while it is.

paymentPages*|

Enabled payment pages. With none, nothing is in PCI scope.

Range0 <= value
definedPaymentPages*|

Payment pages defined, enabled or not.

Range0 <= value
rules*|

Enabled rules that decide scripts automatically.

Range0 <= value
scripts*|

Scripts in PCI scope, not counting retired or excluded ones.

Range0 <= value
justifiedScripts*|

Scripts with a justification on their current hash.

Range0 <= value
reviewedScripts*|

Scripts that have been decided on, whether justified or marked unauthorized.

Range0 <= value
scriptsToReview*|

Scripts still waiting for a decision.

Range0 <= value
reviewScope*

How much of the PCI script review is done, when there is anything to review.

Example Request
curl -X GET 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/compliance'
Example Response
{  "id": "string",  "name": "string",  "url": "",  "endpointEnabled": true,  "paymentPages": 0,  "definedPaymentPages": 0,  "rules": 0,  "scripts": 0,  "justifiedScripts": 0,  "reviewedScripts": 0,  "scriptsToReview": 0,  "reviewScope": {    "state": "measured",    "percent": 75  }}