BCSWeb MessageRouting Service API

Operations
MessagingService
POST /MessagingService/CarrierLookup
POST /MessagingService/SendMessage
POST /MessagingService/GetMessageCount
POST /MessagingService/GetShortenURL
POST - CarrierLookup
POST /MessagingService/CarrierLookup

Request headers

Authorization
string optional

Basic Auth

x-access-token
string optional

Access Token

x-device-serial-no
string optional

Device Serial Number

Request body

application/json
text/json
application/xml
text/xml
application/x-www-form-urlencoded
Example:
{
    "PharmacyNumber": "",
    "PhoneNumber": ""
}

Responses

200 200

OK

Body
application/json
text/json
application/xml
text/xml
Examples:
{
    "Data": {
        "PhoneNumber": "",
        "IsMobile": "",
        "Carrier": ""
    },
    "IsValid": true,
    "Messages": [
        {
            "MessageCode": "",
            "Message": "",
            "MessageType": "Unknown"
        }
    ]
}
Example with response data

{
    "Data": {
        "PhoneNumber": "7777777777",
        "IsMobile": "true",
        "Carrier": "",
        "IsValid": true
    },
    "IsValid": true,
    "Messages": []
}
POST - SendMessage
POST /MessagingService/SendMessage

Request headers

Authorization
string optional

Basic Auth

x-access-token
string optional

Access Token

x-device-serial-no
string optional

Device Serial Number

Request body

application/json
text/json
application/xml
text/xml
application/x-www-form-urlencoded
Example:
{
    "PharmacyNumber": "",
    "PhoneEmail": "",
    "PhoneEmailVerified": "",
    "MessageMethod": "",
    "MessageSubject": "",
    "MessageBody": "",
    "EntityType": 1,
    "EntityRecNo": 1,
    "EntityName": ""
}

Responses

200 200

OK

Body
application/json
text/json
application/xml
text/xml
Examples:
{
    "Data": "",
    "IsValid": true,
    "Messages": [
        {
            "MessageCode": "",
            "Message": "",
            "MessageType": "Success"
        }
    ]
}
Example with response data

{
    "Data": "",
    "IsValid": true,
    "Messages": []
}
POST - GetMessageCount
POST /MessagingService/GetMessageCount

Request headers

Authorization
string optional

Basic Auth

x-access-token
string optional

Access Token

x-device-serial-no
string optional

Device Serial Number

Request body

application/json
text/json
application/xml
text/xml
application/x-www-form-urlencoded
Example:
{
    "ClientRecno": 1,
    "StartDate": "",
    "EndDate": ""
}

Responses

200 200

OK

Body
application/json
text/json
application/xml
text/xml
Examples:
{
    "Data": {
        "ClientRecno": 1,
        "SMSUsage": {
            "IncomingUsageUnit": 1,
            "IncomingPrice": 1,
            "OutgoingUsageUnit": 1,
            "OutgoingPrice": 1
        }
    },
    "IsValid": true,
    "Messages": [
        {
            "MessageCode": "",
            "Message": "",
            "MessageType": "Error"
        }
    ]
}
Example with response data

{
    "Data": {
        "ClientRecno": 1,
        "SMSUsage": {
            "IncomingUsageUnit": 1,
            "IncomingPrice": 1,
            "OutgoingUsageUnit": 1,
            "OutgoingPrice": 1
        }
    },
    "IsValid": true,
    "Messages": [
        {
            "MessageCode": "",
            "Message": "",
            "MessageType": "Error"
        }
    ]
}
POST - GetShortenURL
POST /MessagingService/GetShortenURL

Request headers

Authorization
string optional

Basic Auth

x-access-token
string optional

Access Token

x-device-serial-no
string optional

Device Serial Number

Request body

application/json
text/json
application/xml
text/xml
application/x-www-form-urlencoded
Example:
{
    "URL": "",
    "PharmacyNumber": ""
}

Responses

200 200

OK

Body
application/json
text/json
application/xml
text/xml
Examples:
{
    "Data": "",
    "IsValid": true,
    "Messages": [
        {
            "MessageCode": "",
            "Message": "",
            "MessageType": "Error"
        }
    ]
}
Example with response data

{
    "Data": "",
    "IsValid": true,
    "Messages": []
}
Type Definitions
BCSWeb.Model.CarrierLookupRequest
Object
PharmacyNumber
string
PhoneNumber
string
BCSWeb.Model.ResponseGenericInfo[BCSWeb.Model.CarrierLookupResponse]
Object
IsValid
boolean
Messages
BCSWeb.Model.CarrierLookupResponse
Object
PhoneNumber
string
IsMobile
string
Carrier
string
BCSWeb.Model.MessageInfo
Object
MessageCode
string
Message
string
MessageType
string
Enumeration:
Information
Warning
Error
Success
Unknown
BCSWeb.Model.BE_MESSAGE_REQUEST
Object
PharmacyNumber
string
PhoneEmail
string
PhoneEmailVerified
string
MessageMethod
string
MessageSubject
string
MessageBody
string
EntityType
integer int32
EntityRecNo
integer int32
EntityName
string
BCSWeb.Model.ResponseGenericInfo[System.String]
Object
Data
string
IsValid
boolean
Messages
BCSWeb.Model.MessageUsageRequest
Object
ClientRecno
integer int32
StartDate
string date-time
EndDate
string date-time
BCSWeb.Model.ResponseGenericInfo[BCSWeb.Model.MessageUsageResponse]
Object
IsValid
boolean
Messages
BCSWeb.Model.MessageUsageResponse
Object
ClientRecno
integer int32
BCSWeb.Model.SMSUsageInfo
Object
IncomingUsageUnit
integer int32
IncomingPrice
number double
OutgoingUsageUnit
integer int32
OutgoingPrice
number double
BCSWeb.Model.ShortenURLRequest
Object
URL
string
PharmacyNumber
string