• Example searches: “transaction”, “CreateOrder”, “/v2/locations”, “inventory”, “delete customer”
You are viewing an old version of the API

Location created BETA

EVENT location.created

Published when a Location is created.


Permissions
MERCHANT_PROFILE_READ
Name Description
merchant_id
string

The ID of the target merchant associated with the event.

location_id
string

The ID of the Location associated with the event.

type
string

The type of event this represents, "location.created".

event_id
string

A unique ID for the event.

created_at
string

Read only Timestamp of when the event was created, in RFC 3339 format.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00

data
LocationCreatedSquareEventData

Data associated with the event.

Examples

You are viewing an old version of the API
Example payload
{
  "merchant_id": "6SSW7HV8K2ST5",
  "location_id": "S8GWD5DBJ3HF3",
  "type": "location.created",
  "event_id": "de45d351-8ad2-400a-97af-e9f89da3d19d",
  "created_at": "2020-02-06T21:27:34.308Z",
  "data": {
    "type": "Location",
    "id": "S8GWD5DBJ3HF3"
  }
}