POST /businessesPOST /businesses/:idPOST /businesses/:id/customersPOST /businesses/:id/customers/batchPOST /businesses/:id/customers/batch_updatePOST /customers/:id
A sync request replaces the whole record and blanks out properties that are not provided, so pass
all properties in every sync request. See How syncing works.
Steps
Migration will generally look like the following:- Move business creation and updating to
POST /sync/businesses(for single updates / creates) andPOST /sync/businesses/batch(to update multiple businesses at once, previously not possible!). Crucially, pass bothidandexternal_idso that Pocketflows can associate the existingidwith the newexternal_id - Move customer creation and updating to
POST /sync/businesses/:business_id/customers(for updating or creating a single customer) orPOST /sync/businesses/:business_id/customers/batch(for updating all the customers of a business). Again, be sure to pass bothidandexternal_idso that we can associate the IDs together. - At some point in the future when all Pocketflows businesses and customers
have the correct
external_idassociated, you can stop sendingidas part of the payload.