Get Invoices
get
https://api.payant.ng/invoices
Get Invoice History

Request

1
curl https://api.payant.ng/invoices \
2
-H "Content-Type: application/json" \
3
-H "Authorization: Bearer SECRET_KEY" \
4
-X POST
Copied!

Response

1
{
2
"status": "success",
3
"data": {
4
"period": "custom",
5
"start": "01/12/2016",
6
"end": "31/12/2016",
7
"invoices": [
8
{
9
"id": 1,
10
"company_id": "1",
11
"client_id": "1",
12
"reference_code": "j9CbiTN0oJe4vWhglyS2",
13
"payment_id": null,
14
"fee_bearer": "client",
15
"mail_status": "unsent",
16
"status": "0",
17
"due_date": "1483056000",
18
"created_at": "2016-12-21 18:46:30",
19
"updated_at": "2016-12-21 18:46:30",
20
"deleted_at": null,
21
"client": {
22
"id": 1,
23
"company_id": 1,
24
"name": "Albert Specialist Hospital",
25
"first_name": "Albert",
26
"last_name": "Jane",
27
"email": "[email protected]",
28
"phone": "+2348012345678",
29
"website": "http://www.alberthospital.com",
30
"address": "Wase II",
31
"type": "Customer",
32
"settlement_bank": "",
33
"account_name": "",
34
"account_number": "",
35
"status": "1",
36
"created_at": "2016-12-21 17:19:10",
37
"updated_at": "2016-12-21 17:19:10",
38
"deleted_at": null
39
},
40
"items": [
41
{
42
"id": "1",
43
"company_id": "1",
44
"client_id": "1",
45
"name": "Website Design",
46
"description": "5 Pages Website plus 1 Year Web Hosting",
47
"quantity": "1",
48
"unit_cost": "50000.00",
49
"status": "0",
50
"due_date": "1483056000",
51
"created_at": "2016-12-21 17:19:10",
52
"updated_at": "2016-12-21 17:19:10",
53
"deleted_at": null
54
}
55
]
56
}
57
]
58
}
59
}
Copied!
Last modified 2yr ago