This resource represents the Booking’s Payments, establishing the relationship between Payments and Bookings.
Name | Type | Read/Write | Description |
---|---|---|---|
account | Integer | Read | Account’s ID related to the Bookings Payment |
booking | Integer | Read | Booking’s ID related to the Bookings Payment |
rental | Integer | Read | Rental’s ID related to the Bookings Payment |
payment | Integer | Read | Rental’s ID related to the Bookings Payment |
id | Integer | Read | Bookings Payment’s id. |
amount_in_cents | Integer | Read | Bookings Payment’s amount in cents. |
currency | String | Read | Bookings Payment’s currency code, list of codes described in enums section. |
created_at | Time | Read | Bookings Payment’s create time. |
updated_at | Time | Read | Bookings Payment’s update time. |
List all bookings payments for a given account.
GET /bookings_payments
{
"links": {
"bookings_payments.account": "https://www.bookingsync.com/api/v3/accounts/{bookings_payments.account}",
"bookings_payments.booking": "https://www.bookingsync.com/api/v3/bookings/{bookings_payments.booking}",
"bookings_payments.payment": "https://www.bookingsync.com/api/v3/payments/{bookings_payments.payment}",
"bookings_payments.rental": "https://www.bookingsync.com/api/v3/rentals/{bookings_payments.rental}"
},
"bookings_payments": [
{
"id": 2,
"amount_in_cents": 100000,
"currency": "USD",
"created_at": "2023-12-11T08:26:23Z",
"updated_at": "2023-12-11T08:26:23Z",
"links": {
"account": 44,
"booking": 22,
"payment": 11,
"rental": 30
}
}
],
"meta": {
}
}
Returns a single bookings payment identified by ID.
GET /bookings_payments/:bookings_payment_id
{
"links": {
"bookings_payments.account": "https://www.bookingsync.com/api/v3/accounts/{bookings_payments.account}",
"bookings_payments.booking": "https://www.bookingsync.com/api/v3/bookings/{bookings_payments.booking}",
"bookings_payments.payment": "https://www.bookingsync.com/api/v3/payments/{bookings_payments.payment}",
"bookings_payments.rental": "https://www.bookingsync.com/api/v3/rentals/{bookings_payments.rental}"
},
"bookings_payments": [
{
"id": 2,
"amount_in_cents": 100000,
"currency": "USD",
"created_at": "2023-12-11T08:26:23Z",
"updated_at": "2023-12-11T08:26:23Z",
"links": {
"account": 44,
"booking": 22,
"payment": 11,
"rental": 30
}
}
],
"meta": {
}
}