curl --request GET \
--url https://api.prod.payana.cloud/public/api/v1/payments/{reference} \
--header 'api-key: <api-key>'import requests
url = "https://api.prod.payana.cloud/public/api/v1/payments/{reference}"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://api.prod.payana.cloud/public/api/v1/payments/{reference}', 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.prod.payana.cloud/public/api/v1/payments/{reference}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);
$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.prod.payana.cloud/public/api/v1/payments/{reference}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
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.prod.payana.cloud/public/api/v1/payments/{reference}")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.payana.cloud/public/api/v1/payments/{reference}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"reference": "aaea7db4-647c-4d92-9f86-89e34a68e1aa",
"beneficiary": {
"reference": "616263a5-a677-4ad1-92ca-7e120adad8d4",
"name": "0411test STG",
"type": "supplier",
"identifier_type": "NIT",
"identifier_number": "1100",
"contact_information": [
{
"reference": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
"type": "email",
"value": "[email protected]"
}
]
},
"document": {
"reference": "b2c3d4e5-f6a7-4890-b123-c456d7890abc",
"type": "invoice",
"document_number": "FC-2024-001",
"fiscal_reference": "e19d3e7867371a12fd53b67a56db087faa871c9797993d9bbf7806ae4e1466ea",
"origin": "fiscal_entity",
"amount": 10000,
"amount_currency": "COP",
"is_canceled": false
},
"amount": 10000,
"amount_currency": "COP",
"exchange_amount": 10000,
"exchange_currency": null,
"exchange_rate": null,
"status": "pending",
"file_path": null,
"receipt_file_path": null,
"is_archived": false,
"payable": {
"reference": "a1cde862-db4f-427f-bd95-91a2f8dd06a1",
"type": "supplier",
"status": "pending",
"amount": 10000,
"amount_currency": "COP",
"file_path": null,
"balance": 10000,
"issue_date": "2025-11-27",
"expiration_date": "2025-11-28",
"concept": "Factura FC-2024-001",
"origin": "fiscal_entity",
"cost_center": null,
"projects": []
},
"has_erp_payment": false,
"erp_payment_reference": null,
"is_fiscal_entity": true,
"has_erp_payable": false,
"erp_payable_reference": null,
"erp_payable": null,
"erp_payment": null,
"batch": null,
"tags": [],
"accounting_receipt": null,
"source_of_fund": null,
"paid_at": null,
"payment_method": null,
"payment_gateway": null,
"created_at": "2025-11-27T16:04:55.400+00:00",
"updated_at": "2025-11-27T16:04:55.400+00:00"
}{
"status": 400,
"message": "Invalid input",
"code": "invalid_input"
}{
"status": 404,
"message": "Payment not found",
"code": "payment_not_found"
}Get Payment
Devuelve un pago identificado por su reference.
El detalle incluye más información que cada ítem del listado GET /payments (por ejemplo, datos de contacto del beneficiario, centro de costo y proyectos del payable, e información del ERP).
curl --request GET \
--url https://api.prod.payana.cloud/public/api/v1/payments/{reference} \
--header 'api-key: <api-key>'import requests
url = "https://api.prod.payana.cloud/public/api/v1/payments/{reference}"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://api.prod.payana.cloud/public/api/v1/payments/{reference}', 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.prod.payana.cloud/public/api/v1/payments/{reference}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);
$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.prod.payana.cloud/public/api/v1/payments/{reference}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
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.prod.payana.cloud/public/api/v1/payments/{reference}")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.payana.cloud/public/api/v1/payments/{reference}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"reference": "aaea7db4-647c-4d92-9f86-89e34a68e1aa",
"beneficiary": {
"reference": "616263a5-a677-4ad1-92ca-7e120adad8d4",
"name": "0411test STG",
"type": "supplier",
"identifier_type": "NIT",
"identifier_number": "1100",
"contact_information": [
{
"reference": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
"type": "email",
"value": "[email protected]"
}
]
},
"document": {
"reference": "b2c3d4e5-f6a7-4890-b123-c456d7890abc",
"type": "invoice",
"document_number": "FC-2024-001",
"fiscal_reference": "e19d3e7867371a12fd53b67a56db087faa871c9797993d9bbf7806ae4e1466ea",
"origin": "fiscal_entity",
"amount": 10000,
"amount_currency": "COP",
"is_canceled": false
},
"amount": 10000,
"amount_currency": "COP",
"exchange_amount": 10000,
"exchange_currency": null,
"exchange_rate": null,
"status": "pending",
"file_path": null,
"receipt_file_path": null,
"is_archived": false,
"payable": {
"reference": "a1cde862-db4f-427f-bd95-91a2f8dd06a1",
"type": "supplier",
"status": "pending",
"amount": 10000,
"amount_currency": "COP",
"file_path": null,
"balance": 10000,
"issue_date": "2025-11-27",
"expiration_date": "2025-11-28",
"concept": "Factura FC-2024-001",
"origin": "fiscal_entity",
"cost_center": null,
"projects": []
},
"has_erp_payment": false,
"erp_payment_reference": null,
"is_fiscal_entity": true,
"has_erp_payable": false,
"erp_payable_reference": null,
"erp_payable": null,
"erp_payment": null,
"batch": null,
"tags": [],
"accounting_receipt": null,
"source_of_fund": null,
"paid_at": null,
"payment_method": null,
"payment_gateway": null,
"created_at": "2025-11-27T16:04:55.400+00:00",
"updated_at": "2025-11-27T16:04:55.400+00:00"
}{
"status": 400,
"message": "Invalid input",
"code": "invalid_input"
}{
"status": 404,
"message": "Payment not found",
"code": "payment_not_found"
}Authorizations
API key provista por Payana.
Path Parameters
Referencia única del pago.
Response
Payment retrieved successfully
Pago en su representación pública detallada, devuelta por GET /payments/{reference}.
Beneficiario del pago.
Show child attributes
Show child attributes
Documento fuente del pago a través del payable. null en pagos manuales o anticipos sin documento.
Show child attributes
Show child attributes
USD, COP, MXN, EUR USD, COP, MXN, EUR Estado del pago: pending (creado, sin procesar), in_process (en procesamiento), processed (acreditado) o failed (rechazado).
pending, in_process, processed, failed Payable asociado al pago, con su centro de costo y proyectos.
Información del payable en el ERP, si existe.
Información del pago en el ERP, si existe.
Lote de pagos asociado, si existe.
Show child attributes
Show child attributes