Skip to content

Commit

Permalink
진짜 다고침
Browse files Browse the repository at this point in the history
  • Loading branch information
sso-ashley committed Mar 23, 2024
1 parent e204529 commit 79963c8
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 350 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/ko/api-v2/identity-verification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import Swagger from "~/components/gitbook/swagger/Swagger.astro";
import SwaggerDescription from "~/components/gitbook/swagger/SwaggerDescription.astro";
import SwaggerParameter from "~/components/gitbook/swagger/SwaggerParameter.astro";
import SwaggerResponse from "~/components/gitbook/swagger/SwaggerResponse.astro";
import Tabs from "~/components/gitbook/tabs/Tabs.astro";
import Tab from "~/components/gitbook/tabs/Tab.astro";
import Tabs from "~/components/gitbook/tabs/Tabs.astro";

## ⌨ 본인인증 내역 단건조회

Expand Down
249 changes: 118 additions & 131 deletions src/content/docs/ko/api/billing-key-api/delete-billing-key-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,206 +4,193 @@ description: 등록된 빌링키(customer_uid)를 삭제합니다.
---

import Details from "~/components/gitbook/Details.astro";
import Hint from "~/components/Hint.astro";
import Swagger from "~/components/gitbook/swagger/Swagger.astro";
import SwaggerDescription from "~/components/gitbook/swagger/SwaggerDescription.astro";
import SwaggerParameter from "~/components/gitbook/swagger/SwaggerParameter.astro";
import SwaggerResponse from "~/components/gitbook/swagger/SwaggerResponse.astro";
import Tabs from "~/components/gitbook/tabs/Tabs.astro";
import Tab from "~/components/gitbook/tabs/Tab.astro";
import Tabs from "~/components/gitbook/tabs/Tabs.astro";
import Hint from "~/components/Hint.astro";

### 빌링키를 삭제합니다. 빌링키 삭제시 결제예약된 내역이 존재하는지 반드시 확인하셔야 합니다.
## 빌링키를 삭제합니다. 빌링키 삭제시 결제예약된 내역이 존재하는지 반드시 확인하셔야 합니다.

<Swagger method="delete" path="/subscribe/customers/{customer_uid}" baseUrl="https://api.iamport.kr" summary=" 구매자의 빌링키 정보 삭제">
<SwaggerDescription>
삭제된 빌링키는 복구할 수 없습니다.

</SwaggerDescription>

### Parameters

#### Path

<SwaggerParameter name="customer_uid" type="String" required="true">
<mark style="color:red;">

**빌링키**
<SwaggerDescription>
삭제된 빌링키는 복구할 수 없습니다.
</SwaggerDescription>

</mark>
### Parameters

</SwaggerParameter>
#### Path

#### Query
<SwaggerParameter name="customer_uid" type="String" required="true">
<mark style="color:red;">
**빌링키**
</mark>
</SwaggerParameter>

<SwaggerParameter name="reason" type="String">
**삭제사유**
#### Query

</SwaggerParameter>
<SwaggerParameter name="extra[requester]" type="String">
**삭제 요청자**
<SwaggerParameter name="reason" type="String">
**삭제사유**
</SwaggerParameter>

네이버페이에서만 사용
<SwaggerParameter name="extra[requester]" type="String">
**삭제 요청자**

</SwaggerParameter>
네이버페이에서만 사용
</SwaggerParameter>

### Responses
### Responses

<SwaggerResponse status="200: OK" description="성공">
<Tabs>
<Tab title="CustomerResponse">
**`code`** <mark style="color:red;">**\***</mark> <mark style="color:purple;">**integer**</mark>
<SwaggerResponse status="200: OK" description="성공">
<Tabs>
<Tab title="CustomerResponse">
**`code`** <mark style="color:red;">**\***</mark> <mark style="color:purple;">**integer**</mark>

**응답코드**
**응답코드**

0이면 정상적인 조회, 0 이 아닌 값이면 message를 확인해봐야 합니다
0이면 정상적인 조회, 0 이 아닌 값이면 message를 확인해봐야 합니다

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

**응답메세지**
**응답메세지**

