출금 신청

Request

POST https://api.coolsms.co.kr/cash/v1/withdraw

출금 신청을 합니다. 출금 신청한 금액에서 5%가 수수료로 차감됩니다.

Authorization 인증 필요 [?]

계정 권한

회원 권한

계정 상태

회원 상태

계정 인증

cash:write

role-cash:write

ACTIVE

ACTIVE

O

2차 인증 필요

ARS 전화 인증

이메일 OTP

Request Structure

{
    "amount": "number"
}

Body Params

Name

Type

Required

Description

amount

number

O

합계 금액

Samples

자동충전 설정되어 있을 때

Sample Request

{
    "amount": 20000
}

Sample Response

{
    "bankCode": "01204012401",
    "accountNumber": "Hua5DumOn92+xQtRyHUGnw==",
    "holderName": "01204012401",
    "status": "PENDING",
    "isProcessing": false,
    "confirmedCount": 0,
    "memo": null,
    "transactionId": null,
    "transactionDate": null,
    "accountId": "19041920726336",
    "amount": 18500,
    "fee": 1500,
    "totalAmount": 20000,
    "withdrawId": "15722846343901211228467589858600",
    "dateConfirmed": "2019-10-28T17:43:54.000Z",
    "dateCreated": "2019-10-28T17:43:54.390Z",
    "dateUpdated": "2019-10-28T17:43:54.390Z"
}

Sample Code

var request = require('request');

var options = {
  headers: {
    Authorization:
      'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4',
    'Content-Type': 'application/json'
  },
  body: {
    amount: 20000
  },
  method: 'POST',
  json: true,
  url: 'http://api.coolsms.co.kr/cash/v1/withdraw'
};

request(options, function(error, response, body) {
  if (error) throw error;
  console.log('result :', body);
});

amount 를 변경하는 경우

Sample Request

{
    "amount": 10000
}

Sample Response

{
    "bankCode": "01204012401",
    "accountNumber": "Hua5DumOn92+xQtRyHUGnw==",
    "holderName": "01204012401",
    "status": "PENDING",
    "isProcessing": false,
    "confirmedCount": 0,
    "memo": null,
    "transactionId": null,
    "transactionDate": null,
    "accountId": "19041920726336",
    "amount": 9000,
    "fee": 1000,
    "totalAmount": 10000,
    "withdrawId": "15722846344211260107227811768300",
    "dateConfirmed": "2019-10-28T17:43:54.000Z",
    "dateCreated": "2019-10-28T17:43:54.421Z",
    "dateUpdated": "2019-10-28T17:43:54.421Z"
}

Sample Code

var request = require('request');

var options = {
  headers: {
    Authorization:
      'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4',
    'Content-Type': 'application/json'
  },
  body: {
    amount: 10000
  },
  method: 'POST',
  json: true,
  url: 'http://api.coolsms.co.kr/cash/v1/withdraw'
};

request(options, function(error, response, body) {
  if (error) throw error;
  console.log('result :', body);
});

문서 생성일 : 2019-10-28

Last updated