Obtenir les jours fériés nationaux
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"
}
]
Ressources
Obtenir les jours fériés nationaux
GET
/
api
/
resources
/
holidays
Obtenir les jours fériés nationaux
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"
}
]
Récupérez la liste des jours fériés nationaux des pays dans lesquels vous opérez. Utilisez cet endpoint pour anticiper les retards de traitement des paiements et planifier vos transactions en conséquence.
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.
Paramètres de requête
Réponse
OK
Pays. ISO 3166-1 alpha-3.
Dernière modification le 22 novembre 2026

