Abrir o ver un pago
accounting:payments.readhttps://api.holded.com/api/v2/payments/{paymentId}Recupera los detalles de un método de pago específico por su identificador único.
Parámetros
Parámetros de ruta
stringobligatorioID del pago (ObjectId hexadecimal de 24 caracteres)
Petición
import requests
url = "https://api.holded.com/api/v2/payments/{paymentId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respuestas
Respuesta
{
"id": "507f1f77bcf86cd799439011",
"bank_account_id": "string",
"contact_id": "string",
"contact_name": "string",
"amount": "1500.50",
"description": "string",
"date": "2024-01-15T10:30:00+00:00",
"status": "no_paid",
"reconciliation_status": "pending",
"total_documents": "0.00",
"total_transactions": "0.00",
"total_advance": "0.00",
"document_type": "invoice",
"document_id": "507f1f77bcf86cd799439011"
}Respuestas exitosas
200Pago encontradoapplication/jsonPayment unique identifier
Banking account identifier
Contact identifier
Contact display name
Payment amount as decimal string in the account's base currency (multi-currency invoices are pre-converted at recording time).
Payment description
Payment date in ISO 8601 format
Payment status
no_paidpaidpartial_paidBank reconciliation status
pendingreconciledpartial_reconciledTotal amount linked to documents
Total amount linked to transactions
Total amount linked to advance payments
Type of the linked source document. Legacy alias `eg` is normalized to `entry` before exposure.
invoicepurchasecreditnotesalesreceiptestimateproformsalesorderpurchaseorderpurchaserefundremittancepayrollentrytransorderreceiptnoteinvoicingforecastexpemployeeIdentifier of the linked document
Respuestas de error
401API key inválida o no proporcionadaapplication/json403Permisos insuficientesapplication/json404Pago no encontradoapplication/json429Límite de solicitudes excedidoapplication/json