{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/finance:xero-xero-assets/get-assets":{"get":{"operationId":"finance_xero_xero_assets_get_assets","summary":"searches fixed asset","description":"GET /Assets","tags":["finance"],"parameters":[{"name":"xero-tenant-id","in":"query","required":true,"description":"Xero identifier for Tenant","schema":{"type":"string","description":"Xero identifier for Tenant"},"example":"YOUR_XERO_TENANT_ID"},{"name":"status","in":"query","required":true,"description":"Required when retrieving a collection of assets. See Asset Status Codes","schema":{"type":"string","enum":["DRAFT","REGISTERED","DISPOSED"],"description":"Required when retrieving a collection of assets. See Asset Status Codes"}},{"name":"page","in":"query","required":false,"description":"Results are paged. This specifies which page of the results to return. The default page is 1.","schema":{"type":"integer","description":"Results are paged. This specifies which page of the results to return. The default page is 1."}},{"name":"pageSize","in":"query","required":false,"description":"The number of records returned per page. By default the number of records returned is 10.","schema":{"type":"integer","description":"The number of records returned per page. By default the number of records returned is 10."}},{"name":"orderBy","in":"query","required":false,"description":"Requests can be ordered by AssetType, AssetName, AssetNumber, PurchaseDate and PurchasePrice. If the asset status is DISPOSED it also…","schema":{"type":"string","enum":["AssetType","AssetName","AssetNumber","PurchaseDate","PurchasePrice","DisposalDate","DisposalPrice"],"description":"Requests can be ordered by AssetType, AssetName, AssetNumber, PurchaseDate and PurchasePrice. If the asset status is DISPOSED it also…"}},{"name":"sortDirection","in":"query","required":false,"description":"ASC or DESC","schema":{"type":"string","enum":["asc","desc"],"description":"ASC or DESC"}},{"name":"filterBy","in":"query","required":false,"description":"A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber,…","schema":{"type":"string","description":"A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber,…"}}],"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:xero-xero-assets/create-asset":{"post":{"operationId":"finance_xero_xero_assets_create_asset","summary":"adds a fixed asset","description":"POST /Assets","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["xero-tenant-id","body"],"properties":{"xero-tenant-id":{"type":"string","description":"Xero identifier for Tenant"},"Idempotency-Key":{"type":"string","description":"This allows you to safely retry requests without the risk of duplicate processing. 128 character max."},"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:xero-xero-assets/get-asset-by-id":{"get":{"operationId":"finance_xero_xero_assets_get_asset_by_id","summary":"Retrieves fixed asset by id","description":"GET /Assets/{id}","tags":["finance"],"parameters":[{"name":"xero-tenant-id","in":"query","required":true,"description":"Xero identifier for Tenant","schema":{"type":"string","description":"Xero identifier for Tenant"},"example":"YOUR_XERO_TENANT_ID"},{"name":"id","in":"query","required":true,"description":"fixed asset id for single object","schema":{"type":"string","description":"fixed asset id for single object"}}],"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:xero-xero-assets/get-asset-types":{"get":{"operationId":"finance_xero_xero_assets_get_asset_types","summary":"searches fixed asset types","description":"GET /AssetTypes","tags":["finance"],"parameters":[{"name":"xero-tenant-id","in":"query","required":true,"description":"Xero identifier for Tenant","schema":{"type":"string","description":"Xero identifier for Tenant"},"example":"YOUR_XERO_TENANT_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/finance:xero-xero-assets/create-asset-type":{"post":{"operationId":"finance_xero_xero_assets_create_asset_type","summary":"adds a fixed asset type","description":"POST /AssetTypes","tags":["finance"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["xero-tenant-id","body"],"properties":{"xero-tenant-id":{"type":"string","description":"Xero identifier for Tenant"},"Idempotency-Key":{"type":"string","description":"This allows you to safely retry requests without the risk of duplicate processing. 128 character max."},"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:xero-xero-assets/get-asset-settings":{"get":{"operationId":"finance_xero_xero_assets_get_asset_settings","summary":"searches fixed asset settings","description":"GET /Settings","tags":["finance"],"parameters":[{"name":"xero-tenant-id","in":"query","required":true,"description":"Xero identifier for Tenant","schema":{"type":"string","description":"Xero identifier for Tenant"},"example":"YOUR_XERO_TENANT_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"}}},"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"}}}}}}}