Nationale Feiertage abrufen
curl --request GET \
--url https://api.stage.localpayment.com/api/resources/holidays \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stage.localpayment.com/api/resources/holidays"
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/resources/holidays', 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/resources/holidays",
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/resources/holidays"
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/resources/holidays")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/resources/holidays")
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[
{
"country": "MEX",
"date": "2023-01-01T00:00:00",
"description": "New Year Day"
},
{
"country": "MEX",
"date": "2023-02-06T00:00:00",
"description": "Mexican Constitution Day"
},
{
"country": "MEX",
"date": "2023-03-20T00:00:00",
"description": "Birthday of Benito Juárez"
},
{
"country": "MEX",
"date": "2023-04-06T00:00:00",
"description": "Easter Thursday"
},
{
"country": "MEX",
"date": "2023-04-07T00:00:00",
"description": "Easter Friday"
},
{
"country": "MEX",
"date": "2023-05-01T00:00:00",
"description": "Labour day"
},
{
"country": "MEX",
"date": "2023-05-05T00:00:00",
"description": "Battle of Puebla"
},
{
"country": "MEX",
"date": "2023-09-16T00:00:00",
"description": "Mexican Independence Day"
},
{
"country": "MEX",
"date": "2023-10-12T00:00:00",
"description": "Race Day"
},
{
"country": "MEX",
"date": "2023-11-02T00:00:00",
"description": "Deads Day"
},
{
"country": "MEX",
"date": "2023-11-20T00:00:00",
"description": "Mexican Revolution Day"
},
{
"country": "MEX",
"date": "2023-12-12T00:00:00",
"description": "Virgen de Guadalupe Day"
},
{
"country": "MEX",
"date": "2023-12-25T00:00:00",
"description": "Christmas"
}
]
Ressourcen
Nationale Feiertage abrufen
GET
/
api
/
resources
/
holidays
Nationale Feiertage abrufen
curl --request GET \
--url https://api.stage.localpayment.com/api/resources/holidays \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stage.localpayment.com/api/resources/holidays"
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/resources/holidays', 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/resources/holidays",
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/resources/holidays"
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/resources/holidays")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/resources/holidays")
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[
{
"country": "MEX",
"date": "2023-01-01T00:00:00",
"description": "New Year Day"
},
{
"country": "MEX",
"date": "2023-02-06T00:00:00",
"description": "Mexican Constitution Day"
},
{
"country": "MEX",
"date": "2023-03-20T00:00:00",
"description": "Birthday of Benito Juárez"
},
{
"country": "MEX",
"date": "2023-04-06T00:00:00",
"description": "Easter Thursday"
},
{
"country": "MEX",
"date": "2023-04-07T00:00:00",
"description": "Easter Friday"
},
{
"country": "MEX",
"date": "2023-05-01T00:00:00",
"description": "Labour day"
},
{
"country": "MEX",
"date": "2023-05-05T00:00:00",
"description": "Battle of Puebla"
},
{
"country": "MEX",
"date": "2023-09-16T00:00:00",
"description": "Mexican Independence Day"
},
{
"country": "MEX",
"date": "2023-10-12T00:00:00",
"description": "Race Day"
},
{
"country": "MEX",
"date": "2023-11-02T00:00:00",
"description": "Deads Day"
},
{
"country": "MEX",
"date": "2023-11-20T00:00:00",
"description": "Mexican Revolution Day"
},
{
"country": "MEX",
"date": "2023-12-12T00:00:00",
"description": "Virgen de Guadalupe Day"
},
{
"country": "MEX",
"date": "2023-12-25T00:00:00",
"description": "Christmas"
}
]
Rufen Sie eine Liste der nationalen Feiertage in den Ländern ab, in denen Sie tätig sind. Verwenden Sie diesen Endpunkt, um Verzögerungen bei der Zahlungsabwicklung frühzeitig zu erkennen und Transaktionen entsprechend zu planen.
Autorisierungen
Header
Bearer-Zugriffstoken zur Authentifizierung. Dieses Token erhalten Sie über die Endpunkte Zugriffstoken abrufen oder Zugriffstoken aktualisieren.
Abfrageparameter
Antwort
OK
Land. ISO 3166-1 alpha-3.
Zuletzt geändert am 22. November 2026

