@lunch-money/v2-api-spec 2.11.0-preview.17 → 2.11.0-preview.18

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.
@@ -14,11 +14,11 @@ info:
14
14
  These docs are interactive — use **Test request** on any endpoint to call the API from this page.
15
15
  Choose a LIVE or MOCK service from the Server dropdown.
16
16
  Requests sent to `https://api.lunchmoney.dev/v2` can <span class="red-text"><strong>change or delete</strong></span> your data and are <span class="red-text"><strong>permanent</strong></span>.
17
- See the [Getting Started Guide](https://lunchmoney.dev/v2/getting-started) before using the live API.
17
+ See the [Getting Started Guide](http://localhost:3000/v2/getting-started) before using the live API.
18
18
 
19
19
  **Static mock server**
20
20
 
21
- Explore without risk to real data. Select `http://mock.lunchmoney.dev/v2` in the Server dropdown to work with static mock data.
21
+ Explore without risk to real data. Select `http://localhost:3000/v2` in the Server dropdown to work with static mock data.
22
22
  POST, PUT, and DELETE requests will return realistic responses, but do not change the mock data.
23
23
 
24
24
 
@@ -28,14 +28,14 @@ info:
28
28
 
29
29
  **Migrating from v1**
30
30
 
31
- The v2 API is not backwards compatible with v1. See the [Migration Guide](https://lunchmoney.dev/v2/migration-guide) for details.
31
+ The v2 API is not backwards compatible with v1. See the [Migration Guide](http://localhost:3000/v2/migration-guide) for details.
32
32
 
33
33
  **Useful links**
34
- - [Getting Started Guide](https://lunchmoney.dev/v2/getting-started)
35
- - [v2 API Overview](https://lunchmoney.dev/v2/overview)
36
- - [Version History](https://lunchmoney.dev/v2/version-history)
37
- - [Migration Guide](https://lunchmoney.dev/v2/migration-guide)
38
- - [Rate Limits](https://lunchmoney.dev/v2/rate-limits)
34
+ - [Getting Started Guide](http://localhost:3000/v2/getting-started)
35
+ - [v2 API Overview](http://localhost:3000/v2/overview)
36
+ - [Version History](http://localhost:3000/v2/version-history)
37
+ - [Migration Guide](http://localhost:3000/v2/migration-guide)
38
+ - [Rate Limits](http://localhost:3000/v2/rate-limits)
39
39
  termsOfService: https://lunchmoney.dev/#current-status
40
40
  contact:
41
41
  email: devsupport@lunchmoney.app
@@ -47,7 +47,7 @@ info:
47
47
  servers:
48
48
  - url: https://api.lunchmoney.dev/v2
49
49
  description: ⚠ LIVE — changes real Lunch Money data
50
- - url: http://mock.lunchmoney.dev/v2
50
+ - url: http://localhost:3000/v2
51
51
  description: MOCK — static demo data, no API key required
52
52
 
53
53
  tags:
@@ -991,16 +991,19 @@ components:
991
991
  example: Cold Wallet BTC
992
992
  display_name:
993
993
  type: string
994
+ nullable: true
994
995
  minLength: 1
995
996
  maxLength: 45
996
- description: Optional display name for the manual crypto asset. If
997
- omitted, clients may derive one from `institution_name` + `name`.
997
+ description: Display name for the manual crypto asset. If omitted or
998
+ `null`, clients may derive one from `institution_name` + `name`.
998
999
  example: Cold Storage
999
1000
  institution_name:
1000
1001
  type: string
1002
+ nullable: true
1001
1003
  minLength: 1
1002
1004
  maxLength: 50
1003
- description: Optional institution or wallet provider display name
1005
+ description: Institution or wallet provider display name. If omitted
1006
+ or `null`, no institution name is set.
1004
1007
  example: Ledger
1005
1008
  balance:
1006
1009
  oneOf:
@@ -1256,15 +1259,19 @@ components:
1256
1259
  example: My Savings Account
1257
1260
  institution_name:
1258
1261
  type: string
1262
+ nullable: true
1259
1263
  example: Bank of the West
1260
- description: Name of institution holding the manual account
1264
+ description: Name of the institution holding the manual account. If
1265
+ omitted or `null`, no institution name is set.
1261
1266
  minLength: 1
1262
1267
  maxLength: 50
1263
1268
  display_name:
1264
1269
  type: string
1265
- description: Display name of the manual account as set by user or
1266
- derived from the `institution_name` and `name` if not explicitly
1267
- set.<br> This must be unique for the budgeting account.
1270
+ nullable: true
1271
+ description: Display name of the manual account. If omitted or
1272
+ `null`, it is derived from `institution_name` and `name`. An
1273
+ explicitly set display name must be unique for the budgeting
1274
+ account.
1268
1275
  example: Savings
1269
1276
  type:
1270
1277
  description: The type of manual account
@@ -1272,8 +1279,10 @@ components:
1272
1279
  - $ref: "#/components/schemas/accountTypeEnum"
1273
1280
  subtype:
1274
1281
  type: string
1275
- description: An optional manual account subtype. Examples include<br>
1276
- - retirement - checking - savings - prepaid credit card
1282
+ nullable: true
1283
+ description: Manual account subtype. If omitted or `null`, no subtype
1284
+ is set. Examples include retirement, checking, savings, and prepaid
1285
+ credit card.
1277
1286
  minLength: 1
1278
1287
  maxLength: 100
1279
1288
  example: prepaid credit card
@@ -3038,7 +3047,7 @@ components:
3038
3047
  currency:
3039
3048
  description: Three-letter lowercase currency code of the transaction
3040
3049
  in ISO 4217 format. Must match one of the [supported
3041
- currencies](https://lunchmoney.dev/v2/currencies). If not set
3050
+ currencies](http://localhost:3000/v2/currencies). If not set
3042
3051
  defaults to the user account's primary currency.
3043
3052
  allOf:
3044
3053
  - $ref: "#/components/schemas/currencyEnum"
@@ -3394,9 +3403,10 @@ components:
3394
3403
  category_id:
3395
3404
  type: integer
3396
3405
  format: int32
3397
- description: Unique identifier for associated category_id. Category
3398
- must already exist for the account. Will inherit category from the
3399
- parent if not defined.
3406
+ nullable: true
3407
+ description: Category ID for the child transaction. The category must
3408
+ already exist for the account. If omitted, the child inherits the
3409
+ parent category. If `null`, the child has no category.
3400
3410
  tag_ids:
3401
3411
  type: array
3402
3412
  description: The IDs of any tags to apply to this split child
@@ -3406,7 +3416,10 @@ components:
3406
3416
  format: int32
3407
3417
  notes:
3408
3418
  type: string
3409
- description: Will inherit notes from parent if not defined.
3419
+ nullable: true
3420
+ description: Notes for the child transaction. If omitted, the child
3421
+ inherits the parent notes. If `null` or an empty string, the child
3422
+ has no notes.
3410
3423
  required:
3411
3424
  - amount
3412
3425
 
@@ -8662,19 +8675,19 @@ paths:
8662
8675
  description: Sets the maximum number of transactions to return. If
8663
8676
  more match the filter criteria, the response will include a
8664
8677
  `has_more` attribute set to `true`. See
8665
- [Pagination](https://lunchmoney.dev/v2/pagination)
8678
+ [Pagination](http://localhost:3000/v2/pagination)
8666
8679
  - name: offset
8667
8680
  in: query
8668
8681
  schema:
8669
8682
  type: integer
8670
8683
  description: Sets the offset for the records returned. This is
8671
8684
  typically set automatically in the header. See
8672
- [Pagination](https://lunchmoney.dev/v2/pagination)
8685
+ [Pagination](http://localhost:3000/v2/pagination)
8673
8686
  responses:
8674
8687
  "200":
8675
8688
  description: Returns an array of transactions. <br><br>The `has_more`
8676
8689
  property is set to `true` if more transactions are available. See
8677
- [Pagination](https://lunchmoney.dev/v2/pagination)
8690
+ [Pagination](http://localhost:3000/v2/pagination)
8678
8691
  content:
8679
8692
  application/json:
8680
8693
  schema:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunch-money/v2-api-spec",
3
- "version": "2.11.0-preview.17",
3
+ "version": "2.11.0-preview.18",
4
4
  "description": "OpenAPI specification and version history for the Lunch Money v2 API",
5
5
  "main": "lunch-money-api-v2.yaml",
6
6
  "files": [
@@ -17,6 +17,8 @@ The Lunch Money API spec uses a modified version of SEMVER for its versioning me
17
17
  - Add `PUT /balance_history/deleted/{account_id}/details`
18
18
  - Remove `rollover_pool` from the category object returned in the summary response. It is in the main summary response.
19
19
  - It is now possible to set an external_id on any transaction, including those that belong to a Plaid account.
20
+ - Manual-account and manually managed crypto create requests now accept `null` for their optional display, institution, and subtype fields, treating `null` the same as omission.
21
+ - Transaction split requests now accept `null` for `category_id` and `notes`. Omission inherits the parent value, while `null` explicitly clears it for the child.
20
22
 
21
23
  ## v2.10.0 - TBD
22
24
  - Add v2 crypto endpoints which support: