Versions Compared

Key

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

Available from CRM.COM R13.1.0

Excerpt

This method adds Usage Allowance Limits to an accounts Receivable but only if the active Accounts Receivable Definition allows it. A single Accounts Receivable is updated by each call

...

Name

Type

Description

token

String

The token retrieved from the login method

accounts_receivable_identifier

(mandatory)

Account Receivable Identifier

The identifier of the account receivable to be updated. The allowed account receivable identifier fields are the following:

Include Page
V4:accounts_receivable_identifier_post
V4:accounts_receivable_identifier_post

block_services_not_included_in_usage_allowance_limits_settings

(optional)

BooleanDefines if the account owner can only consume services for which a Usage Allowance Limit is specified

percentage_of_allowed_exceeded_usage_limit

(optional)

NumberThe percentage of amount that the limit can be exceeded for the related accounts receivable

accumulated_maximum_rated_amount_per_day

(optional)

NumberThe accumulated maximum rated amount that the accounts receivable is allowed to use within a day.

accumulated_maximum_rated_amount_per_month

(optional)

NumberThe accumulated maximum rated amount that the accounts receivable is allowed to use within a month.

accumulated_maximum_rated_amount_per_transaction

(optional)

NumberThe accumulated maximum rated amount that the accounts receivable is allowed to use per transaction.

accumulated_maximum_usage_per_date

(optional)

NumberThe accumulated maximum usage amount that the accounts receivable is allowed to use within a day.

accumulated_maximum_usage_per_month

(optional)

NumberThe accumulated maximum usage amount that the accounts receivable is allowed to use within a month.

accumulated_maximum_usage_per_transaction

(optional)

NumberThe accumulated maximum usage amount that the accounts receivable is allowed to use per transaction.

usage_services_allowance

(optional)

Set of Usage Services Allowance objects

The usage allowance limits per usage service, service type or service family

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

...

Expand
titleExample 1

HTTP Method: POST

 

Request

Body

Code Block
themeConfluence
languagejavascript
linenumberstrue
 {
  "token": "{{token}}",
 "accounts_receivable_identifier" : {
     "number" : "ACR0000001392"
    },
    "accumulated_maximum_rated_amount_per_day":50.5
}

Response

