등록된 결제수단의 우선순위를 변경

Request

PUT https://api.coolsms.co.kr/cash/v1/payment

등록된 결제수단의 우선순위를 변경합니다.

Authorization 인증 필요 [?]

계정 권한

회원 권한

계정 상태

회원 상태

계정 인증

cash:write

role-cash:write

ACTIVE

ACTIVE

O

Request Structure

{
    "paymentIds": "array",
    "minimumCash": "number",
    "rechargeTo": "number"
}

Body Params

Name

Type

Required

Description

paymentIds

array

O

결제 ID

minimumCash

number

O

충전 기준 금액

rechargeTo

number

O

충전 목표 금액

Samples

setAutoRecharge.spec.spec.js

Sample Request

{
    "paymentIds": [
        "7497570349519555001572284632096",
        "7502457717688964001572284632097"
    ],
    "minimumCash": 1000,
    "rechargeTo": 100000
}

Sample Response

{
    "paymentIds": [
        "7497570349519555001572284632096",
        "7502457717688964001572284632097"
    ],
    "minimumCash": 1000,
    "rechargeTo": 100000
}

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: {
    paymentIds: '749757034951955500157228463...',
    minimumCash: 1000,
    rechargeTo: 100000
  },
  method: 'PUT',
  json: true,
  url: 'http://api.coolsms.co.kr/cash/v1/payment'
};

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

문서 생성일 : 2019-10-28

Last updated