Retrieve Payments

How to use the Retrieve Payments function to access payment-related data

Overview

Retrieve Payments allows the Agent to access payment information related to bookings and transactions, facilitating retrieval of payment data.

Endpoints Available

MethodEndpointDescription
GETv2023.07.31/paymentsReturns Payment details

Query String Parameters

ParameterRequired / OptionalDescriptionData Type
pageOptionalThe page to be shownint
pageSizeOptionalLimits the number of returned resultsint
startDateOptionalBeginning date for payments to returndate-time
endDateOptionalEnd date for payments to returndate-time
reservationIdOptionalUnique Identifier for reservationint
reservationIdsOptionalUnique Identifiers for reservationsarray
transactionIdOptionalUnique Identifier for transactionint
transactionIdsOptionalUnique Identifiers for transactionsarray
paymentStatusOptionalIndicates status of payments to returnint
decimalPlacesOptionalDecimal places to useint

Response Definition

Response ItemDescriptionData Type
"recordCount"The total count of records in the responseint
"data"An object containing data related to transactionsobject

"data" Object

Response ItemDescriptionData Type
"transactions"An array of transaction recordsarray

"transactions" Object

Response ItemDescriptionData Type
"start_date"The date and time when the transaction can start (be charged)date-time
"reservation_id"The unique identifier for the reservation associated with the transactionint
"value"The monetary value of the transactionfloat
"transaction_id"The unique identifier for the transactionint
"target_id"The identifier for the target or recipient of the transactionint
"creation_date"The date and time when the transaction record was createddate-time

Sample Request

curl --location --request GET 'https://api.ciiruspartners.com/v2023.07.31/payments?page=1&pageSize=25&startDate=2023-09-01' \

Sample Response

{
    "recordCount": 29,
    "data": {
        "transactions": [
            {
                "start_date": "2023-09-16T19:00:00",
                "reservation_id": 38419112,
                "value": 5.20,
                "target_id": 1429,
                "creation_date": "2023-09-14T15:22:07.67"
            },
            {
                "start_date": "2023-09-15T19:00:00",
                "reservation_id": 38415598,
                "value": 5.00,
                "transaction_id": 100118754,
                "target_id": 1429,
                "creation_date": "2023-09-13T14:33:57.607"
            },
          ...
         ]
    }
}