Payment Intents

We are currently not accepting new customers on to this product

If you have access to test mode, please check with your
Duffel contact that you’re able to use the product in
live mode before starting your integration.

A payment intent is used to collect and capture a payment from a customer to top-up your balance and then pay for an offer, order, or order change offer. You're able to include markup here.

amount
string

The amount of the payment intent that covers the cost of the flight being sold and any additional markup.

The card payment will be charged this amount.

Example: "300.10"
card_country_code
stringnullable

The ISO 3166-1 alpha-2 code of the country that issued the card used to confirm the payment intent.

It will be null until the payment intent is confirmed.

Example: "GB"
card_last_four_digits
stringnullable

The last four digits of the card used to confirm the payment intent.

It will be null until the payment intent is confirmed.

Example: "4242"
card_network
enumnullable

The card network on which the payment intent was processed.

It will be null until the payment intent is confirmed.

Possible values: "amex", "cartes_bancaires", "diners", "discover", "interac", "jcb", "mastercard", "unionpay", "visa", or "unknown"
client_token
string

This value is used when displaying the payment collection form to securely identify and transmit the values to Duffel.

Example: "eyJjbGllbnRfc2VjcmV0IjoicGlfMUl5YTBiQW5rMVRkeXJvRE1iWkJPN0ZSX3NlY3JldF9TbGFrYnJjYnFHZGZha2VrcjdCNE5jZWVyIiwicHVibGlzaGFibGVfa2V5IjoicGtfbGl2ZV81MUl0Q3YwQW5rMUdkeXJvRFlFU3M3RnBTUEdrNG9kbDhneDF3Y1RBNVEzaUcyWEFWVEhxdFlKSVhWMUxoSU5GQUtFMjA1dFdmRGVIcXhwUVdnYkIzTkVFbzAwMmdVY1hzR0YifQ=="
confirmed_at
datetimenullable

The ISO 8601 datetime at which the payment intent was confirmed.

It will be null until the payment intent is confirmed.

Example: "2020-04-11T15:49:02.642Z"
created_at
datetime

The ISO 8601 datetime at which the payment intent was created

Example: "2020-04-11T15:48:11.642Z"
currency
string

The currency of the amount, as an ISO 4217 currency code.

The card payment will be charged in this currency.

If it's different to your balance currency, it will be converted to your balance currency before the balance is topped up.

Example: "GBP"
fees_amount
stringnullable

The amount of the fees to process the payment intent.

It will be null until the payment intent is confirmed.

Example: "3.00"
fees_currency
stringnullable

The currency of the fees_amount, as an ISO 4217 currency code.

This currency will match your balance currency.

It will be null until the payment intent is confirmed.

Example: "GBP"
id
string

Duffel's unique identifier for the resource

Example: "pit_00009hthhsUZ8W4LxQgkjo"
live_mode
boolean

Whether the payment intent was created in live mode. This field will be set to true if the payment intent was created in live mode, or false if it was created in test mode.

Example: true
net_amount
stringnullable

The amount of the payment intent that was added to the balance.

It'll be amount (in the balance currency) less the fees_amount.

It will be null until the payment intent is confirmed.

Example: "297.10"
net_currency
stringnullable

The currency of the net_amount, as an ISO 4217 currency code.

This currency will match your balance currency.

It will be null until the payment intent is confirmed.

Example: "GBP"
refunds
list

The refunds for this payment intent


A refund is used to refund money to a customer for part or all of a payment intent.

You can issue multiple refunds from the same payment intent.

status
enum

The status of this Payment Intent

Possible values: "requires_payment_method", "requires_confirmation", "requires_action", "processing", "requires_capture", "cancelled", or "succeeded"
updated_at
datetime

The ISO 8601 datetime at which the payment intent was updated

Example: "2020-04-11T15:48:11.642Z"