View AutoSKU Dead Letters
POST {api-url}/viewAutoSKUDeadLetters?ns={community}
When an AutoSKU ledger transfer fails (e.g. User is locked, Insufficient funds), it writes the payload to a Dead Letter Queue (DLQ). Use this endpoint to view a paginated list of all trapped failures.
Parameters
Section titled βParametersβ| Field | Type | Requirement | Description |
|---|---|---|---|
Username | String | Optional | Filter the dead letters by a specific merchant username. |
IDNumber | String | Optional | The ID number of the filtered user. |
DateFrom | String | Optional | Specify the starting date and time for the search (YYYY/MM/DD HH:MM or YYYYMMDD). |
DateTo | String | Optional | Specify the ending date and time for the search (YYYY/MM/DD HH:MM or YYYYMMDD). |
Limit | String | Optional | An integer to limit the quantity of responses. |
Sort | String | Optional | Sort direction (asc or desc). |
Cursor | String | Optional | The cursor string from a previous response to fetch the next page. |
Metadata | String | Optional | Any other detail that you wish to store with this event. |
Example Body
Section titled βExample Bodyβ{ "Username": "celbuxMerchant", "IDNumber": "", "DateFrom": "2026/03/18 00:00", "DateTo": "2026/03/19 23:59", "Limit": "100", "Sort": "desc", "Cursor": "", "Metadata": "{}"}Parameters
Section titled βParametersβ| Field | Type | Description |
|---|---|---|
DeadLetters | Array | An array of trapped Dead Letter objects. |
TID | String | TID (Transaction ID) of the executed operation. |
Cursor | String | A cursor string to use in the next request to fetch the subsequent page. |
State | String | Transaction state (Success or Failed). |
Status | String | Transaction status code (1 or negative error code). |
Error | String | Failure reason, if applicable. |
Example Body
Section titled βExample Bodyβ{ "DeadLetters":[ { "Date": "2026/03/19 12:00", "Ref": "AutoSKU_P1_123_456_20260319", "MerchantUsername": "celbuxMerchant", "TargetUsername": "celbuxCredits", "Amount": "5000", "ErrorCode": "-12", "Type": "PASS1", "Community": "celbuxcommunity" } ], "TID": "15000000006", "Cursor": "a1dJW2xrY3ksLRtJS0Uh...", "State": "Success", "Status": "1", "Error": ""}curl -X POST '{api-url}/viewAutoSKUDeadLetters?ns={community}' \-H 'Authorization: bearer YOUR_TOKEN' \-H 'Content-Type: application/json' \-d '{"Username":"celbuxMerchant","IDNumber":"","DateFrom":"2026/03/18 00:00","DateTo":"2026/03/19 23:59","Limit":"100","Sort":"desc","Cursor":"","Metadata":"{}"}'using System;using System.Net.Http;using System.Text;using System.Threading.Tasks;
class Program{ static async Task Main(string[] args) { var client = new HttpClient(); var request = new HttpRequestMessage(HttpMethod.Post, "{api-url}/viewAutoSKUDeadLetters?ns={community}"); request.Headers.Add("Authorization", "bearer YOUR_TOKEN");
var jsonPayload = @"{ ""Username"": ""celbuxMerchant"", ""IDNumber"": """", ""DateFrom"": ""2026/03/18 00:00"", ""DateTo"": ""2026/03/19 23:59"", ""Limit"": ""100"", ""Sort"": ""desc"", ""Cursor"": """", ""Metadata"": ""{}""}"; request.Content = new StringContent(jsonPayload, Encoding.UTF8, "application/json");
var response = await client.SendAsync(request); response.EnsureSuccessStatusCode();
var responseBody = await response.Content.ReadAsStringAsync(); Console.WriteLine(responseBody); }}package main
import ( "fmt" "io/ioutil" "net/http" "strings")
func main() { url := "{api-url}/viewAutoSKUDeadLetters?ns={community}" payload := strings.NewReader(`{"Username":"celbuxMerchant","IDNumber":"","DateFrom":"2026/03/18 00:00","DateTo":"2026/03/19 23:59","Limit":"100","Sort":"desc","Cursor":"","Metadata":"{}"}`)
req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "bearer YOUR_TOKEN") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req) defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body) fmt.Println(string(body))}import java.net.URI;import java.net.http.HttpClient;import java.net.http.HttpRequest;import java.net.http.HttpResponse;
public class ApiRequest { public static void main(String[] args) throws Exception { var payload = """ { "Username": "celbuxMerchant", "IDNumber": "", "DateFrom": "2026/03/18 00:00", "DateTo": "2026/03/19 23:59", "Limit": "100", "Sort": "desc", "Cursor": "", "Metadata": "{}"} """;
var request = HttpRequest.newBuilder() .uri(URI.create("{api-url}/viewAutoSKUDeadLetters?ns={community}")) .header("Authorization", "bearer YOUR_TOKEN") .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString(payload)) .build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); }}// Requires Node.js v18+(async () => { const url = '{api-url}/viewAutoSKUDeadLetters?ns={community}'; const payload = { "Username": "celbuxMerchant", "IDNumber": "", "DateFrom": "2026/03/18 00:00", "DateTo": "2026/03/19 23:59", "Limit": "100", "Sort": "desc", "Cursor": "", "Metadata": {}};
try { const response = await fetch(url, { method: 'POST', headers: { 'Authorization': 'bearer YOUR_TOKEN', 'Content-Type': 'application/json' }, body: JSON.stringify(payload) }); const data = await response.json(); console.log(data); } catch (error) { console.error('Error:', error); }})();<?php$curl = curl_init();
curl_setopt_array($curl, array( CURLOPT_URL => '{api-url}/viewAutoSKUDeadLetters?ns={community}', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => '{ "Username": "celbuxMerchant", "IDNumber": "", "DateFrom": "2026/03/18 00:00", "DateTo": "2026/03/19 23:59", "Limit": "100", "Sort": "desc", "Cursor": "", "Metadata": "{}"}', CURLOPT_HTTPHEADER => array( 'Authorization: bearer YOUR_TOKEN', 'Content-Type: application/json' ),));
$response = curl_exec($curl);curl_close($curl);echo $response;import requestsimport json
url = "{api-url}/viewAutoSKUDeadLetters?ns={community}"payload = { "Username": "celbuxMerchant", "IDNumber": "", "DateFrom": "2026/03/18 00:00", "DateTo": "2026/03/19 23:59", "Limit": "100", "Sort": "desc", "Cursor": "", "Metadata": {}}
headers = { "Authorization": "bearer YOUR_TOKEN", "Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)print(response.json())require 'uri'require 'net/http'require 'json'
url = URI("{api-url}/viewAutoSKUDeadLetters?ns={community}")
http = Net::HTTP.new(url.host, url.port)http.use_ssl = true
request = Net::HTTP::Post.new(url)request["Authorization"] = 'bearer YOUR_TOKEN'request["Content-Type"] = 'application/json'
request.body = JSON.dump({ "Username": "celbuxMerchant", "IDNumber": "", "DateFrom": "2026/03/18 00:00", "DateTo": "2026/03/19 23:59", "Limit": "100", "Sort": "desc", "Cursor": "", "Metadata": {}})
response = http.request(request)puts response.read_body