How to configure extra fields in inStore cart

The configuration of extra fields in the inStore cart allows product specifications to be used in the order invoice issuance process.

To create the extra fields, follow the steps below:

  1. Check current store configuration via Get orderForm configuration.
  2. Save the JSON information returned from the request.
{ 
    "paymentConfiguration": {
        "requiresAuthenticationForPreAuthorizedPaymentOption": false,
  }
  "minimumQuantityAccumulatedForItems": 1,
  "decimalDigitsPrecision": 2,
  "minimumValueAccumulated": 0,
  "apps": []
}
  1. Make a request using the endpoint Update orderForm configuration with the same saved JSON data, and add the extra fields (fields) with the information inside the apps property.
{ 
    "paymentConfiguration": {
        "requiresAuthenticationForPreAuthorizedPaymentOption": false,
  }
  "minimumQuantityAccumulatedForItems": 1,
  "decimalDigitsPrecision": 2,
  "minimumValueAccumulated": 0,
  "apps": [
    {
      "fields": [
        "cart-extra-context",
        "cart-type"
      ],
      "id": "cart-extra-context",
      "major": 1
    }
  ]
}

Did this page help you?