Actions
RevokeCoupon¶
- 발행된 쿠폰 취소합니다
revokeCoupon(
couponRevokeRequest: CouponRevokeRequest
): CouponRevokeResponse
CouponRevokeRequest
field | type | description | note |
---|---|---|---|
command | String | Command 종류 | 값: revokeCoupon |
did | String | URL 요청 사용자 did | |
TransactionId | String | 취소할 쿠폰Id | |
goodsCode | String | 쿠폰에 대한 상품 코드 | |
Amount | int | 쿠폰에 대한 상품 가격 | |
test | Boolean | Test용 필드 | 필수 아님 |
CouponRevokeResponse
field | type | description | note |
---|---|---|---|
refunded | List<CouponFund> | 취소된 쿠폰에 대한 정보 리스트 | |
command | String | 응답에 대한 Command 종류 | 값: revokeCoupon |
CouponFund
field | type | description | note |
---|---|---|---|
amount | Int! | ||
expiresAt | String | ||
nounce | String | ||
owner | String | ||
spent | String | ||
tokenid | string | ||
version | String | ||
type | String | ||
dueTo | String |
Request Example
query {
getCouponRevoke(couponRevokeRequest : {
TransactionId : "BC20210419rI1iaxnlzzcuv5d"
command : "revokeCoupon"
goodsCode : "G00000220995"
Amount : 950
did :"G5rw9qAMbozGxySHkMaztD"
}) {
refunded {
amount
dueTo
expiresAt
nounce
owner
spent
type
tokenId
version
}
}
}
Response Example
{
"data": {
"getCouponRevoke": {
"refunded": [
{
"amount": 950,
"dueTo": "use=refund:BC20210419rI1iaxnlzzcuv5d",
"expiresAt": "__INFINITE__",
"nounce": "0",
"owner": "G5rw9qAMbozGxySHkMaztD",
"spent": "false",
"type": "bc.d.tok",
"tokenId": "Gjk8x4CWuN9XcZeW3ivXNEQm47hJdd3QxaEqLDsnSdSpmtZv3CAk2UaMWeP8rMus1cH1oz7qHgrLXxWfHjZMghebDoSk8LkJXZkrZEzi9SzpKde3nkjN",
"version": "v0.4.2"
}
]
}
}
}
이름없음이(가) 약 4년 전에 변경 · 10 revisions