function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aniket KushwahaAniket Kushwaha 

Type is not visible: ConnectApi.OrderPaymentSummary

trying to create orderpaymentsummary using connectApi gives this error
 ConnectApi.CreateOrderPaymentSummaryOutputRepresentation output = connectApi.OrderPaymentSummary.createOrderPaymentSummaryOutputRepresentation(inpRepresentation);
            
SwethaSwetha (Salesforce Developers) 
HI Aniket,
I see your ask is related to B2B.

Salesforce licenses define access to certain features, processes, and objects. So when you are using ConnectAPI to create OrderPaymentSummary, the code is not able to access the specific objects which are needed to create the record because of having a different set of license.

Without an Order Management License you'll not be able to access the Connect API to use this method.

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
Aniket KushwahaAniket Kushwaha

Hello Swetha ,
Thanks for the reply but currently i am just trying to save my  code and it shows this error ,and i also have that license
Artur Sviridov AdminArtur Sviridov Admin
I have the same problem. Could anyone resolve it?
I also have all licenses and permissions