Request

GET /quotation/5231cc894ab63c53dc90053d/

Response

200 OK
Content-Type: application/json
{
    "state": "DRAFT", 
    "related_invoices_cancelled": [], 
    "total": "47.60", 
    "account_type": "RECEIVABLE", 
    "attachments": [], 
    "reference": "201309-00003", 
    "resource_uri": "/api/v1/quotation/5231cc894ab63c53dc90053d/", 
    "notes": [], 
    "current_revision": {
        "delivery_address": {
            "city": "Grenoble", 
            "extended_address": "Level 3", 
            "country": "FRANCE", 
            "postoffice_box": null, 
            "label": null, 
            "geo_point": null, 
            "state": null, 
            "postal_code": "38000", 
            "type": "DELIVERY", 
            "street_address": "1 Rue de Grenoble"
        }, 
        "issue_date": "2013-09-12T14:15:37.568000+00:00", 
        "billing_address": {
            "city": "Grenoble", 
            "extended_address": "Level 3", 
            "country": "FRANCE", 
            "postoffice_box": null, 
            "label": null, 
            "geo_point": null, 
            "state": null, 
            "postal_code": "38000", 
            "type": "BILLING", 
            "street_address": "1 Rue de Grenoble"
        }, 
        "revision": "e742bd27-e95f-407e-b0c0-b649d81e2095", 
        "due_date": null, 
        "quotation_date": "2013-09-12", 
        "taxes_application": "EXCLUSIVE", 
        "custom_payment_conditions": null, 
        "invoicing_date": null, 
        "sender_address": {
            "city": "Grenoble", 
            "extended_address": null, 
            "country": "FRANCE", 
            "postoffice_box": null, 
            "label": null, 
            "geo_point": null, 
            "state": null, 
            "postal_code": "38000", 
            "type": "BILLING", 
            "street_address": "1 Rue de Grenoble"
        }, 
        "currency": {
            "symbol": "EUR", 
            "rates": [
                {
                    "rate": "1.00", 
                    "currency_to": "MXN", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "USD", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "AUD", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "CHF", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "NOK", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "RUB", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "EGP", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "INR", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "CNY", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "JPY", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "TRY", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "BRL", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "MAD", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "GBP", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "NZD", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "SEK", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "DKK", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "HKD", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }, 
                {
                    "rate": "1.00", 
                    "currency_to": "CAD", 
                    "datetime": "2013-09-12T14:12:37.162000+00:00"
                }
            ]
        }, 
        "credit_note_emission_date": null, 
        "contact": "/api/v1/contact/5231cc884ab63c53dc900539/", 
        "sender": "Mr. Nobody", 
        "quotation_validity": "2013-10-12", 
        "line_items": [
            {
                "description": "Item 1", 
                "reference": "ITEM1", 
                "tax": "/api/v1/tax/5231cc884ab63c53dc900537/", 
                "unit_price": "19.90", 
                "item_id": "5231cc884ab63c53dc90053a", 
                "quantity": "2.00"
            }
        ], 
        "sender_organization": "Test Company", 
        "organization": "/api/v1/organization/5231cc884ab63c53dc900538/", 
        "pdf": {}, 
        "customer_reference": null, 
        "issuer": "/api/v1/user/5231cbd64ab63c53dc900474/"
    }, 
    "contact": "/api/v1/contact/5231cc884ab63c53dc900539/", 
    "related_invoice": null, 
    "amount": "47.60", 
    "down_payments": [], 
    "organization": "/api/v1/organization/5231cc884ab63c53dc900538/", 
    "issuer": "/api/v1/user/5231cbd64ab63c53dc900474/", 
    "revisions": [], 
    "id": "5231cc894ab63c53dc90053d", 
    "history": [
        {
            "action": "CREATED", 
            "issuer": "/api/v1/user/5231cbd64ab63c53dc900474/", 
            "revision": "e742bd27-e95f-407e-b0c0-b649d81e2095", 
            "resource_type": "action_history_entry", 
            "datetime": "2013-09-12T14:15:37.822000+00:00"
        }
    ]
}

Request

GET /quotation/5231cc8e4ab63c53dc900541/

Response

