Get a collection

GET
/collections/{id}

Authorization

apiKey
AuthorizationBearer <token>

A Swichi Gateway payments key.

In: header

Path Parameters

id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/collections/string"
{  "id": "string",  "object": "collection",  "livemode": true,  "amount": 0,  "fee": 0,  "net": 0,  "currency": "TZS",  "status": "pending",  "network": "mpesa",  "phone": "string",  "reference": "string",  "description": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "failure": {    "code": "string",    "message": "string"  },  "receipt": "string",  "created_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z"}