admin_checkout_id_gw_walley_put
curl --request PUT \
--url https://checkout.dintero.com/v1/admin/gateways/walley \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"walley": {
"api_url": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"scope": "<string>",
"stores": [
{
"store_id": "1234",
"customer_type": "B2C",
"country": "NO",
"profiles": {
"delivery_not_required": "NoDelivery"
}
}
]
}
}
'import requests
url = "https://checkout.dintero.com/v1/admin/gateways/walley"
payload = { "walley": {
"api_url": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"scope": "<string>",
"stores": [
{
"store_id": "1234",
"customer_type": "B2C",
"country": "NO",
"profiles": { "delivery_not_required": "NoDelivery" }
}
]
} }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
walley: {
api_url: '<string>',
client_id: '<string>',
client_secret: '<string>',
scope: '<string>',
stores: [
{
store_id: '1234',
customer_type: 'B2C',
country: 'NO',
profiles: {delivery_not_required: 'NoDelivery'}
}
]
}
})
};
fetch('https://checkout.dintero.com/v1/admin/gateways/walley', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://checkout.dintero.com/v1/admin/gateways/walley"
payload := strings.NewReader("{\n \"walley\": {\n \"api_url\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"scope\": \"<string>\",\n \"stores\": [\n {\n \"store_id\": \"1234\",\n \"customer_type\": \"B2C\",\n \"country\": \"NO\",\n \"profiles\": {\n \"delivery_not_required\": \"NoDelivery\"\n }\n }\n ]\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://checkout.dintero.com/v1/admin/gateways/walley")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"walley\": {\n \"api_url\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"scope\": \"<string>\",\n \"stores\": [\n {\n \"store_id\": \"1234\",\n \"customer_type\": \"B2C\",\n \"country\": \"NO\",\n \"profiles\": {\n \"delivery_not_required\": \"NoDelivery\"\n }\n }\n ]\n }\n}")
.asString();{
"walley": {
"api_url": "<string>",
"client_id": "<string>",
"scope": "<string>",
"stores": [
{
"store_id": "1234",
"customer_type": "B2C",
"country": "NO",
"profiles": {
"delivery_not_required": "NoDelivery"
}
}
],
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}Walley
Create or update Walley gateway
Create the Walley gateway configuration for the account, or replace the existing configuration.
scopes:
- admin:dintero
PUT
https://checkout.dintero.com/v1
/
admin
/
gateways
/
walley
admin_checkout_id_gw_walley_put
curl --request PUT \
--url https://checkout.dintero.com/v1/admin/gateways/walley \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"walley": {
"api_url": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"scope": "<string>",
"stores": [
{
"store_id": "1234",
"customer_type": "B2C",
"country": "NO",
"profiles": {
"delivery_not_required": "NoDelivery"
}
}
]
}
}
'import requests
url = "https://checkout.dintero.com/v1/admin/gateways/walley"
payload = { "walley": {
"api_url": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"scope": "<string>",
"stores": [
{
"store_id": "1234",
"customer_type": "B2C",
"country": "NO",
"profiles": { "delivery_not_required": "NoDelivery" }
}
]
} }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
walley: {
api_url: '<string>',
client_id: '<string>',
client_secret: '<string>',
scope: '<string>',
stores: [
{
store_id: '1234',
customer_type: 'B2C',
country: 'NO',
profiles: {delivery_not_required: 'NoDelivery'}
}
]
}
})
};
fetch('https://checkout.dintero.com/v1/admin/gateways/walley', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://checkout.dintero.com/v1/admin/gateways/walley"
payload := strings.NewReader("{\n \"walley\": {\n \"api_url\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"scope\": \"<string>\",\n \"stores\": [\n {\n \"store_id\": \"1234\",\n \"customer_type\": \"B2C\",\n \"country\": \"NO\",\n \"profiles\": {\n \"delivery_not_required\": \"NoDelivery\"\n }\n }\n ]\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://checkout.dintero.com/v1/admin/gateways/walley")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"walley\": {\n \"api_url\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"scope\": \"<string>\",\n \"stores\": [\n {\n \"store_id\": \"1234\",\n \"customer_type\": \"B2C\",\n \"country\": \"NO\",\n \"profiles\": {\n \"delivery_not_required\": \"NoDelivery\"\n }\n }\n ]\n }\n}")
.asString();{
"walley": {
"api_url": "<string>",
"client_id": "<string>",
"scope": "<string>",
"stores": [
{
"store_id": "1234",
"customer_type": "B2C",
"country": "NO",
"profiles": {
"delivery_not_required": "NoDelivery"
}
}
],
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}Authorizations
adminKeyJWT
X-API-Key authentication for accessing admin endpoints. Use Create api-key to create a key.
The content of the header should look like the following:
x-api-key: {api_key}