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