You can configure Adyen using the /gateways/adyen
endpoint.
The Adyen Gateway Object
Attribute | Type | Description |
merchant_account | string | Your Adyen merchant account code. For example, MyCompanyECOM . |
username | string | Your web service username. For example, ws@Company.MyCompany . |
password | string | Your web service user Basic Auth password. |
test | boolean | true or false to indicate if there is an Adyen test account. |
enabled | boolean | Enter true or false to enable the gateway. |
name | string | The display name of the gateway. |
slug | string | A unique slug for this gateway: adyen . |
type | string | The type is gateway . |
Sample Object
{
"data": {
"merchant_account": "MyCompanyECOM",
"username": "ws@Company.MyCompany",
"password": "xxx",
"test": false,
"enabled": true,
"name": "Adyen",
"slug": "adyen",
"type": "gateway"
}
}
PUT
Update Adyen settings
https://api.moltin.com/v2/gateways/adyen
Parameters
Headers
Name | Required | Type | Description |
Authorization | Required | string | The Bearer token required to get access to the API. |
Body
Name | Required | Type | Description |
merchant_account | Optional | string | Your Adyen merchant account code. For example, MyCompanyECOM . |
username | Optional | string | Your web service username. For example, ws@Company.MyCompany . |
password | Optional | string | Your web service user Basic Auth password. |
test | Optional | boolean | Enter true or false to indicate if it is an Adyen test account. |
enabled | Optional | boolean | Enter true or false to indicate if the gateway is enabled. |
Request Example
curl -X PUT https://api.moltin.com/v2/gateways/adyen \
-H "Content-Type: application/json" \
-H "Authorization: Bearer XXX" \
-d $'{
"data": {
"enabled": true,
"merchant_account": "MyCompanyECOM",
"username": "ws@Company.MyCompany",
"password": "xxx",
"test": false
}
}'
Response Example
200 OK
{
"data": {
"merchant_account": "MyCompanyECOM",
"username": "ws@Company.MyCompany",
"password": "xxx",
"test": false,
"enabled": true,
"name": "Adyen",
"slug": "adyen",
"type": "gateway"
}
}