Offer

Field guide

The following fields are available in a offer object

NameTypeExampleNotes
idint43Offer id
numberstring4633Your offer 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 offerTitle of the offer
periodstringPeriod of service
datedate2012-03-25Date of offer
duedate2012-04-22Latest payment date
discountfloat5Discount amount
discount_typeint1See Discount Types
introductionstringtextIntroduction text printed above positions
conditionsstringtextText printed below positions
languagestringdeTwo-letter language code
acceptonlineint0Enabling feature to accept online offers
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":4,
            "number":10000,
            "client_id":16,
            "client_name":"John Doe",
            "client_address_id":11,
            "client_contact_id":0,
            "currency":"CHF",
            "title":"Offerte Nr. {OFFERTENNR} \/ Kunden Nr. {KUNDENNR}",
			"period":"",
            "date":"2013-02-25",
            "due":"2013-03-07",
            "discount":0,
            "discount_type":0,
            "conditions":"",
            "introduction":"",
            "language":"de",
            "acceptonline":0,
            "vat_included":0,
            "totalamount":0,
            "status":7,
            "pages":1,
            "positions":[
                {
                    "type":1,
                    "number":null,
                    "name":"Service Y",
                    "description":"Cleaning house",
                    "cost":0,
                    "unit":1,
                    "amount":1,
                    "vat":8,
                    "discount":null
                },
                {
                    "type":2,
                    "number":null,
                    "name":"Product X",
                    "description":"Repairing car",
                    "cost":0,
                    "unit":7,
                    "amount":1,
                    "vat":8,
                    "discount":null
                }
            ]
        }
    }
    

Status

StatusMeaning of status
1Sent / Open
7Draft
8Declined
9Accepted
10Billed