Cost Centers


Service used to register and change Ahgora PontoWeb cost centers.


Batch sending allowed, maximum 1000 records per request, or 1mb (mega)


Users

Item

Description

Flow:Client → PontoWeb
Route:https://api.ahgora.com.br/costcenter
Method:POST
Cost Centers
FieldTypeRequiredDescription
codigoStringYesCost Center Code
nomeStringYesCost Center Name


Requests examples:


Request Body - Inclusion and Alteration:

[
  {
    "codigo": "00000001",
    "nome": "RH"
  },
  {
    "codigo": "00000002",
    "nome": "ADM"
  }
]


Responses examples:


Response when SUCCESS - Code 200:

{
   "company": "a000101",
   "unique": "bd751350",
   "message": "Cost center's Integration on progress"
}

For more details, use the Process service. To find out more, click here.


Validation ERROR - Code 400:

{
  "message": "Request format must be an Array",
  "code": 400
}


Authentication ERROR - Code 401:

{
  "message": "Unauthorized",
  "code": 401
}


Permission ERROR - Code 403:

{
    "error": {
        "message": "Forbidden",
        "code": 403
    }
}

Note: Check the user's permissions to access the route/service.