Question:
What are the steps needed to do a B2B Commerce API call
Author: Niels PetietAnswer:
1. Set up a Map<String, Object> for the data you're requesting from the API. 2. Specify the IDs to query (set) 3. Specify the version of the API call. ccrz.ccApi.API_VERSION key is defined on the ccrz.ccApi base class and required 4. Add a ccrz.ccApi.SIZING key to the productFetchQuery map (determines how many results are returned. Restrict by referencing a ccrz.ccApiProduct.ENTITYNAME key 5. Specify how many fields you want to return for each product record, add the ccrz.ccApi.SZ_DATA key to ccrz.ccApiProduct.ENTITYNAME. 6. To parse the data received back, create Add try and catch statements in the ccrz.ccApiProduct.fetch() method 7. Create a List collection and parse it
0 / 5 Â (0 ratings)
1 answer(s) in total