Symptoms


Customer place Sales Order by API, the subscription takes too long to generate so it retry the API request. After some time two subscriptions are generated in CloudBlue Commerce.


Cause


Each time Sales Order request is received generates new uispan in the system, then the request is handled as a different request. It can be seen in billing logs. 


Example for first order (uispan:9031c019-9640-4056-b035-aac98845c286):

[23-04-12 09:03:01.340 billing     RQ2673323 TH05881 TRC] [uispan:9031c019-9640-4056-b035-aac98845c286] TRACE START PlaceSalesOrder_API
[23-04-12 09:03:01.343 BM_Object   RQ2673323 TH05881 NTE] Entering method BM.PlaceSalesOrder_API(user = 2368960, SID = 0, lang = en, request = 2673323, localObject = 0, transaction = 5923575 (HP)) [23-04-12 09:03:01.343 BM_Object   RQ2673323 TH05881 NTE]       1 input arguments : [23-04-12 09:03:01.343 BM_Object   RQ2673323 TH05881 TRC] +++[0] ItemResult* BM::PlaceSalesOrder_API(Str)(inParams:

Example for the second order (uispan:7abd520a-7b9c-4a3d-b4a7-6e531009f33b):

[23-04-12 11:03:15.042 billing     RQ2681746 TH07625 TRC] [uispan:7abd520a-7b9c-4a3d-b4a7-6e531009f33b] TRACE START PlaceSalesOrder_API
[23-04-12 11:03:15.042 BM_Object   RQ2681746 TH07625 NTE] Entering method BM.PlaceSalesOrder_API(user = 2368960, SID = 0, lang = en, request = 2681746, localObject = 0, transaction = 5934011 (HP)) [23-04-12 11:03:15.042 BM_Object   RQ2681746 TH07625 NTE]       1 input arguments : [23-04-12 11:03:15.043 BM_Object   RQ2681746 TH07625 TRC] +++[0] ItemResult* BM::PlaceSalesOrder_API(Str)(inParams: 


Resolution

Do not resubmit API request in case you have not received a failure answer, even if the Order is not created on CloudBlue Commerce. If the request takes too long, please, contact support for further information about its status.


In case the "extra" subscription is created it should be cancelled immediately or customer will be charged for two subscriptions.