Obtenir un pagament per ID
accounting:payments.readhttps://api.holded.com/api/v2/payments/{paymentId}Recupera els detalls d'un mètode de pagament específic pel seu identificador únic.
Paràmetres
Paràmetres de ruta
stringobligatoriID del pagament (ObjectId hexadecimal de 24 caràcters)
Petició
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())Respostes
Resposta
{
"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"
}Respostes exitoses
200Pagament trobatapplication/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
Respostes d'error
401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json404Pagament no trobatapplication/json429Límit de sol·licituds exceditapplication/json