← Back to Admin Home

Offers QA

Create offers via /api/vendor/offers (multipart). Backend requires at least one product or one child offer.

Offer basics

Images are required for combo offers (multiple products or child offers). Single-product offers can omit images.

Products to include

Load products for an establishment, then choose which ones join this offer. At least one product or one child offer is required.

Selected products

Child offers (optional combos)

Select existing offers to combine. Start/end dates default to the earliest/latest among children when left blank.

POST /api/vendor/offers
Multipart with Products and/or OfferIds.

Offer Collections

Helpers for OfferCollection endpoints.

Create Offer Collection

Add / Remove Offers in a Collection

Add Offer IDs below, then choose whether to add or remove them.

Fetch Offer Collections

Browse Collections (Admin)

Lists collections and loads their offers via /api/admin/Offers/collectionoffers?collectionId= (admin token required).

Collections
Offers in collection

Collection Offer Picker

Load collections and offers, click to select, then add or remove the selected offers from the chosen collection.

Collections
Offers

All Offers (Admin)

Requires an admin token. Calls /api/admin/Offers/offers to fetch every offer.

Upload Image (Admin)

Uploads an image via /api/admin/Images/image (multipart). Image is converted to JPEG before upload.

Update Offer (Admin)

Select an offer from the list above, then send only the fields you want to change to /api/admin/Offers/offer.

No offer selected.

Products (optional replacement)

Leave empty to keep current products. Add rows to replace them, or tick “Send empty” to clear.

Child offers (optional replacement for combos)

Leave empty to keep current children. Add IDs to replace, or tick “Send empty” to clear.