Amwal Tech logoDocs

Statement Report API

Export merchant settlement reports, payout batch records, fee summaries, and SARIE bank transfer logs by date range for ERP accounting reconciliation and financial audits.


Endpoint

POST /reports/statements

Request Headers

Authorization: YOUR_SECRET_KEY
X-Amwal-Key: sandbox-amwal-xxx
Content-Type: application/json
HeaderTypeRequiredDescription
AuthorizationStringYesYour Amwal Secret Key (e.g. d9ccf8bc-ed63-44ad-a54c-9d8fee63df6b).
X-Amwal-KeyStringNoMerchant publishable API Key or sandbox identifier.
Content-TypeStringYesMust be set to application/json.

Request Body

{
  "from_date": "2026-05-01T00:00:00Z",
  "to_date": "2026-05-31T23:59:59Z",
  "store_id": "f24267bd-79f4-433f-a9f2-485c171301e4",
  "format": "json"
}

Request Parameters

FieldTypeRequiredDescription
from_dateString (ISO 8601)YesStart timestamp of reporting period in UTC (e.g. 2026-05-01T00:00:00Z).
to_dateString (ISO 8601)YesEnd timestamp of reporting period in UTC (e.g. 2026-05-31T23:59:59Z).
store_idString (UUID)YesStore identifier for which financial statements are generated.
formatStringNoDesired report format: "json" (default), "csv", or "pdf".

Response (200 OK)

{
  "report_id": "rep_20260531_001",
  "generated_at": "2026-06-01T02:00:00Z",
  "currency": "SAR",
  "summary": {
    "total_gross_sales": 145000.00,
    "total_fees": 2175.00,
    "total_vat": 326.25,
    "total_refunds": 1200.00,
    "net_payout_amount": 141298.75
  },
  "settlements": [
    {
      "settlement_id": "SET-981240",
      "payout_date": "2026-05-15",
      "bank_reference": "SARB-98124-AMWAL",
      "net_amount": 72150.00,
      "status": "completed"
    }
  ]
}

Response Parameters

Top-Level Report Metadata

FieldTypeDescription
report_idStringUnique statement report execution ID.
generated_atString (ISO 8601)Timestamp when the report was compiled in UTC.
currencyStringCurrency ISO code (SAR).
summaryObjectAggregate financial summary for the specified date range.
settlementsArray of ObjectsList of SARIE bank payout transfer batches.

Financial Summary (summary)

FieldTypeDescription
total_gross_salesNumberTotal authorized installment and card sales gross volume in SAR.
total_feesNumberTotal Amwal transaction processing fees in SAR.
total_vatNumber15% VAT assessed on processing fees in SAR.
total_refundsNumberTotal amount of customer refunds settled during the period.
net_payout_amountNumberNet settled balance transferred to merchant bank account (gross - fees - vat - refunds).

Settlement Batch Record (settlements[])

FieldTypeDescription
settlement_idStringUnique settlement batch reference code.
payout_dateString (ISO 8601 Date)Date when funds were transferred via the SARIE interbank network.
bank_referenceStringCentral bank / SARIE reference tracking number.
net_amountNumberNet amount credited to the merchant IBAN in SAR.
statusStringSettlement payout status: "completed", "pending", or "failed".

Error Responses

Status CodeError CodeDescription
400 Bad Requestinvalid_date_rangefrom_date occurs after to_date or exceeds the maximum supported 1-year query window.
401 Unauthorizedauthentication_failedMissing or invalid Secret Key in the Authorization header.

On this page