Obtenir le schéma des champs personnalisés
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ÉS
Obtenir le schéma des champs personnalisés
GET
/
api
/
entity
/
v1
/
custom-fields
/
schema
Obtenir le schéma des champs personnalisés
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
}
Renvoie le schéma de champs personnalisés publié pour votre compte commerçant, au format JSON Schema (par défaut) ou sous forme de définition de champs native de Localpayment (?format=definition). Utilisez-le pour créer des formulaires et valider attributes avant d’appeler l’API.
- Les schémas sont définis et publiés par Localpayment pour votre compte commerçant lors de l’onboarding ; demandez des modifications par l’intermédiaire de votre gestionnaire de compte.
- Lorsqu’aucun schéma n’est publié, attributes est accepté sans validation et cet endpoint renvoie 404.
- Le schéma s’applique aussi bien aux entités INDIVIDUAL qu’aux entités COMPANY.
application/problem+json avec un code stable. Catalogue complet : Statuts des entités et codes d’erreur.Autorisations
En-têtes
Jeton d'accès Bearer pour l'authentification. Ce jeton s'obtient via les endpoints Obtenir un jeton d'accès ou Actualiser le jeton d'accès. Il permet d'identifier votre compte commerçant et l'utilisateur à l'origine de l'action.
Exemple:
"Bearer <your_access_token>"
Paramètres de requête
Dernière modification le 22 novembre 2026

