customer_portal_settings

Description

This resource controls all aspects of the Foxy customer portal and /s/customer endpoint. Please see the corresponding Foxy documentation for additional information on what each parameter does.

Sandbox Example

You can interact with this resource and run actions against the sandbox API via our HAL Brower.

Actions

GET
View a customer_portal_settings
PATCH
Update a customer_portal_settings (send only the properties you want to modify)
PUT
Replace a customer_portal_settings (send the entire representation)
DELETE
Delete a customer_portal_settings
HEAD
Get just the header response
OPTIONS
Get a response explaining which HTTP methods are supported

Properties

Property Description Type Constraints
sessionLifespanInMinutes Life span of session in minutes. Integer Maximum 40320 (4 weeks)
allowedOrigins An array of domains. No trailing slashes, must be https unless it's localhost. Can accept a port. Array of Strings Allow up to 10 entries.
sso If this field is true we get legacy API key or sso key from store and save it in settings. For false value we drop it. Boolean true or false, 1 or 0.
jwtSharedSecret Shared secret key. Strings More than 40 and less than 100.
subscriptions Object which contains "allowFrequencyModification" and "allowNextDateModification" fields Object Subscription modification data
allowFrequencyModification An array that contains objects with jsonataQuery and values Array Max length 10 (items)
jsonataQuery A string that should be a valid JSONata(https://jsonata.org/) query String max length 200char
values These strings should match the sub_frequency regex sanitization. Array of Strings Max array length 20, max length per string 4 characters.
allowNextDateModification We can forbid modify subscription next date Boolean true or false, 1 or 0.
date_created The date this resource was created. Date Read only
date_modified The date this resource was last modified. Date Read only

Example Representation

{
    "_links": {
        "curies": [
            {
                "name": "fx",
                "href": "https://api.foxycart.com/rels/{rel}",
                "templated": true
            }
        ],
        "self": {
            "href": "https://api.foxy.test/stores/123/customer_portal_settings",
            "title": "Store Customer Portal Settings"
        },
        "fx:store": {
            "href": "https://api.foxy.test/stores/123",
            "title": "This Store"
        }
    },
    "sessionLifespanInMinutes": 90,
    "allowedOrigins": [
        "https://themancan.com"
    ],
    "subscriptions": {
        "allowFrequencyModification": [
            {
                "jsonataQuery": "$contains(frequency, \"w\")",
                "values": [
                    "1w",
                    "2w",
                    "3w",
                    "4w",
                    "5w",
                    "6w",
                    "7w",
                    "8w",
                    "9w",
                    "10w",
                    "11w",
                    "12w"
                ]
            }
        ],
        "allowNextDateModification": true
    },
    "jwtSharedSecret": "ac733fbd-76c0-4cde-8a4c-5c1842e4fb9a-df5d119e-eaec-4967-9fc9-1d4414c55adb",
    "sso": true,
    "date_created": "2020-04-13T08:44:09-0700",
    "date_modified": "2020-04-13T08:46:03-0700"
}

    

    

Zoomable Resources

This resource has no linked resources which can be "zoomed" in on, filtered and embedded within this resource.