Operations with customer groups

Operations with customer groups - GET, INSERT, UPDATE, DELETE

How to get all customer groups
GET /odata/customergroup

Request Type: GET

Enter the request URL: http://StoreURL/odata/customergroup

Auth type: Bearer Token - paste the token generated in the previous steps

How to get customer group by id
GET /odata/customergroup('id')

Request Type: GET

Enter the request URL: http://StoreURL/odata/customergroup('id')

Auth type: Bearer Token - paste the token generated in the previous steps

How to delete customer group
DELETE /odata/customergroup('id')

Request Type: DELETE

Enter the request URL: http://StoreURL/odata/customergroup('id')

Auth type: Bearer Token - paste the token generated in the previous steps

Please note that in DELETE operations, you will get only "Status: 200 OK" information if the item was successfully deleted. Please note that you are not able to delete system groups. If you try to do that, you will get 403 Forbidden error.

How to add new customer group
POST /odata/customergroup

Request Type: POST

Enter the request URL: http://StoreURL/odata/customergroup

Auth type: Bearer Token - paste the token generated in the previous steps

Headers: In the Key field enter the Content-Type, in Value field enter the application/json, description is empty.

Body: In the body field you need to enter the proper JSON. Which fields are necessary for specified actions you can check in the bottom of $metadata page. 

How to update customer group
POST /odata/customergroup

Request Type: POST

Enter the request URL: http://StoreURL/odata/customergroup

Auth type: Bearer Token - paste the token generated in the previous steps

Headers: In the Key field enter the Content-Type, in Value field enter the application/json, description is empty.

Body: In the body field you need to enter the proper JSON. Which fields are necessary for specified actions you can check in the bottom of $metadata page. 

How to partially update customer group
PATCH /odata/customergroup('id')

Request Type: PATCH

Enter the request URL: http://StoreURL/odata/customergroup('id')

Auth type: Bearer Token - paste the token generated in the previous steps

Headers: In the Key field enter the Content-Type, in Value field enter the application/json, description is empty.

Body: Please note that it's PATCH request, so you don't need to have all fields in your request.

How to update whole customer group
PUT /odata/customergroup('id')

Request Type: PUT

Enter the request URL: http://StoreURL/odata/customergroup('id')

Auth type: Bearer Token - paste the token generated in the previous steps

Headers: In the Key field enter the Content-Type, in Value field enter the application/json, description is empty.

Body: Please note that you need to have all fields in your request, also with the "id" field.