Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Transactions Get transaction volume

Get transaction volume

Returns the sum of the matching amounts. It adds up every currency, direction and status you do not filter out, so filter by an account and `status=completed`. There is no date filter.

GEThttps://api.gravv.xyz/v1/transactions/volumeTry it
Api-Key

Query parameters

NameDescription
sending_account_id:string
receiving_account_id:string
customer_id:string
channel:string
One or more channels, comma-separated, such as ach,wire. See the channel values on the transaction. An unknown value returns nothing.
direction:string
Possible values: in, out
status:string
One or more of pending, completed, failed, waiting_approval and paused, comma-separated
transaction_type:string
One or more transaction types, comma-separated. See the transaction_type values on the transaction. An unknown value returns nothing.

Response

Returns 200 OK. The total

NameDescription
data:object
Show 1 child attributesobject
error:null

Errors

StatusMeaning
200The total
400The request failed. Every transactions error is a 400, including not-found.
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/transactions/volume?customer_id=bfe261a3-3630-4781-8249-6b0ab1123235&channel=bank_transfer&status=completed&transaction_type=global_remittance' \
--header 'Api-Key: <api-key>'
Responseapplication/json
200400OK
{
"data": {
"total_volume": "12450.75"
},
"error": null
}