sayren Docs
클레임

클레임 승인

POST
/v1/claims/{claimId}/approve
AuthorizationBearer <token>

userToken(계정 스코프) 또는 storeToken(스토어 스코프)

In: header

Path Parameters

claimId*string

Header Parameters

idempotency-key?string

멱등키. 같은 키로 다시 보내면 처음 결과를 돌려주고 한 번만 적용한다. 재시도에는 같은 키를 쓴다

Lengthlength <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

deductAmount?integer
Range0 <= value

Response Body

application/json

curl -X POST "https://example.com/v1/claims/string/approve" \  -H "Content-Type: application/json" \  -d '{}'
{  "meta": {    "status": 200,    "code": "OK",    "message": "OK",    "isSuccess": true  },  "data": {    "claimId": "string",    "refundAmount": 0,    "deductAmount": 0,    "refundedAt": "string"  },  "error": null}