Delivery reports

A 202 means Taysend accepted the send, not that it was delivered. Delivered, failed or expired comes later, from the network's report.

Accepted vs delivered

An HTTP 202 means Taysend accepted the send, not that it was delivered. Terminal states come from delivery reports (or the TEST sandbox).

GET /v1/messages/:id to poll. Subscribe to message.delivered / message.failed / message.expired / message.rejected for push. A message that fails before it reaches the network sends no event, so poll when you need certainty.

+233200000005 delivers after a delay. +233200000006 times out and is UNSAFE_TO_RETRY. Taysend will not failover that attempt.

Statuses

status on a message is one of these. Stop polling on a finished one. CREATED, VALIDATED, BILLING_RESERVED and PROVIDER_REJECTED are internal steps that pass in a moment.

QUEUEDnoAccepted and waiting for a route.
ROUTINGnoTaysend is choosing the network route.
PROVIDER_PENDINGnoHanded to the network, no answer yet.
PROVIDER_ACCEPTEDnoThe network took it. Not delivered yet.
SUBMITTEDnoOn its way to the handset.
UNKNOWNnoNo report yet after submission. A later report can still settle it.
DELIVEREDyesThe handset received it.
FAILEDyesNot delivered, including a network rejection after acceptance.
UNDELIVEREDyesThe network reported it could not deliver.
EXPIREDyesThe network gave up before the handset was reached.
REJECTEDyesRefused before it was sent.
CANCELLEDyesStopped before it was sent, for example a scheduled send you cancelled.