curl --request POST \
--url https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "<string>"
}
'import requests
url = "https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate"
payload = { "customer_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({customer_id: '<string>'})
};
fetch('https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customer_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate"
payload := strings.NewReader("{\n \"customer_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"customer_id": "<string>",
"result": {
"status": "revalidated",
"connection_id": "<string>",
"event_id": "<string>"
},
"connection": {
"id": "<string>",
"provider": "<string>",
"status": "connected",
"attention_required": true,
"reauth_required": true,
"recheck_available": true,
"display_name": "<string>",
"customer_visible_status": "<string>",
"backfill_status": "<string>",
"key_last4": "<string>",
"external_company_id": "<string>",
"merchant_account": "<string>",
"last_error_code": "<string>",
"last_error_message": "<string>",
"credential_check": {
"state": "verified",
"checked_at": "2023-11-07T05:31:56Z",
"message": "<string>"
}
}
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Recheck a stored Adyen key
Checks the stored key of an Adyen connection with Adyen again, after the setting Adyen named has been fixed. On success the connection is connected, a connection that was waiting for verification claims its merchant account, and an import is queued. A refusal is saved on the connection with Adyen’s newest message before it is returned. Requires a write-scoped key.
curl --request POST \
--url https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "<string>"
}
'import requests
url = "https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate"
payload = { "customer_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({customer_id: '<string>'})
};
fetch('https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customer_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate"
payload := strings.NewReader("{\n \"customer_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.app.lastaccountingcompany.com/portal/adyen-connections/{connection_id}/revalidate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"customer_id": "<string>",
"result": {
"status": "revalidated",
"connection_id": "<string>",
"event_id": "<string>"
},
"connection": {
"id": "<string>",
"provider": "<string>",
"status": "connected",
"attention_required": true,
"reauth_required": true,
"recheck_available": true,
"display_name": "<string>",
"customer_visible_status": "<string>",
"backfill_status": "<string>",
"key_last4": "<string>",
"external_company_id": "<string>",
"merchant_account": "<string>",
"last_error_code": "<string>",
"last_error_message": "<string>",
"credential_check": {
"state": "verified",
"checked_at": "2023-11-07T05:31:56Z",
"message": "<string>"
}
}
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Authorizations
Portal API key minted in portal Settings → API access. Scope read or write; pinned to one company. Send as Authorization: Bearer lac_sk_....
Path Parameters
Body
Target company. Optional for API keys.
Response
Adyen accepted the stored key. If this company already reads the merchant account, the verified key replaces that connection's key and the rechecked connection retires.
Show child attributes
Show child attributes
A connection created from a pasted credential. A connection waiting for verification has status reauth_required, attention_required and reauth_required true, last_error_code credential_rejected (the provider refused the credential) or credential_unverified (the provider could not be reached), the provider's message in last_error_message, and no external_company_id until a recheck verifies it.
Show child attributes
Show child attributes