# Locations API

The Locations API provides eCommerce sellers with a list of delivery locations available
 at checkout. This allows customers to deliver their package to a location convenient 
 to them.


Version: 1.0.0

## Servers

The base URL for the Locations API
```
https://sandbox.scurri.co.uk/locations/api/1.0.0/company/{company_slug}/{service_slug}
```

Variables:
- `company_slug`: The slug of your company in Scurri.
  Default: "api-test-company"
- `service_slug`: The slug of the service you want to retrieve locations for.
  Default: "api-test-service"

## Security

### basicAuth

All requests must be authenticated using Basic Auth. With Basic Auth, you have
to send the username and password base64-encoded in the standard Basic manner,
e.g. Authorization: Basic YXBpdGVzdDphcGkgcGFzc3dvcmQgdGVzdA==. Here is some
sample code in Python to generate the value of the header:

```python
  >>> import base64
  >>> username = 'apitest'
  >>> password = 'api-test-password'
  >>> base64.b64encode(f'{username}:{password}'.encode('ascii'))
  b'YXBpdGVzdDphcGktdGVzdC1wYXNzd29yZA=='
```

Type: apiKey
In: header
Name: Authorization

## Download OpenAPI description

 - [Locations API](https://docs.scurri.com/_bundle/connect/locations-api/versions/1.0.0/openapi.yaml)

## Locations

 - [GET /delivery/](https://docs.scurri.com/connect/locations-api/versions/1.0.0/openapi/locations/getlocations.md): Retrieve delivery locations for a service based on the given parameters: | Parameter | Type | Required | Description | | --- | --- | --- | --- | | company_slug | string | yes | The slug of your compa
