Favorites
5 endpoints. Every call is POST https://api.useburj.com/v1/<path> with a JSON body.
Favorites list
/favoritesA short, ordered list of countries and packages (your own, or Burj's suggested list). source: PARTNER, DEFAULT or NONE. Packages have the same shape as /{countryId}/packages.
Body
Send an empty JSON object: {}
Errors
Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.
Add to favorites
/favorites/addAdd a whole country (no packageId) or one package. Returns the updated list and alreadyIncluded.
Body
countryIdstringrequiredCountry / region id
packageIdstringoptionalPackage id; omit to add the whole country
Errors
Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.
Remove from favorites
/favorites/removeRemove a country, or one package of it.
Body
countryIdstringrequiredCountry / region id
packageIdstringoptionalPackage id; omit to remove the country
Errors
Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.
Save the whole list
/favorites/setReplace the list (use it to reorder). packageIds: [] = the whole country. Nothing is saved if one item is wrong.
Body
itemsany[]required[{countryId, packageIds}]in display order
Errors
Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.
Back to Burj's list
/favorites/resetDeletes your own list.
Body
Send an empty JSON object: {}
Errors
Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.