ManagementAllowed originsAllowed origins merchant level

Get a list of allowed origins

GET
/merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins

Returns the list of allowed origins for the API credential identified in the path.

To make this request, your API credential must have the following roles:

  • Management API—API credentials read and write

Authorization

AuthorizationBasic <token>

In: header

Path Parameters

merchantId*string

The unique identifier of the merchant account.

apiCredentialId*string

Unique identifier of the API credential.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/merchants/string/apiCredentials/string/allowedOrigins"

Example response for getting the list of allowed origins for the API credential.

{  "data": [    {      "id": "YOUR_ALLOWED_ORIGIN_1",      "domain": "https://www.eu.mystore.com",      "_links": {        "self": {          "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL/allowedOrigins/YOUR_ALLOWED_ORIGIN_1"        }      }    },    {      "id": "YOUR_ALLOWED_ORIGIN_2",      "domain": "https://www.us.mystore.com",      "_links": {        "self": {          "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL/allowedOrigins/YOUR_ALLOWED_ORIGIN_2"        }      }    }  ]}