curl --request GET \
--url https://api.sfcompute.com/v1/transactions \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "transaction",
"transaction_time": 1640995200,
"amount_cents": 25000,
"details": {
"object": "transaction_details",
"type": "credit_grant",
"memo": "Promotional credit"
}
}
],
"has_more": false
}Lists transaction history. Provide either starting_after_cursor or ending_before_cursor (not both) for cursor-based pagination.
curl --request GET \
--url https://api.sfcompute.com/v1/transactions \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "transaction",
"transaction_time": 1640995200,
"amount_cents": 25000,
"details": {
"object": "transaction_details",
"type": "credit_grant",
"memo": "Promotional credit"
}
}
],
"has_more": false
}Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Number of transactions to return (1-100, default 10)
x >= 0Filter for transactions after this UNIX timestamp (exclusive)
Filter for transactions before this UNIX timestamp (exclusive)
Cursor for forward pagination string with format 'txc_base62_encoded_id' used for paginating a query to GET /v1/transactions
txc_[0-9a-zA-Z]+Cursor for backward pagination string with format 'txc_base62_encoded_id' used for paginating a query to GET /v1/transactions
txc_[0-9a-zA-Z]+Sort field. Prefix with - for descending order. Default: -transaction_time. Valid sort fields are:
transaction_time, -transaction_time, amount, -amount Filter transactions by type (e.g. buy_order)
stripe_card_payment, manual_payment, credit_grant, refund, buy_order, sell_order