Table of contents

    Overview

    A CostCentre is a business unit defined in GENIUS settings. To call CostCentre endpoint, use one of the URLs from the following tables:

    URL GET PUT POST DELETE
    https://api.mypcorp.com/costcentre
    https://api.mypcorp.com/costcentre/{Guid}

    NB: Currently, CostCentre endpoint only accepts GET requests. PUT, POST and DELETE requests will be available in the future.

    GET

    The following table illustrates which fields can be included when receiving a GET response.

    CostCentre
    Field Name Description
    CostCentreGuid
    Guid (Identifier)
    The CostCentre’s id. This is a read only field.
    Name
    string
    The name of the CostCentre.

    Example JSON response:

    {
      "@odata.context": "https://api.mypcorp.com/$metadata#CostCentre",
      "value": [
        {
          "CostCentreGuid": "a42f65e7-a029-eb11-a824-000d3acb64f8",
          "Name": "Sydney"
        }
      ]
    }

    Return home Next article