Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Tip

Available from CRM.COM R9.0.0

Table of Contents
maxLevel2

GET invoice_cancellations/configuration/types/list

This method returns the invoice cancellation types that are allowed to be used in the system. Multiple invoice cancellation types are returned by each call

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

group_identifier

(optional)

...

The identifier of the group that will be providing the invoice cancellation type. The group is filtered against the invoice cancellation types' allowed organisational units. The allowed group identifier fields are the following:

...

unit_identifier

(optional)

...

The identifier of the unit that will be providing the invoice cancellation type. The unit is filtered against the invoice cancellation types' allowed organisational units. The allowed unit identifier fields are the following:

...

fields_set

(optional)

...

List of Strings, comma separated 

...

A list of fields that should be included in the results. If not specified then all the available fields will be returned

Response Data

...

Examples

Expand
titleExample 1

HTTP Method: GET

 

Request:

Response:

 

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "status":
    {
        "message": "",
        "description": "",
        "code": "OK"
    },
    "data":
    [
        {
            "udf_float_1": null,
            "udf_float_2": null,
            "udf_float_3": null,
            "udf_date_1": null,
            "udf_float_4": null,
            "udf_date_2": null,
            "udf_date_3": null,
            "udf_date_4": null,
            "name": "Invoice Cancellation 1",
            "udf_string_1": null,
            "udf_string_2": null,
            "udf_string_3": null,
            "udf_string_4": null,
            "udf_string_5": null,
            "udf_string_6": null,
            "udf_string_7": null,
            "log_information":
            {
                "updated_date": "2014-07-18T15:30:44",
                "created_date": "2014-05-14T09:08:09",
                "created_by_unit":
                {
                    "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                    "name": "Admin Unit",
                    "description": "r1 Test Description for resource  request tab.Test Description for resource  request tab.",
                    "alternative_code": "MG"
                },
                "updated_by_unit":
                {
                    "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                    "name": "Admin Unit",
                    "description": "r1 Test Description for resource  request tab.Test Description for resource  request tab.",
                    "alternative_code": "MG"
                },
                "created_by_user":
                {
                    "person_name": "MPAdministrator",
                    "username": "MPAdministrator",
                    "id": "1"
                },
                "updated_by_user":
                {
                    "person_name": "g_neocleous",
                    "username": "g_neocleous",
                    "id": "80D37EB91123AE12EEABA6232ADA654F"
                }
            },
            "udf_string_8": null,
            "id": "207B7625B35B02B35E90DED6A4985C9B",
            "description": "Invoice Cancellation 1",
            "alternative_code": "IC1"
        },
        {
            "udf_float_1": null,
            "udf_float_2": null,
            "udf_float_3": null,
            "udf_date_1": null,
            "udf_float_4": null,
            "udf_date_2": null,
            "udf_date_3": null,
            "udf_date_4": null,
            "name": "Invoice Cancellation 2",
            "udf_string_1": null,
            "udf_string_2": null,
            "udf_string_3": null,
            "udf_string_4": null,
            "udf_string_5": null,
            "udf_string_6": null,
            "udf_string_7": null,
            "log_information":
            {
                "updated_date": "2014-07-18T15:30:58",
                "created_date": "2014-05-14T09:09:10",
                "created_by_unit":
                {
                    "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                    "name": "Admin Unit",
                    "description": "r1 Test Description for resource  request tab.Test Description for resource  request tab.",
                    "alternative_code": "MG"
                },
                "updated_by_unit":
                {
                    "id": "48305F8849E3C18B227C5BE3A27BA6DF",
                    "name": "Admin Unit",
                    "description": "r1 Test Description for resource  request tab.Test Description for resource  request tab.",
                    "alternative_code": "MG"
                },
                "created_by_user":
                {
                    "person_name": "MPAdministrator",
                    "username": "MPAdministrator",
                    "id": "1"
                },
                "updated_by_user":
                {
                    "person_name": "g_neocleous",
                    "username": "g_neocleous",
                    "id": "80D37EB91123AE12EEABA6232ADA654F"
                }
            },
            "udf_string_8": null,
            "id": "74C319F0582AB6E65E97AA0418657938",
            "description": "Invoice Cancellation 2",
            "alternative_code": "IC2"
        }
    ]
} 

GET invoice_cancellations/configuration/categories/list

This method returns the invoice cancellation categories that are allowed to be used by invoice cancellations of a specific type. Multiple invoice cancellation categories are returned by each call

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

invoice_cancellation_type_identifier

(mandatory)

...

The identifier of the type of the invoice cancellation that will be using the categories. The categories are filtered against the allowed categories of the specified type. The allowed financial transaction type identifier fields are the following:

...

fields_set

(optional)

...

List of Strings, comma separated 

...

A list of fields that should be included in the results. If not specified then all the available fields will be returned

Response Data

...

Examples

Expand
titleExample 1

HTTP Method: GET

 

Request:

Response:

 

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "status":
    {
        "message": "",
        "description": "",
        "code": "OK"
    },
    "data":
    [
        {
            "parent_id": null,
            "id": "8569BB66E2DDED07776761F8F6EA577D",
            "name": "Invoice Cancellation Categories",
            "description": "Invoice Cancellation Categories",
            "code": "ICC"
        },
        {
            "parent_id": null,
            "id": "A2BC929D02D8CA9E6C2C639A91DFBE4B",
            "name": "Global Categories",
            "description": "Global Categories",
            "code": "GC"
        }
    ]
} 

GET invoice_cancellations/configuration/rejection_reasons/list

This method returns the rejection reasons that can be used while rejecting a draft invoice cancellation, as defined through the active financial transactions definition. Multiple rejection reasons are returned by each call

Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

 fields_set

(optional)

List of Strings, comma separated 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

Response Data

...

Examples

HTTP Method: GET

 

Request:

Response:

 

{ "status": { "message": "", "description": "", "code": "OK" }, "data": [ { "default": false, "rejection_reason": { "id": "CE833230AAD6D276E30DEA53F166CB8F", "name": "Reject Due to Business Request", "description": "Reject Due to Business Request", "alternative_code": "RDTBR" } }, { "default": true, "rejection_reason": { "id": "86082D82A5C8D93D048ED95161C554A7", "name": "Reject Due to Error", "description": "Reject Due to Error", "alternative_code": "RDTE" } }, { "default": false, "rejection_reason": { "id": "B5407A536ACD49B58192D4C19325D2CA", "name": "Rejection Reason Modal 1", "description": null, "alternative_code": "RRM1" } } ] }
Expand
titleExample 1
Code Block
themeConfluence
languagejavascript
linenumberstrue
Panel
nameblue

Child pages (Children Display)
excerpttrue