v1

latestOpenAPI 3.1.02026-08-06236494759.4 KB
Transactions

Create Mileage Reimbursement Transaction

Endpoint to create a MileageReimbursement Transaction.

post/business/v2/transactions/mileage-reimbursements

Headers

X-Soldo-Fingerprintstring required

Advanced authentication: SHA512SUM of the fingerprint values listed in the fingerprint order for this endpoint.

Example:{{fingerprint}}
X-Soldo-Fingerprint-Signaturestring required

Advanced authentication: Signature of the X-Soldo-Fingerprint.

Example:{{fingerprint_signature}}

Request body

request_timestampinteger required

The epoch timestamp in millis. This is checked in Soldo. Requests with timestamp older than 5 seconds will be rejected.

datestring required

The date and time of the Transaction.

owner_idstring required

The ID of the User who made the Transaction (updatable: no).

Example request

{
  "request_timestamp": 1576850500000,
  "date": "2017-06-01T12:48:40Z",
  "owner_id": "XMPL1234-000002",
  "mileage": {
    "vehicle_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa",
    "reimbursement_rate": 0.45,
    "description": "Business trip: Rome - Florence - Turin - Milan",
    "starting_point": "Rome, Metropolitan City of Rome Capital, Italy",
    "arrival_point": "Milan, Metropolitan City of Milan, Italy",
    "multi_stops": [
      "Florence, Metropolitan City of Florence, Italy",
      "Turin, Metropolitan City of Turin, Italy"
    ],
    "distance": 875.4,
    "round_trip": true
  }
}

Response

The returned resource is a single MileageReimbursement.

transaction_idstring

The ID of the Transaction describing the MileageReimbursement.

datestring

The date and time of the Transaction.

owner_idstring

The ID of the User who made the Transaction (updatable: no).

amountnumber

The amount of the Transaction, in the currency of the main Wallet.

amount_currency'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STD' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VEF' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL'

Example response

{
  "transaction_id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
  "date": "2017-06-01T12:48:40Z",
  "owner_id": "XMPL1234-000002",
  "amount": 10.25,
  "mileage": {
    "vehicle_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa",
    "reimbursement_rate": 0.45,
    "description": "Business trip: Rome - Florence - Turin - Milan",
    "starting_point": "Rome, Metropolitan City of Rome Capital, Italy",
    "arrival_point": "Milan, Metropolitan City of Milan, Italy",
    "multi_stops": [
      "Florence, Metropolitan City of Florence, Italy",
      "Turin, Metropolitan City of Turin, Italy"
    ],
    "distance": 875.4,
    "round_trip": true
  }
}