Connect
curl --request PUT \
--url https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments \
--header 'Content-Type: application/json' \
--cookie korve.session_token= \
--data '
{
"secretKey": "<string>",
"webhookSecret": "<string>",
"credentialScopes": [],
"allowedRedirectOrigins": [
"<string>"
]
}
'import requests
url = "https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments"
payload = {
"secretKey": "<string>",
"webhookSecret": "<string>",
"credentialScopes": [],
"allowedRedirectOrigins": ["<string>"]
}
headers = {
"cookie": "korve.session_token=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'korve.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({
secretKey: '<string>',
webhookSecret: '<string>',
credentialScopes: [],
allowedRedirectOrigins: ['<string>']
})
};
fetch('https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments', 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.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'secretKey' => '<string>',
'webhookSecret' => '<string>',
'credentialScopes' => [
],
'allowedRedirectOrigins' => [
'<string>'
]
]),
CURLOPT_COOKIE => "korve.session_token=",
CURLOPT_HTTPHEADER => [
"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.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments"
payload := strings.NewReader("{\n \"secretKey\": \"<string>\",\n \"webhookSecret\": \"<string>\",\n \"credentialScopes\": [],\n \"allowedRedirectOrigins\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "korve.session_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.put("https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments")
.header("cookie", "korve.session_token=")
.header("Content-Type", "application/json")
.body("{\n \"secretKey\": \"<string>\",\n \"webhookSecret\": \"<string>\",\n \"credentialScopes\": [],\n \"allowedRedirectOrigins\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["cookie"] = 'korve.session_token='
request["Content-Type"] = 'application/json'
request.body = "{\n \"secretKey\": \"<string>\",\n \"webhookSecret\": \"<string>\",\n \"credentialScopes\": [],\n \"allowedRedirectOrigins\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "not_configured",
"credentialConfigured": true,
"credentialHint": "<string>",
"webhookUrl": "<string>",
"webhookSecretConfigured": true,
"credentialScopes": [
"<string>"
],
"allowedRedirectOrigins": [
"<string>"
],
"connectedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}customerPayments
Connect
Connect a customer-owned payment account with a write-only restricted credential. Korve rejects full-access credentials, validates authenticated resource access, and enforces the declared Korve operation allowlist; the connected processor remains authoritative for credential permissions.
PUT
/
v1
/
orgs
/
{orgId}
/
projects
/
{projectId}
/
payments
Connect
curl --request PUT \
--url https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments \
--header 'Content-Type: application/json' \
--cookie korve.session_token= \
--data '
{
"secretKey": "<string>",
"webhookSecret": "<string>",
"credentialScopes": [],
"allowedRedirectOrigins": [
"<string>"
]
}
'import requests
url = "https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments"
payload = {
"secretKey": "<string>",
"webhookSecret": "<string>",
"credentialScopes": [],
"allowedRedirectOrigins": ["<string>"]
}
headers = {
"cookie": "korve.session_token=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'korve.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({
secretKey: '<string>',
webhookSecret: '<string>',
credentialScopes: [],
allowedRedirectOrigins: ['<string>']
})
};
fetch('https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments', 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.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'secretKey' => '<string>',
'webhookSecret' => '<string>',
'credentialScopes' => [
],
'allowedRedirectOrigins' => [
'<string>'
]
]),
CURLOPT_COOKIE => "korve.session_token=",
CURLOPT_HTTPHEADER => [
"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.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments"
payload := strings.NewReader("{\n \"secretKey\": \"<string>\",\n \"webhookSecret\": \"<string>\",\n \"credentialScopes\": [],\n \"allowedRedirectOrigins\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "korve.session_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.put("https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments")
.header("cookie", "korve.session_token=")
.header("Content-Type", "application/json")
.body("{\n \"secretKey\": \"<string>\",\n \"webhookSecret\": \"<string>\",\n \"credentialScopes\": [],\n \"allowedRedirectOrigins\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}/payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["cookie"] = 'korve.session_token='
request["Content-Type"] = 'application/json'
request.body = "{\n \"secretKey\": \"<string>\",\n \"webhookSecret\": \"<string>\",\n \"credentialScopes\": [],\n \"allowedRedirectOrigins\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "not_configured",
"credentialConfigured": true,
"credentialHint": "<string>",
"webhookUrl": "<string>",
"webhookSecretConfigured": true,
"credentialScopes": [
"<string>"
],
"allowedRedirectOrigins": [
"<string>"
],
"connectedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Authorizations
Path Parameters
The organization's id (UUID) or slug — either form is accepted.
The project's id (UUID) or slug — either form is accepted.
Query Parameters
Environment slug. Defaults to "production"; unknown environment slugs return 404.
Pattern:
^[a-z][a-z0-9-]{0,38}$Body
application/json
Required string length:
16 - 512Required string length:
16 - 512Exact Korve operation allowlist. These values constrain Korve and are not self-attested processor permission claims.
Required array length:
5 elementsAvailable options:
customers:write, products:write, prices:write, checkout_sessions:write, subscriptions:write Required array length:
1 - 25 elementsMaximum string length:
2048Response
Connected configuration.
Available options:
not_configured, ready, disabled Korve-side operation allowlist. This does not claim or replace the connected processor's credential permissions.