GET   Get Payment


Resource

https://api.payant.ng/payments/:reference_code

Example

curl https://api.payant.ng/payments/j9CbiTN0oJe4vWhglyS2 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer SECRET_KEY" \
-X GET 
            

Response

{
  "status": "success",
  "data": {
    "company_id": "1",
    "client_id": "1",
    "invoice_id": "1",
    "expense_id": "",
    "amount": "50000.00",
    "currency": "NGN",
    "transaction_date": "1482105600",
    "status": "success",
    "reference_code": "j9CbiTN0oJe4vWhglyS2",
    "payment_id": "",
    "referrer": "",
    "gateway_response": "",
    "message": "",
    "channel": "Cash",
    "type": "Invoice",
    "created_at": "2016-12-21 18:46:30",
    "updated_at": "2016-12-21 18:46:30",
    "id": 1,
    invoice: {
        "id": 1,
        "company_id": "1",
        "client_id": "1",
        "reference_code": "j9CbiTN0oJe4vWhglyS2",
        "payment_id": null,
        "fee_bearer": "client",
        "mail_status": "unsent",
        "status": "0",
        "due_date": "1483056000",
        "created_at": "2016-12-21 18:46:30",
        "updated_at": "2016-12-21 18:46:30",
        "deleted_at": null,
        "items": [
            {
                "id": "1",
                "company_id": "1",
                "client_id": "1",
                "name": "Website Design",
                "description": "5 Pages Website plus 1 Year Web Hosting",
                "quantity": "1",
                "unit_cost": "50000.00",
                "status": "0",
                "due_date": "1483056000",
                "created_at": "2016-12-21 17:19:10",
                "updated_at": "2016-12-21 17:19:10",
                "deleted_at": null
            }
        ]
     },
     "client": {
        "id": 1
        "company_id": 1,
        "name": "Albert Specialist Hospital",
        "first_name": "Albert",
        "last_name": "Jane",
        "email": "jane@alberthospital.com",
        "phone": "+2348012345678",
        "website": "http://www.alberthospital.com",
        "address": "Wase II",
        "type": "Customer",
        "settlement_bank": "",
        "account_name": "",
        "account_number": "",
        "status": "1",
        "created_at": "2016-12-21 17:19:10",
        "updated_at": "2016-12-21 17:19:10",
        "deleted_at": null
    }
  }
}