**Version: 202201**

# Create Application Charge

**POST** `/openapi/2022-01/application_charges`

Create a one-time charge for an application.

## Request

**application/json**

**Body | Example**

**Body**

- `application_charge` object

  Application charge

  - `name` string (required)

    The application charge name.
  - `price` string (required)

    The amount of the charge, must match with the APP package setting amount
  - `return_url` string (required)

    Redirect URL after payment
  - `test` boolean

    Whether it is a test charge

    **Default value:** `false`

```json
{
  "application_charge": {
    "name": "string",
    "price": "string",
    "return_url": "string",
    "test": false
  }
}
```

## Responses

**200 | 422**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `id` string

  **Example:** `372212374209312759`
- `application_id` string

  **Example:** `Kmby9zm_W1dlg11zyVY1XtVkG3teakrbTYPwwmE6WhU`
- `name` string

  **Example:** `test`
- `price` string

  **Example:** `100`
- `confirm_url` string

  **Example:** `https://test-shoplazza.stg.myshoplaza.com/admin/smart_apps/angora/app_store/charges/Kmby9zm_W1dlg11zyVY1XtVkG3teakrbTYPwwmE6WhU/372212374209312759/one-time/confirm?signature=83207d1ad129d5c2ac36bd8b1b6ff8a8`
- `return_url` string

  **Example:** `https://shoplazza.com`
- `status` string

  **Example:** `pending`
- `test` boolean

  **Default value:** `true`

  **Example:** `false`
- `created_at` string

  **Example:** `2024-04-23T02:39:05Z`
- `updated_at` string

  **Example:** `2024-04-23T02:39:05Z`

```json
{
  "id": "372212374209312759",
  "application_id": "Kmby9zm_W1dlg11zyVY1XtVkG3teakrbTYPwwmE6WhU",
  "name": "test",
  "price": "100",
  "confirm_url": "https://test-shoplazza.stg.myshoplaza.com/admin/smart_apps/angora/app_store/charges/Kmby9zm_W1dlg11zyVY1XtVkG3teakrbTYPwwmE6WhU/372212374209312759/one-time/confirm?signature=83207d1ad129d5c2ac36bd8b1b6ff8a8",
  "return_url": "https://shoplazza.com",
  "status": "pending",
  "test": false,
  "created_at": "2024-04-23T02:39:05Z",
  "updated_at": "2024-04-23T02:39:05Z"
}
```

```json
{
    "id": "372212374209312759",
    "application_id": "Kmby9zm_W1dlg11zyVY1XtVkG3teakrbTYPwwmE6WhU",
    "name": "test",
    "price": "100",
    "confirm_url": "https://test-shoplazza.stg.myshoplaza.com/admin/smart_apps/angora/app_store/charges/Kmby9zm_W1dlg11zyVY1XtVkG3teakrbTYPwwmE6WhU/372212374209312759/one-time/confirm?signature=83207d1ad129d5c2ac36bd8b1b6ff8a8",
    "return_url": "https://shoplazza.com",
    "status": "pending",
    "test": false,
    "created_at": "2024-04-23T02:39:05Z",
    "updated_at": "2024-04-23T02:39:05Z"
}
```

422

**application/json**

No schema
