How To Retrieve Custom Order Attributes

(Doc ID 2347960.1)

Last updated on FEBRUARY 02, 2018

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.

Goal

How retrieve the custom attribute that was created using this endpoint:
https://docs.oracle.com/cloud/latest/commercecs_gs/CXOCC/op-ccadmin-v1-orderTypes-{id}-put.html


PUT https://ccadmin-test-xxxx.oracleoutsourcing.com/ccadmin/v1/orderTypes/order


Using this JSON to create them:
{
  "properties": {
  "shippingAddressMobileNumber4": {
  "label": "Mobile Number",
  "type": "shortText",
  "default":"null",
  "uiEditorType": "shortText",
  "internalOnly": false,
  "required": false,
  "audienceVisibility": "all"
  },
  "billingAddressMobileNumber4": {
  "label": "Mobile Number",
  "type": "shortText",
  "default":"null",
  "uiEditorType": "shortText",
  "internalOnly": false,
  "required": false,
  "audienceVisibility": "all"
  }
  }
}

We are trying to retrieve it using the STORE APIs. As it needs to be retrieved on the frontend side.
We created about 8 attributes because we wanted to see for debugging and trying many times to see them if they occur:
shippingAddressMobileNumber
shippingAddressMobileNumber2
shippingAddressMobileNumber3
shippingAddressMobileNumber4
billingAddressMobileNumber
billingAddressMobileNumber2
billingAddressMobileNumber3
billingAddressMobileNumber4

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms