Get Invoice
get
https://api.payant.ng/invoices/:reference_code
Get Invoice

Request

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

Response

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