Search Refueling Transactions
Changed onEndpoint to search Refueling resources using filtering parameters.
Request
- Base URLhttps://api.soldo.com
- AuthOAuth 2Client credentialsToken URLhttps://api.soldo.com/oauth/authorizeScopestransaction_read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
The resource type to be used together with the ID.
The ID of the type resource.
The ID of the type resource. Deprecated in favor of id.
The ID of the type resource.
The beginning of the period of the search fromDate included (i.e. greater than or equal to) (Formats: yyyy-MM-dd, yyyy-MM-ddThh:mm:ss, yyyy-MM-ddThh:mm:ssZ).
The end of the period of the search toDate included (i.e. less than) (Formats: yyyy-MM-dd, yyyy-MM-ddThh:mm:ss, yyyy-MM-ddThh:mm:ssZ).
It determines the date to be considered for fromDate and toDate parameters.
The ISO 3166-1 alpha-3 code of the country where the Transaction was made.
A list of statuses the searched Transactions should be in.
The fuel type specified on the Transaction.
It determines whether to show further Fuel Details of the Transaction.
It indicates the specific page to display (the counter starts from zero).
It indicates the number of items per page.
It indicates how the pages are ordered.
It indicates the sorting direction applied to the above parameters. To apply a sorting on multiple parameters, set as many times the props parameter in the request.
[ "creationTime" ]
Headers
Advanced authentication: SHA512SUM of the fingerprint values listed in the fingerprint order for this endpoint.
Advanced authentication: Signature of the X-Soldo-Fingerprint.
Response
The result is an array of Refueling resources.
Example response
{
"total": 168,
"pages": 7,
"page_size": 25,
"results_size": 25,
"results": [
{
"id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"public_id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"transaction_id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"card_id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"tx_amount": 10.25,
"tx_date": "2017-06-01T12:48:40Z",
"tx_settlement_date": "2017-06-01T12:48:40Z",
"update_time": "2017-06-01T12:48:40Z",
"tx_vat_amount": 10.25,
"vehicle_id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"plate": "AA000BB",
"vat_deductibility_percentage": "40%",
"mileage": 125000,
"quantity": 80,
"unit_price": 1.41,
"invoice_id": 4421109,
"invoice_number": "NVC112200987",
"invoice_date": "2017-06-01T12:48:40Z",
"invoice_total_amount": 10.25,
"invoice_row": 4,
"invoice_row_amount": 10.25,
"supplier_vat_id": "VT09138461",
"dri": "DRI00099881",
"to_be_ignored": true
}
]
}Changes
- info
added the new optional
queryrequest parameterid - info
queryrequest parameterpublicIdwas deprecated - info
added the optional property
//to the response with the status - info
response property
results/items/public_iddeprecated
- info
- warning
added the new
QZZenum value to the//response property for the response status - info
added the new enum value
QZZto thequeryrequest parametertxCountry - info
for the
queryrequest parameterfromDate, the type was generalized from no type tostring, and format from no format todate-time - info
for the
queryrequest parametertoDate, the type was generalized from no type tostring, and format from no format todate-time
- warning