Payments

This resource represents a payment made on a booking.

XML Schema:

GET: Get a Payment

Fields

Name

Type

Description

id read-only

String

href read-only

Field

status required

String

A list of codes that represent the current status af a transaction.

  • PENDING: The transaction is pending processing.

  • FAILED: The transaction has been been processed and failed to be approved.

  • PROCESSED: The transaction has been been processed and was approved.

date_created

Datetime

The time when the resource was created, in the standard Dates & Times.

date_last_modified

Datetime

The time when the resource was last modified, in the standard Dates & Times.

amount required

Decimal

The currency-specific amount of rhe transaction, in the standard Currencies & Prices.

booking read-only

Reference Object

The related booking resource.

error required

Nested Object

Details for failed transactions.

transaction_type required

Nested Object

Information about the type of transaction.

  • name required

String

A brief description of the transaction type.

  • code required

String

The unique code for this transaction type.

is_online_payment required

Boolean

Whether this payment was made via an Online channel.

Get a Payment

GET /payments/(string: payment_id)/