Newer Version Available

This content describes an older version of this product. View Latest

sObject Attributes Input

Custom fields for an sObject.
JSON example
1{
2      "attributes": {
3        "type": "WebCart"
4      },
5      "Id": "0a6xx0000000000",
6      "MyCustomTextField__c": "Foo",
7      "MyCustomNumberField__c": 12.34,
8      "MyCustomPercentField__c" : 0.2345,
9      "MyCustomGeolocationField__c": {
10        "latitude": 33.345,
11        "longitude": 45.567
12      }
13    }
Properties
Name Type Description Required or Optional Available Version
attributes String Type of sObject, specified in the form {”type”: “<sobject_type>”}. Currently, only the WebCart and CartDeliveryGroup sObject types are supported. Required 60.0
<custom_field> String

One or more custom fields, and the Id property of an sObject whose type is specified in the attributes property. For example, if you specified WebCart as the sObject type, you would specify a WebCart Id as the value of the Id property.

If you specify an Id, you must set the Id value to the Id of the WebCart or a CartDeliveryGroup in the current checkout session.

If you omit the Id property, custom fields are set on the current WebCart or the default CartDeliveryGroup.

You can specify custom fields only if their types are listed in Custom Field Types.

Required 60.0