Home / API Documentation

Get payments by date range

Method: GET api/v1/Invoice/GetPaymentsByType?from={from}&to={to}&companyid={companyid}&paymethod={paymethod}

Response Format:

application/json

Required Parameters Description Additional information
from

Define this parameter in the request URI.

to

Define this parameter in the request URI.

companyid

Define this parameter in the request URI.

paymethod
** 2=credit (by default), Others values: 0=payment,1=discount,2=credit, 3=transfer to an existing account,4=tranfer to a new account

Define this parameter in the request URI.

application/json, text/json

Sample Response:
                        [
  {
    "paymentid": 1,
    "type": "sample string 2",
    "accountid": 3,
    "accountnum": "sample string 4",
    "customer": "sample string 5",
    "invoiceid": 6,
    "invoicenum": "sample string 7",
    "batchid": 8,
    "datereceived": "sample string 9",
    "memo": "sample string 10",
    "lastchanged": "sample string 11",
    "amount": 12.0,
    "tax": 13.0
  },
  {
    "paymentid": 1,
    "type": "sample string 2",
    "accountid": 3,
    "accountnum": "sample string 4",
    "customer": "sample string 5",
    "invoiceid": 6,
    "invoicenum": "sample string 7",
    "batchid": 8,
    "datereceived": "sample string 9",
    "memo": "sample string 10",
    "lastchanged": "sample string 11",
    "amount": 12.0,
    "tax": 13.0
  }
];