Handle restricted operations and data elements
mainWhen calling restricted operations, a Restricted Data Token (RDT) is automatically generated. If the operation accepts a dataElements parameter (currently only getOrder, getOrders, and getOrderItems), you must specify the restricted data elements you wish to retrieve when initializing the connector via SellingPartnerApi::make().
Important: Do not specify dataElements when calling restricted operations on a sandbox endpoint (e.g., Endpoint::NA_SANDBOX), as RDTs are not required in the sandbox environment.
To make calls on behalf of a delegatee application, pass the delegatee parameter to SellingPartnerApi::make(). This ensures the connector generates a token for the delegatee instead of the main application.