Get Payment
get
https://api.payant.ng/payments/:reference_code
Get Payment

Request

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