IssueCoupon » 이력 » 버전 2
이름없음, 2021/06/03 05:20
| 1 | 2 | 이름없음 | h2(#wiki-id-StoreServerCouponResolver-issueCoupon). *issueCoupon* |
|---|---|---|---|
| 2 | 1 | 이름없음 | |
| 3 | * 원하는 상품을 구매하기 위해 필요한 쿠폰 발급 |
||
| 4 | |||
| 5 | *CouponIssueRequest 파라미터* |
||
| 6 | |||
| 7 | 2 | 이름없음 | |_. field |_. type |_. description |_. note | |
| 8 | | command | String | Command 종류 | | |
||
| 9 | | did | String | URL 요청하는 사용자 did | | |
||
| 10 | | goodsCode | String | 사려는 상품 코드 | | |
||
| 11 | | Amount | int | 상품 가격 | | |
||
| 12 | | Input | String[] | Reword의 TokenId | | |
||
| 13 | | test | Boolean | Test용 필드 | 필수 아님 | |
||
| 14 | 1 | 이름없음 | |
| 15 | 2 | 이름없음 | p(wiki-class-auto-cursor-target). *CouponIssueResponse 파라미터* |
| 16 | 1 | 이름없음 | |
| 17 | 2 | 이름없음 | |_. field |_. type |_. note |_. description | |
| 18 | 1 | 이름없음 | | orderNo | String | | 쿠폰 주문 번호 - kt에서 전달해주는 값 | |
| 19 | | pinNo | String | | 쿠폰 핀 번호 - kt에서 전달해주는 값 | |
||
| 20 | | couponImgUrl | String | | 쿠폰 이미지 URL | |
||
| 21 | | transactionId | String | | 쿠폰Id | |
||
| 22 | | command | String | | 응답 Command 종류 | |
||
| 23 | |||
| 24 | 2 | 이름없음 | p(wiki-class-auto-cursor-target). *Request Example* |
| 25 | 1 | 이름없음 | |
| 26 | <pre><code class="java"> |
||
| 27 | query { |
||
| 28 | getCouponIssue(couponIssueRequest : { |
||
| 29 | Input : ["Gjk8x4CWuN9XcZeW3ivXNDxCSZF211t2Ew2iYVnvCo2JyrkmhbT7pV5P3a2jFFZBrJafXkDTxFoXL3QH7VHgvXBSVKRHZwjpjxYqZKxmdu9gCmjQNkoe"] |
||
| 30 | Amount : 950 |
||
| 31 | 2 | 이름없음 | goodsCode : "G00000220995" |
| 32 | did : "G5rw9qAMbozGxySHkMaztD" |
||
| 33 | command : "issueCoupon" |
||
| 34 | 1 | 이름없음 | }) { |
| 35 | command |
||
| 36 | couponImgUrl |
||
| 37 | orderNo |
||
| 38 | tokenId |
||
| 39 | transactionId |
||
| 40 | pinNo |
||
| 41 | } |
||
| 42 | } |
||
| 43 | </code></pre> |
||
| 44 | |||
| 45 | *Response Example* |
||
| 46 | |||
| 47 | <pre><code class="java"> |
||
| 48 | { |
||
| 49 | "data": { |
||
| 50 | "getCouponIssue": { |
||
| 51 | "command": "issueCoupon", |
||
| 52 | "couponImgUrl": "https://imgs.giftishow.co.kr/Resource2/mms/20210419/17/mms_1e683e3c8290cbafc62a4fd68bba8c0a_01.jpg", |
||
| 53 | "orderNo": "20210419632599", |
||
| 54 | "tokenId": [ |
||
| 55 | 2 | 이름없음 | "Gjk8x4CWuN9XcZeW3ivXNERLSXXP6hxauXw94xCKs8UdXrausaHXXXxzrmvUSHWTgy1ACKv4sBTTr3JdYVkw2S6MiKadNNJ4GaJ1cUf3wFGPuEif514s" |
| 56 | 1 | 이름없음 | ], |
| 57 | "transactionId": "BC20210419rI1iaxnlzzcuv5d", |
||
| 58 | 2 | 이름없음 | "pinNo": "998532721558" |
| 59 | 1 | 이름없음 | } |
| 60 | } |
||
| 61 | } |
||
| 62 | </code></pre> |