Payment Status

Request

Redirect URL Method
https://app.lekirpay.com/api/payments/{payment_id}/status GET
Parameter Type Position Required? Description
Content-Type string Header Yes
Accept string Header Yes
Authorization string Header Yes Bearer TOKEN
payment_id string Body Yes
Below is the sample status and its description return from SoniXPay
Parameter Description
Created payment link has successfully created, no payment has been made yet
Proceed Payment link has been proceed to payment, customer in the middle process between a payment gateway and bank
Paid Payment link has been successfully paid by the customer
Failed Payment link fail in the middle process of payment

Example request

curl -X GET \
  https://app.lekirpay.com/api/payments/833711424511/status \ 
  -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImViZGJiMWMyMThiN2FlNGYxMjYwYTI5MTQzNWMzZTcxYzg2YTY5OTg2YmVjNzc5YjY3M2ZkZTk0M2I0MGIzMTAyYjM5YmZiMDQzNWI5N2NhIn0.eyJhdWQiOiI3MzQ2NzQxNyIsImp0aSI6ImViZGJiMWMyMThiN2FlNGYxMjYwYTI5MTQzNWMzZTcxYzg2YTY5OTg2YmVjNzc5YjY3M2ZkZTk0M2I0MGIzMTAyYjM5YmZiMDQzNWI5N2NhIiwiaWF0IjoxNTc2NzQ4NzE2LCJuYmYiOjE1NzY3NDg3MTYsImV4cCI6MTU3ODA0NDcxNSwic3ViIjoiIiwic2NvcGVzIjpbXX0.krOKzROJI87yBcU6-SXtqB9bpK2H6IH9GToiF28x9yzm3w-lJ7_IQvmpuFrltERDOx0pnGWdKnH9NrJB98TmsIsBlyiBQDLlRA8-PaarIO87pJ56UjqPLFhlNR7BYsR3EFvcxNRSLzftZjeyQNVA8CCOVyF2znTYG6knSj42idKY8TbJT_sSpz6f0-Vp813G0hEFWDI41dkJn0USgXKRsoepllxqfl3VnM-4DlMd1RfvDuaS8X2eFv6FThlFqlbqhKGOu2r86wIy7VER002h2k2MFaloJkWvx06bcoHEfG-3PwZG9FrTN7-S8VjpbUtRVbCfGlm7x0-p4-j0jGdkgxGyG6uwmghaQl4DL8tMCXGzjcItwT0GkfxQAFGTVbxC--53qsZRPUuEM8hPcUYeG8HMSAZZlBjNhaSCvUw9zoP2mXm8fH7wC5mSfLJaOLGutf3liXP67Wz_kQ6UeY-SqkHT1lAi8mOvvfHrVSxVObfd28iXIV7VMVHuGIVctsh9to71MCRxhHtVmi_I0VGncBJdzmAZFPwDwzGUNvTY8PjJWLf5b3IixXszw8o357mGEXmAucZySiCzD9gt3LjTaH9oZc505eWbarjpnMUdzRnRcKxvOujUVjyNGjB1LWzx7Hzu1WrjTVzuiRqUB3ts4nYyzTurC9pydf7KAHeBp-c' \
  -F payment_id=833711424511

Response

{
    "payment_id": "833711424511",
    "reference_no": "2",
    "item": "3",
    "amount": 1,
    "currency": "USD",
    "quantity": 4,
    "payer_id": 0,
    "status": "created"
}