POST v1/GLCodes

Request Information

URI Parameters

None.

Body Parameters

Common.Dto.Post.GLCode
NameDescriptionTypeAdditional information
name

string

Required

String length: inclusive between 0 and 100

code

string

Required

String length: inclusive between 0 and 255

ledgers

Collection of Common.Dto.Post.GLCodeLedger

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "code": "sample string 2",
  "ledgers": [
    {
      "reference": "sample string 1",
      "ledgerType": "sample string 2"
    },
    {
      "reference": "sample string 1",
      "ledgerType": "sample string 2"
    }
  ]
}

Response Information

Resource Description

Common.Dto.Get.GLCode
NameDescriptionTypeAdditional information
name

string

None.

code

string

None.

status

string

None.

used

boolean

None.

createdTimestamp

date

None.

modifiedTimestamp

date

None.

ledgers

Collection of Common.Dto.Get.GLCodeLedger

None.

id

integer

None.

uri

string

None.

Response Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "code": "sample string 2",
  "status": "sample string 3",
  "used": true,
  "createdTimestamp": "2025-05-21T08:01:22.0403832+00:00",
  "modifiedTimestamp": "2025-05-21T08:01:22.0403832+00:00",
  "ledgers": [
    {
      "reference": "sample string 1",
      "ledgerType": "sample string 2",
      "ledgerLabel": "sample string 3"
    },
    {
      "reference": "sample string 1",
      "ledgerType": "sample string 2",
      "ledgerLabel": "sample string 3"
    }
  ],
  "id": 7,
  "uri": "sample string 8"
}