BigCommerce · Schema

TokenPostSimple

E-CommerceRetailCatalogOrdersCheckoutPaymentsSaaS

Properties

Name Type Description
allowed_cors_origins array List of allowed domains for Cross-Origin Request Sharing. Currently only accepts a single element.
View JSON Schema on GitHub

JSON Schema

bigcommerce-tokenpostsimple-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TokenPostSimple",
  "title": "TokenPostSimple",
  "type": "object",
  "properties": {
    "allowed_cors_origins": {
      "maxItems": 1,
      "minItems": 1,
      "type": "array",
      "description": "List of allowed domains for Cross-Origin Request Sharing. Currently only accepts a single element.",
      "items": {
        "maxLength": 1,
        "minLength": 1,
        "pattern": "/^https?:\\/\\/(?=.{1,254}(?::|$))(?:(?!\\d|-)(?![a-z0-9\\-]{1,62}-(?:\\.|:|$))[a-z0-9\\-]{1,63}\\b(?!\\.$)\\.?)+(:\\d+)?$/i;",
        "type": "string"
      }
    }
  },
  "x-internal": false,
  "x-examples": {
    "example-1": {
      "allowed_cors_origins": [
        "https://www.yourstorefront.com/"
      ]
    }
  }
}