200 OK
Content-Type: application/xml; charset=utf-8
<object>
  <down_payments type="list"/>
  <related_invoices_cancelled type="list"/>
  <account_type>RECEIVABLE</account_type>
  <attachments type="list"/>
  <reference>201309-00005</reference>
  <state>DRAFT</state>
  <notes type="list"/>
  <history type="list">
    <object>
      <action>CREATED</action>
      <datetime>2013-09-12T14:15:42.022000+00:00</datetime>
      <revision>665ee3f7-9c8e-4d29-9d46-eeea3a86e2c0</revision>
      <resource_type>action_history_entry</resource_type>
      <issuer>/api/v1/user/5231cbd64ab63c53dc900474/</issuer>
    </object>
  </history>
  <current_revision>
    <due_date type="null"/>
    <issue_date>2013-09-12T14:15:41.738000+00:00</issue_date>
    <billing_address>
      <city>Grenoble</city>
      <extended_address>Level 3</extended_address>
      <country>FRANCE</country>
      <postoffice_box type="null"/>
      <label type="null"/>
      <geo_point type="null"/>
      <state type="null"/>
      <postal_code>38000</postal_code>
      <type>BILLING</type>
      <street_address>1 Rue de Grenoble</street_address>
    </billing_address>
    <sender>Mr. Nobody</sender>
    <invoicing_date type="null"/>
    <revision>665ee3f7-9c8e-4d29-9d46-eeea3a86e2c0</revision>
    <taxes_application>EXCLUSIVE</taxes_application>
    <line_items type="list">
      <object>
        <description>Item 1</description>
        <reference>ITEM1</reference>
        <tax>/api/v1/tax/5231cc884ab63c53dc900537/</tax>
        <unit_price>19.90</unit_price>
        <item_id>5231cc884ab63c53dc90053a</item_id>
        <quantity>2.00</quantity>
      </object>
    </line_items>
    <delivery_address>
      <city>Grenoble</city>
      <extended_address>Level 3</extended_address>
      <country>FRANCE</country>
      <postoffice_box type="null"/>
      <label type="null"/>
      <geo_point type="null"/>
      <state type="null"/>
      <postal_code>38000</postal_code>
      <type>DELIVERY</type>
      <street_address>1 Rue de Grenoble</street_address>
    </delivery_address>
    <sender_address>
      <city>Grenoble</city>
      <extended_address type="null"/>
      <country>FRANCE</country>
      <postoffice_box type="null"/>
      <label type="null"/>
      <geo_point type="null"/>
      <state type="null"/>
      <postal_code>38000</postal_code>
      <type>BILLING</type>
      <street_address>1 Rue de Grenoble</street_address>
    </sender_address>
    <currency>
      <symbol>EUR</symbol>
      <rates type="list">
        <object>
          <rate>1.00</rate>
          <currency_to>MXN</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>USD</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>AUD</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>CHF</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>NOK</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>RUB</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>EGP</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>INR</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>CNY</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>JPY</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>TRY</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>BRL</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>MAD</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>GBP</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>NZD</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>SEK</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>DKK</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>HKD</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
        <object>
          <rate>1.00</rate>
          <currency_to>CAD</currency_to>
          <datetime>2013-09-12T14:12:37.162000+00:00</datetime>
        </object>
      </rates>
    </currency>
    <credit_note_emission_date type="null"/>
    <contact>/api/v1/contact/5231cc884ab63c53dc900539/</contact>
    <sender_organization>Test Company</sender_organization>
    <quotation_validity>2013-10-12</quotation_validity>
    <organization>/api/v1/organization/5231cc884ab63c53dc900538/</organization>
    <pdf type="hash"/>
    <issuer>/api/v1/user/5231cbd64ab63c53dc900474/</issuer>
    <customer_reference type="null"/>
    <custom_payment_conditions type="null"/>
    <quotation_date>2013-09-12</quotation_date>
  </current_revision>
  <related_invoice type="null"/>
  <amount>47.60</amount>
  <contact>/api/v1/contact/5231cc884ab63c53dc900539/</contact>
  <resource_uri>/api/v1/quotation/5231cc8e4ab63c53dc900541/</resource_uri>
  <organization>/api/v1/organization/5231cc884ab63c53dc900538/</organization>
  <total>47.60</total>
  <revisions type="list"/>
  <id>5231cc8e4ab63c53dc900541</id>
  <issuer>/api/v1/user/5231cbd64ab63c53dc900474/</issuer>
