{"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/open-data:brex-transactions/accounts-list-card-accounts":{"get":{"operationId":"open_data_brex_transactions_accounts_list_card_accounts","summary":"List card accounts","description":"GET /v2/accounts/card","tags":["open-data"],"parameters":[],"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/open-data:brex-transactions/accounts-list-primary-card-statements":{"get":{"operationId":"open_data_brex_transactions_accounts_list_primary_card_statements","summary":"List primary card account statements.","description":"GET /v2/accounts/card/primary/statements","tags":["open-data"],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"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/open-data:brex-transactions/accounts-list-cash-accounts":{"get":{"operationId":"open_data_brex_transactions_accounts_list_cash_accounts","summary":"List cash accounts","description":"GET /v2/accounts/cash","tags":["open-data"],"parameters":[],"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/open-data:brex-transactions/accounts-status":{"get":{"operationId":"open_data_brex_transactions_accounts_status","summary":"Get primary cash account","description":"GET /v2/accounts/cash/primary","tags":["open-data"],"parameters":[],"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/open-data:brex-transactions/accounts-get-cash-account":{"get":{"operationId":"open_data_brex_transactions_accounts_get_cash_account","summary":"Get cash account by ID","description":"GET /v2/accounts/cash/{id}","tags":["open-data"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}}],"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/open-data:brex-transactions/accounts-list-cash-statements":{"get":{"operationId":"open_data_brex_transactions_accounts_list_cash_statements","summary":"List cash account statements.","description":"GET /v2/accounts/cash/{id}/statements","tags":["open-data"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"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/open-data:brex-transactions/transactions-list-all-card-transactions":{"get":{"operationId":"open_data_brex_transactions_transactions_list_all_card_transactions","summary":"List transactions for all card accounts.","description":"GET /v2/transactions/card/primary","tags":["open-data"],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"user_ids","in":"query","required":false,"schema":{"type":"array"}},{"name":"posted_at_start","in":"query","required":false,"description":"Shows only transactions with a `posted_at_date` on or after this date-time. This parameter is the date-time notation as defined by [RFC…","schema":{"type":"string","description":"Shows only transactions with a `posted_at_date` on or after this date-time. This parameter is the date-time notation as defined by [RFC…"},"example":"2022-12-12T23:59:59.999"},{"name":"expand[]","in":"query","required":false,"description":"`expense_id` can be passed to `expand[]` query parameter to get expanded, e.g., `?expand[]=expense_id`.","schema":{"type":"array","description":"`expense_id` can be passed to `expand[]` query parameter to get expanded, e.g., `?expand[]=expense_id`."}}],"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/open-data:brex-transactions/transactions-list-by-id":{"get":{"operationId":"open_data_brex_transactions_transactions_list_by_id","summary":"List transactions for the selected cash account.","description":"GET /v2/transactions/cash/{id}","tags":["open-data"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"posted_at_start","in":"query","required":false,"description":"Shows only transactions with a `posted_at_date` on or after this date-time. This parameter is the date-time notation as defined by [RFC…","schema":{"type":"string","description":"Shows only transactions with a `posted_at_date` on or after this date-time. This parameter is the date-time notation as defined by [RFC…"},"example":"2022-12-12T23:59:59.999"}],"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"}}},"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"}}}}}}}