Code Block
themeConfluence
languagejavascript
linenumberstrue
 {
    "data": {,
    "usage_services_allowance":
    [
        {
        "action":"add",
        "service":{"code":"Serendipity"},
        "maximum_rated_amount_per_month":10
        }
        ,
        {
        "action":"add",
        "service_type":{"name":"Exxon"},
        "maximum_rated_amount_per_transaction":24
        }
            ,
        {
        "action":"add",
        "service_family":{"code":"CH"},
        "maximum_usage_per_transaction":2
        }
    ]
}

Response

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "data": {
        "notes": null,
        "log_information": {
            "created_by_unit": {
                "alternative_code": "adminunit",
                "group_name": "Main Group",
                "community_name": "Community",
                "name": "Admin Unit",
                "description": "admin unit",
                "id": "1"
            },
            "updated_by_unit": {
                "alternative_code": "adminunit",
                "group_name": "Main Group",
                "community_name": "Community",
                "name": "Admin Unit",
                "description": "admin unit",
                "id": "1"
            },
            "created_date": "2017-07-28T12:26:08",
            "updated_date": "2017-08-08T16:46:36",
            "updated_by_user": {
                "person_name": "MPAdministrator",
                "id": "1",
                "email": null,
                "username": "MPAdministrator"
            },
            "created_by_user": {
                "person_name": "MPAdministrator",
                "id": "1",
                "email": null,
                "username": "MPAdministrator"
            }
        },
        "payment_preferences_set": [],
        "owned_by_group": {
            "alternative_code": "MG",
            "community_name": "Community",
            "name": "Main Group",
            "description": "Main Group",
            "id": "1"
        },
        "description": null,
        "contact_information": {
            "company_profile": null,
            "company_name": null,
            "name": null,
            "last_name": "Τζιηρτζιηπή",
            "id": "7B7A165FD2804DA59BFE70F353F79579",
            "life_cycle_state": "FINANCIAL",
            "middle_name": "νΊΚοΥ",
            "title": null,
            "type": "PERSON",
            "first_name": "Κατερίνα",
            "demographics": {
                "name_day": {
                    "month": null,
                    "day": null
                },
                "id_number": null,
                "gender": null,
                "date_of_birth": {
                    "month": null,
                    "year": null,
                    "day": null
                },
                "industry_sector": null,
                "passport_number": null,
                "industry": null,
                "social_security_number": null,
                "id_issued_by_country": null,
                "passport_issued_by_country": null
            }
        },
        "billing_address": null,
        "primary_account": true,
        "type": "CUSTOMER",
        "udf_date_2": null,
        "udf_date_1": null,
        "udf_date_4": null,
        "udf_date_3": null,
        "number": "ACR0000001392",
        "udf_float_3": null,
        "udf_float_4": null,
        "balance": null,
        "credit_period_operator": "PLUS",
        "credit_period": 0,
        "currency": {
            "suffix_symbol": "N/A",
            "prefix_symbol": "€",
            "decimal_part_name": "cents",
            "code": "EUR",
            "integer_part_name": "euro",
            "id": "2"
        },
        "id": "76FBE26DE50D424987AC4CC69619A9C5",
        "opening_balance": 0,
        "udf_float_1": null,
        "udf_float_2": null,
        "notesudf_string_2": null,
        "logopening_balance_informationdate": {
   null,
        "createdudf_bystring_unit3": {null,
        "udf_string_4": null,
        "alternativeudf_string_code5": "adminunit",null,
        "privacy_level": {
            "group_namenumber": "Main Group14",
                "community_name": "CommunityPL Group A_Share_Low",
   
            "nameid": "Admin Unit9DCEFDA9D56145978C265085CD146810",
                "description"hierarchy_level": "admin1
unit",        },
        "idpresentment_preferences_set": "1"[],
        "udf_string_1": null,
     },   "life_cycle_state": "ACTIVE",
        "updated_by_unitclassification": {
                "alternative_code": "adminunitE",

               "group_name": "Main GroupEmployee",
                "community_name"id": "CommunityE093533DA53A4167C69762073D1B13A8",
        },
       "name": "Admin Unit",
 usage_allowance_limits": {
              "description"percentage_of_allowed_exceeded_usage_limit": "admin unit"null,
                "id"accumulated_maximum_rated_amount_per_transaction": "1"null,
            },
 "usage_services_allowance": [
          "created_date": "2017-07-28T12:26:08",      {
      "updated_date": "2017-08-08T16:46:36",             "updatedservice_by_userfamily": { null,
                    "personservice_nametype": "MPAdministrator",null,
                   "id "maximum_rated_amount_per_day": "1"null,
                "email": null,    "service": {
                        "usernamecode": "MPAdministratorSerendipity",
            },             "createdproduct_by_usertype": {
                "person_name            "service_type": "MPAdministratorUSAGE",
                "id": "1",           "used_for_provisioning": true,
     "email": null,                       "usernamealternative_code": "MPAdministratorV"
,
           }         },         "paymentcomposition_preferences_setmethod": [],"FLAT",
          "owned_by_group": {                  "alternative_codename": "MGUsage Services",
            "community_name": "Community",                "namedescription": "Main GroupUsed for VOD , PPV, TELEPHONE CALLS ETC",
            "description": "Main Group",                "id": "1751C638AA3534B768408AAC4D73CF516",
        },          "description": null,         "contact_informationclassification": "SERVICES",
 {             "company_profile": null,             "companyphysical_good_nametype": null,
                     "name": null,  },
          "last_name": "Τζιηρτζιηπή",             "alternative_code"id": "7B7A165FD2804DA59BFE70F353F79579S_1",
            "life_cycle_state": "FINANCIAL",             "middle_namedescription": "νΊΚοΥVOD: Serendipity ",
            "title": null,             "typeid": "PERSONBD3ACEE7D6244DCAA375D0744DA75540",
            "first_name": "Κατερίνα",       },
     "demographics": {                 "name_day"maximum_usage_per_transaction": {null,
                    "maximum_rated_amount_per_month": null"10.00",
                    "maximum_usage_per_day": null,
                },     "maximum_rated_amount_per_transaction": null,
                  "id_number  "maximum_usage_per_month": null,
                "gender": null},
                "date_of_birth": {
                    "monthservice_family": null,
                    "yearservice_type": null, {
                        "dayservice_type": null"USAGE",
                },        "used_for_provisioning": false,
       "industry_sector": null,                 "passportalternative_numbercode": null"E2",
                "industry": null,         "composition_method": "FLAT",
       "social_security_number": null,                 "id_issued_by_countryname": null"Exxon",
                "passport_issued_by_country        "description": null,
            }         },   "id": "ACA2649D85044264AADC31B5DB0BC567",
    "billing_address": null,         "primary_account": true,         "typeclassification": "CUSTOMERSERVICES",
           "udf_date_2": null,             "udfphysical_dategood_1type": null,
         "udf_date_4": null,         "udf_date_3": null },
        "number": "ACR0000001392",            "udf_float_3maximum_rated_amount_per_day": null,
          "udf_float_4          "service": null,,
          "balance": null,         "creditmaximum_usage_periodper_operatortransaction": "PLUS"null,
        "credit_period": 0,            "currencymaximum_rated_amount_per_month": {null,
            "suffix_symbol": "N/A",       "maximum_usage_per_day": null,
     "prefix_symbol": "€",               "decimal_part_namemaximum_rated_amount_per_transaction": "cents24.00",
            "code": "EUR",
            "integer_part_name": "euro","maximum_usage_per_month": null
               "id": "2" },
        },        {
"id": "76FBE26DE50D424987AC4CC69619A9C5",         "opening_balance": 0,         "udfservice_float_1family": null,{
              "udf_float_2": null,         "udf_string_2code": null,"CH",
              "opening_balance_date": null,         "udf_string_3name": null,"Channels",
           "udf_string_4": null,             "udf_string_5description": null,
        "privacy_level": {                "numberid": "145432773B865246E3B10A47CD130183C7",

           "name": "PL Group A_Share_Low",      },
      "id": "9DCEFDA9D56145978C265085CD146810",             "hierarchyservice_leveltype": 1null,
           },         "presentment_preferences_setmaximum_rated_amount_per_day": []null,
        "udf_string_1": null,            "life_cycle_stateservice": "ACTIVE"null,
        "classification": {             "alternative_codemaximum_usage_per_transaction": "E2.00",
            "name": "Employee",          "maximum_rated_amount_per_month": null,
  "id": "E093533DA53A4167C69762073D1B13A8"         },         "maximum_usage_allowanceper_limitsday": {null,
                    "percentagemaximum_ofrated_allowedamount_exceededper_usage_limittransaction": null,
                    "accumulated_maximum_ratedusage_amount_per_transactionmonth": null,

                }
           "usage_services_allowance": [],
            "block_services_not_included_in_usage_allowance_limits_settings": null,
            "accumulated_maximum_usage_per_day": null,
            "accumulated_maximum_usage_per_month": null,
            "accumulated_maximum_rated_amount_per_month": null,
            "currency": null,
            "accumulated_maximum_rated_amount_per_day": "50.50",
            "accumulated_maximum_usage_per_transaction": null
        },
        "credit_limit_status": null,
        "credit_rating": {
            "code": "AAA",
            "name": "key_aaa_-_subject_to_minimal_credit_risk"
        },
        "name": "ACR0000001392 Κατερίνα Τζιηρτζιηπή",
        "outstanding_amount": null,
        "udf_string_6": null,
        "udf_string_7": null,
        "accounting_period": null,
        "access_tokens_set": [],
        "udf_string_8": null
    },
    "status": {
        "code": "OK",
        "description": "",
        "message": ""
    }
}