...
App calls
/transact
with the NO auth detailsIn the
details
object, app inserts the user’s message as text + a callback urlProvider responds with
PendingValidation
and a details an action object corresponding to the message from the underlying intent (text, menu, buttons, attachments)Where the response is delayed: Provider responds via the callback url
App calls
/transact/validate
to supply the user’s choice/textProvider responds with any of the completion codes
Successful
orFailed
if it has all it needs to finish off the intent. Otherwise go back to #3To query the status of a transaction, the app can call
/transact/query
Where the provider supports it, the app can call
/transact/reverse
to request a reversal (if supported)
...
Code Block | ||
---|---|---|
| ||
{
"request_ref":"{{request_ref}}",
"request_type":"benefits_intent",
"auth": {
"secure": "{{the encrypted message or selection from the user}}",
"auth_provider": "Benefits"
},
"transaction": {
"transaction_ref": "70713093460718"
}
} |
...