Skip to main content
GET
Retrieve a payment

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <secret_key>, where <secret_key> is your secret_key.

Path Parameters

id
string<uuid>
required

ID of the payment.

Example:

"payment id, uuid format"

Response

Success. Payment object is returned.

Payment object.

amount
string
required

Total payment amount, including tax, shipping and any discounts. Allows to send up to 2 decimals for AED and SAR, up to 3 decimals for KWD.

Example:

"100"

currency
enum<string>
required

ISO 4217 currency code for the payment amount. Currently there are 3 possible currency options - depending on the country where the store is located:

  • AED - United Arab Emirates Dirham
  • SAR - Saudi Riyal
  • KWD - Kuwaiti Dinar
Available options:
AED,
SAR,
KWD
Example:

"AED"

buyer
object | null
required

Customer information

shipping_address
object | null
required
order
object | null
required
buyer_history
object
required

Customer / user / student information from previous purchases with you.

order_history
object[] | null
required

Array of objects, should contain information on 5-10 previously placed via any payment method orders in any status, current order excluded.

id
string<uuid>
read-only

Unique identifier for the payment (UUID), assigned by Tabby. Save it on your side!

Example:

"payment id, uuid format"

created_at
string<date-time>
read-only

Date and time the payment was created, in UTC, and displayed in ISO 8601 datetime format.

expires_at
string<date-time>
read-only

Date and time the payment expires, in UTC, and displayed in ISO 8601 datetime format.

status
enum<string>
read-only

Status of the current payment:

  • CREATED means that the payment is created successfully, but not finished yet;
  • AUTHORIZED and CLOSED mark the successfully approved and captured payments accordingly;
  • REJECTED is returned when a customer is rejected during Tabby Checkout;
  • EXPIRED is used when a customer cancels a payment or when Tabby doesn't receive a successfully paid transaction after timeout.
Available options:
CREATED,
AUTHORIZED,
CLOSED,
REJECTED,
EXPIRED
Example:

"CLOSED"

is_test
boolean
read-only

Indicates whether this is a test payment (created using the Test API keys or Production API Keys).

description
string | null
Example:

"description"

captures
object[] | null
read-only
refunds
object[] | null
read-only
meta
object | null

Merchant-defined data about the payment. This field is a key-value map. The example properties provided below.

attachment
object | null

Extra data (booking info, insurance, flight reservations, ...) as serialized JSON