# Get PG MIDs API

### Gets a list of PG settings (MIDs) configured in the Admin console.

## Gets a list of PG settings (MIDs) configured in the Admin console.

<mark style="color:blue;">`GET`</mark> `https://api.iamport.kr/users/pg`

{% tabs %}
{% tab title="200: OK Success" %}
{% tabs %}
{% tab title="MultiplePgSettingResponse" %}
**`code`** <mark style="color:red;">**\***</mark>**&#x20;**<mark style="color:purple;">**integer**</mark>

**Response code**

0: success, Not 0: check the message

**`message`** <mark style="color:red;">**\***</mark>**&#x20;**<mark style="color:green;">**string**</mark>

**Response message**

A non-zero code includes a message like 'Invalid payment info'.

**`response`**<mark style="color:red;">**`(Array[PgSettingAnnotation], optional)`**</mark>
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="PgSettingAnnotation" %}
**`pg_provider`**<mark style="color:red;">**`*`**</mark><mark style="color:green;">**`string`**</mark>

**`PG code`**

[**PG codes**](https://portone.gitbook.io/docs-en/tips/pg-codes)

**`pg_id`**<mark style="color:red;">**`*`**</mark><mark style="color:green;">**`string`**</mark>

**`PG MID`**

**`sandbox`` `**<mark style="color:red;">**`*`**</mark><mark style="color:orange;">**`boolean`**</mark>

**`Test mode?`**

**`type`` `**<mark style="color:red;">**`*`**</mark><mark style="color:green;">**`string`**</mark>

**`PG setting type`**

* `payment` : Authenticated payment (Admin console > PG settings \[general/subscription] tab) &#x20;
* `api_payment` : API payment (Admin console > PG settings \[general/key-in] tab)&#x20;
* `certification` : Identity verification (Admin console > identity verification tab)
  {% endtab %}
  {% endtabs %}
  {% endtab %}
  {% endtabs %}

<details>

<summary>Response Model Schema</summary>

```json
{
  "code": 0,
  "message": "string",
  "response": [
    {
      "pg_provider": "string",
      "pg_id": "string",
      "sandbox": true,
      "type": "payment"
    }
  ]
}
```

</details>

{% hint style="success" %}
**Swagger Test Link**

[**https://api.iamport.kr/#!/users/getPgSettingList**](https://api.iamport.kr/#!/users/getPgSettingList)
{% endhint %}
