OpenBankProject / OBP-CLI

A command line interface for OBP API
GNU Affero General Public License v3.0
15 stars 15 forks source link

Import historical transactions with date #72

Closed chrisjsimpson closed 5 years ago

chrisjsimpson commented 5 years ago

Ability to import transactions with date set

Using api call: /obp/v3.1.0/management/historical/transactions

curl -X POST \
  http://127.0.0.1:8080/obp/v3.1.0/management/historical/transactions \
  -H 'Accept: */*' \
  -H 'Authorization: DirectLogintoken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyIiOiIifQ.plUgi_AdZnSt97hTQLdpdg_eGYISNjyODh5n8nC1EeE"' \

  -d '{
    "from": {
        "bank_id": "gh.29.uk",
        "account_id": "1"
    },
    "to": {
        "bank_id": "gh.29.uk",
        "account_id": "8ca8a7e4-6d02-48e3-a029-0b2bf89de9f0"
    },
    "value": {
        "currency": "EUR",
        "amount": "10"
    },
    "description": "this is for work2",
    "posted": "2010-09-19T02:11:29Z",
    "completed": "2016-09-19T02:31:28Z",
    "transaction_request_type": "SANDBOX_TAN",
    "charge_policy": "SHARED"
}'