Confirmation

Field guide

The following fields are available in a confirmation object

NameTypeExampleNotes
idint43Confirmation id
numberstring4633Your confirmation number
client_idint1Client's id
client_namestringJane DoeName of client
client_address_idint1Client's address id
client_contact_idint0Client's contact id
currencystringEURThree-letter currency code
titlestringMy new confirmationTitle of the confirmation
datedate2012-03-25Date of confirmation
introductionstringtextIntroduction text printed above positions
conditionsstringtextText printed below positions
languagestringdeTwo-letter language code
vat_includedint1If VAT is included in positions' prices
totalamountfloat140.15Total sum of all positions
statusint7See Status Types
pagesint2Number of pages
positionscollectionCollection of Position Objects

Example content of data variable:

    {
        "error":false,
        "item":{
            "id":3,
            "number":10000,
            "client_id":16,
            "client_name":"John Doe",
            "client_address_id":11,
            "client_contact_id":0,
            "currency":"CHF",
            "title":"Lieferschein Nr. {LIEFERSCHEINNR} \/ Kunden Nr. {KUNDENNR}",
            "date":"2013-02-25",
            "conditions":"",
            "introduction":"",
            "language":"de",
            "vat_included":0,
            "totalamount":0,
            "status":7,
            "pages":1,
            "positions":[
                {
                    "type":1,
                    "number":null,
                    "name":"Position X",
                    "description":"Repairing car",
                    "cost":0,
                    "unit":1,
                    "amount":1,
                    "vat":8,
                    "discount":null
                },
                {
                    "type":2,
                    "number":null,
                    "name":"Position Y",
                    "description":"Cleaning house",
                    "cost":0,
                    "unit":7,
                    "amount":1,
                    "vat":8,
                    "discount":null
                }
            ]
        }
    }
    

Status

StatusMeaning of status
1Sent / Open
7Draft
10Billed