Endpoint
Authentication
Required. Must be authenticated as a store employee (owner) and must own the store being updated. Headers:Authorization: Bearer <token>- JWT token from authentication
store_employee
Path parameters
The unique identifier of the store to update (MongoDB ObjectId)
Body parameters
This endpoint accepts both JSON and multipart/form-data. Use multipart/form-data when uploading files.
Store name
Store description (can be null)
UPI ID for payments. Must match format:
username@provider (e.g., store@paytm)Whether the store is active and visible to customers
Operating hours configuration. Can be a JSON object or a stringified JSON. Example:
URL to store image (if not uploading a file)
URL to QR code image (if not uploading a file)
Store image file to upload (multipart form field)
QR code image file to upload (multipart form field)
Response
Indicates if the request was successful
Success or error message
Contains the response data (only present when success is true)
Example requests
Update with JSON
Update with file upload
Example responses
Success response
Error responses
Store not found
Unauthorized
Invalid UPI ID
Notes
UPI ID validation: The UPI ID must match the pattern
username@provider where:- Username: 2-256 characters (alphanumeric, dots, underscores, hyphens)
- Provider: 2-64 alphabetic characters
- UPI IDs are automatically normalized to lowercase
File uploads: When uploading files, the endpoint accepts two file fields:
image: Store image (max 1 file)qr_code: QR code image (max 1 file)
Authorization: Only the store owner (identified by
owner_id) can update the store. The user making the request must:- Be authenticated with a valid JWT token
- Have the
store_employeerole - Own the store (their user ID must match the store’s
owner_id)