Project:
View Revisions: Issue #56894 | [ Back to Issue ] | ||
Summary | 0056894: API Consume Gift cards | ||
Revision | 2024-10-24 18:20 by sofidossant | ||
Steps To Reproduce | 1- Creation of the GIFTCARD With this https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/ws/org.openbravo.api.ImportService/GiftCard [^] { "client":"The White Valley Group", "organization":"The White Valley Group", "searchKey": "TEST-SOFISSA", "active": true, "dateOrdered": "2024-10-22", "businessPartner": "VBS/C0001", "product": "GC/001", "amount": 50, "currentAmount": 50, "type": "BasedOnCreditNote", "expirationDate": "2025-09-23" } I attached the image 2- And then I try to consume: https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/ws/org.openbravo.retail.api.giftcards.ImportService/ConsumeGiftCard [^] { "client": "The White Valley Group", "organization": "The White Valley Group", "giftCardIdentifier": "TEST-SOFISSA", "amount": 40, } Response { "data": { "id": "9BF85FA64B114A16A9C1185D0E3BF9EE", "amount": 40, "gcnvGiftcardInst": "E16782A0E46D4BB69131B7B139F3CA70" }, "links": null } And then again consume: https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/ws/org.openbravo.retail.api.giftcards.ImportService/ConsumeGiftCard [^] { "client": "The White Valley Group", "organization": "The White Valley Group", "giftCardIdentifier": "TEST-SOFISSA", "amount": 40, } { "data": { "id": "40041B28F59345DCA056C315E8780077", "amount": 10, "gcnvGiftcardInst": "E16782A0E46D4BB69131B7B139F3CA70" }, "links": null } But if you see the transaction is for 40, I attached the images IMPORTANT when you login, use a default one organization with currency |
||
Revision | 2024-10-24 18:10 by sofidossant | ||
Steps To Reproduce | 1- Creation of the GIFTCARD With this https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/ws/org.openbravo.api.ImportService/GiftCard [^] { "client":"The White Valley Group", "organization":"The White Valley Group", "searchKey": "TEST-SOFISSA", "active": true, "dateOrdered": "2024-10-22", "businessPartner": "VBS/C0001", "product": "GC/001", "amount": 50, "currentAmount": 50, "type": "BasedOnCreditNote", "expirationDate": "2025-09-23" } I attached the image 2- And then I try to consume: https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/ws/org.openbravo.retail.api.giftcards.ImportService/ConsumeGiftCard [^] { "client": "The White Valley Group", "organization": "The White Valley Group", "giftCardIdentifier": "TEST-SOFISSA", "amount": 40, } Response { "data": { "id": "9BF85FA64B114A16A9C1185D0E3BF9EE", "amount": 40, "gcnvGiftcardInst": "E16782A0E46D4BB69131B7B139F3CA70" }, "links": null } And then again consume: https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/ws/org.openbravo.retail.api.giftcards.ImportService/ConsumeGiftCard [^] { "client": "The White Valley Group", "organization": "The White Valley Group", "giftCardIdentifier": "TEST-SOFISSA", "amount": 40, } { "data": { "id": "40041B28F59345DCA056C315E8780077", "amount": 10, "gcnvGiftcardInst": "E16782A0E46D4BB69131B7B139F3CA70" }, "links": null } But if you see the transaction is for 40, I attached the images |
Copyright © 2000 - 2009 MantisBT Group |