Step 5: Add Services (New Location)

If you currently have Locations in your account or sub-accounts, you can provide additional or new services to them by making the below call:

POST https://api.yextapis.com/v2/accounts/me/existinglocationaddrequests?api_key=API_KEY&v=YYYYMMDD

Request Body:

{
	"existingLocationId": "BCC-6364487045",
	"existingLocationAccountId": "BCC-6364487045",
	"skus": [
		"SKU-00000309"
	]
}

The skus array is an array of all the new services that should be added to a Location. Since we had already added “SKU-00000275” to this Location when it was created earlier, we are adding “SKU-00000309” to this existing Location.

Response Body:

{
  "meta": {
    "uuid": "c117f7f8-7850-478d-b2fc-83c8fcfa52b3",
    "errors": []
  },
  "response": {
    "id": 204104,
    "locationMode": "existing",
    "existingLocationId": "BCC-6364487045",
    "skus": [
      "SKU-00000309"
    ],
    "agreementId": 878,
    "status": "Submitted",
    "dateSubmitted": "2017-01-13T16:44:37",
    "dateCompleted": "",
    "statusDetail": "The request has been submitted for processing. Updated status should be available soon, usually within seconds."
  }
}

For more information, see the documentation for the Add Requests: Create (Existing Location) endpoint.

Feedback