# Postman Collection
source: https://developer.mastercard.com/small-business-credit-analytics/documentation/postman-collection/index.md

Postman is an application for easy RESTful API exploration. You can use Postman to test API calls multiple times without having to write code. You can save multiple sets of credentials to quickly test an API's calls in the sandbox and production environments.

See the following [Postman tutorial](https://developer.mastercard.com/platform/tutorial/use-postman-for-mastercard-apis/) for the generic steps needed to get Mastercard authentication working with the Postman collection.

Use the button below to fork our Postman collection and explore the API.
Run in Postman

### Test SBCA in Postman {#test-sbca-in-postman}

Follow these steps to run the full match → metrics flow in Postman.

#### 1. Set up authentication {#1-set-up-authentication}

1. Fork the collection using **Run in Postman** above.
2. In the environment, set your Sandbox **consumer key** and **`.p12`** signing key, following the [Postman tutorial](https://developer.mastercard.com/platform/tutorial/use-postman-for-mastercard-apis/).
3. Confirm the base URL variable is set to `https://sandbox.api.mastercard.com/small-business/credit-analytics/locations`.

#### 2. Call Matches {#2-call-matches}

Send the **Matches** request with these Sandbox parameters:

|        Parameter        |       Value        |
|-------------------------|--------------------|
| `country_code`          | `USA`              |
| `company_name`          | `Artisan Emporium` |
| `street_address`        | `2000 Purchase St` |
| `postal_code`           | `10577`            |
| `city`                  | `Purchase`         |
| `state_province_region` | `NY`               |

**Validate:**

* HTTP status is `200 OK`
* Response is a JSON array with `locationId: "a1b2c3d4-0000-1234-abcd-000000000001"`

#### 3. Call Metrics {#3-call-metrics}

Copy the `locationId` from Step 2 into the **Metrics** request path, and set:

|      Parameter      |          Value           |
|---------------------|--------------------------|
| `has_consent`       | `true`                   |
| `metrics_type`      | `retail_sales_analytics` |
| `metrics_frequency` | `Monthly`                |

**Validate:**

* HTTP status is `200 OK`
* Response contains `locationId`, `metricsFrequency`, and a non-empty `metricsLists` array

For expected error responses and status codes, see [Code and Formats](https://developer.mastercard.com/small-business-credit-analytics/documentation/code-and-formats/index.md). For more scenarios, see [Testing](https://developer.mastercard.com/small-business-credit-analytics/documentation/testing/index.md).
