{"status": "BATCH_SIZE_EXCEEDED","errors": ["The allowed batch size has been exceeded" ]}
Example of request body:
{"pushType": "TRANSACTION","msisdn": [79001234567,79001234578,79001234589,79001234590 ],"payload": {"title":"Bonus points written off","message":"Your card balance is reduced by 10 bonuses","image":"http://partnerdomain/logo.jpg","deeplink": {"target":"card" } },"qos": {"deliveryStatusNotifications":true },"utm": {"utmSource":"cardsmobile","utmMiddle":"cpc","utmCampaign":"campaign_name" }}
Multiple Push Messages Bulk Sending
POSThttps://api.cardsmobile.ru/bulk/multi
The request is used by a partner to send several push messages (transactional, service or advertising) to several recipients at once (one message to one recipient).
Request Body
Name
Type
Description
*
array
Array of JSON objects describing a push message to be sent (body of a /delivery request, see above).
{"status": "BATCH_SIZE_EXCEEDED","errors": ["The allowed batch size has been exceeded" ]}
Example of request body:
[ {"pushType":"TRANSACTION","msisdn":71234567890,"payload": {"title":"Bonus points written off","message":"Your card balance is reduced by 10 bonuses","image":"http://partnerdomain/logo.jpg","deeplink": {"target":"card" } },"qos": {"deliveryStatusNotifications":true } }]
Get Promotional Action List From Personal Account
GEThttps://api.cardsmobile.ru/promos
A partner that has an account in Koshelek for Business can set up and publish promotional actions for the customers in the Koshelek app. This API method allows to get identifiers of current active promotional actions which can be used for setting up a redirection from a push message to the screen of the corresponding offer in the Koshelek app.
If the delivery is created with the "true" value of deliveryStatusNotifications parameter, the Cardsmobile host will call URL specified by the partner during the integration at each changing of push message status (refer to Connection to API).
Request Body
Name
Type
Description
msisdn*
integer
Phone number of recipient without the + prefix.
messageId*
string
ID of the message.
state*
string
Current delivery status of the message:
DELIVERED — if the message is delivered to user's device;
OPENED — if the message has opened by user.
time
string
Time ("yyyy-MM-ddThh:mm:ssZ") when the message got the status.
utm
object
Object identifier with additional parameters for the delivery (as set upon delivery creation — see above).