Get allowed origins
/paywall/allowed_origins
Target audience: Developers
Release version: T.B.A
Get allowed origins¶
Introduction¶
This endpoint returns allowed origins configured for your Paywall api user. The origins are used to validate communication between your site and the Payway Paywall.
URI¶
Environment | URI |
---|---|
Stage | https://payway-api.stage.adeprimo.se/external/api/v1/paywall/allowed_origins |
Production | https://backend.worldoftulo.com/external/api/v1/paywall/allowed_origins |
Requirements¶
Feature needs to be enabled by Adeprimo. Please contact support to enable.
Identity | Scope |
---|---|
No | /external/paywall/r |
Parameters¶
Name | Required | Type | Description |
---|---|---|---|
client_id | Yes | String | The client_id of the api user |
Curl Example¶
curl --request GET \
--url https://payway-api.stage.adeprimo.se/external/api/v1/paywall/allowed_origins?client_id=63b2a61317c0f8010c819f18 \
--header 'accept: application/json' \
--header 'authorization: Bearer <access_token>'
Response¶
HTTP 200
{
"items": [
"https://site.mydomain.com",
"https://anothersite.mydomain.com",
"https://yetanothersite.mydomain.com"
]
}
Errors¶
This API uses the common error conventions of the Payway API