Get Payments
post
https://api.payant.ng/payments
Get Payments

Request

1
curl https://api.payant.ng/payments \
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
"payments": [
8
{
9
"company_id": "1",
10
"client_id": "1",
11
"invoice_id": "1",
12
"expense_id": "",
13
"amount": "50000.00",
14
"currency": "NGN",
15
"transaction_date": "1482105600",
16
"status": "success",
17
"reference_code": "j9CbiTN0oJe4vWhglyS2",
18
"payment_id": "",
19
"referrer": "",
20
"gateway_response": "",
21
"message": "",
22
"channel": "Cash",
23
"type": "Invoice",
24
"created_at": "2016-12-21 18:46:30",
25
"updated_at": "2016-12-21 18:46:30",
26
"id": 1,
27
invoice: {
28
"id": 1,
29
"company_id": "1",
30
"client_id": "1",
31
"reference_code": "j9CbiTN0oJe4vWhglyS2",
32
"payment_id": null,
33
"fee_bearer": "client",
34
"mail_status": "unsent",
35
"status": "0",
36
"due_date": "1483056000",
37
"created_at": "2016-12-21 18:46:30",
38
"updated_at": "2016-12-21 18:46:30",
39
"deleted_at": null,
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
"client": {
58
"id": 1
59
"company_id": 1,
60
"name": "Albert Specialist Hospital",
61
"first_name": "Albert",
62
"last_name": "Jane",
63
"email": "[email protected]",
64
"phone": "+2348012345678",
65
"website": "http://www.alberthospital.com",
66
"address": "Wase II",
67
"type": "Customer",
68
"settlement_bank": "",
69
"account_name": "",
70
"account_number": "",
71
"status": "1",
72
"created_at": "2016-12-21 17:19:10",
73
"updated_at": "2016-12-21 17:19:10",
74
"deleted_at": null
75
}
76
}
77
]
78
}
79
}
Copied!
Last modified 2yr ago