This guide explains how to integrate Mavenoid with SAP Cloud for Customer (C4C) using the ODATA V2 API for creating customers and service requests via Basic Authentication.
Admin Access To Mavenoid: Contact your Mavenoid representative if you lack admin permissions.
User Credentials: An SAP user account with access to customer and service request resources.
This guide outlines creating customers and service requests in SAP C4C using the OData API. To interact with other SAP resources, consult the SAP OData V2 API documentation.
Use the Call External API action to configure the integration.
Set Up Authentication:
Store the base64-encoded username:password
as a secret in Mavenoid. Use this in the header of the API call as Authorization: Basic {{$secrets["YOUR_SECRET"]}}
.
Check for Existing Customer:
To check if a customer already exists, send a GET request to
/IndividualCustomerCollection: GET https://{domain}/sap/c4c/odata/v1/c4codataapi/IndividualCustomerCollection?$filter=Email eq '{{$customer_email}}'
Create Customer:
If the customer does not exist, send a POST request to SAP’s endpoint /IndividualCustomerCollection to create a new customer: https://{domain}/sap/c4c/odata/v1/c4codataapi/IndividualCustomerCollection
Creating a Service Request:
To create a service request, send a POST request to the endpoint /ServiceRequestCollection: https://{domain}/sap/c4c/odata/v1/c4codataapi/ServiceRequestCollection