The Duffel team
API API Documentation

We now include data on when an Order was paid for

AUTHOR: The Duffel team

The new field, paid_at, is in the Order.PaymentStatus object that’s returned by our API (see: API reference). If, and only if, an Order has been paid for will it have a value (example: “2020-01-17T10:42:14.545Z").

This field is present for all Orders (Instant and Hold/Pay Later).

It’s particularly helpful when used with the Order.PaymentStatus.awaiting_payment field to determine the state of a hold order. Previously, the fields in PaymentStatus were insufficient to determine the holder order status. The hold order could’ve expired, but wasn’t paid for (”confirmed”), or it was paid for—in both states of the Order, awaiting_paymentwill be false.

Powered by LaunchNotes