Symptom
Customer wants to upload a document through Stateful API UploadDocument in Quote 1.0 environment.
Environment
SAP SALES CLOUD CPQ
Resolution
- Cart/UploadCartAttachment API is intended to be used only through UI, it is n
- There are currently 2 ways to use endpoint to perform the document upload
- Getting Cookies from CPQ Session in the Browser:
- Upload attachment using UI in order to get CPQ Cookies
- Add Cookie in postman request
- Upload file in the body of the request
- Call POST https://{{host}}/Cart/UploadCartAttachment
- Using Postman or other external system without requiring to use UI first:
- Stateful Authentication - https://{{host}}/api/rd/v1/Core/LogIn?username={{username}}&password={{password}}&domain={{domain}}
- Initialize Quote in Session - https://{{host}}/api/rd/v1/Cart/GetInitData?cartId={{cartId}}&ownerId={{ownerId}}&mode=0
- Upload File - https://{{host}}/Cart/UploadCartAttachment
- Getting Cookies from CPQ Session in the Browser:
Keywords
Upload, File, Document, Postman, API, Quote 1.0, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , How To
Product
SAP CPQ 2023