Detalii factură

Pentru aceste operațiuni este necesară autentificarea. Aceasta se face printr-un URL de forma:

$ curl https://SystemId:APIKey@r3.minicrm.hu/Api/Invoice/12

Folosind această funcționalitate poți prelua detaliile unei facturi. Este necesară specificarea identificatorului unui document creat. IMPORTANT! Identificatorul unui document nu este echivalent cu id-ul afișat în URL-ul facturii.

Exemplu răspuns:

{
    "Id": "12",
    "Number": "2013-E/00014",
    "Type": "Invoice",
    "Media": "PKI",
    "Customer": {
        "Name": "Teszt User",
        "CountryId": "36",
        "PostalCode": "1234",
        "City": "Budapest",
        "Address": "Teszt utca 1.",
        "AccountNumber": "12345678-12345678-12345678",
        "VatNumber": "12345678-12-1"
    },
    "Vendor": {
        "Name": "Invoice Zrt.",
        "CountryId": "36",
        "PostalCode": "1234",
        "City": "Budapest",
        "Address": "Petőfi u. 8.",
        "AccountNumber": "87654321-87654321-87654321",
        "VatNumber": "87654321-02-3",
        "RegistrationNumber": "",
        "Miscellaneous": ""
    },
    "Subject": "",
    "PaymentMethod": "Cash",
    "Issued": "2013-11-27",
    "Performance": "2013-11-27",
    "Prompt": "2013-11-27",
    "Paid": "0000-00-00",
    "CurrencyCode": "HUF",
    "AmountNet": "2000.00",
    "AmountVat": "540.00",
    "Amount": "2540.00",
    "IsReverseCharge": "0",
    "DocumentUrl": "https://d1hj6taljsfeus.cloudfront.net/doc/2013/11-27/_/q/_qm-PaZTjYqdbkGEr_hbSg-50",
    "DocumentFileName": "szamla-50-2013-e-00014-1.pdf",
    "Items": [
        {
            "Name": "Példa tétel",
            "Description": "",
            "PriceNet": "1 000,00",
            "VAT": "27%",
            "Quantity": "2",
            "Unit": "darab",
            "PriceNetTotal": "2 000,00",
            "PriceTotal": "2 540,00"
        }
    ]
}