Contact

Shares contact information. At least one phone number and at least one address can be added. type value is 10.

Request
{  
    "txnid": "542324",  
    "receiver": {  
        "type": 2,  
        "address": "905XXXXXXXXX"  
    },  
    "composition": {  
        "list": [{  
            "type": 10,  
            "vCard": {  
                "name": "John",  
                "surname": "Doe",  
                "phonenumbers": ["9053XXXXXXXX", "905XXXXXXXXX"],  
                "addresses": [{  
                    "address": "Example Street 123",  
                    "postalcode": "34197",  
                    "city": "Istanbul",  
                    "country": "Turkey"  
                }]  
            }  
        }]  
    }  
}  
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.
*vCardobjectContact payload
*namestringContact first name
*surnamestringContact surname
*phonenumberslistList of phone numbers
*addresseslistList of addresses
*addressstringAddress
*postalcodestringPostal code
*citystringCity
*countrystringCountry

Validations

Error Codes

resultcodeDescription
1027invalid contact name
1028invalid contact surname
1029invalid contact phonenumber
1030invalid contact address