Add Requests: Create (New Location)
Request that a new location be added and services added to it. The location is created only if the "status" field returned is "COMPLETE". In most cases, the "status" returned in the Add Request: Create response will be "SUBMITTED". For a list and explanation of each possible "status", please see the Add Requests: Get (Location) section.
To receive real-time updates on the status of your Add Request, we recommend that you configure the Add Request Update: Webhook in the Developer Console (see the Configure Webhooks guide for more information). Alternatively, use the Add Requests: Get (Location) call to determine the current Add Request "status".
path Parameters
accountId required | string |
query Parameters
v required | string A date in |
Request Body schema: application/json
newLocationId required | string Your ID for the location to be added. |
newLocationAccountId | string (Partner Portal mode) Supply your ID for the account that the new location should be created in. If this account is your main account or an existing sub-account, the location will be placed there. Otherwise, a new account will be created. |
newLocationAccountName | string (Partner Portal mode) If a new account is created, this field's value will set the account's name. If a new account is created, and a value for this field is not provided, the new account's name will default to the location's name. |
newAccountParentAccountId | string (Partner Portal mode, advanced use only) If you have a multi-layer account structure and want the new account created for this request to be under one of your sub-accounts, rather than directly under your main account, specify that sub-account's ID in this field. |
required | object If you set This field allows you to set the profile data for a location, using our legacy format. Profile content is specified in the same format as when creating a location with the Locations: Create endpoint. If the Add Request is processed successfully, this data will be used to create a new location in your account. |
newEntityType | string Default: "location" If you set |
required | object If you set This field allows you to set the profile data for an entity.
Profile content is specified in the same format as when creating an entity with the Entities: Create endpoint.
You can only create entities of a type specified by If the Add Request is processed successfully, this data will be used to create a new entity in your account. The dropdown will specify the profile content for |
skus required | Array of strings List of SKUs that you would like to sign the location up for, from among those listed in the Available Services: List response with Location recipientType. |
agreementId | integer (Advanced field) The Agreement ID of the agreement that services will be added under. This value is set automatically by Yext when you create the Add request. (You can specify it yourself, but should not do so unless you have intentionally set up multiple active agreements with Yext, since it could cause your integration to break when you renew or upgrade your agreement.) |
forceReview | boolean (Sandbox API only) Forces this Add request into the |
Responses
Request samples
- Payload
{- "newLocationId": "string",
- "newLocationAccountId": "CST-43843",
- "newLocationAccountName": "Bill's Auto Shop",
- "newAccountParentAccountId": "PAR-001",
- "newLocationData": {
- "id": "string",
- "accountId": "string",
- "locationType": "LOCATION",
- "locationName": "string",
- "firstName": "string",
- "middleName": "string",
- "lastName": "string",
- "officeName": "string",
- "gender": "FEMALE",
- "npi": "string",
- "address": "string",
- "address2": "string",
- "suppressAddress": true,
- "displayAddress": "string",
- "city": "string",
- "state": "string",
- "sublocality": "string",
- "zip": "string",
- "countryCode": "st",
- "serviceArea": {
- "radius": 0,
- "unit": "string",
- "places": [
- "string"
]
}, - "phone": "string",
- "isPhoneTracked": true,
- "localPhone": "string",
- "alternatePhone": "string",
- "faxPhone": "string",
- "mobilePhone": "string",
- "tollFreePhone": "string",
- "ttyPhone": "string",
- "categoryIds": [
- "string"
], - "featuredMessage": "string",
- "featuredMessageUrl": "string",
- "websiteUrl": "string",
- "displayWebsiteUrl": "string",
- "reservationUrl": "string",
- "displayReservationUrl": "string",
- "menuUrl": "string",
- "displayMenuUrl": "string",
- "orderUrl": "string",
- "displayOrderUrl": "string",
- "hours": "string",
- "additionalHoursText": "string",
- "holidayHours": [
- {
- "hours": "string",
- "date": "2019-08-24",
- "isRegularHours": false
}
], - "description": "stringstri",
- "conditionsTreated": [
- "string"
], - "certifications": [
- "string"
], - "educationList": [
- {
- "type": "FELLOWSHIP",
- "institutionName": "string",
- "yearCompleted": "string"
}
], - "degrees": [
- "string"
], - "admittingHospitals": [
- "string"
], - "acceptingNewPatients": true,
- "closed": {
- "isClosed": true
}, - "paymentOptions": [
- "string"
], - "insuranceAccepted": [
- "string"
], - "logo": {
- "url": "string",
- "description": "string",
- "details": "string",
- "alternateText": "string"
}, - "photos": [
- {
- "url": "string",
- "description": "string",
- "details": "string",
- "alternateText": "string"
}
], - "headshot": {
- "url": "string",
- "description": "string",
- "details": "string",
- "alternateText": "string"
}, - "videoUrls": [
- "string"
], - "instagramHandle": "string",
- "twitterHandle": "string",
- "googleWebsiteOverride": "string",
- "googleCoverPhoto": {
- "url": "string",
- "description": "string",
- "details": "string",
- "alternateText": "string"
}, - "googleProfilePhoto": {
- "url": "string",
- "description": "string",
- "details": "string",
- "alternateText": "string"
}, - "googleAttributes": [
- {
- "id": "string",
- "optionIds": [
- "string"
]
}
], - "facebookPageUrl": "string",
- "facebookCallToAction": {
- "type": "NONE",
- "value": "string"
}, - "facebookCoverPhoto": {
- "url": "string",
- "description": "string",
- "details": "string",
- "alternateText": "string"
}, - "facebookProfilePicture": {
- "url": "string",
- "description": "string",
- "details": "string",
- "alternateText": "string"
}, - "uberLinkType": "LINK",
- "uberLinkText": "string",
- "uberTripBrandingText": "string",
- "uberTripBrandingUrl": "string",
- "uberTripBrandingDescription": "string",
- "yearEstablished": "stri",
- "displayLat": 0,
- "displayLng": 0,
- "routableLat": 0,
- "routableLng": 0,
- "walkableLat": 0,
- "walkableLng": 0,
- "pickupLat": 0,
- "pickupLng": 0,
- "dropoffLat": 0,
- "dropoffLng": 0,
- "emails": [
- "string"
], - "specialities": [
- "string"
], - "associations": [
- "string"
], - "products": [
- "string"
], - "services": [
- "string"
], - "brands": [
- "string"
], - "language": "string",
- "languages": [
- "string"
], - "keywords": [
- "string"
], - "menusLabel": "string",
- "menuIds": [
- "string"
], - "bioListsLabel": "string",
- "bioListIds": [
- "string"
], - "productListsLabel": "string",
- "productListIds": [
- "string"
], - "eventListsLabel": "string",
- "eventListIds": [
- "string"
], - "folderId": "string",
- "labelIds": [
- "string"
], - "customFields": {
- "property1": { },
- "property2": { }
}, - "intelligentSearchTrackingEnabled": true,
- "intelligentSearchTrackingFrequency": "WEEKLY",
- "locationKeywords": [
- "NAME"
], - "customKeywords": [
- "string"
], - "queryTemplates": [
- "KEYWORD"
], - "alternateNames": [
- "string"
], - "alternateWebsites": [
- "string"
], - "competitors": [
- {
- "name": "string",
- "website": "string"
}
], - "trackingSites": [
- "GOOGLE_DESKTOP"
], - "isClusterPrimary": true,
- "attire": "UNSPECIFIED",
- "priceRange": "UNSPECIFIED",
- "mealsServed": [
- "string"
], - "locatedIn": "string",
- "primaryContact": "string",
- "reviewResponseConversationEnabled": true,
- "holidayHoursConfirmationEnabled": true
}, - "newEntityType": "atm",
- "newEntityData": {
- "EntityType": "string",
- "meta": {
- "countryCode": "string",
- "folderId": "string",
- "id": "string",
- "labels": [
- "string"
], - "language": "string"
}, - "name": "string",
- "address": {
- "city": "string",
- "countryCode": "string",
- "extraDescription": "string",
- "line1": "string",
- "line2": "string",
- "postalCode": "string",
- "region": "string",
- "sublocality": "string"
}, - "accessHours": {
- "friday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "holidayHours": [
- {
- "date": "2019-08-24",
- "isClosed": true,
- "isRegularHours": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}
], - "monday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "reopenDate": "2019-08-24",
- "saturday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "sunday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "thursday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "tuesday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "wednesday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}
}, - "additionalHoursText": "string",
- "alternateNames": [
- "string"
], - "alternatePhone": "string",
- "appleActionLinks": [
- {
- "appName": "string",
- "category": "BOOK_TRAVEL",
}
], - "appleBusinessDescription": "string",
- "appleBusinessId": "string",
- "appleCompanyId": "string",
- "categories": { },
- "categoryIds": [
- "string"
], - "closed": true,
- "customKeywords": [
- "string"
], - "description": "stringstri",
- "displayCoordinate": {
- "latitude": -90,
- "longitude": -180
}, - "driveThroughHours": {
- "friday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "holidayHours": [
- {
- "date": "2019-08-24",
- "isClosed": true,
- "isRegularHours": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}
], - "monday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "reopenDate": "2019-08-24",
- "saturday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "sunday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "thursday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "tuesday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "wednesday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}
}, - "dropoffCoordinate": {
- "latitude": -90,
- "longitude": -180
}, - "facebookAbout": "string",
- "facebookCallToAction": {
- "type": "NONE",
- "value": "string"
}, - "facebookDescriptor": "string",
- "facebookName": "string",
- "facebookOverrideCity": "string",
- "facebookPageUrl": "string",
- "facebookParentPageId": "string",
- "facebookStoreId": "string",
- "facebookVanityUrl": "string",
- "fax": "string",
- "frequentlyAskedQuestions": [
- {
- "answer": "string",
- "question": "string"
}
], - "geomodifier": "string",
- "googleAttributes": { },
- "googleMyBusinessLabels": [
- "string"
], - "googlePlaceId": "string",
- "holidayHoursConversationEnabled": true,
- "hours": {
- "friday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "holidayHours": [
- {
- "date": "2019-08-24",
- "isClosed": true,
- "isRegularHours": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}
], - "monday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "reopenDate": "2019-08-24",
- "saturday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "sunday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "thursday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "tuesday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}, - "wednesday": {
- "isClosed": true,
- "openIntervals": [
- {
- "end": "14:15:22Z",
- "start": "14:15:22Z"
}
]
}
}, - "impressum": "string",
- "isoRegionCode": "string",
- "keywords": [
- "string"
], - "labels": [
- "string"
], - "localPhone": "string",
- "locatedIn": "string",
- "locationType": "LOCATION",
- "logo": {
- "description": "string",
- "details": "string",
}, - "mainPhone": "string",
- "mobilePhone": "string",
- "nudgeEnabled": true,
- "photoGallery": [
- {
- "description": "string",
- "details": "string",
}
], - "pickupCoordinate": {
- "latitude": -90,
- "longitude": -180
}, - "priceRange": "UNSPECIFIED",
- "primaryConversationContact": "string",
- "questionsAndAnswers": true,
- "rankTrackingEnabled": true,
- "rankTrackingFrequency": "WEEKLY",
- "rankTrackingQueryTemplates": [
- "KEYWORD"
], - "rankTrackingSites": [
- "GOOGLE_DESKTOP"
], - "reviewResponseConversationEnabled": true,
- "routableCoordinate": {
- "latitude": -90,
- "longitude": -180
}, - "timezone": "string",
- "tollFreePhone": "string",
- "ttyPhone": "string",
- "walkableCoordinate": {
- "latitude": -90,
- "longitude": -180
}, - "websiteUrl": {
- "preferDisplayUrl": true,
}
}, - "skus": [
- "SKU-00000167",
- "SKU-00000168"
], - "agreementId": 1588,
- "forceReview": false
}
Response samples
- 200
- default
{- "meta": {
- "uuid": "4f72b877-e2d0-4de4-9324-b9cf2c03e1a0",
- "errors": [ ]
}, - "response": {
- "id": 13046,
- "locationMode": "NEW",
- "newLocationId": "LOC-123",
- "newLocationData": {
- "id": "LOC-123",
- "locationName": "Yext",
- "address": "1 Madison Avenue, 5th Floor",
- "city": "New York",
- "state": "NY",
- "zip": "10010",
- "countryCode": "US",
- "language": "en",
- "phone": "18884442988",
- "categoryIds": [
- "1"
], - "locationType": "LOCATION"
}, - "skus": [
- "SKU-00000167"
], - "agreementId": 1588,
- "status": "SUBMITTED",
- "dateSubmitted": "2017-05-12T16:08:25",
- "statusDetail": "The request has been submitted for processing. Updated status should be available soon, usually within seconds."
}
}
Add Requests: Create (Existing Location)
Request that one or more available services be added to an existing location.
path Parameters
accountId required | string |
query Parameters
v required | string A date in |
Request Body schema: application/json
existingLocationId required | string ID of the location to add service for. It must already be in your account (or, if you use the Partner Portal, any of your sub-accounts). |
existingLocationAccountId | string (Partner Portal mode only) If the existingLocationId you specified is not unique among your sub-accounts, use this to specify which account the existing location is in. |
skus required | Array of strings List of SKUs that you would like to sign the location up for, from among those listed in the Available Services: List response with Location recipientType. |
agreementId | integer (Advanced field) The Agreement ID of the agreement that services will be added under. This is set automatically by Yext when you create the add request. (You can specify it yourself, but should not do so unless you have intentionally set up multiple active agreements with Yext, since this could cause your integration to break when you renew or upgrade your agreement.) |
forceReview | boolean (Sandbox API only) Forces this add request into the REVIEW status if it otherwise would have completed successfully. |
Responses
Request samples
- Payload
{- "existingLocationId": "A48934",
- "existingLocationAccountId": "B098329",
- "skus": [
- "SKU-00000167",
- "SKU-00000168"
], - "agreementId": 1588,
- "forceReview": false
}
Response samples
- 200
- default
{- "meta": {
- "uuid": "4f72b877-e2d0-4de4-9324-b9cf2c03e1a0",
- "errors": [ ]
}, - "response": {
- "id": 13047,
- "existingLocationId": "A48934",
- "locationMode": "EXISTING",
- "skus": [
- "SKU-00000170"
], - "agreementId": 1588,
- "status": "SUBMITTED",
- "dateSubmitted": "2017-05-13T14:22:18",
- "statusDetail": "The request has been submitted for processing. Updated status should be available soon, usually within seconds."
}
}
Add Requests: Create (Existing Account)
Request that one or more available services be added (or increased in quantity) to an existing account.
path Parameters
accountId required | string |
query Parameters
v required | string A date in |
Request Body schema: application/json
subAccountId required | string The existing account ID to add service to. |
required | Array of objects List of objects representing the SKUs to be added (or increased in quantity) to the account, from among those listed in the Available Services: List response with Sub-Account recipientType. If the sub-account already has an active service for a SKU, the service quantity will be increased. The added quantity will default to 1 for any SKU without a specified quantity. |
agreementId | integer (Advanced field) The Agreement ID of the agreement that services will be added under. This is set automatically by Yext when you create the add request. (You can specify it yourself, but should not do so unless you have intentionally set up multiple active agreements with Yext, since this could cause your integration to break when you renew or upgrade your agreement.). |
Responses
Request samples
- Payload
{- "subAccountId": "B093879",
- "skuAdditions": [
- {
- "sku": "SKU-00000195",
- "quantity": 1
}, - {
- "sku": "SKU-00000196",
- "quantity": 2
}
], - "agreementId": 1588
}
Response samples
- 200
- default
{- "meta": {
- "uuid": "4f72b877-e2d0-4de4-9324-b9cf2c03e1a0",
- "errors": [ ]
}, - "response": {
- "id": 15037,
- "subAccountId": "B093879",
- "skuAdditions": [
- {
- "sku": "SKU-00000195",
- "quantity": 1
}, - {
- "sku": "SKU-00000196",
- "quantity": 2
}
], - "agreementId": 1588,
- "status": "SUBMITTED",
- "dateSubmitted": "2021-02-26T14:22:18",
- "statusDetail": "The request has been submitted for processing. Updated status should be available soon, usually within seconds."
}
}
Add Requests: Process (Sandbox API Only)
Request that an add request in REVIEW be processed to COMPLETE, CANCELED, or FAILED. Only applicable for location add requests.
path Parameters
accountId required | string |
query Parameters
v required | string A date in |
Request Body schema: application/json
addRequestId required | integer ID of the add request with REVIEW status |
status required | string Action to take on the add request. |
Responses
Request samples
- Payload
{- "addRequestId": 0,
- "status": "COMPLETE"
}
Response samples
- 200
- default
{- "meta": {
- "uuid": "4f72b877-e2d0-4de4-9324-b9cf2c03e1a0"
}, - "response": { }
}
Add Requests: List (Location)
Get all of the add requests in the account that were created for locations. The response includes both New Location Add Requests and Existing Location Add Requests.
Possible status
values for each add request:
- SUBMITTED - The request has been submitted for processing. Updated status should be available soon, usually within seconds.
- PROCESSING - The request is currently being processed. Updated status should be available soon, usually within seconds.
- COMPLETE - The request was successfully processed and service was added. You can verify this by retrieving services for the location.
- CANCELED - The request was purposefully canceled by Yext and was not processed. Details are available in the results field.
- REVIEW - The request is being reviewed by Yext, most likely because this location may be a duplicate of another location already receiving this service through Yext. Once the review is complete, status will be updated to either CANCELED or COMPLETE.
- FAILED - Processing the request failed due to a technical issue. Details may be available in the statusDetail field. No changes were made to your account, so you can try the request again.
path Parameters
accountId required | string |
query Parameters
v required | string A date in |
status | string Enum: "SUBMITTED" "PROCESSING" "COMPLETE" "CANCELED" "REVIEW" "FAILED" Filters the list to add requests in a specific status. |
submittedAfter | string <date> ( |
submittedBefore | string <date> ( |
updatedAfter | string <date> ( |
updatedBefore | string <date> ( |
sku | string |
agreementId | integer |
locationId | string |
limit | integer <= 1000 Default: 100 |
offset | integer Default: 0 Number of results to skip. Used to page through results.
Cannot be used together with |
Responses
Response samples
- 200
- default
{- "meta": {
- "uuid": "4f72b877-e2d0-4de4-9324-b9cf2c03e1a0",
- "errors": [ ]
}, - "response": {
- "addRequests": [
- {
- "id": 13027,
- "locationMode": "NEW",
- "newLocationId": "LOC-001",
- "skus": [
- "SKU-00000167"
], - "agreementId": 1588,
- "status": "COMPLETE",
- "dateSubmitted": "2017-05-10T19:23:07",
- "dateCompleted": "2017-05-10T19:31:29",
- "statusDetail": "The request was completed and the specified services were started. Location ID LOC-123 was created in this request."
}, - {
- "id": 13026,
- "locationMode": "NEW",
- "newLocationId": "LOC-003",
- "skus": [
- "SKU-00000167"
], - "agreementId": 1588,
- "status": "REVIEW",
- "dateSubmitted": "2017-05-10T19:23:07",
- "dateCompleted": "",
- "statusDetail": "Yext is reviewing this request to ensure that the specified location does not already have incompatible service in another account. You do not need to take any action."
}, - {
- "id": 13025,
- "locationMode": "EXISTING",
- "existingLocationId": "Yext NYC",
- "skus": [
- "SKU-00000167"
], - "agreementId": 1588,
- "status": "COMPLETE",
- "dateSubmitted": "2017-05-10T18:36:52",
- "dateCompleted": "2017-05-10T18:36:53",
- "statusDetail": "The request was completed and the specified services were started."
}
], - "count": 3
}
}
Add Requests: Get (Location)
Get status information about an add request that was previously created for a location.
Possible statuses:
- SUBMITTED - The request has been submitted for processing. Updated status should be available soon, usually within seconds.
- PROCESSING - The request is currently being processed. Updated status should be available soon, usually within seconds.
- COMPLETE - The request was successfully processed and service was added. You can verify this by retrieving services for the location.
- CANCELED - The request was purposefully canceled by Yext and was not processed. Details are available in the results field.
- REVIEW - The request is being reviewed by Yext, most likely because this location may be a duplicate of another location already receiving this service through Yext. Once the review is complete, status will be updated to either CANCELED or COMPLETE.
- FAILED - Processing the request failed due to a technical issue. Details may be available in the statusDetail field. No changes were made to your account, so you can try the request again.
path Parameters
accountId required | string |
addRequestId required | integer addRequestId returned from a previous call to Add Requests: Create (New Location), Add Requests: Create (Existing Location), or retrieved from Add Requests: List (Location) |
query Parameters
v required | string A date in |
Responses
Response samples
- 200
- default
{- "meta": {
- "uuid": "4f72b877-e2d0-4de4-9324-b9cf2c03e1a0",
- "errors": [ ]
}, - "response": {
- "id": 13027,
- "locationMode": "NEW",
- "skus": [
- "SKU-00000167"
], - "agreementId": 1588,
- "status": "COMPLETE",
- "dateSubmitted": "2017-05-10T19:23:07",
- "dateCompleted": "2017-05-10T19:31:29",
- "statusDetail": "The request was completed and the specified services were started. Location ID LOC-123 was created in this request."
}
}
Add Requests: List (Sub-Account)
Get all of the add requests in the account that were created for sub-accounts.
Possible status
values for each add request:
- SUBMITTED - The request has been submitted for processing. Updated status should be available soon, usually within seconds.
- PROCESSING - The request is currently being processed. Updated status should be available soon, usually within seconds.
- COMPLETE - The request was successfully processed and service was added. You can verify this by retrieving services for the sub-account.
- CANCELED - The request was purposefully canceled by Yext and was not processed. Details are available in the results field.
- FAILED - Processing the request failed due to a technical issue. Details may be available in the statusDetail field. No changes were made to your account, so you can try the request again.
path Parameters
accountId required | string |
query Parameters
v required | string A date in |
status | string Enum: "SUBMITTED" "PROCESSING" "COMPLETE" "CANCELED" "FAILED" Filters the list to add requests in a specific status. |
submittedAfter | string <date> ( |
submittedBefore | string <date> ( |
updatedAfter | string <date> ( |
updatedBefore | string <date> ( |
sku | string |
agreementId | integer |
subAccountId | string |
limit | integer <= 1000 Default: 100 |
offset | integer Default: 0 Number of results to skip. Used to page through results.
Cannot be used together with |
Responses
Response samples
- 200
- default
{- "meta": {
- "uuid": "4f72b877-e2d0-4de4-9324-b9cf2c03e1a0",
- "errors": [ ]
}, - "response": {
- "addRequests": [
- {
- "id": 15037,
- "subAccountId": "B093879",
- "skuAdditions": [
- {
- "sku": "SKU-00000195",
- "quantity": 1
}, - {
- "sku": "SKU-00000196",
- "quantity": 2
}
], - "agreementId": 1588,
- "status": "COMPLETE",
- "dateSubmitted": "2021-02-26T14:22:48",
- "dateCompleted": "2021-02-26T14:23:05",
- "statusDetail": "The request was completed and the specified services were started/updated."
}, - {
- "id": 15038,
- "subAccountId": "B093879",
- "skuAdditions": [
- {
- "sku": "SKU-00000195",
- "quantity": 1
}, - {
- "sku": "SKU-00000196",
- "quantity": 2
}
], - "agreementId": 1588,
- "status": "COMPLETE",
- "dateSubmitted": "2021-02-27T15:22:48",
- "dateCompleted": "2021-02-27T15:23:05",
- "statusDetail": "The request was completed and the specified services were started/updated."
}, - {
- "id": 15039,
- "subAccountId": "B093879",
- "skuAdditions": [
- {
- "sku": "SKU-00000195",
- "quantity": 1
}
], - "agreementId": 1588,
- "status": "COMPLETE",
- "dateSubmitted": "2021-02-27T15:42:47",
- "dateCompleted": "2021-02-27T15:43:01",
- "statusDetail": "The request was completed and the specified services were started/updated."
}
], - "count": 3
}
}
Add Requests: Get (Sub-Account)
Get status information about an add request that was previously created for a sub-account.
Possible statuses:
- SUBMITTED - The request has been submitted for processing. Updated status should be available soon, usually within seconds.
- PROCESSING - The request is currently being processed. Updated status should be available soon, usually within seconds.
- COMPLETE - The request was successfully processed and service was added. You can verify this by retrieving services for the sub-account.
- CANCELED - The request was purposefully canceled by Yext and was not processed. Details are available in the results field.
- FAILED - Processing the request failed due to a technical issue. Details may be available in the statusDetail field. No changes were made to your account, so you can try the request again.
path Parameters
accountId required | string |
addRequestId required | integer addRequestId returned from a previous call to Add Requests: Create (Existing Account) or retrieved from Add Requests: List (Sub-Account) |
query Parameters
v required | string A date in |
Responses
Response samples
- 200
- default
{- "meta": {
- "uuid": "4f72b877-e2d0-4de4-9324-b9cf2c03e1a0",
- "errors": [ ]
}, - "response": {
- "id": 15037,
- "subAccountId": "B093879",
- "skuAdditions": [
- {
- "sku": "SKU-00000195",
- "quantity": 1
}, - {
- "sku": "SKU-00000196",
- "quantity": 2
}
], - "agreementId": 1588,
- "status": "COMPLETE",
- "dateSubmitted": "2021-02-26T14:22:48",
- "dateCompleted": "2021-02-26T14:23:05",
- "statusDetail": "The request was completed and the specified services were started/updated."
}
}