Register Site

View as Markdown
The `register_site` API allows for registering a new merchant site, or updating an existing one (for example phone number, address, etc). The site_id should stay stable in the update case. There is no limit or side effects to calling `register_site` once, periodically, or ad-hoc for a particular location. **Note:** Partial updates are not supported. When updating an existing site, pass in all the attributes if there is no change in them.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
merchant_idstringRequired
merchant_namestringRequired
site_idstringRequired
site_namestringRequired
latitudedoubleRequired
longitudedoubleRequired
address_streetstringRequired
address_citystringRequired
address_state_codestringRequired
address_postal_codestringRequired
phone_numberstringRequired
operating_hourslist of objectsRequired
truck_lanesintegerRequired
tz_infostringRequired
hiflow_diesel_pumpsintegerRequired
parking_spotsintegerRequired
pay_insidebooleanRequired
pay_outsidebooleanRequired
fuel_productslist of stringsRequired
amenitieslist of stringsRequired
restaurantslist of stringsRequired
statusstringRequired

Response

OK
merchant_idstring
merchant_namestring
site_idstring
site_namestring
latitudedouble
longitudedouble
address_streetstring
address_citystring
address_state_codestring
address_postal_codestring
phone_numberstring
operating_hourslist of objects
truck_lanesinteger
tz_infostring
hiflow_diesel_pumpsinteger
parking_spotsinteger
pay_insideboolean
pay_outsideboolean
fuel_productslist of strings
amenitieslist of strings
restaurantslist of strings
statusstring

Errors

400
Bad Request Error