Partner API v3:
- POST Business
⚠️ Experimental Version
This version of the API is currently in beta and may undergo changes. For production use, please consider using the current stable version (v2).
Creates a single business in the localtunity network.
Example
- Resource URL: https://api.takeoutnearby.com//v3/partner/{partner_id}/business
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer {access_token}" https://api.takeoutnearby.com/v3/partner/{partner_id}/business
Headers | |
| Content-Type: | (string, required) Must be "application/json" |
| Authorization: | (string, required) Bearer {access_token} |
Parameters | |
| partner_id: | (integer, required) The id of the partner to create the business for. |
Fields | |
| email: | (string, 255 characters max, required) The email to use when logging in after the business is created. Will also be used to receive system notifications. |
| password: | (string, 255 characters max, required) The password to login after the business is created |
| first_name: | (string, 255 characters max, required) The first name of the business owner |
| last_name: | (string, 255 characters max, required) The last name of the business owner |
| phone: | (string, 20 characters max, required) The phone number of the business & location |
| business_name: | (string, 255 characters max, required) The name of the business |
| address_one: | (string, 255 characters max, required) The first line of the business address |
| address_two: | (string, 255 characters max, optional) The second line of the business address |
| city: | (string, 255 characters max, required) The city of the business |
| state: | (string, 255 characters max, required) The state of the business. This can be the state ID, name, or initials |
| zip_code: | (string, 10 characters max, required) The zip code of the business |
| country: | (string, 255 characters max, required) The country of the business. This can be the country ID, name, iso1, or iso3 code |
| private_location: | (boolean, 0|1, optional) Set true is the location is private |
| category_one_id: | (integer, required) The primary category of the business. Must belong to the target partner business is being created for. |
| category_two_id: | (integer, optional) A secondary category of the business. Can be any other Category on the network. |
| category_three_id: | (integer, optional) A secondary category of the business. Can be any other Category on the network. |
Response 200 Status Code
{"status":"success", "result":{"id":"5569554"}}