---
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

## Changes

- **2022-08-29** `58fdd1dcc5e9` — 1 info
  - endpoint added
- **2022-08-22** `b79669d1cc2e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/mysteriumnetwork/apis/tequila-api/changes/v2/identities/:id/:gw/payment-order/post.md)

---

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