POST api/nkis/{nki}/users/send
Send an NKI with the given NKI user information directly
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| nki |
NKI ID |
integer |
Required |
Body Parameters
Message to send
OutgoingNKIDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Users |
Recipient users |
Collection of NKIUserDTO |
Required |
|
Whether to send SMS copies by email (for contacts with email addresses) |
boolean |
None. |
|
| Prio |
SMS message priority, normal (1) or high (2) |
integer |
Deprecated: No longer makes a difference, use 1 if any Range: inclusive between 1 and 2 |
| From |
SMS message sender name or phone number |
string |
Required |
| Message |
SMS message contents |
string |
Required |
Request Formats
application/json, text/json
{
"Users": [
{
"Extra": "sample string 1",
"FirstName": "sample string 2",
"LastName": "sample string 3",
"Phone": "sample string 4",
"Email": "sample string 5"
},
{
"Extra": "sample string 1",
"FirstName": "sample string 2",
"LastName": "sample string 3",
"Phone": "sample string 4",
"Email": "sample string 5"
}
],
"Email": true,
"Prio": 1,
"From": "sample string 2",
"Message": "sample string 3"
}
Response Information
Resource Description
Sent messages
Collection of ProcessedOutgoingSMSDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
SMS message ID |
integer |
None. |
| BundleID |
SMS bundle ID, if any |
integer |
None. |
| Status |
SMS message status code |
integer |
None. |
| StatusDescription |
SMS message status description |
string |
None. |
| To |
Destination phone number |
string |
None. |
| CountryCode |
Country code of destination phone number if To field is valid, otherwise null |
string |
None. |
| Currency |
What currency the SMS was payed in. Is displayed as ISO 4217 Alphabetic code |
Currency |
None. |
| TotalPrice |
The price for sending the entire message |
decimal number |
None. |
| Price |
The price for sending each segment of the message |
decimal number |
None. |
| Encoding |
Encoding in which the message was encoded |
SmsEncoding |
None. |
| Segments |
The number of segments the message consists of |
byte |
None. |
| Prio |
SMS message priority, normal (1) or high (2) |
integer |
Deprecated: No longer makes a difference, use 1 if any Range: inclusive between 1 and 2 |
| From |
SMS message sender name or phone number |
string |
Required |
| Message |
SMS message contents |
string |
Required |
Response Formats
application/json, text/json
[
{
"ID": 1,
"BundleID": 1,
"Status": 2,
"StatusDescription": "Invalid message content",
"To": "sample string 3",
"CountryCode": null,
"Currency": "SEK",
"TotalPrice": 4.0,
"Price": 5.0,
"Encoding": "GSM7",
"Segments": 1,
"Prio": 2,
"From": "sample string 7",
"Message": "sample string 8"
},
{
"ID": 1,
"BundleID": 1,
"Status": 2,
"StatusDescription": "Invalid message content",
"To": "sample string 3",
"CountryCode": null,
"Currency": "SEK",
"TotalPrice": 4.0,
"Price": 5.0,
"Encoding": "GSM7",
"Segments": 1,
"Prio": 2,
"From": "sample string 7",
"Message": "sample string 8"
}
]