Sales Order placed by API generates more than one order
Modified on: Fri, 17 Nov 2023 1:13 PM2023-04-14
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):
Example for the second order (uispan:7abd520a-7b9c-4a3d-b4a7-6e531009f33b):
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.