Skip to main content
POST
/
sync
/
businesses
Sync a business
curl --request POST \
  --url https://api.pocketflows.com/sync/businesses \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "external_id": "<string>",
  "name": "<string>",
  "metadata": {}
}'
{
  "id": "<string>",
  "external_id": "<string>",
  "name": "<string>",
  "metadata": {}
}
Creates the business if it doesn’t exist or updates the business that corresponds to the id or external_id that is provided

Authorizations

Authorization
string
header
required

Body

application/json
  • Option 1
  • Option 2
id
string
required
name
string
required
external_id
string | null
metadata
object

Response

200 - application/json
id
string
required
external_id
string | null
required
name
string
required
metadata
object
required