code 값이 0이 아닐 때, '존재하지 않는 결제정보입니다'와 같은 오류 메세지를 포함합니다
code 값이 0이 아닐 때, '존재하지 않는 결제정보입니다'와 같은 오류 메세지를 포함합니다

**`response`** <mark style="color:red;">**(CustomerAnnotation, optional)**</mark>
**`response`** <mark style="color:red;">**(CustomerAnnotation, optional)**</mark>
</Tab>
</Tabs>

</Tab>
</Tabs>
<Tabs>
<Tab title="CustomerAnnotation">
**`code`** <mark style="color:red;">**\***</mark> <mark style="color:purple;">**integer**</mark>

<Tabs>
<Tab title="CustomerAnnotation">
**`code`** <mark style="color:red;">**\***</mark> <mark style="color:purple;">**integer**</mark>
**`응답코드`**

**`응답코드`**
0이면 정상적인 조회, 0 이 아닌 값이면 message를 확인해봐야 합니다

0이면 정상적인 조회, 0 이 아닌 값이면 message를 확인해봐야 합니다
**`message`** <mark style="color:red;">**\***</mark> <mark style="color:green;">**string**</mark>

**`message`** <mark style="color:red;">**\***</mark> <mark style="color:green;">**string**</mark>
**`응답메세지`**

**`응답메세지`**
code값이 0이 아닐 때, '존재하지 않는 결제정보입니다'와 같은 오류 메세지를 포함합니다

code값이 0이 아닐 때, '존재하지 않는 결제정보입니다'와 같은 오류 메세지를 포함합니다
**`customer_uid`** <mark style="color:red;">**\***</mark> <mark style="color:green;">**string**</mark>

**`customer_uid`** <mark style="color:red;">**\***</mark> <mark style="color:green;">**string**</mark>
**`빌링키`**

**`빌링키`**
**`pg_provider`** <mark style="color:red;">**\***</mark> <mark style="color:green;">**string**</mark>

**`pg_provider`** <mark style="color:red;">**\***</mark> <mark style="color:green;">**string**</mark>
**빌링키가 등록된 PG사 구분코드**

**빌링키가 등록된 PG사 구분코드**
**`pg_id`** <mark style="color:red;">**\***</mark> <mark style="color:green;">**string**</mark>

**`pg_id`** <mark style="color:red;">**\***</mark> <mark style="color:green;">**string**</mark>
**빌링키가 등록된 PG사 상점아이디(MID)**

**빌링키가 등록된 PG사 상점아이디(MID)**
**`customer_id`** <mark style="color:green;">**string**</mark>

**`customer_id`** <mark style="color:green;">**string**</mark>
**구매자 ID**

**구매자 ID**
**`card_name`** <mark style="color:red;">**\***</mark> <mark style="color:green;">**string**</mark>

**`card_name`** <mark style="color:red;">**\***</mark> <mark style="color:green;">**string**</mark>
**`카드사명`**

**`카드사명`**
**`card_code`** <mark style="color:green;">**string**</mark>

