Obtenir una remesa
accounting:remittances.readhttps://api.holded.com/api/v2/treasury/remittances/{remittanceId}Recupera tots els detalls d'una remesa específica pel seu identificador únic.
Paràmetres
Paràmetres de ruta
stringobligatoriID de la remesa (ObjectId hexadecimal de 24 caràcters)
Petició
import requests
url = "https://api.holded.com/api/v2/treasury/remittances/{remittanceId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respostes
Resposta
{
"id": "string",
"type": "inbound",
"treasury_id": "string",
"description": "string",
"date": "2024-01-15",
"mode": "core",
"iban": "string",
"swift": "string",
"creditor_id": "string",
"issuer_id": "string",
"total": "1234.56",
"status": "pending",
"documents": [
{
"id": "string",
"type": "invoice",
"contact_id": "string",
"contact_name": "string",
"number": "string",
"description": "string",
"pending": "500.00",
"total": "1000.00",
"date": "2024-01-15",
"due_date": "2024-01-15"
}
]
}Respostes exitoses
200Remesa trobadaapplication/jsonUnique identifier of the remittance
Direction of the remittance
inboundoutboundIdentifier of the treasury account used
Free-text description of the remittance
Remittance date in ISO 8601 format
SEPA direct debit scheme used for the remittance
corecor1b2bcoredtoIBAN of the creditor bank account
SWIFT/BIC code of the creditor bank
SEPA creditor identifier
Issuer identifier for the remittance
Total amount of the remittance as a decimal string
Current processing status of the remittance
pendingcompletedprocessingList of documents included in this remittance
Unique identifier of the document included in the remittance
Type of the document
invoicepurchasepayrollexpemployeecreditnotepurchaserefundsalesreceiptreceiptnoteIdentifier of the contact associated with the document
Name of the contact
Document number
Description of the document
Pending amount as a decimal string
Total amount as a decimal string
Document issue date in ISO 8601 format
Document due date in ISO 8601 format
Respostes d'error
401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json404Remesa no trobadaapplication/json429Límit de sol·licituds exceditapplication/json