Sidebar Menu

PostbackSettingsResponse

This response is returned by the GetPostbackSettingsForLicenseKey and GetPostbackSettingsForPhoneNumber methods.

Type Properties

Property Name Description Data Type Sample
Country

Origin country for number.

String US
PhoneNumber

Number being checked for postback URL settings.

String 7575550000
PostbackEnabled

Indicates whether the postback URL is enabled on the number.

Boolean True
PostbackType

Indicates whether the postback URL is used for incoming messages, outgoing messages, or delivery receipts.

Value Description
0 - All

Postback URL is used for all messages.

1 - DeliveryReceipt

Postback URL is used for delivery receipts.

2 - IncomingMessage

Postback URL is used for incoming messages.

3 - OutgoingMessage

Postback URL is used for outgoing messages.

Enum 0 - All
PostbackUrl

The URL being used for postbacks.

String http://www.esendex.us/postback.aspx
ReturnCode

Indicates whether an error occurred due to the data in the request.

Value Description
0 - NoError

The request was successful.

1 - InvalidLicenseKey

2 - InvalidUrl

3 - InvalidPhoneNumber

4 - InvalidPostbackType

5 - NotFound

6 - InvalidCountry

Enum 0 - NoError