GET https://api.adsalesgenius.com/contracts/{contract_id}
Response Parameters
Parameter Description Data Type
advertiser_id Reference to advertiser object Integer
agency_id Reference to agency object Integer
billing_address Address Object
billing_email Contact Data Object
currency_exchange Float
date_created Date
date_sold Date
down_payment Amount to be pre-paid prior to first ad Double
id Unique id of object Integer
insertion_order_number String
is_proposal Bool
line_items List of contract line items Array
notes String
percent_discount Integer
production_email Contact Data Object
sold_by_user User Object
sold_to_email Contact Data Object
status ('Won','Lost','Open') Enum
tax_rate Tax Rate Object
total Double
Example Response
{
  "id":"20",
  "sold_by_user":"3",
  "date_created":"2008-08-27 12:14:45",
  "date_sold":"2008-08-27 12:14:45",
  "advertiser_id":"28",
  "status":"Won",
  "agency_id":null,
  "is_proposal":false,
  "notes":"",
  "insertion_order_number":null,
  "total":"1547.4",
  "down_payment":null,
  "terms":{
    "id":"6",
    "name":"417 Magazine",
    "active":false,
    "date_created":"2017-03-31 11:53:35",
    "date_deleted":"2017-04-18 14:10:43"
  },
  "billing_email":null,
  "production_email":null,
  "sold_to_email":null,
  "sold_to_address":{
    "id":"27",
    "contact_id":"27",
    "agency_id":null,
    "advertiser_id":null,
    "line1":"2009 E. Elm",
    "line2":"",
    "line3":"",
    "line4":"",
    "city":"Springfield",
    "state":"MO",
    "postal_code":"65802",
    "country":{
      "name":"United States",
      "abbreviation":"USA"
    },
    "date_created":"2017-04-15 13:10:29",
    "created_by_user_id":null
  },
  "tax_rate":null,
  "billing_address":"27",
  "insertions":[
    {
      "id":"20",
      "ad_id":null,
      "product_id":"2",
      "location_id":null,
      "ad_size_id":"10",
      "ad_rate_id":"17",
      "issue_id":"5323",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":"20",
          "insertion_id":"134344",
          "date_start":"2017-08-01",
          "date_end":"2017-09-01",
          "date_created":"2017-04-23 20:06:20",
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"149",
      "ad_id":null,
      "product_id":"2",
      "location_id":null,
      "ad_size_id":"10",
      "ad_rate_id":"17",
      "issue_id":"5324",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"4618",
      "ad_id":null,
      "product_id":"4",
      "location_id":null,
      "ad_size_id":"72",
      "ad_rate_id":"662",
      "issue_id":"5420",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"5013",
      "ad_id":null,
      "product_id":"4",
      "location_id":null,
      "ad_size_id":"72",
      "ad_rate_id":"662",
      "issue_id":"5421",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"5467",
      "ad_id":null,
      "product_id":"4",
      "location_id":null,
      "ad_size_id":"72",
      "ad_rate_id":"662",
      "issue_id":"5422",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"5719",
      "ad_id":null,
      "product_id":"4",
      "location_id":null,
      "ad_size_id":"72",
      "ad_rate_id":"662",
      "issue_id":"5423",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"6189",
      "ad_id":null,
      "product_id":"4",
      "location_id":null,
      "ad_size_id":"72",
      "ad_rate_id":"662",
      "issue_id":"5424",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"6632",
      "ad_id":null,
      "product_id":"4",
      "location_id":null,
      "ad_size_id":"72",
      "ad_rate_id":"662",
      "issue_id":"5425",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"7099",
      "ad_id":null,
      "product_id":"4",
      "location_id":null,
      "ad_size_id":"72",
      "ad_rate_id":"662",
      "issue_id":"5426",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"7454",
      "ad_id":null,
      "product_id":"4",
      "location_id":null,
      "ad_size_id":"72",
      "ad_rate_id":"662",
      "issue_id":"5427",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"7740",
      "ad_id":null,
      "product_id":"4",
      "location_id":null,
      "ad_size_id":"72",
      "ad_rate_id":"662",
      "issue_id":"5428",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"8122",
      "ad_id":null,
      "product_id":"4",
      "location_id":null,
      "ad_size_id":"72",
      "ad_rate_id":"662",
      "issue_id":"5417",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"8420",
      "ad_id":null,
      "product_id":"4",
      "location_id":null,
      "ad_size_id":"72",
      "ad_rate_id":"662",
      "issue_id":"5418",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    },
    {
      "id":"8713",
      "ad_id":null,
      "product_id":"4",
      "location_id":null,
      "ad_size_id":"72",
      "ad_rate_id":"662",
      "issue_id":"5419",
      "contract_id":"20",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":null,
          "insertion_id":null,
          "date_start":null,
          "date_end":null,
          "date_created":null,
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    }
  ],
  "line_items":[
    {
      "id":"16539",
      "contract_id":"20",
      "contract_line_item_type_id":"1",
      "notes":"Import: Overcharge\/Fee\/Agency\/Other",
      "amount":"89.1",
      "apply_to_insertion_id":"20"
    },
    {
      "id":"16545",
      "contract_id":"20",
      "contract_line_item_type_id":"1",
      "notes":"Import: Overcharge\/Fee\/Agency\/Other",
      "amount":"89.1",
      "apply_to_insertion_id":"149"
    },
    {
      "id":"16540",
      "contract_id":"20",
      "contract_line_item_type_id":"2",
      "notes":"Import: General",
      "amount":"89.1",
      "apply_to_insertion_id":"20"
    },
    {
      "id":"16546",
      "contract_id":"20",
      "contract_line_item_type_id":"2",
      "notes":"Import: General",
      "amount":"89.1",
      "apply_to_insertion_id":"149"
    }
  ],
  "percent_discount":"0",
  "currency_exchange":null
}
Example Response
{
  "id":"1",
  "sold_by_user":"51",
  "date_created":"2015-05-07 15:43:11",
  "date_sold":"2015-05-07 15:43:11",
  "advertiser_id":"2457",
  "status":"Won",
  "agency_id":null,
  "is_proposal":false,
  "notes":"",
  "insertion_order_number":null,
  "total":"500",
  "down_payment":null,
  "terms":{
    "id":"1",
    "name":"417 Magazine",
    "active":false,
    "date_created":"2017-03-24 14:01:10",
    "date_deleted":"2017-03-24 13:02:07"
  },
  "billing_email":null,
  "production_email":null,
  "sold_to_email":null,
  "sold_to_address":{
    "id":"2252",
    "contact_id":"2347",
    "agency_id":null,
    "advertiser_id":null,
    "line1":"1326 E. Battlefield Springfield",
    "line2":"",
    "line3":"",
    "line4":"",
    "city":"Springfield",
    "state":"MO",
    "postal_code":"65804",
    "country":{
      "name":"United States",
      "abbreviation":"USA"
    },
    "date_created":"2017-04-15 13:12:28",
    "created_by_user_id":null
  },
  "tax_rate":null,
  "billing_address":null,
  "insertions":[
    {
      "id":"1",
      "ad_id":null,
      "product_id":"1",
      "location_id":null,
      "ad_size_id":"1",
      "ad_rate_id":"1",
      "issue_id":"5322",
      "contract_id":"1",
      "quantity":"1",
      "taxable":false,
      "date_delivery":null,
      "date_canceled":null,
      "placement":null,
      "description":null,
      "discount":"0",
      "section_id":null,
      "schedule":[
        {
          "id":"1",
          "insertion_id":"134292",
          "date_start":"2017-05-01",
          "date_end":"2017-06-01",
          "date_created":"2017-04-21 10:41:25",
          "date_deleted":null,
          "order":null,
          "duration":null
        }
      ]
    }
  ],
  "line_items":null,
  "percent_discount":"0",
  "currency_exchange":null
}