admin_checkout_id_gw_two_put
curl --request PUT \
--url https://checkout.dintero.com/v1/admin/gateways/two \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"two": {
"url": "https://sandbox.api.two.inc",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
'import requests
url = "https://checkout.dintero.com/v1/admin/gateways/two"
payload = { "two": {
"url": "https://sandbox.api.two.inc",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
} }
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({
two: {
url: 'https://sandbox.api.two.inc',
merchant_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
})
};
fetch('https://checkout.dintero.com/v1/admin/gateways/two', 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/two"
payload := strings.NewReader("{\n \"two\": {\n \"url\": \"https://sandbox.api.two.inc\",\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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/two")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"two\": {\n \"url\": \"https://sandbox.api.two.inc\",\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}")
.asString();{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}two-gateway
Update Two B2B gateway
scopes:
- admin:dintero
PUT
https://checkout.dintero.com/v1
/
admin
/
gateways
/
two
admin_checkout_id_gw_two_put
curl --request PUT \
--url https://checkout.dintero.com/v1/admin/gateways/two \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"two": {
"url": "https://sandbox.api.two.inc",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
'import requests
url = "https://checkout.dintero.com/v1/admin/gateways/two"
payload = { "two": {
"url": "https://sandbox.api.two.inc",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
} }
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({
two: {
url: 'https://sandbox.api.two.inc',
merchant_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
})
};
fetch('https://checkout.dintero.com/v1/admin/gateways/two', 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/two"
payload := strings.NewReader("{\n \"two\": {\n \"url\": \"https://sandbox.api.two.inc\",\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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/two")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"two\": {\n \"url\": \"https://sandbox.api.two.inc\",\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n}")
.asString();{
"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}Body
application/json
Configuration for Two B2B GW
Show child attributes
Show child attributes
Response
Gateway updated
Last modified on July 9, 2026
⌘I