Openbravo Issue Tracking System - Retail Modules
View Issue Details
0057930Retail ModulesRetail APIpublic2025-02-10 16:402025-03-07 13:47
XABIER_AGUADO 
Retail 
normalminoralways
newopen 
5
 
 
No
0057930: Coupon API Improvements
Current Swagger information for the Coupon API is lacking in some fields. Their descriptions / informations must be updated so the clients can easily work with the API.
Check the livebuilds discount API and update the missing fields as seen on the PDF.

Export:
/org.openbravo.api.ExportService/Coupon

Import:
/org.openbravo.api.ImportService/Coupon
Update expected values + provide examples + update descriptions for all required fields:

Name: couponCode
Description: The code of the coupon


Name:couponAmount
Description:Amount of the Coupon


Name: businessPartner
Description: Business PartnerĀ“s search key


Name: crmReference
Description: The business partner reference on an external CRM system


Name: numberOfUses
Description: Defines the allowed number of uses for the coupon


Name: status
Description: Status of the coupon
U = Used
NU = Not used


Name: numberOfUsesLimit
Description: Defines the maximum amount of times a coupon can be used


Name: usageStatus
Description: Status of a breakable coupon
new = New
inUse = In Use
closed = Closed


Name: salesOrder
Description: The sales order where the coupon has been used


Name: remainingBalance
Description: Remaining balance of the coupon amount

FASH
pdf Business API - masterdata - Coupon.pdf (38,719) 2025-02-10 16:40
https://issues.openbravo.com/file_download.php?file_id=20887&type=bug
Issue History
2025-02-10 16:40XABIER_AGUADONew Issue
2025-02-10 16:40XABIER_AGUADOAssigned To => Retail
2025-02-10 16:40XABIER_AGUADOFile Added: Business API - masterdata - Coupon.pdf
2025-02-10 16:40XABIER_AGUADOTriggers an Emergency Pack => No
2025-02-10 16:42XABIER_AGUADOTypedefect => feature request
2025-02-10 16:51XABIER_AGUADOTag Attached: FASH
2025-02-11 12:43XABIER_AGUADOProposed Solution updated
2025-03-07 13:47XABIER_AGUADOSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=29332#r29332

There are no notes attached to this issue.