</object>

Request

GET /quotation/5231cc924ab63c53dc900545/

Response

200 OK
Content-Type: text/yaml; charset=utf-8
account_type: !!python/unicode 'RECEIVABLE'
amount: !!python/unicode '47.60'
attachments: []
contact: !!python/unicode '/api/v1/contact/5231cc884ab63c53dc900539/'
current_revision:
billing_address: {city: !!python/unicode 'Grenoble', country: !!python/unicode 'FRANCE',
extended_address: !!python/unicode 'Level 3', geo_point: null, label: null, postal_code: !!python/unicode '38000',
postoffice_box: null, state: null, street_address: !!python/unicode '1 Rue de
Grenoble', type: !!python/unicode 'BILLING'}
contact: !!python/unicode '/api/v1/contact/5231cc884ab63c53dc900539/'
credit_note_emission_date: null
currency:
rates:
- {currency_to: !!python/unicode 'MXN', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'USD', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'AUD', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'CHF', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'NOK', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'RUB', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'EGP', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'INR', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'CNY', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'JPY', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'TRY', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'BRL', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'MAD', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'GBP', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'NZD', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'SEK', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'DKK', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'HKD', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
- {currency_to: !!python/unicode 'CAD', datetime: '2013-09-12T14:12:37.162000+00:00',
rate: !!python/unicode '1.00'}
symbol: !!python/unicode 'EUR'
custom_payment_conditions: null
customer_reference: null
delivery_address: {city: !!python/unicode 'Grenoble', country: !!python/unicode 'FRANCE',
extended_address: !!python/unicode 'Level 3', geo_point: null, label: null, postal_code: !!python/unicode '38000',
postoffice_box: null, state: null, street_address: !!python/unicode '1 Rue de
Grenoble', type: !!python/unicode 'DELIVERY'}
due_date: null
invoicing_date: null
issue_date: '2013-09-12T14:15:46.101000+00:00'
issuer: !!python/unicode '/api/v1/user/5231cbd64ab63c53dc900474/'
line_items:
- {description: !!python/unicode 'Item 1', item_id: !!python/unicode '5231cc884ab63c53dc90053a',
quantity: !!python/unicode '2.00', reference: !!python/unicode 'ITEM1', tax: !!python/unicode '/api/v1/tax/5231cc884ab63c53dc900537/',
unit_price: !!python/unicode '19.90'}
organization: !!python/unicode '/api/v1/organization/5231cc884ab63c53dc900538/'
pdf: {}
quotation_date: '2013-09-12'
quotation_validity: '2013-10-12'
revision: !!python/unicode '3b906127-1448-41ee-ad18-813ad02cb3ae'
sender: !!python/unicode 'Mr. Nobody'
sender_address: {city: !!python/unicode 'Grenoble', country: !!python/unicode 'FRANCE',
extended_address: null, geo_point: null, label: null, postal_code: !!python/unicode '38000',
postoffice_box: null, state: null, street_address: !!python/unicode '1 Rue de
Grenoble', type: !!python/unicode 'BILLING'}
sender_organization: !!python/unicode 'Test Company'
taxes_application: !!python/unicode 'EXCLUSIVE'
down_payments: []
history:
- {action: !!python/unicode 'CREATED', datetime: '2013-09-12T14:15:46.376000+00:00',
issuer: !!python/unicode '/api/v1/user/5231cbd64ab63c53dc900474/', resource_type: !!python/unicode 'action_history_entry',
revision: !!python/unicode '3b906127-1448-41ee-ad18-813ad02cb3ae'}
id: !!python/unicode '5231cc924ab63c53dc900545'
issuer: !!python/unicode '/api/v1/user/5231cbd64ab63c53dc900474/'
notes: []
organization: !!python/unicode '/api/v1/organization/5231cc884ab63c53dc900538/'
reference: !!python/unicode '201309-00007'
related_invoice: null
related_invoices_cancelled: []
resource_uri: !!python/unicode '/api/v1/quotation/5231cc924ab63c53dc900545/'
revisions: []
state: !!python/unicode 'DRAFT'
total: !!python/unicode '47.60'