Sticker

Use this to send a sticker to a user. type value is 5. All defined stickers can be found at: https://swf.tvoip.turkcell.com.tr/v1/AUTH_9b4e9d2b80b74bea926636fb0f4f0519/ortak/sticker/publishstickers.json. Add one of the URLs there into the message field to send the sticker.

Request
{  
    "txnid": "430",  
    "receiver": {  
        "type": 0,  
        "address": "m6zi2Sn+sYtVvzBCEUqGpg== "  
    },  
    "composition": {  
        "list": [{  
            "type": 5,  
            "message": "https://swf.tvoip.turkcell.com.tr/v1/AUTH_9b4e9d2b80b74bea926636fb0f4f0519/ortak/sticker/bipsticker/10009/10009-000002@2x.png"  
        }]  
    }  
}  
Fields
FieldValueDescription
*txnidstringRequest id value
*receiverobject
*typeintRecipient address type. Values: 0 -> Hashed address 1 -> All addresses following the service 2 -> MSISDN (plain number)
*addressstringAddress in the type specified by type. If type is 0, address is hashed (value provided by bipussu). If type is 1, address must not be in the request. If type is 2, provide the address in 905XXXXXXXXX format.
*compositionobject
*listlistMessages to send; at least 1 item required.
*typeintMessage type. Values: 0 – Text 2 – Photo 3 – Audio 4 – Video 5 – Sticker 6 – Caps 7 – Location 9 – Finish Line 10 – Contact 13 – Template Media Message 14 – Document. Additional parameters depend on the selected type.
*messagestringSticker URL

Validations

Error Codes

resultcodeDescription
1004invalid content message
1005invalid content size
1006invalid content ratio
1007invalid content item id