**Version: 202201**

# Create Transaction

**POST** `/openapi/2022-01/orders/:id/transactions`

Creates a transaction for an order.

## Request

**Path Parameters**

- `id` string (required)

  Order's ID

**application/json**

**Body | Example**

**Body**

- `transaction` object

  - `` object

```json
{
  "transaction": {}
}
```

## Responses

**200 | 400**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `transaction` object

  - `id` string

    **Example:** `123`
  - `order_id` string

    **Example:** `7182105848352794526`
  - `payment_channel` string

    **Example:** `bogus`
  - `message` string

    **Example:**
  - `created_at` string

    **Example:** `2023-02-24 09:03:41`
  - `test` boolean

    **Default value:** `true`

    **Example:** `true`
  - `error_code` string

    **Example:**
  - `amount` string

    **Example:** `110.0000`
  - `currency` string

    **Example:** `USD`
  - `trade_id` string

    **Example:** `test_7182105848352794526`
  - `status` string

    **Example:** `success`
  - `payment_details` object

    - `card_number` string

      **Example:**
    - `card_month` string

      **Example:**
    - `card_year` string

      **Example:**
    - `card_first_name` string

      **Example:**
    - `card_last_name` string

      **Example:**
    - `card_first_fix` string

      **Example:**
    - `card_last_four` string

      **Example:**
    - `avs_result_code` string

      **Example:**
    - `cvv_result_code` string

      **Example:**
  - `payment_name` string

    **Example:**

```json
{
  "transaction": {
    "id": "123",
    "order_id": "7182105848352794526",
    "payment_channel": "bogus",
    "message": "",
    "created_at": "2023-02-24 09:03:41",
    "test": true,
    "error_code": "",
    "amount": "110.0000",
    "currency": "USD",
    "trade_id": "test_7182105848352794526",
    "status": "success",
    "payment_details": {
      "card_number": "",
      "card_month": "",
      "card_year": "",
      "card_first_name": "",
      "card_last_name": "",
      "card_first_fix": "",
      "card_last_four": "",
      "avs_result_code": "",
      "cvv_result_code": ""
    },
    "payment_name": ""
  }
}
```

```json
{
        "transaction": {
                "id": "123",
                "order_id": "7182105848352794526",
                "payment_channel": "bogus",
                "message": "",
                "created_at": "2023-02-24 09:03:41",
                "test": true,
                "error_code": "",
                "amount": "110.0000",
                "currency": "USD",
                "trade_id": "test_7182105848352794526",
                "status": "success",
                "payment_details": {
                        "card_number": "",
                        "card_month": "",
                        "card_year": "",
                        "card_first_name": "",
                        "card_last_name": "",
                        "card_first_fix": "",
                        "card_last_four": "",
                        "avs_result_code": "",
                        "cvv_result_code": ""
                },
                "payment_name": ""
        }
}
```

400

**application/json**

No schema
