Request

GET /down_payment_invoice/5231cc194ab63c53dc9004e4/

Response

200 OK
Content-Type: application/json
{
    "attachments": [], 
    "reference": "201309-00004", 
    "related_quotation": "/api/v1/quotation/5231cc174ab63c53dc9004e2/", 
    "related_credit_note": null, 
    "total": "14.28", 
    "id": "5231cc194ab63c53dc9004e4", 
    "issuer": "/api/v1/user/5231cbd64ab63c53dc900474/", 
    "has_temporary_reference": false, 
    "state": "REGISTERED", 
    "percentage": "0.30", 
    "revisions": [], 
    "tax_applied": "/api/v1/tax/5231cc174ab63c53dc9004dd/", 
    "account_type": "RECEIVABLE", 
    "paid": "0.00", 
    "balance": "14.28", 
    "notes": [], 
    "current_revision": {
        "delivery_address": null, 
        "issue_date": "2013-09-12T14:13:45.514000+00:00", 
        "billing_address": null, 
        "revision": "494d5588-455d-4388-906f-79cc17c110e4", 
        "due_date": "2013-09-12", 
        "quotation_date": null, 
        "taxes_application": "EXCLUSIVE", 
        "custom_payment_conditions": null, 
        "invoicing_date": "2013-09-12", 
        "sender_address": null, 
        "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": null, 
        "sender": null, 
        "quotation_validity": null, 
        "line_items": [
            {
                "description": "30% down-payment on quotation 201309-00002", 
                "reference": "DOWN-PAYMENT", 
                "tax": "/api/v1/tax/5231cc174ab63c53dc9004dd/", 
                "unit_price": "11.94", 
                "item_id": null, 
                "quantity": "1.00"
            }
        ], 
        "sender_organization": "Test Company", 
        "organization": "/api/v1/organization/5231cc174ab63c53dc9004e1/", 
        "pdf": {}, 
        "customer_reference": null, 
        "issuer": "/api/v1/user/5231cbd64ab63c53dc900474/"
    }, 
    "amount": "14.28", 
    "contact": null, 
    "payments": [], 
    "organization": null, 
    "history": [], 
    "resource_uri": "/api/v1/down_payment_invoice/5231cc194ab63c53dc9004e4/"
}

Request

GET /down_payment_invoice/5231cc1f4ab63c53dc9004e9/

Response

200 OK
Content-Type: application/xml; charset=utf-8
<object>
  <attachments type="list"/>
  <reference>201309-00005</reference>
  <related_quotation>/api/v1/quotation/5231cc174ab63c53dc9004e2/</related_quotation>
  <related_credit_note type="null"/>
  <total>14.28</total>
  <id>5231cc1f4ab63c53dc9004e9</id>
  <issuer>/api/v1/user/5231cbd64ab63c53dc900474/</issuer>
  <has_temporary_reference type="boolean">False</has_temporary_reference>
  <resource_uri>/api/v1/down_payment_invoice/5231cc1f4ab63c53dc9004e9/</resource_uri>
  <state>REGISTERED</state>
  <percentage>0.30</percentage>
  <revisions type="list"/>
  <tax_applied>/api/v1/tax/5231cc174ab63c53dc9004dd/</tax_applied>
  <account_type>RECEIVABLE</account_type>
  <paid>0.00</paid>
  <notes type="list"/>
  <current_revision>
    <due_date>2013-09-12</due_date>
    <issue_date>2013-09-12T14:13:51.724000+00:00</issue_date>
    <billing_address type="null"/>
    <sender type="null"/>
    <invoicing_date>2013-09-12</invoicing_date>
    <revision>77cf0864-958f-46f9-801f-1990046bb103</revision>
    <taxes_application>EXCLUSIVE</taxes_application>
    <line_items type="list">
      <object>
        <description>30% down-payment on quotation 201309-00002</description>
        <reference>DOWN-PAYMENT</reference>
        <tax>/api/v1/tax/5231cc174ab63c53dc9004dd/</tax>
        <unit_price>11.94</unit_price>
        <item_id type="null"/>
        <quantity>1.00</quantity>
      </object>
    </line_items>
    <delivery_address type="null"/>
    <sender_address type="null"/>
    <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 type="null"/>
    <sender_organization>Test Company</sender_organization>
    <quotation_validity type="null"/>
    <organization>/api/v1/organization/5231cc174ab63c53dc9004e1/</organization>
    <pdf type="hash"/>
    <issuer>/api/v1/user/5231cbd64ab63c53dc900474/</issuer>
    <customer_reference type="null"/>
    <custom_payment_conditions type="null"/>
    <quotation_date type="null"/>
  </current_revision>
  <amount>14.28</amount>
  <contact type="null"/>
  <payments type="list"/>
  <organization type="null"/>
  <balance>14.28</balance>
  <history type="list"/>
</object>

Request

GET /down_payment_invoice/5231cc264ab63c53dc9004ee/

Response

200 OK
Content-Type: text/yaml; charset=utf-8
account_type: !!python/unicode 'RECEIVABLE'
amount: !!python/unicode '14.28'
attachments: []
balance: !!python/unicode '14.28'
contact: null
current_revision:
billing_address: null
contact: null
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: null
due_date: '2013-09-12'
invoicing_date: '2013-09-12'
issue_date: '2013-09-12T14:13:58.314000+00:00'
issuer: !!python/unicode '/api/v1/user/5231cbd64ab63c53dc900474/'
line_items:
- {description: !!python/unicode '30% down-payment on quotation 201309-00002', item_id: null,
quantity: !!python/unicode '1.00', reference: !!python/unicode 'DOWN-PAYMENT',
tax: !!python/unicode '/api/v1/tax/5231cc174ab63c53dc9004dd/', unit_price: !!python/unicode '11.94'}
organization: !!python/unicode '/api/v1/organization/5231cc174ab63c53dc9004e1/'
pdf: {}
quotation_date: null
quotation_validity: null
revision: !!python/unicode '958dd914-1bc0-49fb-ae4c-419eee2658d9'
sender: null
sender_address: null
sender_organization: !!python/unicode 'Test Company'
taxes_application: !!python/unicode 'EXCLUSIVE'
has_temporary_reference: false
history: []
id: !!python/unicode '5231cc264ab63c53dc9004ee'
issuer: !!python/unicode '/api/v1/user/5231cbd64ab63c53dc900474/'
notes: []
organization: null
paid: !!python/unicode '0.00'
payments: []
percentage: !!python/unicode '0.30'
reference: !!python/unicode '201309-00006'
related_credit_note: null
related_quotation: !!python/unicode '/api/v1/quotation/5231cc174ab63c53dc9004e2/'
resource_uri: !!python/unicode '/api/v1/down_payment_invoice/5231cc264ab63c53dc9004ee/'
revisions: []
state: !!python/unicode 'REGISTERED'
tax_applied: !!python/unicode '/api/v1/tax/5231cc174ab63c53dc9004dd/'
total: !!python/unicode '14.28'