Skip to content
Wire2AirWire2Air

Delivery reports

Wire2Air calls your server with the status of each message you sent, identified by its outbox ID.

Last updated

A delivery report tells you what happened to a message after Wire2Air accepted it: delivered to the handset, failed, and so on.

GEThttps://your-server.example/wire2air/delivery-report
Credential
None. Wire2Air calls a URL on your server

Your URL. Wire2Air appends the parameters below as a query string.

Parameters

Parameters
ParameterDescription
smsoutboxid
stringrequired
in query
The reference number of the message you sent.
statuscode
stringrequired
in query
The message's status.
Request from Wire2Air
GET /wire2air/delivery-report?smsoutboxid=85582790&statuscode=STATUS HTTP/1.1
Host: your-server.example

Status codes

Until then, store every report as received (outbox ID, status code, time) so you can interpret it later.

Examples

<?php
$outboxId = $_GET['smsoutboxid'] ?? '';
$status = $_GET['statuscode'] ?? '';

// Record the status against the message you sent.
error_log(sprintf('Delivery report for %s: %s', $outboxId, $status));
http_response_code(200);