> ## Documentation Index
> Fetch the complete documentation index at: https://docs.splashpay.co.tz/llms.txt
> Use this file to discover all available pages before exploring further.

# Payment Status

> Check the latest status of a payment initiated through the SplashPay Collections API.

# Payment Status

The Payment Status API allows you to retrieve the current status of a payment using the merchant reference.

SplashPay first checks the local transaction record. If the payment is still pending, it automatically queries the payment provider to retrieve the latest status and updates the transaction before returning the response.

> **Tip**
> For real-time payment updates, configure **Webhooks**. The Status API is ideal for reconciliation, manual verification, and fallback scenarios.

***

## Endpoint

```http theme={null}
POST /payments/check-status
```

***

## Authentication

Every request must include your API credentials.

| Header | Required | Description |
| - | :-: | - |
| X-API-KEY | ✅ | Merchant API Key |
| X-API-SECRET | ✅ | Merchant API Secret |
| Content-Type | ✅ | application/json |

***

## Example Request

> [tab] cURL
>
> ```bash theme={null}
> curl --request POST \
>   --url https://api.splashpay.co.tz/api/v1/payments/check-status \
>   --header "Content-Type: application/json" \
>   --header "X-API-KEY: pk_live_xxxxxxxxx" \
>   --header "X-API-SECRET: sk_live_xxxxxxxxx" \
>   --data '{
>     "reference": "CIR-6723e6ss6"
> }'
> ```

> [tab] JavaScript
>
> ```javascript theme={null}
> const response = await fetch(
>   "https://api.splashpay.co.tz/api/v1/payments/check-status",
>   {
>     method: "POST",
>     headers: {
>       "Content-Type": "application/json",
>       "X-API-KEY": process.env.SPLASHPAY_KEY,
>       "X-API-SECRET": process.env.SPLASHPAY_SECRET,
>     },
>     body: JSON.stringify({
>       reference: "CIR-6723e6ss6",
>     }),
>   }
> );
>
> const data = await response.json();
> ```

> [tab] Python
>
> ```python theme={null}
> import requests
>
> response = requests.post(
>     "https://api.splashpay.co.tz/api/v1/payments/check-status",
>     headers={
>         "X-API-KEY": "pk_live_xxxxxxxxx",
>         "X-API-SECRET": "sk_live_xxxxxxxxx",
>         "Content-Type": "application/json",
>     },
>     json={
>         "reference": "CIR-6723e6ss6"
>     }
> )
>
> print(response.json())
> ```

> [tab] PHP
>
> ```php theme={null}
> $client = new \GuzzleHttp\Client();
>
> $response = $client->post(
>     'https://api.splashpay.co.tz/api/v1/payments/check-status',
>     [
>         'headers' => [
>             'X-API-KEY' => 'pk_live_xxxxxxxxx',
>             'X-API-SECRET' => 'sk_live_xxxxxxxxx',
>             'Content-Type' => 'application/json',
>         ],
>         'json' => [
>             'reference' => 'CIR-6723e6ss6',
>         ],
>     ]
> );
>
> echo $response->getBody();
> ```

***

## Request Body

| Field | Type | Required | Description |
| - | - | :-: | - |
| reference | string | ✅ | Unique merchant payment reference |

***

## Example Response

```json theme={null}
{
    "status": "success",
    "code": "PAYMENT_STATUS_CHECKED",
    "message": "Payment status checked",
    "data": {
        "reference": "CIR-6723e6ss6",
        "provider_reference": "1782388280",
        "amount": "1000.00",
        "currency": "TZS",
        "status": "success",
        "provider": "selcom",
        "channel": "tanqr",
        "network": "SELCOMTANQR",
        "created_at": "2026-07-03T14:42:13.000000Z",
        "processing_at": "2026-07-03T14:42:13Z",
        "completed_at": null
    },
    "meta": [],
    "request_id": "f0ee4a32-bc56-49f7-92a5-82f965e8c555"
}
```

***

## Payment Statuses

| Status | Description |
| - | - |
| `pending` | Payment has been created and is awaiting customer action. |
| `processing` | Payment is being processed by the payment provider. |
| `success` | Payment completed successfully. |
| `failed` | Payment failed. |
| `cancelled` | Payment was cancelled. |
| `expired` | Payment request expired before completion. |

***

## Error Response

```json theme={null}
{
    "status": "error",
    "code": "PAYMENT_NOT_FOUND",
    "message": "Payment not found."
}
```

***

## Best Practices

**1. Use unique references**

Generate a unique reference for every payment. This reference is used throughout the payment lifecycle.

**2. Prefer Webhooks**

Use webhooks to receive payment updates automatically. The Status API should primarily be used for reconciliation and manual verification.

**3. Avoid excessive polling**

If a payment is still `pending` or `processing`, wait a few seconds before checking again.

**4. Store the provider reference**

Save the `provider_reference` returned by SplashPay for reconciliation with the payment provider.

***

## Related Guides

> [card] [Mobile Money](https://docs.splashpay.co.tz/collections/mobile-money.md)
>
> Collect payments from Mobile Money wallets.

> [card] [Card Payments](https://docs.splashpay.co.tz/collections/card.md)
>
> Accept Visa and Mastercard payments.

> [card] [Dynamic TanQR](https://docs.splashpay.co.tz/collections/tanqr.md)
>
> Accept payments using Dynamic TanQR.

> [card] [Webhooks](https://docs.splashpay.co.tz/collections/webhooks.md)
>
> Receive real-time payment notifications.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.