Customer place a SO for an Adobe VIP Marketplace based plan and fails with and error like this:
"2023-10-03T14:47:36.662Z","PR-1234-1234-1234-001 Finalizing purchase pending for customer TA-1234-1234-1234 unsuccessfully due AdobeClientError: Bad Request, Customer is not eligible to purchase Offer ID, context: {'code': '2129', 'message': 'Customer is not eligible to purchase Offer ID', 'additionalDetails': ['Line Item: 1, Reason: VOLUME_DISCOUNT']}"
"2023-10-03T14:47:36.660Z","PR-1234-1234-1234-001 Response 400 Bad Request on POST https://partners.adobe.io/v3/customers/1005123272/orders < {'Server': 'openresty', 'Date': 'Tue, 03 Oct 2023 14:47:36 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'x-request-id': '85ffa95c-d6c8-4362-8fad-cc5a388e43e7', 'vary': 'origin,access-control-request-method,access-control-request-headers,accept-encoding', 'content-encoding': 'gzip', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, POST, PUT, PATCH,DELETE, OPTIONS', 'Access-Control-Allow-Headers': 'Authorization,Content-Type,X-Api-Key,User-Agent,If-Modified-Since,X-Request-Id'} {'code': '2129', 'message': 'Customer is not eligible to purchase Offer ID', 'additionalDetails': ['Line Item: 1, Reason: VOLUME_DISCOUNT']} 0:00:00.474632"
"2023-10-03T14:47:36.183Z","PR-2922-3393-0406-001 Request POST /v3/customers/1005123272/orders > {'X-Request-Id': '85ffa95c-d6c8-4362-8fad-cc5a388e43e7', 'X-Correlation-Id': '85ffa95c-d6c8-4362-8fad-cc5a388e43e7', 'x-api-key': '****', 'x-gw-ims-client-id': '****', 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': '****'} {'orderType': 'NEW', 'externalReferenceId': 'reseller_account_name;1001234', 'currencyCode': 'EUR', 'lineItems': [{'extLineItemNumber': 1, 'offerId': '65304579CA02A12', 'quantity': 1}]}"
But in the preview order, this discount has been previously passed from the Adobe API: offerID 65304521CA02A12 for quantity 1, so the issue is in Adobe side:
"2023-10-03T14:47:36.006Z","PR-1234-1234-1234-001 Response 200 OK on POST https://partners.adobe.io/v3/customers/1005123272/orders < {'Server': 'openresty', 'Date': 'Tue, 03 Oct 2023 14:47:35 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'x-request-id': 'a44f1105-4b53-41e4-9df1-194f6fb6daec', 'vary': 'origin,access-control-request-method,access-control-request-headers,accept-encoding', 'content-encoding': 'gzip', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, POST, PUT, PATCH,DELETE, OPTIONS', 'Access-Control-Allow-Headers': 'Authorization,Content-Type,X-Api-Key,User-Agent,If-Modified-Since,X-Request-Id'} {'referenceOrderId': '', 'externalReferenceId': 'Reseller_account_name;1001234', 'orderId': '', 'customerId': '1005123456', 'currencyCode': 'EUR', 'orderType': 'PREVIEW', 'status': '', 'lineItems': [{'extLineItemNumber': 1, 'offerId': '65304579CA02A12', 'quantity': 1, 'subscriptionId': '', 'status': ''}], 'creationDate': '2023-10-03T14:47:35Z'} 0:00:01.075045"
"2023-10-03T14:47:34.929Z","PR-1234-1234-1234-001 Request POST /v3/customers/1005123272/orders > {'X-Request-Id': 'a44f1105-4b53-41e4-9df1-194f6fb6daec', 'X-Correlation-Id': 'a44f1105-4b53-41e4-9df1-194f6fb6daec', 'x-api-key': '****', 'x-gw-ims-client-id': '****', 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': '****'} {'orderType': 'PREVIEW', 'externalReferenceId': 'Reseller_account_name;1001234', 'currencyCode': 'EUR', 'lineItems': [{'extLineItemNumber': 1, 'offerId': '65304579CA01A12', 'quantity': 1}]}"