---
title: "Get pre-built transaction for strategy order creation"
method: POST
path: "/v1/strategies/{address}/order"
tags: ["Strategies"]
---

# Get pre-built transaction for strategy order creation

`POST /v1/strategies/{address}/order`

## Request

- Base URL: `https://backend.swap.coffee`
- URL: `https://backend.swap.coffee/v1/strategies/{address}/order`
- Auth: one of:
  - none
  - API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/swap/apis/swap-coffee-api/docs/v1/strategies/:address/order/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `address` string, required

## Headers

- `x-verify` string, required

## Request body

- ApiStrategyOrderCreationRequest
  - `type` 'limit' | 'dca' | 'vca', required
  - `token_from` ApiTokenAddress, required
    - `blockchain` string, required
    - `address` string, required
  - `token_to` ApiTokenAddress, required
    - `blockchain` string, required
    - `address` string, required
  - `input_amount` string, required
  - `settings` ApiJson, required
  - `max_suborders` integer, required
  - `max_invocations` integer, required: Max amount of swaps to be potentially executed (including those that fail to reasons like slippage tolerance abortion)
  - `slippage` number, double, required
  - `referral_name` string: May be set whilst building transactions from B2B partnership products

## Response `200`

Transaction to be sent

- ApiTransactionBoc
  - `payload_cell` string, base64, required: Base64-encoded cell. Treated as a payload field in TonConnect transaction.
  - `address` string, required
  - `value` string, int128, required: Amount of nanotons to be sent. Can be passed to TonConnect transaction.
  - `state_init` string, base64: Base64-encoded cell. Treated as a stateInit field in TonConnect transaction.
  - `extra` ApiExtraCurrency[]
    - `id` integer, required
    - `amount` string, int128, required

## Other responses

- `default`: Some error during request processing

---

[API](https://skmtc.dev/swap/apis/swap-coffee-api.md) - [All operations](https://skmtc.dev/swap/apis/swap-coffee-api/llms.txt) - [OpenAPI document](https://skmtc.dev/swap/apis/swap-coffee-api/revisions/88f42fef59b7?raw)
