Promotions Service

Back

Overview

Promotions represent discounts or special offers that can be applied to sales orders.

They provide a consistent reference for:

Promotions are tenant-scoped and can be applied to specific entities or globally.

All operations are tenant-aware and scoped to the current tenant.


Endpoints

Back to Reference

GET

/api/v1/Promotions/HasPromoCodeBeenUsed/{promoId}/{entityId}

Checks if a specific promo code has already been used by an entity.

Behavior:

Authorization:


GET

/api/v1/Promotions/GetAllPromotions

Returns all promotions for the current tenant.

Behavior:

Authorization:


GET

/api/v1/Promotions/GetPromotionById/{id}

Returns a single promotion by its numeric identifier.

Behavior:

Authorization:


GET

/api/v1/Promotions/GetPromotionByPromoCode/{promoCode}

Returns a single promotion by its unique promo code.

Behavior:

Authorization:


POST

/api/v1/Promotions/AddNewPromotion

Creates a new promotion.

Request body:

Behavior:

Errors:

Authorization:


PUT

/api/v1/Promotions/UpdatePromotionById/{id}

Updates an existing promotion.

Request body:

Behavior:

Errors:

Authorization:


DELETE

/api/v1/Promotions/DeletePromotionById/{id}

Deletes a promotion by its ID.

Behavior:

Errors:

Authorization:


Notes