Bookings Payments

  1. List bookings payments
  2. Get a single bookings payment

Parameters

Name Type Read/Write Description
id Integer Read Bookings Payment’s id.
amount_in_cents Integer Read Bookings Payment’s value.
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 bookings payments

List all bookings payments for a given account.

GET /bookings_payments

Response

{
  "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": "2017-11-09T09:08:16Z",
      "updated_at": "2017-11-09T09:08:16Z",
      "links": {
        "account": 44,
        "booking": 22,
        "payment": 11,
        "rental": 30
      }
    }
  ],
  "meta": {
  }
}

Get a single bookings payment

Returns a single bookings payment identified by ID.

GET /bookings_payments/:bookings_payment_id

Response

{
  "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": "2017-11-09T09:08:16Z",
      "updated_at": "2017-11-09T09:08:16Z",
      "links": {
        "account": 44,
        "booking": 22,
        "payment": 11,
        "rental": 30
      }
    }
  ],
  "meta": {
  }
}