{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/finance:brex-expenses/card-expenses-list":{"get":{"operationId":"finance_brex_expenses_card_expenses_list","summary":"List expenses","description":"GET /v1/expenses/card","tags":["finance"],"parameters":[{"name":"expand[]","in":"query","required":false,"description":"Get additional details for the expense, e.g. merchant mcc code, by passing in `expand[]=merchant`. Query parameters include `location`,…","schema":{"type":"array","description":"Get additional details for the expense, e.g. merchant mcc code, by passing in `expand[]=merchant`. Query parameters include `location`,…"}},{"name":"user_id[]","in":"query","required":false,"description":"Get expenses belong to provided user(s).","schema":{"type":"array","description":"Get expenses belong to provided user(s)."}},{"name":"parent_expense_id[]","in":"query","required":false,"description":"Get itemized expenses belong to provided parent expenses ID(s).","schema":{"type":"array","description":"Get itemized expenses belong to provided parent expenses ID(s)."}},{"name":"budget_id[]","in":"query","required":false,"schema":{"type":"array"}},{"name":"status[]","in":"query","required":false,"schema":{"type":"array"}},{"name":"payment_status[]","in":"query","required":false,"schema":{"type":"array"}},{"name":"purchased_at_start","in":"query","required":false,"description":"Shows only expenses with a `purchased_at` on or after this date-time. This parameter is the date-time notation as defined by [RFC 3339,…","schema":{"type":"string","description":"Shows only expenses with a `purchased_at` on or after this date-time. This parameter is the date-time notation as defined by [RFC 3339,…"},"example":"2023-01-01T23:59:59.999"},{"name":"purchased_at_end","in":"query","required":false,"description":"Shows only expenses with a `purchased_at` on or before this date-time. This parameter is the date-time notation as defined by [RFC 3339,…","schema":{"type":"string","description":"Shows only expenses with a `purchased_at` on or before this date-time. This parameter is the date-time notation as defined by [RFC 3339,…"},"example":"2023-01-10T23:59:59.999"},{"name":"load_custom_fields","in":"query","required":false,"description":"Load custom fields for the expenses.","schema":{"type":"boolean","default":false,"description":"Load custom fields for the expenses."}},{"name":"cursor","in":"query","required":false,"description":"The cursor to use for pagination. This is the `next_cursor` value returned from the previous response.","schema":{"type":"string","description":"The cursor to use for pagination. This is the `next_cursor` value returned from the previous response."}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:brex-expenses/receipt-match-create-new-receipt-match":{"post":{"operationId":"finance_brex_expenses_receipt_match_create_new_receipt_match","summary":"Create a new receipt match","description":"POST /v1/expenses/card/receipt_match","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:brex-expenses/card-expenses-get-by-id":{"get":{"operationId":"finance_brex_expenses_card_expenses_get_by_id","summary":"Get an expense","description":"GET /v1/expenses/card/{expense_id}","tags":["finance"],"parameters":[{"name":"expense_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"expand[]","in":"query","required":false,"description":"Get additional details for the expense, e.g. merchant mcc code, by passing in `expand[]=merchant`. Query parameters include `location`,…","schema":{"type":"array","description":"Get additional details for the expense, e.g. merchant mcc code, by passing in `expand[]=merchant`. Query parameters include `location`,…"}},{"name":"load_custom_fields","in":"query","required":false,"description":"Load custom fields for the expense.","schema":{"type":"boolean","default":false,"description":"Load custom fields for the expense."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/finance:brex-expenses/card-expenses-update-expense":{"post":{"operationId":"finance_brex_expenses_card_expenses_update_expense","summary":"Update an expense","description":"PUT /v1/expenses/card/{expense_id}","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["expense_id","body"],"properties":{"expense_id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/finance:brex-expenses/receipt-upload-create-new-receipt":{"post":{"operationId":"finance_brex_expenses_receipt_upload_create_new_receipt","summary":"Create a new receipt upload","description":"POST /v1/expenses/card/{expense_id}/receipt_upload","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["expense_id","body"],"properties":{"expense_id":{"type":"string"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}