Related Documents
Document Properties
KbidU28108
Last Modified23-Jun-2020
Added to KB12-Dec-2016
Public AccessEveryone
StatusOnline
Doc TypeReferences
Product
  • ICM 7.8
  • ICM 7.9
  • ICM 7.10

REST API - Get Business User Cost Center Details


Note

Starting with 7.10 our REST API is documented using Redoc accessible at docs.intershop.com.

URI

/customers/<customer-id>/users/<user-id>/costcenters/<cost-center-id>

Http Method

GET

Short Description

Returns the details of a specified cost center of a business user

Query Parameters

none

Example Requests

/customers/AgroNet/users/fbirdo@test.intershop.de/costcenters/511288

HTTP Status Codes

200 OK

401 Unauthorized

404 Not Found:

  • if the user is not found or does not support cost centers;
  • if cost center with that id does not exist within the customer;
  • if cost center with that id exists within the customer but this user is not assigned to it (as buyer or approver).

 Description

This request retrieves details of a cost center of a business user - ID, name and roles (buyer, approver) this user is assigned.

Cartridge

app_sf_rest_b2b
Application

SMB Webshop

Product Version

7.8

Product To Version

 
Status

final

JSON

Request data format

Request related java object

n/a

Request data example

n/a

Response data format

application/json

Response related java object

com.intershop.application.storefront.rest.b2b.capi.user.costcenter.resource.UserCostCenterItemResource
com.intershop.application.storefront.rest.b2b.capi.user.costcenter.resourceobject.UserCostCenterRO

Response data example

{
  "name": "Agro Net Central",
  "type": "UserCostCenter",
  "id": "511288",
  "roles": [
    "Buyer"
  ]
}

XML

Request data format

Request related java object

n/a

Request data example

n/a

Response data format

text/xml

Response related java object

com.intershop.application.storefront.rest.b2b.capi.user.costcenter.resource.UserCostCenterItemResource
com.intershop.application.storefront.rest.b2b.capi.user.costcenter.resourceobject.UserCostCenterRO

Response data example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<UserCostCenter name="Agro Net Central" type="UserCostCenter">
    <id>511288</id>
    <roles>Buyer</roles>
</UserCostCenter>

Disclaimer

The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Customer Support
Knowledge Base
Product Resources
Support Tickets