@@ -11606,6 +11606,61 @@ paths:
1160611606 application/json:
1160711607 schema:
1160811608 $ref: '#/components/schemas/404'
11609+ /admin/statements/archived_cards:
11610+ post:
11611+ tags:
11612+ - Statements
11613+ summary: Archived cards present in Sage Exp Mgmt
11614+ description: |
11615+ Returns archived cards present in Sage Exp Mgmt for cards in Statement
11616+ operationId: archived_cards
11617+ requestBody:
11618+ required: true
11619+ content:
11620+ application/json:
11621+ schema:
11622+ type: object
11623+ properties:
11624+ data:
11625+ $ref: '#/components/schemas/statement_archived_cards_in'
11626+ required:
11627+ - data
11628+ responses:
11629+ '200':
11630+ description: OK
11631+ content:
11632+ application/json:
11633+ schema:
11634+ type: object
11635+ properties:
11636+ data:
11637+ type: array
11638+ items:
11639+ $ref: '#/components/schemas/statement_archived_cards_out'
11640+ '400':
11641+ description: Bad request
11642+ content:
11643+ application/json:
11644+ schema:
11645+ $ref: '#/components/schemas/400'
11646+ '401':
11647+ description: Unauthorized request
11648+ content:
11649+ application/json:
11650+ schema:
11651+ $ref: '#/components/schemas/401'
11652+ '403':
11653+ description: Forbidden
11654+ content:
11655+ application/json:
11656+ schema:
11657+ $ref: '#/components/schemas/403'
11658+ '404':
11659+ description: Not Found
11660+ content:
11661+ application/json:
11662+ schema:
11663+ $ref: '#/components/schemas/404'
1160911664 /admin/expense_rules:
1161011665 post:
1161111666 tags:
@@ -30998,6 +31053,57 @@ components:
3099831053 description: |
3099931054 RTF Confidence percentage indicates what % of the transactions in last uploaded statement are already existing in Sage Exp Mgmt via RTF.
3100031055 example: 99.22
31056+ statement_archived_cards_in:
31057+ allOf:
31058+ - $ref: '#/components/schemas/summary_from_statement_in'
31059+ - type: object
31060+ properties:
31061+ card_mapping:
31062+ $ref: '#/components/schemas/card_mapping_in'
31063+ required:
31064+ - card_mapping
31065+ statement_archived_cards_out:
31066+ properties:
31067+ number_of_cards:
31068+ type: integer
31069+ description: |
31070+ Number of cards in the statement
31071+ example: 3
31072+ number_of_archived_cards:
31073+ type: integer
31074+ description: |
31075+ Number of cards in the statement that are archived in Sage Exp Mgmt
31076+ example: 1
31077+ archived_cards:
31078+ type: array
31079+ items:
31080+ type: object
31081+ properties:
31082+ id:
31083+ allOf:
31084+ - $ref: '#/components/schemas/id_string'
31085+ example: bawownwrng
31086+ card_number:
31087+ $ref: '#/components/schemas/card_number'
31088+ nickname:
31089+ type: string
31090+ maxLength: 25
31091+ nullable: true
31092+ description: |
31093+ Unique nickname assigned to the card
31094+ example: Business Card
31095+ user:
31096+ $ref: '#/components/schemas/user_out_embed_nullable'
31097+ is_archived:
31098+ type: boolean
31099+ description: |
31100+ If the card is archived in Sage Exp Mgmt
31101+ nullable: false
31102+ archived_at:
31103+ $ref: '#/components/schemas/timestamptz_utc'
31104+ description: |
31105+ Timestamp when the card was archived in Sage Exp Mgmt
31106+ nullable: true
3100131107 expense_rule_if_out:
3100231108 type: object
3100331109 additionalProperties: false
0 commit comments