Fikäfi APIs
  1. Status API
Fikäfi APIs
  • Fikäfi APIs
    • Getting Started
    • Authentication
    • API Error Handling
    • APIs / Endpoints
      • Authentication API
        • token API
          POST
      • Payments APIs
        • createPayment API
          POST
        • takePaymentAction API
          POST
        • createOnlinePayment API
          POST
      • Status API
        • getPaymentStatus API
          GET
        • getPayments API
          GET
      • Your Webhooks
        • paymentEvent webhook
          POST
        • paymentDetails Webhook
          POST
    • Tutorials
      • Request Payments
      • Check Status
      • Payment Failures
  1. Status API

getPayments API

GET
http://sandbox.fikafi.com/FikafiApi/api/payment/getPayments

📚 Get All Payments#

This endpoint provides a summary of all payments linked to bookings for a given property.
It returns a summary of all payments, along with the status and detailed records of payments for each booking — including partial payments (if applicable).

🔐 Required Headers#

Include the following headers in your request:
Header NameTypeRequiredDescription
Authorizationstring✅ YesBearer token for API access
Content-Typestring✅ YesMust be application/json

📤 Request Format#

Make a POST request to retrieve a list of payments across all bookings.

📘 Status Values#

The paymentStatus.status and each payments[].status field may return one of the following values:
StatusDescription
CompletePayment has been successfully completed in full.
PendingPayment is requested but no action has been taken by the customer yet.
PartialCard has been captured on file OR some partial payments have been charged.
ExpiredPayment window has expired; further payments are no longer accepted.
CanceledPayment request was canceled by the hotel.
DeclinedPayment was declined by the gateway or customer’s bank.
RefundedPayment was refunded after successful completion.

✅ A payment is marked as Partial when:
At least one entry in payments[] has status Complete, or
The isCardCaptured flag is true.

🧪 Mock Testing#

You can test this endpoint without any backend integration by using our mock server.
Mock URL:
http://sandbox.fikafi.com/FikafiApi

Request

Query Params

Header Params

Responses

🟢200OK
application/json
List of all payments
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://sandbox.fikafi.com/FikafiApi/api/payment/getPayments?hotel=Sunset Resort&fromDate=2025-04-01&toDate=2025-02-01' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIzMmVkOTI0OC1kNTc4LTQ3NzUtODYwYS1iZGZkOGExM2Y0MzciLCJ1bmlxdWVfbmFtZSI6IkFkbWluIiwiVXNlcklEIjoiMSIsIm5iZiI6MTc0MDM5Mzg4NywiZXhwIjoxNzQwNDgwMjg3LCJpYXQiOjE3NDAzOTM4ODd9.J6oPTYH9x5ia_a7OUBj9K038o8gu04gL4kLuVyJ8RQo'
Response Response Example
{
    "totalpayments": 2,
    "propertyName": "Sunset Resort",
    "allPayments": [
        {
            "bookingRefNum": "BKG20250401",
            "fikafiRefNum": "FIK987654",
            "paymentStatus": {
                "status": "Completed",
                "isCardCaptured": true,
                "currency": "USD",
                "totalAmountReq": 1500,
                "totalAmountPaid": 1500,
                "numOfPaymentsReq": 1,
                "numOfPaymentsPaid": 1
            },
            "payments": [
                {
                    "paymentNumber": 1,
                    "amount": 1500,
                    "date": "2025-04-01",
                    "status": "Paid",
                    "paidAt": "2025-04-01T10:00:00Z"
                }
            ]
        },
        {
            "bookingRefNum": "BKG20250402",
            "fikafiRefNum": "FIK987655",
            "paymentStatus": {
                "status": "Partial",
                "isCardCaptured": true,
                "currency": "USD",
                "totalAmountReq": 3000,
                "totalAmountPaid": 1000,
                "numOfPaymentsReq": 3,
                "numOfPaymentsPaid": 1
            },
            "payments": [
                {
                    "paymentNumber": 1,
                    "amount": 1000,
                    "date": "2025-04-02",
                    "status": "Paid",
                    "paidAt": "2025-04-02T09:00:00Z"
                },
                {
                    "paymentNumber": 2,
                    "amount": 1000,
                    "date": "2025-04-03",
                    "status": "Pending",
                    "paidAt": null
                },
                {
                    "paymentNumber": 3,
                    "amount": 1000,
                    "date": "2025-04-04",
                    "status": "Pending",
                    "paidAt": null
                }
            ]
        }
    ]
}
Modified at 2025-06-18 07:21:51
Previous
getPaymentStatus API
Next
paymentEvent webhook
Built with