GET https://api.adsalesgenius.com/contracts/
Request Parameters
Paramater Description Required Default Data Type
advertiser_id Reference to advertiser object No Integer
amount_from No Double
amount_to No Double
date_created_after No Date
date_created_before No Date
date_sold_after No Date
date_sold_before No Date
sort_by ('id','date_created','date_sold','total','status') No id Enum
sort_order ('asc','desc') No desc Enum
status ('Won','Lost','Open') No Enum
status No Bool
Response Parameters
Parameter Description Data Type
advertiser_id Integer
agency_id
billing_address Address Object
billing_email
currency_exchange
date_created Date
date_sold Date
down_payment
id Integer
insertion_order_number String
is_proposal Bool
notes String
percent_discount String
production_email
sold_by_user User Object
sold_to_email
status String
tax_rate
total Double
Example Response
{
  "contracts":[
    {
      "id":"131491",
      "sold_by_user":"72",
      "date_created":"0000-00-00 00:00:00",
      "date_sold":"1969-12-31 00:00:00",
      "advertiser_id":"8742",
      "status":"Won",
      "agency_id":null,
      "is_proposal":false,
      "notes":"",
      "insertion_order_number":null,
      "total":"0",
      "down_payment":null,
      "terms":{
        "id":"11",
        "name":"417 Magazine",
        "active":true,
        "date_created":"2017-04-25 12:12:34",
        "date_deleted":null
      },
      "billing_email":{
        "id":"19524",
        "contact_id":"10589",
        "advertiser_id":"7787",
        "agency_id":null,
        "value":"",
        "type":"Email",
        "type_name":"Work"
      },
      "production_email":{
        "id":"19524",
        "contact_id":"10589",
        "advertiser_id":"7787",
        "agency_id":null,
        "value":"",
        "type":"Email",
        "type_name":"Work"
      },
      "sold_to_email":null,
      "sold_to_address":{
        "id":"11164",
        "contact_id":null,
        "agency_id":null,
        "advertiser_id":"8742",
        "line1":"22 N CARROLL ST STE 200",
        "line2":"",
        "line3":"",
        "line4":"",
        "city":"MADISON",
        "state":"WI",
        "postal_code":"53703-2797",
        "country":{
          "name":"United States",
          "abbreviation":"USA"
        },
        "date_created":"2017-07-16 11:04:24",
        "created_by_user_id":"43"
      },
      "tax_rate":null,
      "billing_address":"11164",
      "insertions":[
        {
          "id":"148845",
          "ad_id":null,
          "product_id":"136",
          "location_id":null,
          "ad_size_id":"1558",
          "ad_rate_id":"5615",
          "issue_id":"7975",
          "contract_id":"131491",
          "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":null,
      "percent_discount":"0",
      "currency_exchange":null
    }
  ],
  "count":1
}