API REFERENCEv1
Validate Amazon Order
POST
https://www.protexting.com/features2/web/api/v1/amazon-validate-order/validate⌘
Pass your server-side token as access_token. Replace sample values with your own. Authentication & setup →
Request parameters:
* required parameters
| Parameter | Description |
|---|---|
* Message | Message containing Amazon Order Id in a valid format 333-7777777-7777777 |
* Number | Valid mobile phone number including country code |
Example Request:
Request example
# Set PROTEXTING_ACCESS_TOKEN in your environmentcurl --request POST \ "https://www.protexting.com/features2/web/api/v1/amazon-validate-order/validate?access_token=${PROTEXTING_ACCESS_TOKEN:?Set your API token}" \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "Message": "111-1234567-1234567", "Number": "16461234567"}'Example Response Headers:
Response headers example
Status Code: 200
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: application/json; charset=UTF-8
Pragma: no-cache
X-Rate-Limit-Limit: 60
X-Rate-Limit-Remaining: 59
X-Rate-Limit-ResetExample Response Body:
JSON response example
[
"Amazon Order successfully added for validation"
]XML response example
<response>
Amazon Order successfully added for validation
</response>HTTP Status Codes:
The standard HTTP Status Codes are used. More information is available here: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
Error Codes:
Error Codes and Examples here
Reference from the ProTexting documentation catalog. Code examples are illustrative; this page does not execute API requests.