BusinessShop links and menus
Business
Shop links and menus
Shop links, menus and menu photos.
Pilotv1
The shop's public contact links (phone and WhatsApp) and its menu, business-wide or per branch, with menu photos up to 2 MB.
Paths are relative to https://app.revisit.cards/v1/developer.
Endpoints
- GETRead shop links, menu photos and branch overrides
/shop-links - PUTReplace business-wide shop links
/shop-links - PUTSet the menu override for a permitted live branch
/shop-links/branches/{branchId}/menu - DELETEClear a permitted branch menu and retire its public address
/shop-links/branches/{branchId}/menu - POSTUpload one business menu photo
/shop-links/menu/photos - POSTUpload one photo to a permitted live branch menu
/shop-links/branches/{branchId}/menu/photos - PATCHCaption a permitted menu photo
/shop-links/menu-photos/{photoId} - DELETERemove a permitted menu photo
/shop-links/menu-photos/{photoId} - PUTReorder all current photos of one permitted menu
/shop-links/menu-photos/order
Read shop links, menu photos and branch overrides
GET
/shop-linksScopeshop-content:read
Requires shop-content:read. Shop phone/WhatsApp links are intentionally public business contacts.
Query
limitinteger- 1 to 100. Default
50. cursoruuid- Last branch id from the preceding nextCursor.
Returns 200
nextCursorstring or nullRequired- Last branch id when more overrides remain; null at the end.
linksobject[]Requiredlinks[].kindenumRequired- One of
menu,phone,whatsapp,review,map,facebook,instagram,web. links[].labelstring or nullRequiredlinks[].valuestringRequiredmenuobjectRequiredmenu.tokenstring or nullRequired- The permanent public menu page address
menu.photosobject[]Requiredmenu.photos[].iduuidRequiredmenu.photos[].captionstring or nullRequiredmenu.photos[].urlstringRequired- Public /api/media/:id WebP image
branchMenusobject[]RequiredbranchMenus[].branchIduuidRequiredbranchMenus[].branchNamestringRequiredbranchMenus[].labelstring or nullRequiredbranchMenus[].tokenstringRequiredbranchMenus[].valuestring or nullRequiredbranchMenus[].photosobject[]RequiredbranchMenus[].photos[].iduuidRequiredbranchMenus[].photos[].captionstring or nullRequiredbranchMenus[].photos[].urlstringRequired- Public /api/media/:id WebP image
Request
curl "https://app.revisit.cards/v1/developer/shop-links" \
-H "Authorization: Bearer $DEVELOPER_API_KEY"Response
{
"data": {
"branchMenus": [
{
"branchId": "5eff65d7-d01c-4bd3-b26a-3d06b21fd005",
"branchName": "Dhanmondi",
"label": "Morning menu",
"photos": [
{
"caption": "Morning menu",
"id": "e01b010d-2c65-48e1-83a0-acad79f8d3b4",
"url": "https://app.revisit.cards/api/media/logo.png"
}
],
"token": "8f2c41d7e9a0b3c5",
"value": "10"
}
],
"links": [
{
"kind": "menu",
"label": "Morning menu",
"value": "10"
}
],
"menu": {
"photos": [
{
"caption": "Morning menu",
"id": "e01b010d-2c65-48e1-83a0-acad79f8d3b4",
"url": "https://app.revisit.cards/api/media/logo.png"
}
],
"token": "8f2c41d7e9a0b3c5"
},
"nextCursor": "eyJvZmZzZXQiOjUwfQ"
},
"requestId": "e15d2e14-f722-4aed-9f00-2e7a0ff22a07",
"success": true
}Replace business-wide shop links
PUT
/shop-linksScopeshop-content:write
Requires shop-content:write and an unrestricted business key. Omitted link kinds are removed.
Send an Idempotency-Key header. Safe to retry.
Body
linksobject[]Requiredlinks[].kindenumRequired- One of
menu,phone,whatsapp,review,map,facebook,instagram,web. links[].labelstring or nulllinks[].valuestringRequired- Validated HTTPS URL
Returns 200
updatedtrueRequired
Request
curl -X PUT "https://app.revisit.cards/v1/developer/shop-links" \
-H "Authorization: Bearer $DEVELOPER_API_KEY" \
-H "Idempotency-Key: 5f0c2a8e-7b1d-4c3e-9a6f-0d4b8ec8fa05" \
-H "Content-Type: application/json" \
-d '{
"links": [
{
"kind": "menu",
"value": "10"
}
]
}'Response
{
"data": {
"updated": true
},
"requestId": "1fede06b-3880-4736-b0e4-ea109fc37313",
"success": true
}