{"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/business:bity/get-currencies":{"get":{"operationId":"business_bity_get_currencies","summary":"List currencies","description":"GET /currencies","tags":["business"],"parameters":[{"name":"tags","in":"query","required":false,"description":"Comma-separated list of tags. Currencies that contain all tags will be filtered.","schema":{"type":"array","description":"Comma-separated list of tags. Currencies that contain all tags will be filtered."}}],"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/business:bity/currencies-get-by-code":{"get":{"operationId":"business_bity_currencies_get_by_code","summary":"Get a single currency","description":"GET /currencies/{currency_code}","tags":["business"],"parameters":[{"name":"currency_code","in":"query","required":true,"description":"Currency code identifying the currency about which to return information.","schema":{"type":"string","description":"Currency code identifying the currency about which to return information."}}],"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/business:bity/list-orders":{"get":{"operationId":"business_bity_list_orders","summary":"List previously placed orders","description":"GET /orders","tags":["business"],"parameters":[{"name":"page","in":"query","required":false,"description":"Number of the page to retrieve, defaults to the first page (1). See also the `Link` header in the 200 response.","schema":{"type":"number","description":"Number of the page to retrieve, defaults to the first page (1). See also the `Link` header in the 200 response."}},{"name":"page_size","in":"query","required":false,"description":"Number of orders to include in a page. When not specified, 100.","schema":{"type":"number","description":"Number of orders to include in a page. When not specified, 100."}},{"name":"status","in":"query","required":false,"description":"When specified, restrict the orders listing to orders with a specific status. The currently understood values are: - `finalized`: Only…","schema":{"type":"string","enum":["finalized","ongoing"],"description":"When specified, restrict the orders listing to orders with a specific status. The currently understood values are: - `finalized`: Only…"}}],"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/business:bity/place-order":{"post":{"operationId":"business_bity_place_order","summary":"Place an order","description":"POST /orders","tags":["business"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"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/business:bity/orders-calculate-amount-estimate":{"post":{"operationId":"business_bity_orders_calculate_amount_estimate","summary":"Estimate the amount of an order","description":"POST /orders/estimate","tags":["business"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"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/business:bity/orders-perform-multiple-estimations":{"post":{"operationId":"business_bity_orders_perform_multiple_estimations","summary":"Perform several estimations in one request","description":"POST /orders/estimate/multiple","tags":["business"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"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/business:bity/orders-get-order-details":{"get":{"operationId":"business_bity_orders_get_order_details","summary":"Get the details of an order","description":"GET /orders/{order_uuid}","tags":["business"],"parameters":[{"name":"order_uuid","in":"query","required":true,"description":"ID of the order.","schema":{"type":"string","description":"ID of the order."}}],"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/business:bity/orders-get-qr-bill":{"get":{"operationId":"business_bity_orders_get_qr_bill","summary":"Get the QR-bill of an order where the input is bank_transfer.","description":"GET /orders/{order_uuid}/bank_transfer_qr_bill","tags":["business"],"parameters":[{"name":"order_uuid","in":"query","required":true,"description":"Identifier of the order for which to retrieve the QR-bill image.","schema":{"type":"string","description":"Identifier of the order for which to retrieve the QR-bill image."}}],"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/business:bity/cancel-order":{"post":{"operationId":"business_bity_cancel_order","summary":"Cancel an order","description":"POST /orders/{order_uuid}/cancel","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["order_uuid"],"properties":{"order_uuid":{"type":"string","description":"Identifier of the order to attempt to cancel"}}}}}},"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/business:bity/duplicate-order":{"post":{"operationId":"business_bity_duplicate_order","summary":"Duplicate an order","description":"POST /orders/{order_uuid}/duplicate","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["order_uuid"],"properties":{"order_uuid":{"type":"string","description":"ID of the order to duplicate."}}}}}},"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/business:bity/execute-order":{"post":{"operationId":"business_bity_execute_order","summary":"Execute order","description":"POST /orders/{order_uuid}/execute","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["order_uuid"],"properties":{"order_uuid":{"type":"string","description":"Identifier of the order to attempt to execute"}}}}}},"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/business:bity/orders-submit-signature":{"post":{"operationId":"business_bity_orders_submit_signature","summary":"Sign proof of wallet ownership message","description":"POST /orders/{order_uuid}/signature","tags":["business"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["order_uuid"],"properties":{"order_uuid":{"type":"string","description":"ID of the order."}}}}}},"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/business:bity/currencies-get-list":{"get":{"operationId":"business_bity_currencies_get_list","summary":"List currency pairs","description":"GET /pairs","tags":["business"],"parameters":[{"name":"input","in":"query","required":false,"description":"Retrieve all pairs for given input currency code. This parameter can be repeated several times to match many input currencies.","schema":{"type":"string","description":"Retrieve all pairs for given input currency code. This parameter can be repeated several times to match many input currencies."}},{"name":"output","in":"query","required":false,"description":"Retrieve all pairs for given output currency code. This parameter can be repeated several times to match many output currencies.","schema":{"type":"string","description":"Retrieve all pairs for given output currency code. This parameter can be repeated several times to match many output currencies."}},{"name":"enabled","in":"query","required":false,"description":"Retrieve all pairs that are enabled for trading or not.","schema":{"type":"string","description":"Retrieve all pairs that are enabled for trading or not."}}],"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/business:bity/other-extract-qr-payment-info":{"post":{"operationId":"business_bity_other_extract_qr_payment_info","summary":"Read payment information","description":"POST /read_payment_information","tags":["business"],"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":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"}}}}}}}