Set Pending TFN
The following is an example REST/JSON set-pending request from the user in order to approve or reject a
pending TFN:
To approve a pending TFN:
POST /api/v2/tss-text-set-pending-tfn HTTP/1.0
Content-Type: application/json
Content-Length: <num>
{
"id":"user",
"pwd":"password",
"tfn":"8005551212",
"action":"approve"
}
To reject a pending TFN:
POST /api/v2/tss-text-set-pending-tfn HTTP/1.0
Content-Type: application/json
Content-Length: <num>
{
"id":"user",
"pwd":"password",
"tfn":"8005551212",
"action":"reject",
"rejectCode":"<rejectCode>" // See Reject Reason Codes table
}
A response similar to the following is issued by TSS to the user on success:
// The HTTP header is omitted for brevity. The JSON portion follows:
{
"url": "/api/v2/tss-text-set-pending-tfn", // positive confirmation
"tfn": "8005551212" // positive confirmation
}
Any failure is communicated via an error response as discussed in the Error section later in this
document.