Detalles de tarjeta
curl --request GET \
--url https://api.onepay.la/v1/issuing/cards/{card_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.onepay.la/v1/issuing/cards/{card_id}"
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/issuing/cards/{card_id}', 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/issuing/cards/{card_id}",
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/issuing/cards/{card_id}"
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/issuing/cards/{card_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onepay.la/v1/issuing/cards/{card_id}")
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{
"id": "9e4298cb-ad7b-40f0-929d-a68e20a561c9",
"status": "created",
"last_4": null,
"nickname": null,
"type": "physical",
"customer_id": "9e4298cb-a9a4-476d-8c7d-287c0f1e103b",
"wallet_id": "0195255e-3258-707e-bfaf-3f6807d12d60",
"customer": {
"id": "9e4298cb-a9a4-476d-8c7d-287c0f1e103b",
"first_name": "Rossie",
"last_name": "Rempel",
"email": "",
"phone": "+12259504339",
"document_type": "CC",
"document_number": "72827",
"created_at": "2025-02-20T21:58:05.000000Z",
"is_test": true
},
"address": {
"line_1": "125 Novella Turnpike",
"line_2": "40003 Lang Circle Suite 752",
"state": "Boylefurt",
"city": "Port Alessiaton",
"country": "Zambia"
},
"wallet": {
"id": "0195255e-3258-707e-bfaf-3f6807d12d60",
"balance": 0,
"label": "$0"
}
}
{
"message": "Registro no encontrado, Tarjeta no existe",
"code": 10002,
"code_name": "record_not_found"
}
Detalles de tarjeta
Obtenga el detalle de la tarjeta.
GET
issuing
/
cards
/
{card_id}
Detalles de tarjeta
curl --request GET \
--url https://api.onepay.la/v1/issuing/cards/{card_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.onepay.la/v1/issuing/cards/{card_id}"
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/issuing/cards/{card_id}', 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/issuing/cards/{card_id}",
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/issuing/cards/{card_id}"
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/issuing/cards/{card_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onepay.la/v1/issuing/cards/{card_id}")
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{
"id": "9e4298cb-ad7b-40f0-929d-a68e20a561c9",
"status": "created",
"last_4": null,
"nickname": null,
"type": "physical",
"customer_id": "9e4298cb-a9a4-476d-8c7d-287c0f1e103b",
"wallet_id": "0195255e-3258-707e-bfaf-3f6807d12d60",
"customer": {
"id": "9e4298cb-a9a4-476d-8c7d-287c0f1e103b",
"first_name": "Rossie",
"last_name": "Rempel",
"email": "",
"phone": "+12259504339",
"document_type": "CC",
"document_number": "72827",
"created_at": "2025-02-20T21:58:05.000000Z",
"is_test": true
},
"address": {
"line_1": "125 Novella Turnpike",
"line_2": "40003 Lang Circle Suite 752",
"state": "Boylefurt",
"city": "Port Alessiaton",
"country": "Zambia"
},
"wallet": {
"id": "0195255e-3258-707e-bfaf-3f6807d12d60",
"balance": 0,
"label": "$0"
}
}
{
"message": "Registro no encontrado, Tarjeta no existe",
"code": 10002,
"code_name": "record_not_found"
}
string
required
ID de la tarjeta emitida que deseas consultar. Crear tarjeta.
{
"id": "9e4298cb-ad7b-40f0-929d-a68e20a561c9",
"status": "created",
"last_4": null,
"nickname": null,
"type": "physical",
"customer_id": "9e4298cb-a9a4-476d-8c7d-287c0f1e103b",
"wallet_id": "0195255e-3258-707e-bfaf-3f6807d12d60",
"customer": {
"id": "9e4298cb-a9a4-476d-8c7d-287c0f1e103b",
"first_name": "Rossie",
"last_name": "Rempel",
"email": "",
"phone": "+12259504339",
"document_type": "CC",
"document_number": "72827",
"created_at": "2025-02-20T21:58:05.000000Z",
"is_test": true
},
"address": {
"line_1": "125 Novella Turnpike",
"line_2": "40003 Lang Circle Suite 752",
"state": "Boylefurt",
"city": "Port Alessiaton",
"country": "Zambia"
},
"wallet": {
"id": "0195255e-3258-707e-bfaf-3f6807d12d60",
"balance": 0,
"label": "$0"
}
}
{
"message": "Registro no encontrado, Tarjeta no existe",
"code": 10002,
"code_name": "record_not_found"
}
Was this page helpful?
⌘I