Symptom
You are trying to create a Return Order via the API sap/c4c/api/v1/return-order-service/returnOrders using a POST call, however, upon doing so, the error below is displayed:
- { "error": { "code": "returnOrder.10032", "message": "Reference Source Type and Source ID are mandatory." }}
Environment
SAP Service Cloud Version 2.
Cause
The "Source ID" and "Source Type" are either being sent incorrectly via the payload / request body or not being sent at all when making the POST call to the API.
Resolution
For the POST call to be successful, it would be required to send the "Source ID" and "Source Type" details within the POST call URL itself, not in the payload / request body.
- https://XXXXX.cxm-salescloud.com/sap/c4c/api/v1/return-order-service/returnOrders?$sourceid=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX&$sourcetype=2059
Keywords
Return Order, Call, POST, API, API CALL, Request, Source ID, Source Type, Payload, Error, Error Message, API Error, Reference Source Type and Source ID are mandatory, Mandatory, sap/c4c/api/v1/return-order-service/returnOrders, Creation, Create, V2, Version 2, SAP Service Cloud Version 2, , KBA , CEC-CRM-CR , Customer Returns for SAP Sales/Service Cloud , Known Error
SAP Knowledge Base Article - Public