APIPayment Pages
Create a payment page
Adds a URL pattern to the PCI scope, for example https://shop.example.com/checkout/*. Reconciliation is triggered straight away, so scripts on matching pages start appearing in the inventory. A website is limited to 100 payment pages.
Requires the manager role on the website and the compliance plan feature.
AuthorizationBearer <token>
An OpenID Connect access token issued by Keycloak, acting as the signed-in user.
In: header
Path Parameters
workspaceId*string
websiteId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
name*string
Display name for this pattern.
Length
1 <= length <= 255urlPattern*string
Pattern matched against page URLs.
Length
1 <= length <= 1024patternType?|
How urlPattern is read. glob uses * wildcards and is the default. regex is a regular expression, kept for existing integrations.
enabled?boolean
Defaults to true.
Response Body
application/json
curl -X POST "https://api-next.centralcsp.com/v1/workspaces/string/websites/string/compliance/payment-pages" \ -H "Content-Type: application/json" \ -d '{ "name": "Checkout", "urlPattern": "https://shop.example.com/checkout/*" }'{ "id": "string", "workspaceId": "string", "websiteId": "string", "name": "Checkout", "urlPattern": "https://shop.example.com/checkout/*", "patternType": "glob", "enabled": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}