All pages
Powered by GitBook
1 of 1

Loading...

Create account class code

Use case

In this example, we will show how to create an account class code.

Use case data
API parameters

Create a new account class code.

Sample API call

To create a new account class code, make the following API call.

Create account class code

POST https://account-api.sandbox.tuumplatform.com/api/v1/account-class-codes

Sample request

Below is an example request body of the API call for creating an account class code.

{
  "description": "New account class code",
  "accountClassCode": "NEW"
}
curl --location 'https://account-api.sandbox.tuumplatform.com/api/v1/account-class-codes' \
--header 'x-channel-code: SYSTEM' \
--header 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHBpcnlEVGltZSI6IjIwMjMtMDctMzFUMTA6NTE6MzUiLCJyb2xlcyI6WyJBRE1JTiJdLCJuYW1lIjoiSm9obiBPZmZpY2VyIiwiZW1wbG95ZWVJZCI6IjEiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHAiOjE2OTA4MDA2OTV9.ocnwYQJzynRutWPRu-Jr_BmKkwRleeV5koMW_RbsNJ0' \
--header 'Content-Type: application/json' \
--data '{
  "description": "New account class code",
  "accountClassCode": "NEW"
}'

Sample response

Below you find an example response body to the API call above.

Response
{
    "errors": null,
    "validationErrors": null,
    "data": {
        "description": "New account class code",
        "accountClassCode": "NEW"
    }
}

Result

A new account class code is created.

https://account-api.sandbox.tuumplatform.com/api/v1/account-class-codes

See more information about the endpoint in the Tuum developer portal.

See more information about this in the Tuum developer portal.

{
"description": "New account class code",
"accountClassCode": "NEW"
    }
create account class code
endpoint