Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to set 'continueOnMissingProduct' on the Commerce API GET /ccadmin/v1/products (listProducts)

Summary: When running the GET /ccadmin/v1/products API, the 'continueOnMissingProduct' does not function. This is Boolean which we are setting to true. API response is always '400 Bad Request'; error code "20031". this is indicating that one of the products is invalid or non-existent. Which this parameter should allow the APi to continue, as


Code Snippet (add any code snippets that support your topic, if applicable):

aXXXXXXXc1prd-admin.occa.ocs.oraclecloud.com/ccadmin/v1/products?productIds=INF146771_0006,INF146772_0004xxx,INF146774_0001,INF146775_0001&continueOnMissingProduct=true

NOTE: where INF146772_0004xxx does not exist as a product

Response:

{    "errorCode": "00000000",    "message": "Error while retrieving the products",    "errors": [        {            "errorCode": "20031",            "message": "Product Id INF146772_0004xxx is invalid or non-existent.",            "moreInfo": "INF146772_0004xxx",            "status": "400"        }    ],    "status": "400"}

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!