GET
/
v1
/
transactions
/
{orderId}
curl --request GET \
  --url https://api.roastify.app/v1/transactions/{orderId} \
  --header 'x-api-key: <api-key>'
{
  "createdAt": "2021-08-25T20:00:00.000Z",
  "orderId": "65df6d09eb81B03ab600782c",
  "amount": 1000,
  "currency": "USD",
  "paymentStatus": "paid",
  "paymentMethod": "card",
  "type": "balanceTransaction"
}

Authorizations

x-api-key
string
header
required

The API key to authenticate requests provided by Roastify. If you do not have an API key, please contact [email protected]

Path Parameters

orderId
string
required

The Id of the order

Minimum length: 1

Response

200
application/json
Get a transaction by order ID
createdAt
string
required

The date the transaction was created

orderId
string
required

The order ID associated with the transaction

amount
number
required

The amount of the transaction in cents. Ex: 1000 = $10.00

currency
string
required

The currency of the transaction

paymentStatus
string | null
required

The payment status of the transaction

paymentMethod
string | null
required

The payment method used for the transaction

type
enum<string>
required

Enum for the type of transaction, either balanceTransaction or paymentIntent. BalanceTransaction is used for adjusting the customer's balance. PaymentIntent is used for processing payments using the customer's default payment method.

Available options:
balanceTransaction,
paymentIntent,
subscription