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. 0 – AllPostback URL is used for all messages. 1 – DeliveryReceiptPostback URL is used for delivery receipts. 2 – IncomingMessagePostback URL is used for incoming messages. 3 – OutgoingMessagePostback 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. 0 – NoErrorThe request was successful. 1 – InvalidLicenseKey 2 – InvalidUrl 3 – InvalidPhoneNumber 4 – InvalidPostbackType 5 – NotFound6 – InvalidCountry | Enum | 0 – NoError |