Skip to main content

Cash Deposits

Unit provides an API for nearby Cash Deposit store location search.

The API supports searching by coordinates and postal code.

List By Coordinates#

List Cash Deposit store locations by coordinates.

VerbGET
Urlhttps://api.s.unit.sh/store-locations
Timeout (Seconds)120

Query Parameters#

NameTypeDefaultDescription
filter[coordinates]JSON objectFilters the results by the specified coordinates.
filter[serviceType]stringSwipeOptional. Filters the results by the specified service type. Possible values are: Swipe, Barcode.
page[limit]integer100Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.
page[offset]integer0Optional. Number of resources to skip. See Pagination.
curl -X GET 'https://api.s.unit.sh.co/store-locations?filter[coordinates]={"longitude": "-71.935242", "latitude": "40.730610"}' \-H "Authorization: Bearer ${TOKEN}"

Response#

Response is a JSON:API document.

200 OK#

FieldTypeDescription
dataArray of Store LocationArray of Cash Deposit Store Location resources.
metaJSON object that contains pagination dataPagination data includes offset, limit and total (total items).
Example Response:
{  "data": [    {      "type": "storeLocation",      "attributes": {        "storeId": "2385",        "retailerName": "CVS",        "phone": "5163248587",        "address": {          "street": "38 Pantigo Rd",          "city": "East Hampton",          "state": "NY",          "postalCode": "11937",          "country": "US"        },        "coordinates": {          "longitude": -72.182441,          "latitude": 40.965453        },        "distance": 20.74174506966581      }    },    {      "type": "storeLocation",      "attributes": {        "storeId": "4385",        "retailerName": "7-Eleven",        "phone": "6316682842",        "address": {          "street": "653 Montauk Hwy",          "city": "Montauk",          "state": "NY",          "postalCode": "11954",          "country": "US"        },        "coordinates": {          "longitude": -71.9495,          "latitude": 41.032124        },        "distance": 20.8461474146222      }    }  ],  "meta": {    "pagination": {      "total": 178,      "limit": 2,      "offset": 0    }  }}

List By Postal Code#

List Cash Deposit store locations by postal code.

VerbGET
Urlhttps://api.s.unit.sh/store-locations
Timeout (Seconds)120

Query Parameters#

NameTypeDefaultDescription
filter[postalCode]stringFilters the results by the specified postal code.
filter[serviceType]stringSwipeOptional. Filters the results by the specified service type. Possible values are: Swipe, Barcode.
page[limit]integer100Optional. Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.
page[offset]integer0Optional. Number of resources to skip. See Pagination.
curl -X GET 'https://api.s.unit.sh/store-locations?filter[postalCode]=12300' \-H "Authorization: Bearer ${TOKEN}"

Response#

Response is a JSON:API document.

200 OK#

FieldTypeDescription
dataArray of Store LocationArray of Cash Deposit Store Location resources.
metaJSON object that contains pagination dataPagination data includes offset, limit and total (total items).
Example Response:
{  "data": [    {      "type": "storeLocation",      "attributes": {        "storeId": "2385",        "retailerName": "CVS",        "phone": "5163248587",        "address": {          "street": "38 Pantigo Rd",          "city": "East Hampton",          "state": "NY",          "postalCode": "11937",          "country": "US"        },        "coordinates": {          "longitude": -72.182441,          "latitude": 40.965453        },        "distance": 20.74174506966581      }    },    {      "type": "storeLocation",      "attributes": {        "storeId": "4385",        "retailerName": "7-Eleven",        "phone": "6316682842",        "address": {          "street": "653 Montauk Hwy",          "city": "Montauk",          "state": "NY",          "postalCode": "11954",          "country": "US"        },        "coordinates": {          "longitude": -71.9495,          "latitude": 41.032124        },        "distance": 20.8461474146222      }    }  ],  "meta": {    "pagination": {      "total": 178,      "limit": 2,      "offset": 0    }  }}