Saltar al contingut principal
GET

Obtenir una remesa

Scope:accounting:remittances.read
https://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

remittanceIdstringobligatori

ID de la remesa (ObjectId hexadecimal de 24 caràcters)

Petició

python
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

json
{
  "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/json
object
idstring

Unique identifier of the remittance

typestring

Direction of the remittance

Enum:inboundoutbound
treasury_idstring

Identifier of the treasury account used

descriptionstring | null

Free-text description of the remittance

datestring<date> | null

Remittance date in ISO 8601 format

modestring | null

SEPA direct debit scheme used for the remittance

Enum:corecor1b2bcoredto
ibanstring

IBAN of the creditor bank account

swiftstring | null

SWIFT/BIC code of the creditor bank

creditor_idstring | null

SEPA creditor identifier

issuer_idstring | null

Issuer identifier for the remittance

totalstring

Total amount of the remittance as a decimal string

statusstring

Current processing status of the remittance

Enum:pendingcompletedprocessing
documents[]object[]

List of documents included in this remittance

idstring

Unique identifier of the document included in the remittance

typestring

Type of the document

Enum:invoicepurchasepayrollexpemployeecreditnotepurchaserefundsalesreceiptreceiptnote
contact_idstring

Identifier of the contact associated with the document

contact_namestring

Name of the contact

numberstring

Document number

descriptionstring

Description of the document

pendingstring

Pending amount as a decimal string

totalstring

Total amount as a decimal string

datestring<date> | null

Document issue date in ISO 8601 format

due_datestring<date> | null

Document due date in ISO 8601 format

Respostes d'error

401API key no vàlida o no proporcionadaapplication/json
403Permisos insuficientsapplication/json
404Remesa no trobadaapplication/json
429Límit de sol·licituds exceditapplication/json