@lunch-money/v2-api-spec 2.11.0-preview.3 → 2.11.0-preview.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lunch-money-api-v2.yaml +58 -123
- package/package.json +1 -1
package/lunch-money-api-v2.yaml
CHANGED
|
@@ -1914,37 +1914,6 @@ components:
|
|
|
1914
1914
|
required:
|
|
1915
1915
|
- balances
|
|
1916
1916
|
|
|
1917
|
-
balanceHistoryUpdateErrorObject:
|
|
1918
|
-
type: object
|
|
1919
|
-
x-internal: true
|
|
1920
|
-
additionalProperties: true
|
|
1921
|
-
properties:
|
|
1922
|
-
request_balances_index:
|
|
1923
|
-
type: integer
|
|
1924
|
-
format: int32
|
|
1925
|
-
description: Zero-based index into the `balances` request array
|
|
1926
|
-
message:
|
|
1927
|
-
type: string
|
|
1928
|
-
description: Error message describing why the row could not be updated
|
|
1929
|
-
required:
|
|
1930
|
-
- request_balances_index
|
|
1931
|
-
- message
|
|
1932
|
-
|
|
1933
|
-
upsertBalanceHistoryResponseObject:
|
|
1934
|
-
type: object
|
|
1935
|
-
x-internal: true
|
|
1936
|
-
additionalProperties: false
|
|
1937
|
-
properties:
|
|
1938
|
-
updated_balance_history:
|
|
1939
|
-
$ref: "#/components/schemas/balanceHistoryAccountObject"
|
|
1940
|
-
errors:
|
|
1941
|
-
type: array
|
|
1942
|
-
items:
|
|
1943
|
-
$ref: "#/components/schemas/balanceHistoryUpdateErrorObject"
|
|
1944
|
-
required:
|
|
1945
|
-
- updated_balance_history
|
|
1946
|
-
- errors
|
|
1947
|
-
|
|
1948
1917
|
updateBalanceHistoryDetailsRequestObject:
|
|
1949
1918
|
type: object
|
|
1950
1919
|
x-internal: true
|
|
@@ -6975,60 +6944,35 @@ paths:
|
|
|
6975
6944
|
currency: usd
|
|
6976
6945
|
to_base: 41500
|
|
6977
6946
|
crypto_balance: null
|
|
6978
|
-
partial success request:
|
|
6979
|
-
value:
|
|
6980
|
-
balances:
|
|
6981
|
-
- date: "2026-03-01"
|
|
6982
|
-
balance: "41500.0000"
|
|
6983
|
-
- date: "2026-04-01"
|
|
6984
|
-
balance: "41625.5000"
|
|
6985
|
-
symbol: btc
|
|
6986
6947
|
responses:
|
|
6987
6948
|
"200":
|
|
6988
|
-
description:
|
|
6949
|
+
description: All balance history entries were upserted successfully
|
|
6989
6950
|
content:
|
|
6990
6951
|
application/json:
|
|
6991
6952
|
schema:
|
|
6992
|
-
$ref: "#/components/schemas/
|
|
6953
|
+
$ref: "#/components/schemas/balanceHistoryAccountObject"
|
|
6993
6954
|
examples:
|
|
6994
6955
|
balances updated:
|
|
6995
6956
|
value:
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
crypto_balance: null
|
|
7013
|
-
errors: []
|
|
7014
|
-
partial success:
|
|
7015
|
-
value:
|
|
7016
|
-
updated_balance_history:
|
|
7017
|
-
source:
|
|
7018
|
-
type: manual
|
|
7019
|
-
manual_account_id: 119807
|
|
7020
|
-
balances:
|
|
7021
|
-
- id: 601
|
|
7022
|
-
date: "2026-03-01"
|
|
7023
|
-
balance: "41500.0000"
|
|
7024
|
-
currency: usd
|
|
7025
|
-
to_base: 41500
|
|
7026
|
-
crypto_balance: null
|
|
7027
|
-
errors:
|
|
7028
|
-
- request_balances_index: 1
|
|
7029
|
-
message: "`symbol` may not be set when `account_type` is `manual` or `plaid`."
|
|
6957
|
+
source:
|
|
6958
|
+
type: manual
|
|
6959
|
+
manual_account_id: 119807
|
|
6960
|
+
balances:
|
|
6961
|
+
- id: 601
|
|
6962
|
+
date: "2026-03-01"
|
|
6963
|
+
balance: "41500.0000"
|
|
6964
|
+
currency: usd
|
|
6965
|
+
to_base: 41500
|
|
6966
|
+
crypto_balance: null
|
|
6967
|
+
- id: 602
|
|
6968
|
+
date: "2026-04-01"
|
|
6969
|
+
balance: "41625.5000"
|
|
6970
|
+
currency: usd
|
|
6971
|
+
to_base: 41625.5
|
|
6972
|
+
crypto_balance: null
|
|
7030
6973
|
"400":
|
|
7031
|
-
description: Bad Request
|
|
6974
|
+
description: Bad Request. The entire request is rejected if any row in
|
|
6975
|
+
`balances` fails validation; no rows are updated.
|
|
7032
6976
|
content:
|
|
7033
6977
|
application/json:
|
|
7034
6978
|
schema:
|
|
@@ -7049,16 +6993,25 @@ paths:
|
|
|
7049
6993
|
message: Request Validation Failure
|
|
7050
6994
|
errors:
|
|
7051
6995
|
- errMsg: "`date` must be the first day of a month."
|
|
6996
|
+
request_balances_index: 0
|
|
7052
6997
|
future date:
|
|
7053
6998
|
value:
|
|
7054
6999
|
message: Request Validation Failure
|
|
7055
7000
|
errors:
|
|
7056
7001
|
- errMsg: "`date` must not be in the future."
|
|
7002
|
+
request_balances_index: 1
|
|
7057
7003
|
crypto balance not allowed:
|
|
7058
7004
|
value:
|
|
7059
7005
|
message: Request Validation Failure
|
|
7060
7006
|
errors:
|
|
7061
7007
|
- errMsg: "`crypto_balance` may only be set when `account_type` is `crypto_manual` or `deleted`."
|
|
7008
|
+
request_balances_index: 0
|
|
7009
|
+
invalid row in bulk request:
|
|
7010
|
+
value:
|
|
7011
|
+
message: Request Validation Failure
|
|
7012
|
+
errors:
|
|
7013
|
+
- errMsg: "`symbol` may not be set when `account_type` is `manual` or `plaid`."
|
|
7014
|
+
request_balances_index: 1
|
|
7062
7015
|
"401":
|
|
7063
7016
|
$ref: "#/components/responses/unauthorizedToken"
|
|
7064
7017
|
"404":
|
|
@@ -7280,62 +7233,36 @@ paths:
|
|
|
7280
7233
|
- date: "2026-04-01"
|
|
7281
7234
|
balance: "6500.0000"
|
|
7282
7235
|
crypto_balance: "0.100020003000400050"
|
|
7283
|
-
partial success request:
|
|
7284
|
-
value:
|
|
7285
|
-
balances:
|
|
7286
|
-
- date: "2026-03-01"
|
|
7287
|
-
balance: "6400.0000"
|
|
7288
|
-
crypto_balance: "0.100020003000400050"
|
|
7289
|
-
- date: "2026-04-01"
|
|
7290
|
-
balance: "not-a-number"
|
|
7291
7236
|
responses:
|
|
7292
7237
|
"200":
|
|
7293
|
-
description:
|
|
7238
|
+
description: All balance history entries were upserted successfully
|
|
7294
7239
|
content:
|
|
7295
7240
|
application/json:
|
|
7296
7241
|
schema:
|
|
7297
|
-
$ref: "#/components/schemas/
|
|
7242
|
+
$ref: "#/components/schemas/balanceHistoryAccountObject"
|
|
7298
7243
|
examples:
|
|
7299
7244
|
balances updated:
|
|
7300
7245
|
value:
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
crypto_balance: "0.100020003000400050"
|
|
7319
|
-
errors: []
|
|
7320
|
-
partial success:
|
|
7321
|
-
value:
|
|
7322
|
-
updated_balance_history:
|
|
7323
|
-
source:
|
|
7324
|
-
type: crypto_synced
|
|
7325
|
-
crypto_synced_id: 33004
|
|
7326
|
-
symbol: btc
|
|
7327
|
-
balances:
|
|
7328
|
-
- id: 604
|
|
7329
|
-
date: "2026-03-01"
|
|
7330
|
-
balance: "6400.0000"
|
|
7331
|
-
currency: usd
|
|
7332
|
-
to_base: 6400
|
|
7333
|
-
crypto_balance: "0.100020003000400050"
|
|
7334
|
-
errors:
|
|
7335
|
-
- request_balances_index: 1
|
|
7336
|
-
message: "`balance` must be a valid numeric string or number."
|
|
7246
|
+
source:
|
|
7247
|
+
type: crypto_synced
|
|
7248
|
+
crypto_synced_id: 33004
|
|
7249
|
+
symbol: btc
|
|
7250
|
+
balances:
|
|
7251
|
+
- id: 604
|
|
7252
|
+
date: "2026-03-01"
|
|
7253
|
+
balance: "6400.0000"
|
|
7254
|
+
currency: usd
|
|
7255
|
+
to_base: 6400
|
|
7256
|
+
crypto_balance: "0.100020003000400050"
|
|
7257
|
+
- id: 605
|
|
7258
|
+
date: "2026-04-01"
|
|
7259
|
+
balance: "6500.0000"
|
|
7260
|
+
currency: usd
|
|
7261
|
+
to_base: 6500
|
|
7262
|
+
crypto_balance: "0.100020003000400050"
|
|
7337
7263
|
"400":
|
|
7338
|
-
description: Bad Request
|
|
7264
|
+
description: Bad Request. The entire request is rejected if any row in
|
|
7265
|
+
`balances` fails validation; no rows are updated.
|
|
7339
7266
|
content:
|
|
7340
7267
|
application/json:
|
|
7341
7268
|
schema:
|
|
@@ -7351,11 +7278,19 @@ paths:
|
|
|
7351
7278
|
message: Request Validation Failure
|
|
7352
7279
|
errors:
|
|
7353
7280
|
- errMsg: "`date` must be the first day of a month."
|
|
7281
|
+
request_balances_index: 0
|
|
7354
7282
|
future date:
|
|
7355
7283
|
value:
|
|
7356
7284
|
message: Request Validation Failure
|
|
7357
7285
|
errors:
|
|
7358
7286
|
- errMsg: "`date` must not be in the future."
|
|
7287
|
+
request_balances_index: 1
|
|
7288
|
+
invalid row in bulk request:
|
|
7289
|
+
value:
|
|
7290
|
+
message: Request Validation Failure
|
|
7291
|
+
errors:
|
|
7292
|
+
- errMsg: "`balance` must be a valid numeric string or number."
|
|
7293
|
+
request_balances_index: 1
|
|
7359
7294
|
"401":
|
|
7360
7295
|
$ref: "#/components/responses/unauthorizedToken"
|
|
7361
7296
|
"404":
|
package/package.json
CHANGED