Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Added explination of error sent for opted out recipients, as well as …
Browse files Browse the repository at this point in the history
…how to disable the optout feature.
  • Loading branch information
Rudi Giesler committed Jan 22, 2015
1 parent b285c87 commit 11e4d49
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/http_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,18 @@ if you wish to be able to associate events with the message later.

If a message is sent to a recipient that has opted out, the response will be an
HTTP 400 error, with the body detailing that the recipient has opted out.
Messages sent as a reply will still go through to an opted out recipient.
Messages sent as a reply will still go through to an opted out recipient. The
following is an example response of the error returned by the API:

.. code-block:: javascript
{
"success": false,
"reason": "Recipient with msisdn +12345 has opted out"
}
This behaviour can be overridden by setting the `disable_optout` flag in the
account to `True`.


Receiving User Messages
Expand Down

0 comments on commit 11e4d49

Please sign in to comment.