Monday 21 January 2019

HTTP POST using batch mode

For creating IndividualCustomer in C4C using ODATA standard service for IndividualCustomerCollection

If required to test directly C4C system then add CSRF token.

POSTMAN Testing: POSTMAN - CPI -C4C 


POST /http/dev/c4c/fixzone/individualcustomercollection_http HTTP/1.1
Host: Tenant URL
Content-Type: multipart/mixed;boundary=batch_1
Authorization: Basic UzAwMjAwMDQ0Nzk6QisxflhSLy0=
cache-control: no-cache
Postman-Token: 1188e0bb-7c63-4b46-920a-811da6c6ca79

--batch_1
Content-Type: multipart/mixed; boundary=changeset_guid_01
  
--changeset_guid_01
Content-Type: application/http
Content-Transfer-Encoding: binary

POST IndividualCustomerCollection HTTP/1.1
Content-Length: 5000
Accept: application/json
Content-Type: application/json

{
      "RoleCode": "CRM000",
      "LifeCycleStatusCode": "2",
      "TitleCode": "0001",
      "FirstName": "Ravi",
      "LastName": "Kumar",
      "LanguageCode": "EN",
      "CountryCode": "GB",
      "StateCode": "AN",
      "AddressLine1": "Ram Nagar",
      "Street": "Ram Nagar",
      "City": "US",
      "StreetPostalCode": "11214",
      "Phone": "+1 888-888-88",
      "Fax": "+1 0012346001234",
      "Email": "ravi.kumar1@gmail.com"
}

--changeset_guid_01--
--batch_1--





No comments:

Post a Comment