Request

GET /credit_note/5231cbfa4ab63c53dc9004ca/

Response

200 OK
Content-Type: application/json
{
    "state": "REGISTERED", 
    "total": "0.00", 
    "account_type": "RECEIVABLE", 
    "attachments": [], 
    "reference": "201309-00001", 
    "resource_uri": "/api/v1/credit_note/5231cbfa4ab63c53dc9004ca/", 
    "notes": [], 
    "current_revision": {
        "delivery_address": null, 
        "issue_date": "2013-09-12T14:13:14.628000+00:00", 
        "billing_address": null, 
        "revision": "7b0ba93c-fcb2-4686-8298-7bc9481fd78e", 
        "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": "2013-09-12", 
        "contact": null, 
        "sender": null, 
        "quotation_validity": null, 
        "line_items": [
            {
                "description": "30% down-payment on quotation 201309-00001", 
                "reference": "DOWN-PAYMENT", 
                "tax": "/api/v1/tax/5231cbda4ab63c53dc90047d/", 
                "unit_price": "0.00", 
                "item_id": null, 
                "quantity": "1.00"
            }
        ], 
        "sender_organization": "Test Company", 
        "organization": "/api/v1/organization/5231cbf24ab63c53dc9004c2/", 
        "pdf": {}, 
        "customer_reference": null, 
        "issuer": "/api/v1/user/5231cbd64ab63c53dc900474/"
    }, 
    "related_invoice": "/api/v1/invoice/5231cbf44ab63c53dc9004c5/", 
    "amount": "0.00", 
    "contact": null, 
    "organization": null, 
    "issuer": "/api/v1/user/5231cbd64ab63c53dc900474/", 
    "revisions": [], 
    "id": "5231cbfa4ab63c53dc9004ca", 
    "history": []
}

Request

GET /credit_note/5231cc054ab63c53dc9004d2/

Response

200 OK
Content-Type: application/xml; charset=utf-8
<object>
  <account_type>RECEIVABLE</account_type>
  <attachments type="list"/>
  <reference>201309-00002</reference>
  <state>REGISTERED</state>
  <notes type="list"/>
  <history type="list"/>
  <current_revision>
    <due_date>2013-09-12</due_date>
    <issue_date>2013-09-12T14:13:25.642000+00:00</issue_date>
    <billing_address type="null"/>
    <sender type="null"/>
    <invoicing_date>2013-09-12</invoicing_date>
    <revision>45c034ff-e87f-4c19-821f-749c6730d5d9</revision>
    <taxes_application>EXCLUSIVE</taxes_application>
    <line_items type="list">
      <object>
        <description>30% down-payment on quotation 201309-00001</description>
        <reference>DOWN-PAYMENT</reference>
        <tax>/api/v1/tax/5231cbda4ab63c53dc90047d/</tax>
        <unit_price>0.00</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>2013-09-12</credit_note_emission_date>
    <contact type="null"/>
    <sender_organization>Test Company</sender_organization>
    <quotation_validity type="null"/>
    <organization>/api/v1/organization/5231cbf24ab63c53dc9004c2/</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>
  <related_invoice>/api/v1/invoice/5231cbfe4ab63c53dc9004cd/</related_invoice>
  <amount>0.00</amount>
  <contact type="null"/>
  <resource_uri>/api/v1/credit_note/5231cc054ab63c53dc9004d2/</resource_uri>
  <organization type="null"/>
  <total>0.00</total>
  <revisions type="list"/>
  <id>5231cc054ab63c53dc9004d2</id>
  <issuer>/api/v1/user/5231cbd64ab63c53dc900474/</issuer>
</object>

Request

GET /credit_note/5231cc0f4ab63c53dc9004da/

Response

200 OK
Content-Type: text/yaml; charset=utf-8
account_type: !!python/unicode 'RECEIVABLE'
amount: !!python/unicode '0.00'
attachments: []
contact: null
current_revision:
billing_address: null
contact: null
credit_note_emission_date: '2013-09-12'
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:35.606000+00:00'
issuer: !!python/unicode '/api/v1/user/5231cbd64ab63c53dc900474/'
line_items:
- {description: !!python/unicode '30% down-payment on quotation 201309-00001', item_id: null,
quantity: !!python/unicode '1.00', reference: !!python/unicode 'DOWN-PAYMENT',
tax: !!python/unicode '/api/v1/tax/5231cbda4ab63c53dc90047d/', unit_price: !!python/unicode '0.00'}
organization: !!python/unicode '/api/v1/organization/5231cbf24ab63c53dc9004c2/'
pdf: {}
quotation_date: null
quotation_validity: null
revision: !!python/unicode '82ab5a33-8453-4a86-b30f-f984c4114b89'
sender: null
sender_address: null
sender_organization: !!python/unicode 'Test Company'
taxes_application: !!python/unicode 'EXCLUSIVE'
history: []
id: !!python/unicode '5231cc0f4ab63c53dc9004da'
issuer: !!python/unicode '/api/v1/user/5231cbd64ab63c53dc900474/'
notes: []
organization: null
reference: !!python/unicode '201309-00003'
related_invoice: !!python/unicode '/api/v1/invoice/5231cc094ab63c53dc9004d5/'
resource_uri: !!python/unicode '/api/v1/credit_note/5231cc0f4ab63c53dc9004da/'
revisions: []
state: !!python/unicode 'REGISTERED'
total: !!python/unicode '0.00'