Skip to main content
POST
/
v3
/
stores
/
{store_id}
/
storefront
/
allowed-origins
Create a storefront allowed origin
curl --request POST \
  --url https://api.scalev.com/v3/stores/{store_id}/storefront/allowed-origins \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "origin": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "origin": "<string>",
  "status": "active",
  "store_id": 123,
  "created_by": {},
  "inserted_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

store_id
integer
required

Legacy numeric business store ID.

Body

application/json
origin
string<uri>
required

Exact http or https origin with no path, query, or fragment.

Response

Storefront allowed origin

id
string<uuid>
required
origin
string<uri>
required
status
enum<string>
required
Available options:
active,
revoked
store_id
integer
required
created_by
object
inserted_at
string<date-time>
updated_at
string<date-time>