GET
https://api.adsalesgenius.com/invoices/{invoice_id}
Paramater |
Description |
Data Type |
advertiser_id |
Reference to advertiser object. |
Integer |
billing_address |
Address object. |
Object |
billing_email |
Contact Data object |
Object |
comments |
|
String |
contract_id |
|
String |
currency.id |
|
Integer |
currency.name |
|
String |
date_created |
|
Date |
date_deleted |
|
Date |
date_due |
|
Date |
date_modified |
|
Date |
discount_amount |
|
Double |
discount_total |
|
Double |
exchange_rate |
Multiplier for conversion of currency from home currency. |
Double |
id |
Unique id of payment object. |
Integer |
line_items.amount |
|
String |
line_items.contract_line_item_id |
Reference to contract line item object. |
Integer |
line_items.delivery_log_id |
Reference to delivery log object. |
Integer |
line_items.description |
|
String |
line_items.id |
Unique id of invoice line item object. |
Integer |
line_items.insertion_id |
Reference to insertion object. |
Integer |
line_items.invoice_id |
Reference to invoice object. |
Integer |
line_items.invoice_line_item_type_id |
Reference to invoice line item type object. |
Integer |
line_items.taxable |
|
Bool |
line_items.total |
|
Double |
status |
'Paid','Unpaid' |
Enum |
sub_total |
|
Double |
tax_after_discount |
If discount is calculated pre or post tax. |
Bool |
tax_percent_based |
|
Bool |
tax_rate |
|
Double |
tax_total |
|
Double |
total |
|
Double |
{
"id":"1",
"contract_id":"69242",
"advertiser_id":"159",
"billing_address":null,
"billing_email":null,
"tax_rate":null,
"tax_after_discount":false,
"tax_percent_based":"0",
"discount_amount":null,
"currency":{
"id":"1",
"name":"U.S. Dollar"
},
"sub_total":"250",
"discount_total":"0",
"tax_total":"0",
"total":"250",
"status":"Paid",
"date_due":"2013-03-15 00:00:00",
"exchange_rate":null,
"comments":null,
"date_created":"2013-03-15 00:00:00",
"date_deleted":null,
"date_modified":null,
"line_items":[
{
"id":"129340",
"invoice_id":"1",
"taxable":false,
"amount":"0",
"total":"0",
"description":null,
"invoice_line_item_type_id":null,
"insertion_id":"75833",
"delivery_log_id":null,
"contract_line_item_id":null
},
{
"id":"129341",
"invoice_id":"1",
"taxable":false,
"amount":"250",
"total":"250",
"description":null,
"invoice_line_item_type_id":null,
"insertion_id":"76000",
"delivery_log_id":null,
"contract_line_item_id":null
}
]
}