그룹 메시지 예약 취소

2
Last updated 5 months ago

delete
cancelScheduledGroupMessage

https://rest.coolsms.co.kr
/messages/v4/groups/:groupId/schedule
Request
Response
Path Parameters
groupId
required
string
그룹 아이디
Headers
Authorization
required
string
쿨에스엠에스 인증 정보
200: OK
{
_id: 'G4V20181019090749JPZH8HEYXURHFQ6',
count: {
total: 1,
sentTotal: 0,
sentFailed: 0,
sentSuccess: 0,
sentPending: 0,
sentReplacement: 0,
refund: 0,
registeredFailed: 0,
registeredSuccess: 1
},
countForCharge: {
sms: {'82': 1},
lms: {},
mms: {},
ata: {},
cta: {}
},
balance: {
requested: 0,
replacement: 0,
refund: 0,
sum: 0
},
point: {
requested: 0,
replacement: 0,
refund: 0,
sum: 0
},
app: {
profit: {
sms: 0,
lms: 0,
mms: 0,
ata: 0,
cta: 0
},
appId: None,
version: None
},
sdkVersion: None,
osPlatform: None,
log: [
{
message: '메시지 그룹이 생성되었습니다.',
createAt: '2018-10-19T00:07:49.822Z'
},
{
createAt: '2018-10-19T00:08:02.671Z',
message: '국가코드(82)의 단문문자(SMS) 1 건이 추가되었습니다.'
},
{
createAt: '2018-10-19T00:09:12.062Z',
message: '메시지 예약이 성공적으로 접수됐습니다.',
messageCount: {
total: 1,
sentTotal: 0,
sentFailed: 0,
sentSuccess: 0,
sentPending: 0,
sentReplacement: 0,
refund: 0,
registeredFailed: 0,
registeredSuccess: 1
}
},
{
createAt: '2018-10-19T00:12:51.873Z',
message: '메시지 예약이 성공적으로 취소됐습니다.'
}
],
status: 'PENDING',
scheduledDate: None,
dateSent: None,
dateCompleted: None,
isRefunded: False,
flagUpdated: False,
accountId: '12062181',
apiVersion: '4',
groupId: 'G4V20181019090749JPZH8HEYXURHFQ6',
price: {},
dateCreated: '2018-10-19T00:07:49.835Z',
dateUpdated: '2018-10-19T00:14:20.301Z'
}
400: Bad Request
{
errorCode: "InvalidStatus",
errorMessage: "'SCHEDULED' 상태의 그룹만 취소가 가능합니다."
}
404: Not Found
{
errorCode: "ResourceNotFound",
errorMessage: "해당 그룹아이디가 존재하지 않습니다."
}

예제 코드

[JavaScript] cancel_scheduledDate.js

[Python] cancel_scheduledDate.py

[Java] cancel_scheduledDate.java

[PHP] cancel_scheduledDate.php

[Ruby] cancel_scheduledDate.rb