**`card_code`** <mark style="color:green;">**string**</mark>
**`카드사 코드`**[**`(링크보기)`**](https://chaifinance.notion.site/53589280bbc94fab938d93257d452216?v=eb405baf52134b3f90d438e3bf763630)

**`카드사 코드`**[**`(링크보기)`**](https://chaifinance.notion.site/53589280bbc94fab938d93257d452216?v=eb405baf52134b3f90d438e3bf763630)
**`card_number`** <mark style="color:green;">**string**</mark>

**`card_number`** <mark style="color:green;">**string**</mark>
**`마스킹 카드번호`**

**`마스킹 카드번호`**
**`card_type`** <mark style="color:green;">**string**</mark>

**`card_type`** <mark style="color:green;">**string**</mark>
**`카드유형`**

**`카드유형`**
**(주의)해당 정보를 제공하지 않는 일부 PG사의 경우 null 로 응답됨**
(ex. JTNet, 이니시스 -빌링)

**(주의)해당 정보를 제공하지 않는 일부 PG사의 경우 null 로 응답됨**
(ex. JTNet, 이니시스 -빌링)
- 0 : 신용카드
- 1 : 체크카드

- 0 : 신용카드
- 1 : 체크카드
**`customer_name`** <mark style="color:green;">**string**</mark>

**`customer_name`** <mark style="color:green;">**string**</mark>
**`고객성함`**

**`고객성함`**
**`customer_tel`** <mark style="color:green;">**string**</mark>

**`customer_tel`** <mark style="color:green;">**string**</mark>
**`고객(카드소지자) 전화번호`**

**`고객(카드소지자) 전화번호`**
**`customer_email`** <mark style="color:green;">**string**</mark>

**`customer_email`** <mark style="color:green;">**string**</mark>
**`고객(카드소지자) Email 주소`**

**`고객(카드소지자) Email 주소`**
**`customer_addr`** <mark style="color:green;">**string**</mark>

**`customer_addr`** <mark style="color:green;">**string**</mark>
**`고객(카드소지자) 주소`**

**`고객(카드소지자) 주소`**
**`customer_postcode`** <mark style="color:green;">**string**</mark>

**`customer_postcode`** <mark style="color:green;">**string**</mark>
**`고객(카드소지자) 우편번호`**

**`고객(카드소지자) 우편번호`**
**`inserted`** <mark style="color:red;">**\***</mark> <mark style="color:purple;">**integer**</mark>

**`inserted`** <mark style="color:red;">**\***</mark> <mark style="color:purple;">**integer**</mark>
**`빌링키가 등록된 시각`** UNIX timestamp

**`빌링키가 등록된 시각`** UNIX timestamp
**`updated`** <mark style="color:red;">**\***</mark> <mark style="color:purple;">**integer**</mark>

**`updated`** <mark style="color:red;">**\***</mark> <mark style="color:purple;">**integer**</mark>
**`빌링키가 업데이트된 시각`** UNIX timestamp
</Tab>
</Tabs>
</SwaggerResponse>

**`빌링키가 업데이트된 시각`** UNIX timestamp

</Tab>
</Tabs>

</SwaggerResponse>

<SwaggerResponse status="401: Unauthorized" description="인증 Token이 전달되지 않았거나 유효하지 않은 경우">
```javascript
{
// Response
}
```

</SwaggerResponse>

<SwaggerResponse status="404: Not Found" description="유효하지 않은 customer_uid">
```javascript
{
// Response
}
```

</SwaggerResponse>
<SwaggerResponse status="401: Unauthorized" description="인증 Token이 전달되지 않았거나 유효하지 않은 경우">
```javascript
{
// Response
}
```
</SwaggerResponse>

<SwaggerResponse status="404: Not Found" description="유효하지 않은 customer_uid">
```javascript
{
// Response
}
```
</SwaggerResponse>
</Swagger>

<Details>
<p slot="summary">Response Model Schema</p>

```json
{
"code": 0,
"message": "string",
"response": {
"customer_uid": "string",
"pg_provider": "string",
"pg_id": "string",
"card_name": "string",
"card_code": "string",
"card_number": "string",
"card_type": "null",
"customer_name": "string",
"customer_tel": "string",
"customer_email": "string",
"customer_addr": "string",
"customer_postcode": "string",
"inserted": 0,
"updated": 0
<p slot="summary">Response Model Schema</p>

```json
{
"code": 0,
"message": "string",
"response": {
"customer_uid": "string",
"pg_provider": "string",
"pg_id": "string",
"card_name": "string",
"card_code": "string",
"card_number": "string",
"card_type": "null",
"customer_name": "string",
"customer_tel": "string",
"customer_email": "string",
"customer_addr": "string",
"customer_postcode": "string",
"inserted": 0,
"updated": 0
}
}
}
```

```
</Details>

<Hint style="success">
**Swagger Test Link**

[**https://api.iamport.kr/#!/subscribe.customer/customer_delete**](https://api.iamport.kr/#!/subscribe.customer/customer_delete)
**Swagger Test Link**

[**https://api.iamport.kr/#!/subscribe.customer/customer\_delete**](https://api.iamport.kr/#!/subscribe.customer/customer_delete)
</Hint>
Loading

0 comments on commit 79963c8

Please sign in to comment.