Check a receipt

A signed Swichi receipt for a payment to your business, and whether it is genuine.

GET
/receipts/{code}

A signed Swichi receipt for a payment to your business, and whether it is genuine.

Authorization

apiKey
AuthorizationBearer <token>

A Swichi Gateway payments key.

In: header

Path Parameters

code*string
Length10 <= length <= 12

Response Body

application/json

application/json

curl -X GET "https://example.com/receipts/stringstri"
{  "object": "receipt",  "code": "string",  "status": "genuine",  "amount": 0,  "currency": "TZS",  "payer": "string",  "business": "string",  "paid_at": "2019-08-24T14:15:22Z",  "url": "http://example.com"}