---
title: "Create order"
method: POST
path: "/v2/identities/{id}/{gw}/payment-order"
tags: ["Order"]
---

# Create order

`POST /v2/identities/{id}/{gw}/payment-order`

Takes the given data and tries to create a new payment order in the pilvytis service.

## Path parameters

- `id` string, required
- `gw` string, required

## Request body

- PaymentOrderRequest — PaymentOrderRequest holds order request details
  - `amount_usd` string
  - `country` string
  - `gateway_caller_data` object
  - `myst_amount` string
  - `pay_currency` string
  - `project_id` string
  - `state` string

## Response `200`

Payment order

- PaymentOrderResponse
  - `chain_id` integer
  - `channel_address` string
  - `country` string
  - `currency` string
  - `gateway_name` string
  - `id` string
  - `identity` string
  - `items_sub_total` string
  - `order_total` string
  - `pay_amount` string
  - `pay_currency` string
  - `public_gateway_data` object
  - `receive_myst` string
  - `state` string
  - `status` string
  - `tax_rate` string
  - `tax_sub_total` string

## Other responses

- `500` — Internal server error

---

[API](https://skmtc.net/mysteriumnetwork/apis/tequila-api.md) · [All operations](https://skmtc.net/mysteriumnetwork/apis/tequila-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mysteriumnetwork/tequila-api/revisions/cb1439736b63/schema)
