GET https://api.adsalesgenius.com/payments/
Request Parameters
Paramater Description Required Default Data Type
advertiser_id No Int
sort_by No String
sort_order asc or desc No desc Enum
Response Parameters
Parameter Description Data Type
amount String
contract_id Reference to contract object. Integer
count Int
currency
currency.id Integer
currency.name String
currency_exchange_rate String
date_created Date
date_refunded Date
entered_by_user_id String
id Integer
line.amount String
line.currency_variance String
line.date_applied Date
line.id Integer
line.invoice_id String
line.payment_id String
notes
type String
Example Response
{
  "payments":[
    {
      "id":"27598",
      "advertiser_id":"3948",
      "entered_by_user_id":"43",
      "contract_id":null,
      "currency":null,
      "currency_exchange_rate":"1",
      "type":"Check",
      "amount":"528.5",
      "date_created":"2017-06-09 00:00:00",
      "date_refunded":null,
      "notes":null,
      "line":[
        {
          "id":"63231",
          "payment_id":"27598",
          "invoice_id":"46228",
          "amount":"528.5",
          "currency_variance":"0",
          "date_applied":"2017-06-09 00:00:00"
        }
      ]
    },
    {
      "id":"27597",
      "advertiser_id":"3948",
      "entered_by_user_id":"43",
      "contract_id":null,
      "currency":null,
      "currency_exchange_rate":"1",
      "type":"Check",
      "amount":"528.5",
      "date_created":"2017-06-09 00:00:00",
      "date_refunded":null,
      "notes":null,
      "line":[
        {
          "id":"63230",
          "payment_id":"27597",
          "invoice_id":"46228",
          "amount":"528.5",
          "currency_variance":"0",
          "date_applied":"2017-06-09 00:00:00"
        }
      ]
    },
    {
      "id":"27167",
      "advertiser_id":"3948",
      "entered_by_user_id":"43",
      "contract_id":null,
      "currency":null,
      "currency_exchange_rate":"1",
      "type":"Check",
      "amount":"2136",
      "date_created":"2017-04-24 00:00:00",
      "date_refunded":null,
      "notes":null,
      "line":[
        {
          "id":"62727",
          "payment_id":"27167",
          "invoice_id":"46085",
          "amount":"2136",
          "currency_variance":"0",
          "date_applied":"2017-05-31 00:00:00"
        }
      ]
    },
    {
      "id":"27094",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"516",
      "date_created":"2017-04-10 00:00:00",
      "date_refunded":null,
      "notes":"2017p-31330:",
      "line":[
        {
          "id":"26760",
          "payment_id":"27094",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2017-04-10 00:00:00"
        },
        {
          "id":"52513",
          "payment_id":"27094",
          "invoice_id":"41488",
          "amount":"516",
          "currency_variance":"0",
          "date_applied":"2017-04-10 00:00:00"
        }
      ]
    },
    {
      "id":"27093",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"516",
      "date_created":"2017-04-10 00:00:00",
      "date_refunded":null,
      "notes":"2017p-31329:",
      "line":[
        {
          "id":"26759",
          "payment_id":"27093",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2017-04-10 00:00:00"
        },
        {
          "id":"52512",
          "payment_id":"27093",
          "invoice_id":"41488",
          "amount":"516",
          "currency_variance":"0",
          "date_applied":"2017-04-10 00:00:00"
        }
      ]
    },
    {
      "id":"26901",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"1068",
      "date_created":"2017-03-20 00:00:00",
      "date_refunded":null,
      "notes":"2017p-31079:",
      "line":[
        {
          "id":"26572",
          "payment_id":"26901",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2017-03-20 00:00:00"
        },
        {
          "id":"52511",
          "payment_id":"26901",
          "invoice_id":"41055",
          "amount":"1032",
          "currency_variance":"0",
          "date_applied":"2017-03-20 00:00:00"
        },
        {
          "id":"57783",
          "payment_id":"26901",
          "invoice_id":"44073",
          "amount":"36",
          "currency_variance":"0",
          "date_applied":"2017-03-20 00:00:00"
        }
      ]
    },
    {
      "id":"26900",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"1068",
      "date_created":"2017-03-20 00:00:00",
      "date_refunded":null,
      "notes":"2017p-31078:",
      "line":[
        {
          "id":"26571",
          "payment_id":"26900",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2017-03-20 00:00:00"
        },
        {
          "id":"52510",
          "payment_id":"26900",
          "invoice_id":"39677",
          "amount":"335",
          "currency_variance":"0",
          "date_applied":"2017-03-20 00:00:00"
        },
        {
          "id":"57782",
          "payment_id":"26900",
          "invoice_id":"44073",
          "amount":"733",
          "currency_variance":"0",
          "date_applied":"2017-03-20 00:00:00"
        }
      ]
    },
    {
      "id":"25870",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"516",
      "date_created":"2017-01-09 00:00:00",
      "date_refunded":null,
      "notes":"2017p-29087:",
      "line":[
        {
          "id":"25592",
          "payment_id":"25870",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2017-01-09 00:00:00"
        },
        {
          "id":"52509",
          "payment_id":"25870",
          "invoice_id":"39677",
          "amount":"516",
          "currency_variance":"0",
          "date_applied":"2017-01-09 00:00:00"
        }
      ]
    },
    {
      "id":"25869",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"516",
      "date_created":"2017-01-09 00:00:00",
      "date_refunded":null,
      "notes":"2017p-29086:",
      "line":[
        {
          "id":"25591",
          "payment_id":"25869",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2017-01-09 00:00:00"
        },
        {
          "id":"52508",
          "payment_id":"25869",
          "invoice_id":"39677",
          "amount":"516",
          "currency_variance":"0",
          "date_applied":"2017-01-09 00:00:00"
        }
      ]
    },
    {
      "id":"25823",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"769",
      "date_created":"2017-01-06 00:00:00",
      "date_refunded":null,
      "notes":"2017p-29039:",
      "line":[
        {
          "id":"25545",
          "payment_id":"25823",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2017-01-06 00:00:00"
        },
        {
          "id":"52507",
          "payment_id":"25823",
          "invoice_id":"39677",
          "amount":"769",
          "currency_variance":"0",
          "date_applied":"2017-01-06 00:00:00"
        }
      ]
    },
    {
      "id":"25822",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"769",
      "date_created":"2017-01-06 00:00:00",
      "date_refunded":null,
      "notes":"2017p-29038:",
      "line":[
        {
          "id":"25544",
          "payment_id":"25822",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2017-01-06 00:00:00"
        },
        {
          "id":"52506",
          "payment_id":"25822",
          "invoice_id":"39444",
          "amount":"82",
          "currency_variance":"0",
          "date_applied":"2017-01-06 00:00:00"
        },
        {
          "id":"57781",
          "payment_id":"25822",
          "invoice_id":"44073",
          "amount":"687",
          "currency_variance":"0",
          "date_applied":"2017-01-06 00:00:00"
        }
      ]
    },
    {
      "id":"25454",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"769",
      "date_created":"2016-12-12 00:00:00",
      "date_refunded":null,
      "notes":"2016p-28606:",
      "line":[
        {
          "id":"25193",
          "payment_id":"25454",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-12-12 00:00:00"
        },
        {
          "id":"52505",
          "payment_id":"25454",
          "invoice_id":"39444",
          "amount":"769",
          "currency_variance":"0",
          "date_applied":"2016-12-12 00:00:00"
        }
      ]
    },
    {
      "id":"25453",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"769",
      "date_created":"2016-12-12 00:00:00",
      "date_refunded":null,
      "notes":"2016p-28605:",
      "line":[
        {
          "id":"25192",
          "payment_id":"25453",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-12-12 00:00:00"
        },
        {
          "id":"52504",
          "payment_id":"25453",
          "invoice_id":"39444",
          "amount":"769",
          "currency_variance":"0",
          "date_applied":"2016-12-12 00:00:00"
        }
      ]
    },
    {
      "id":"25110",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"516",
      "date_created":"2016-11-14 00:00:00",
      "date_refunded":null,
      "notes":"2016p-28162:",
      "line":[
        {
          "id":"24868",
          "payment_id":"25110",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-11-14 00:00:00"
        },
        {
          "id":"52503",
          "payment_id":"25110",
          "invoice_id":"39444",
          "amount":"516",
          "currency_variance":"0",
          "date_applied":"2016-11-14 00:00:00"
        }
      ]
    },
    {
      "id":"25109",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"516",
      "date_created":"2016-11-14 00:00:00",
      "date_refunded":null,
      "notes":"2016p-28161:",
      "line":[
        {
          "id":"24867",
          "payment_id":"25109",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-11-14 00:00:00"
        },
        {
          "id":"52502",
          "payment_id":"25109",
          "invoice_id":"38824",
          "amount":"152",
          "currency_variance":"0",
          "date_applied":"2016-11-14 00:00:00"
        },
        {
          "id":"57780",
          "payment_id":"25109",
          "invoice_id":"44073",
          "amount":"364",
          "currency_variance":"0",
          "date_applied":"2016-11-14 00:00:00"
        }
      ]
    },
    {
      "id":"24926",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"1068",
      "date_created":"2016-10-25 00:00:00",
      "date_refunded":null,
      "notes":"2016p-27937:",
      "line":[
        {
          "id":"24685",
          "payment_id":"24926",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-10-25 00:00:00"
        },
        {
          "id":"52501",
          "payment_id":"24926",
          "invoice_id":"38823",
          "amount":"981",
          "currency_variance":"0",
          "date_applied":"2016-10-25 00:00:00"
        },
        {
          "id":"57779",
          "payment_id":"24926",
          "invoice_id":"44073",
          "amount":"87",
          "currency_variance":"0",
          "date_applied":"2016-10-25 00:00:00"
        }
      ]
    },
    {
      "id":"24925",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"1068",
      "date_created":"2016-10-25 00:00:00",
      "date_refunded":null,
      "notes":"2016p-27936:",
      "line":[
        {
          "id":"24684",
          "payment_id":"24925",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-10-25 00:00:00"
        },
        {
          "id":"52500",
          "payment_id":"24925",
          "invoice_id":"39004",
          "amount":"956",
          "currency_variance":"0",
          "date_applied":"2016-10-25 00:00:00"
        },
        {
          "id":"57778",
          "payment_id":"24925",
          "invoice_id":"44073",
          "amount":"112",
          "currency_variance":"0",
          "date_applied":"2016-10-25 00:00:00"
        }
      ]
    },
    {
      "id":"24475",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"76",
      "date_created":"2016-09-19 00:00:00",
      "date_refunded":null,
      "notes":"2016p-27416:",
      "line":[
        {
          "id":"24250",
          "payment_id":"24475",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-09-19 00:00:00"
        },
        {
          "id":"52499",
          "payment_id":"24475",
          "invoice_id":"39004",
          "amount":"76",
          "currency_variance":"0",
          "date_applied":"2016-09-19 00:00:00"
        }
      ]
    },
    {
      "id":"24474",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"490.5",
      "date_created":"2016-09-19 00:00:00",
      "date_refunded":null,
      "notes":"2016p-27415:",
      "line":[
        {
          "id":"24249",
          "payment_id":"24474",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-09-19 00:00:00"
        },
        {
          "id":"52498",
          "payment_id":"24474",
          "invoice_id":"38424",
          "amount":"465.5",
          "currency_variance":"0",
          "date_applied":"2016-09-19 00:00:00"
        },
        {
          "id":"57777",
          "payment_id":"24474",
          "invoice_id":"44073",
          "amount":"25",
          "currency_variance":"0",
          "date_applied":"2016-09-19 00:00:00"
        }
      ]
    },
    {
      "id":"24473",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"76",
      "date_created":"2016-09-19 00:00:00",
      "date_refunded":null,
      "notes":"2016p-27414:",
      "line":[
        {
          "id":"24248",
          "payment_id":"24473",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-09-19 00:00:00"
        },
        {
          "id":"52497",
          "payment_id":"24473",
          "invoice_id":"38424",
          "amount":"76",
          "currency_variance":"0",
          "date_applied":"2016-09-19 00:00:00"
        }
      ]
    },
    {
      "id":"24472",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"490.5",
      "date_created":"2016-09-19 00:00:00",
      "date_refunded":null,
      "notes":"2016p-27413:",
      "line":[
        {
          "id":"24247",
          "payment_id":"24472",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-09-19 00:00:00"
        },
        {
          "id":"52496",
          "payment_id":"24472",
          "invoice_id":"38424",
          "amount":"490.5",
          "currency_variance":"0",
          "date_applied":"2016-09-19 00:00:00"
        }
      ]
    },
    {
      "id":"24204",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"1068",
      "date_created":"2016-09-07 00:00:00",
      "date_refunded":null,
      "notes":"2016p-27078:",
      "line":[
        {
          "id":"23995",
          "payment_id":"24204",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-09-07 00:00:00"
        },
        {
          "id":"52495",
          "payment_id":"24204",
          "invoice_id":"37915",
          "amount":"470",
          "currency_variance":"0",
          "date_applied":"2016-09-07 00:00:00"
        },
        {
          "id":"57776",
          "payment_id":"24204",
          "invoice_id":"43627",
          "amount":"450",
          "currency_variance":"0",
          "date_applied":"2016-09-07 00:00:00"
        },
        {
          "id":"60445",
          "payment_id":"24204",
          "invoice_id":"45046",
          "amount":"148",
          "currency_variance":"0",
          "date_applied":"2016-09-07 00:00:00"
        }
      ]
    },
    {
      "id":"24203",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"1068",
      "date_created":"2016-09-07 00:00:00",
      "date_refunded":null,
      "notes":"2016p-27077:",
      "line":[
        {
          "id":"23994",
          "payment_id":"24203",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-09-07 00:00:00"
        },
        {
          "id":"52494",
          "payment_id":"24203",
          "invoice_id":"37915",
          "amount":"1068",
          "currency_variance":"0",
          "date_applied":"2016-09-07 00:00:00"
        }
      ]
    },
    {
      "id":"23732",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"516",
      "date_created":"2016-07-25 00:00:00",
      "date_refunded":null,
      "notes":"2016p-26442:",
      "line":[
        {
          "id":"23556",
          "payment_id":"23732",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-07-25 00:00:00"
        },
        {
          "id":"52493",
          "payment_id":"23732",
          "invoice_id":"37503",
          "amount":"486",
          "currency_variance":"0",
          "date_applied":"2016-07-25 00:00:00"
        },
        {
          "id":"57775",
          "payment_id":"23732",
          "invoice_id":"43627",
          "amount":"30",
          "currency_variance":"0",
          "date_applied":"2016-07-25 00:00:00"
        }
      ]
    },
    {
      "id":"23731",
      "advertiser_id":"3948",
      "entered_by_user_id":null,
      "contract_id":null,
      "currency":{
        "id":"1",
        "name":"U.S. Dollar"
      },
      "currency_exchange_rate":null,
      "type":"Other",
      "amount":"516",
      "date_created":"2016-07-25 00:00:00",
      "date_refunded":null,
      "notes":"2016p-26441:",
      "line":[
        {
          "id":"23555",
          "payment_id":"23731",
          "invoice_id":null,
          "amount":"0",
          "currency_variance":"0",
          "date_applied":"2016-07-25 00:00:00"
        },
        {
          "id":"52492",
          "payment_id":"23731",
          "invoice_id":"37503",
          "amount":"516",
          "currency_variance":"0",
          "date_applied":"2016-07-25 00:00:00"
        }
      ]
    }
  ],
  "count":59
}