Schema der benutzerdefinierten Felder abrufen
curl --request GET \
--url https://api.stage.localpayment.com/api/entity/v1/custom-fields/schema \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stage.localpayment.com/api/entity/v1/custom-fields/schema"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stage.localpayment.com/api/entity/v1/custom-fields/schema', 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.stage.localpayment.com/api/entity/v1/custom-fields/schema",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.stage.localpayment.com/api/entity/v1/custom-fields/schema"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.stage.localpayment.com/api/entity/v1/custom-fields/schema")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/entity/v1/custom-fields/schema")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"reasonForAccountOpening": {
"type": "string",
"title": "Reason for account opening",
"enum": [
"receive_payments_for_goods_and_services",
"payroll",
"other"
]
},
"sourceOfFundsAndIncome": {
"type": "string"
},
"numberOfEmployees": {
"type": "string",
"enum": [
"1-10",
"11-50",
"51-200",
"200+"
]
},
"estimatedAnnualRevenueUsd": {
"type": "string"
},
"estimatedMonthlyVolumeUsd": {
"type": "string"
},
"businessActivityDescription": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"countryTaxResidence": {
"type": "string",
"minLength": 3,
"maxLength": 3
},
"socialMedia": {
"type": "string"
},
"emailPixKey": {
"type": "string"
},
"percentageOfOwnership": {
"type": "string"
},
"hasControl": {
"type": "string"
},
"documentCountry": {
"type": "string"
},
"countryOfTaxId": {
"type": "string"
}
},
"additionalProperties": false
}
ENTITÄTEN
Schema der benutzerdefinierten Felder abrufen
GET
/
api
/
entity
/
v1
/
custom-fields
/
schema
Schema der benutzerdefinierten Felder abrufen
curl --request GET \
--url https://api.stage.localpayment.com/api/entity/v1/custom-fields/schema \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stage.localpayment.com/api/entity/v1/custom-fields/schema"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stage.localpayment.com/api/entity/v1/custom-fields/schema', 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.stage.localpayment.com/api/entity/v1/custom-fields/schema",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.stage.localpayment.com/api/entity/v1/custom-fields/schema"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.stage.localpayment.com/api/entity/v1/custom-fields/schema")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/entity/v1/custom-fields/schema")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"reasonForAccountOpening": {
"type": "string",
"title": "Reason for account opening",
"enum": [
"receive_payments_for_goods_and_services",
"payroll",
"other"
]
},
"sourceOfFundsAndIncome": {
"type": "string"
},
"numberOfEmployees": {
"type": "string",
"enum": [
"1-10",
"11-50",
"51-200",
"200+"
]
},
"estimatedAnnualRevenueUsd": {
"type": "string"
},
"estimatedMonthlyVolumeUsd": {
"type": "string"
},
"businessActivityDescription": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"countryTaxResidence": {
"type": "string",
"minLength": 3,
"maxLength": 3
},
"socialMedia": {
"type": "string"
},
"emailPixKey": {
"type": "string"
},
"percentageOfOwnership": {
"type": "string"
},
"hasControl": {
"type": "string"
},
"documentCountry": {
"type": "string"
},
"countryOfTaxId": {
"type": "string"
}
},
"additionalProperties": false
}
Gibt das veröffentlichte Schema der benutzerdefinierten Felder Ihres Händlerkontos zurück, entweder als JSON Schema (Standard) oder als native Felddefinition von Localpayment (?format=definition). Verwenden Sie es, um Formulare zu erstellen und attributes zu validieren, bevor Sie die API aufrufen.
- Schemas werden von Localpayment während des Onboardings für Ihr Händlerkonto definiert und veröffentlicht. Änderungen beantragen Sie über Ihren Account Manager.
- Wenn kein Schema veröffentlicht ist, wird attributes ohne Validierung akzeptiert, und dieser Endpunkt gibt 404 zurück.
- Das Schema gilt sowohl für INDIVIDUAL- als auch für COMPANY-Entitäten.
application/problem+json mit einem stabilen code. Vollständiger Katalog: Entitätsstatus und Fehlercodes.Autorisierungen
Header
Bearer-Zugriffstoken zur Authentifizierung. Dieses Token erhalten Sie über die Endpunkte Zugriffstoken abrufen oder Zugriffstoken aktualisieren. Ihr Händlerkonto und der handelnde Benutzer werden daraus ermittelt.
Beispiel:
"Bearer <your_access_token>"
Abfrageparameter
Zuletzt geändert am 22. November 2026

