List all invoices
You can list all invoices, or list the invoices for a specific contractor. The invoices are returned sorted by creation date, with the most recently created invoices appearing first.
Query parameters
-
limit integer
A limit on the number of objects to be returned. Limit can range between
1
and100
, and the default is10
.Minimum value is
1
, maximum value is100
. Default value is10
. -
starting_after string
A cursor for use in pagination.
starting_after
is an invoice ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending within_fOo123
, your subsequent call can includestarting_after=in_fOo123
in order to fetch the next page of the list. -
ending_before string
A cursor for use in pagination.
ending_before
is an invoice ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting within_bAr123
, your subsequent call can includeending_before=in_bAr123
in order to fetch the previous page of the list.
curl \
-X GET https://api.1099policy.com/api/v1/invoices
[
{
"contractor": "cn_Ehb3bYa",
"created": 1646818364,
"gross_pay": 250000,
"id": "in_4RviYgc2Wt",
"job": "jb_jsb9KEcTpc",
"paycycle_enddate": 1678334737,
"paycycle_startdate": 1646818364,
"premium_due": 4325
}
]