# 결제진행(후처리)

<mark style="color:green;">`POST`</mark> `https://{status-domain}/v1.0/swipebrick/payment/purchase`

#### Headers

| Name                                            | Type   | Description       |
| ----------------------------------------------- | ------ | ----------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer (webtoken) |

#### Request Body

| Name                                     | Type   | Description          |
| ---------------------------------------- | ------ | -------------------- |
| digest<mark style="color:red;">\*</mark> | string | SUI지갑 결제 후 나온 Digest |

{% tabs %}
{% tab title="200: OK 정상 서비스 상태" %}

````json
```json
{
    "return": 0,
    "message": "success"
}
```
````

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Example Curl" %}

```powershell
curl --location --request POST 'https://localhost:51151/v1.0/swipebrick/payment/purchase'
```

{% endtab %}

{% tab title="Response 'Value'" %}

{% endtab %}

{% tab title="Result Code" %}

| return        | message                  | desc. |
| ------------- | ------------------------ | ----- |
| 0             | success                  | 성공    |
| 72000         | Not Found User           |       |
| 72201         | 잘못된 Digest(전송내역을 찾을수 없음) |       |
| {% endtab %}  |                          |       |
| {% endtabs %} |                          |       |
