Add Payment
post
https://api.payant.ng/payments
Add Payment
get
https://api.payant.ng/payments/:reference_code
get
https://api.payant.ng/payments/:reference_code

Request

1
curl https://api.payant.ng/payments \
2
-H "Content-Type: application/json" \
3
-H "Authorization: Bearer SECRET_KEY" \
4
-d '{ "reference_code": "j9CbiTN0oJe4vWhglyS2",
5
"amount": "50,000.00",
6
"channel": "Cash" }' \
7
-X POST
Copied!

Response

1
{
2
"status": "success",
3
"message": "Payment successful.",
4
"data": {
5
"company_id": "1",
6
"client_id": "1",
7
"invoice_id": "1",
8
"expense_id": "",
9
"amount": "50000.00",
10
"currency": "NGN",
11
"transaction_date": "1482105600",
12
"status": "success",
13
"reference_code": "j9CbiTN0oJe4vWhglyS2",
14
"payment_id": "",
15
"referrer": "",
16
"gateway_response": "",
17
"message": "",
18
"channel": "Cash",
19
"type": "Invoice",
20
"created_at": "2016-12-21 18:46:30",
21
"updated_at": "2016-12-21 18:46:30",
22
"id": 1,
23
"client": {
24
"id": 1
25
"company_id": 1,
26
"name": "Albert Specialist Hospital",
27
"first_name": "Albert",
28
"last_name": "Jane",
29
"email": "[email protected]",
30
"phone": "+2348012345678",
31
"website": "http://www.alberthospital.com",
32
"address": "Wase II",
33
"type": "Customer",
34
"settlement_bank": "",
35
"account_name": "",
36
"account_number": "",
37
"status": "1",
38
"created_at": "2016-12-21 17:19:10",
39
"updated_at": "2016-12-21 17:19:10",
40
"deleted_at": null
41
},
42
invoice: {
43
"id": 1,
44
"company_id": "1",
45
"client_id": "1",
46
"reference_code": "j9CbiTN0oJe4vWhglyS2",
47
"payment_id": null,
48
"fee_bearer": "client",
49
"mail_status": "unsent",
50
"status": "0",
51
"due_date": "1483056000",
52
"created_at": "2016-12-21 18:46:30",
53
"updated_at": "2016-12-21 18:46:30",
54
"deleted_at": null,
55
"items": [
56
{
57
"id": "1",
58
"company_id": "1",
59
"client_id": "1",
60
"name": "Website Design",
61
"description": "5 Pages Website plus 1 Year Web Hosting",
62
"quantity": "1",
63
"unit_cost": "50000.00",
64
"status": "0",
65
"due_date": "1483056000",
66
"created_at": "2016-12-21 17:19:10",
67
"updated_at": "2016-12-21 17:19:10",
68
"deleted_at": null
69
}
70
]
71
}
72
}
73
}
Copied!
Last modified 2yr ago