Consultar convenios
curl --request GET \
--url https://api.onepay.la/v1/utilities/providers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.onepay.la/v1/utilities/providers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.onepay.la/v1/utilities/providers', 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.onepay.la/v1/utilities/providers",
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.onepay.la/v1/utilities/providers"
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.onepay.la/v1/utilities/providers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onepay.la/v1/utilities/providers")
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{
"data": [
{
"id": "9d16af28-e289-4a24-bcc4-697febf17141",
"name": "Gulgowski and Sons",
"help_text": null
},
{
"id": "9d16af28-e319-44d3-8939-8f5286362f5d",
"name": "Pfeffer-Turner",
"help_text": null
},
{
"id": "9d16af28-e339-49d9-87d0-19e91bea48d3",
"name": "Flatley, Schmitt and McDermott",
"help_text": null
},
{
"id": "9d16af28-e36c-4d70-9dca-839b8d806ef8",
"name": "Heathcote and Sons",
"help_text": null
}
],
"current_page": 1,
"first_page_url": "https://api.onepay.test/v1/utilities/providers?page=1",
"from": 1,
"next_page_url": null,
"path": "https://api.onepay.test/v1/utilities/providers",
"per_page": 50,
"prev_page_url": null,
"to": 4
}
Consultar convenios
Obtenga los detalles de un convenio por referencia.
GET
utilities
/
providers
Consultar convenios
curl --request GET \
--url https://api.onepay.la/v1/utilities/providers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.onepay.la/v1/utilities/providers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.onepay.la/v1/utilities/providers', 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.onepay.la/v1/utilities/providers",
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.onepay.la/v1/utilities/providers"
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.onepay.la/v1/utilities/providers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onepay.la/v1/utilities/providers")
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{
"data": [
{
"id": "9d16af28-e289-4a24-bcc4-697febf17141",
"name": "Gulgowski and Sons",
"help_text": null
},
{
"id": "9d16af28-e319-44d3-8939-8f5286362f5d",
"name": "Pfeffer-Turner",
"help_text": null
},
{
"id": "9d16af28-e339-49d9-87d0-19e91bea48d3",
"name": "Flatley, Schmitt and McDermott",
"help_text": null
},
{
"id": "9d16af28-e36c-4d70-9dca-839b8d806ef8",
"name": "Heathcote and Sons",
"help_text": null
}
],
"current_page": 1,
"first_page_url": "https://api.onepay.test/v1/utilities/providers?page=1",
"from": 1,
"next_page_url": null,
"path": "https://api.onepay.test/v1/utilities/providers",
"per_page": 50,
"prev_page_url": null,
"to": 4
}
integer
default:"1"
Página a mostrar
string
default:"none"
Nombre del proveedor de servicios que deseas buscar
{
"data": [
{
"id": "9d16af28-e289-4a24-bcc4-697febf17141",
"name": "Gulgowski and Sons",
"help_text": null
},
{
"id": "9d16af28-e319-44d3-8939-8f5286362f5d",
"name": "Pfeffer-Turner",
"help_text": null
},
{
"id": "9d16af28-e339-49d9-87d0-19e91bea48d3",
"name": "Flatley, Schmitt and McDermott",
"help_text": null
},
{
"id": "9d16af28-e36c-4d70-9dca-839b8d806ef8",
"name": "Heathcote and Sons",
"help_text": null
}
],
"current_page": 1,
"first_page_url": "https://api.onepay.test/v1/utilities/providers?page=1",
"from": 1,
"next_page_url": null,
"path": "https://api.onepay.test/v1/utilities/providers",
"per_page": 50,
"prev_page_url": null,
"to": 4
}
Was this page helpful?
⌘I