SBLocation
This object represents a physical location associated with a merchant. Use it to manage the physical addresses where transactions can take place.
Attribute | Description | Type | Required |
---|---|---|---|
id | Unique identifier of the location | long | required |
name | Name of the location | string | required |
address | Address of the location | AddressRequest | required |
longitude | Longitude of the location | number | required |
latitude | Latitude of the location | number | required |
merchantCategoryCode | Merchant category code | string | required |
currency | Currency used | string | optional |
timezone | Timezone of the location | string | optional |
phoneNumber | Phone number of the location | string | optional |
facebookUrl | Facebook URL of the location | string | optional |
instagramUsername | Instagram username of the location | string | optional |
twitterUsername | Twitter username of the location | string | optional |
isActive | Indicates if the location is active | bool | optional |
locale | Locale of the location | string | optional |
email | Email address of the location | string | optional |
logo | Logo URL of the location | string | optional |
images | List of images associated with the location | List<SBImage> | optional |
{
"id": 1,
"name": "Main Store",
"address": {
"street": "123 Main St",
"city": "Anytown",
"state": "California",
"stateCode": "CA",
"postalCode": "12345",
"country": "USA",
"countryCode": "US",
"location": {
"longitude": -122.4194,
"latitude": 37.7749
}
},
"merchantCategoryCode": "1234",
"currency": "USD",
"timezone": "America/Los_Angeles",
"phoneNumber": "(555) 555-5555",
"email": "[email protected]",
"locale": "en-CA",
"isActive": true
}