Versions Compared

Key

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

Available from CRM.COM R14.0.0

Excerpt

This method transfers money from an accounts receivable to its related active wallet, if there is enough money.

Resource URL

Parameters

...

Name

...

Type

...

Description

...

token

...

String

...

The token retrieved from the login method

...

accounts_receivable_identifier

(mandatory)

...

The identifier of the accounts receivable from which the money will be transferred. The allowed accounts receivable identifier fields are the following:

...

amount

(mandatory)

...

The amount that will be transferred from the accounts receivable to its related active wallet

...

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

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Name

Type

Description

wallet_balance

Number

The balance of the wallet after the transfer

accounts_receivable_balanceNumberThe balance of the account after the transfer

wallet_transaction

Wallet Transaction object

The wallet transaction that was created during the transfer

invoiceInvoice objectThe invoice that was created during the transfer

...

Examples

HTTP Method: POST

Request:

Body:

Expand
titleExample 1
Code Block
themeConfluence
languagejavascript
linenumberstrue
 {
  "token":"{{token}}",
  "accounts_receivable_identifier":{"number":"ACR0000000512"},
  "amount":10
}

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
 { "data": { Tip

Available from CRM.COM R13.0.0

Starting from CRM.COM R15.0.0 the specified Web API method will be deprecated, and although it will still be available in CRM.COM R15.0.0 it will not be maintained furthermore. 

Excerpt

This method performs a sales of physical goods for an account owner. Multiple traceable and non-traceable physical goods can be sold within a single call.

Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

accounts_receivable_identifier

(mandatory)

Accounts Receivable Identifier

The identifier of the accounts receivable from which the money will be transferred. The allowed accounts receivable identifier fields are the following:

Include Page
V4:accounts_receivable_identifier
V4:accounts_receivable_identifier

type_identifier

(optional)

Financial transaction type identifier

The financial transaction type of the sale's invoice. The allowed financial transaction type identifier field are the following:

Include Page
V4:financial_transaction_type_identifier
V4:financial_transaction_type_identifier

category_identifier

(optional)

Financial transaction category identifier

The financial transaction category of the sales invoice. The allowed financial transaction category identifier fields are the following:

Include Page
V4:financial_transaction_category_identifier
V4:financial_transaction_category_identifier

due_on

(optional)

DateThe date that the credit period for that specific invoice is ending.

intended_currency_identifier

(optional)

Currency Identifier

The currency that the user was intended to use for the invoice. If specified then it is validated against the currency of the specified accounts receivable and if they don't match then an error is thrown. Note that the intended currency is not saved within CRM.COM; it is just used for validation purposes. The allowed currency identifier fields are the following:

Include Page
V4:currency_identifier
V4:currency_identifier

notes

(optional)

StringShared notes for the sales invoice

back_office_code

(optional)

String

A back office code for the sales invoice. If specified then it should be unique

 

udf_string_1

(optional)

String

User Defined Field of type String

udf_string_2

(optional)

String

User Defined Field of type String

udf_string_3

(optional)

String

User Defined Field of type String

udf_string_4

(optional)

String

User Defined Field of type String

udf_string_5

(optional)

String

User Defined Field of type String

udf_string_6

(optional)

String

User Defined Field of type String

udf_string_7

(optional)

String

User Defined Field of type String

udf_string_8

(optional)

String

User Defined Field of type String

udf_float_1

(optional)

Float

User Defined Field of type Float

udf_float_2

(optional)

Float

User Defined Field of type Float

udf_float_3

(optional)

Float

User Defined Field of type Float

udf_float_4

(optional)

Float

User Defined Field of type Float

udf_date_1

(optional)

Date

User Defined Field of type Date

udf_date_2

(optional)

Date

User Defined Field of type Date

udf_date_3

(optional)

Date

User Defined Field of type Date

udf_date_4

(optional)

Date

User Defined Field of type Date

quick_sale_items_set

(mandatory)

Set of invoice item objectsThe physical goods sold to the account owner through this sale

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

Anchor
quick sale referred parameters
quick sale referred parameters
Referred Parameter Objects

Include Page
V4:quick_sale_item_parameters
V4:quick_sale_item_parameters

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

Response Data

Include Page
V4:quick_sale_complete
V4:quick_sale_complete

Examples

Expand
titleExample 1

HTTP Method: Post

 

Request:


Body:

Code Block
themeConfluence
languagejavascript
linenumberstrue
 {
   "token":"{{token}}",
   "accounts_receivable_identifier":{"number":"ACR0000012263"},
   "type_identifier":{"name":"Invoice"},
   "life_cycle_state":"POSTED",
   "category_identifier":{"name":"Invoice Categories"},
   "notes":"to be issued later",
   "udf_string_1":"udf string 1",
   "udf_string_2":"udf string 2",
   "udf_string_3":"udf string 3",
   "udf_string_4":"udf string 4",
   "udf_string_5":"udf string 5",
   "udf_string_6":"udf string 6",
   "udf_string_7":"udf string 7",
   "udf_string_8":"udf string 8",
   "udf_float_1":10,
   "udf_float_2":20,
   "udf_float_3":30,
   "udf_float_4":40,
   "udf_date_1":"2014-05-05T15:49:59",
   "udf_date_2":"2014-06-05T15:49:59",
   "udf_date_3":"2014-07-05T15:49:59",
   "udf_date_4":"2014-08-05T15:49:59",
   "quick_sale_items_set":
   [
      {
         "product_identifier": {"code": "Expense 1"}
      },
      {
         "product_identifier": {"code": "Antenna"},
         "quantity":3,
         "discount_percentage":5,
         "udf_string_1":"udf string 1",
         "udf_string_2":"udf string 2",
         "udf_string_3":"udf string 3",
         "udf_string_4":"udf string 4",
         "udf_string_5":"udf string 5",
         "udf_string_6":"udf string 6",
         "udf_string_7":"udf string 7",
         "udf_string_8":"udf string 8",
         "udf_float_1":10,
         "udf_float_2":20,
         "udf_float_3":30,
         "udf_float_4":40,
         "udf_date_1":"2014-05-05T15:49:59",
         "udf_date_2":"2014-06-05T15:49:59",
         "udf_date_3":"2014-07-05T15:49:59",
         "udf_date_4":"2014-08-05T15:49:59"
       },
 {
         "product_identifier": {"code": "Installation Kit"},
         "installed_item_identifier":{"serial_number": "IK_0001x"},
         "price_plan": {"code": "CPricePlan"},
         "udf_string_1":"udf string 1",
         "udf_string_2":"udf string 2",
         "udf_string_3":"udf string 3",
         "udf_string_4":"udf string 4",
         "udf_string_5":"udf string 5",
         "udf_string_6":"udf string 6",
         "udf_string_7":"udf string 7",
         "udf_string_8":"udf string 8",
         "udf_float_1":10,
         "udf_float_2":20,
         "udf_float_3":30,
         "udf_float_4":40,
         "udf_date_1":"2014-05-05T15:49:59",
         "udf_date_2":"2014-06-05T15:49:59",
         "udf_date_3":"2014-07-05T15:49:59",
         "udf_date_4":"2014-08-05T15:49:59"
       }
    ]
}


Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
  "data": {
    "quick_sale_items_set": [
      {
        "product": {
          "code": "Installation Kit",
          "product_type": {
            "service_type": null,
            "used_for_provisioning": true,
            "alternative_code": "IK",
            "composition_method": "FIXEDBUNDLE",
            "name": "Installation Kit",
            "description": "Provisioning Installation kit that can include traceable and non traceable products",
            "id": "380C41872DA048DEB1D57CF67D7550F6",
            "classification": "PHYSICALGOODS",
            "physical_good_type": "TRACEABLE"
          },
          "alternative_code": "IK",
          "description": "Installation Kit",
          "id": "D970FFF8F63F4A489108FB60A69657D1"
        },
        "installed_item": {
          "product": {
            "code": "Installation Kit",
            "product_type": {
              "service_type": null,
              "used_for_provisioning": true,
              "alternative_code": "IK",
              "composition_method": "FIXEDBUNDLE",
              "name": "Installation Kit",
              "description": "Provisioning Installation kit that can include traceable and non traceable products",
              "id": "380C41872DA048DEB1D57CF67D7550F6",
              "classification": "PHYSICALGOODS",
              "physical_good_type": "TRACEABLE"
            },
            "walletalternative_balancecode": 40"IK",
            "invoicedescription": {"Installation Kit",
            "posted_onid": "2017-09-05T14:27:45",
 D970FFF8F63F4A489108FB60A69657D1"
          },
          "numberalternative_code": "I00003672IK_0001x",
          "serial_number":  "totalIK_amount0001x": 10,

           "unsettled_amountid": null"47775A48DE41455AA1E02224C3D0B9AD",

           "issued_onstate": "2017-09-05T14:27:44",EFFECTIVE"
            "currency_rate_period": {},
        "quantity": 1,
        "from_date": "2017-08-21 18:02:15.0",stock_out_warehouse_transaction": {
          "number": "2415",
          "tobatch_datenumber": null,
  
             "rateid": 0.84"1B279BEB03294E06BDF17E0F7488BF2D",
          "life_cycle_state": "POSTED"
    "inverse_rate": 1.190476,    }
      },
     "currency": {
        "product": {
          "suffix_symbolcode": null"Antenna",
          "product_type": {
            "prefixservice_symboltype": "£"null,
               "used_for_provisioning": false,
    "decimal_part_name": null,       "alternative_code": "001",
            "codecomposition_method": "GBPFLAT",
               "name": "Equipment",
    "integer_part_name": null,       "description": null,
            "id": "9EQ",
      
             "life_cycle_stateclassification": "EFFECTIVEPHYSICALGOODS",
            "physical_good_type": "NONTRACEABLE"
    },      },
          "idalternative_code": "99D527123ADE4116B72689B157EB7166A",
            },
 "description": "Antenna",
          "id": "7B22BA1B97B349CFBB239580F4BCDE10872C558604704AA29D8512A70B608573",
            "life_cycle_state": "POSTED",
   },
        "outstandinginstalled_amountitem": null,
    null,
        "reference_numberquantity": "8122"3,

           "due_on"stock_out_warehouse_transaction": "2017-09-12T00:00:00"null
      }
 },    ],
    "walletaccounts_transactionreceivable": {
      "number": "ACR0000012263",
      "numbername": "67607ACR0000012263",
      "id": "828C4BC409DF4E5AAD2EA1EC3E68224B",
      "amountlife_cycle_state": 10,
      "ACTIVE",
      "walletaccount_owner": {
        "company_profile": null,
        "numbercompany_name": "W0000007360"null,
        "name": null,
        "accountslast_receivablename": {"Kyriakou",
           "id": "E4C44CF8ECBE4218B755EC2B490907C6",
        "numberlife_cycle_state": "ACR0000000512FINANCIAL",
        "middle_name": null,
          "nametitle": "Marina Test Acc2" null,
        "type": "PERSON",
          "idfirst_name": "B34AFB749B4147269AE2D2D9F1D179C4Stella",
        "demographics": {
          "lifename_cycle_stateday": "ACTIVE", {
            "month": null,
            "account_ownerday": {null
           },
            "companyid_profilenumber": null,
             "gender": null,
          "companydate_of_namebirth": null,{
            "month": null,
            "nameyear": null,
            "day": null
          "last_name": "Anton"},
             "industry_sector": null,
          "idpassport_number": "E6B41F80110B4B9293A3552253571A76"null,
             "industry": null,
          "lifesocial_cyclesecurity_statenumber": "FINANCIAL"null,
             "id_issued_by_country": null,
          "middle_namepassport_issued_by_country": null,
        }
      }
    },
    "titleexpenses_set": [
null,      {
        "code": "Expense 1",
        "product_type": "PERSON",{
            "service_type": "EXPENSE",
           "firstused_for_nameprovisioning": "Marina"false,
          "alternative_code": "006",
            "demographicscomposition_method": {
 "FLAT",
          "name": "Fees",
          "description": "Fees One Time "name_day": {Services",
          "id": "6",
          "classification": "SERVICES",
          "monthphysical_good_type": null,
        },
              "alternative_code": "E1",
        "daydescription": null"Expense 1",
             "id": "A9917A7895044BEF9499DD6958539D33"
      }
      }],
    "invoice": {
      "posted_on": "2017-07-19T21:18:42",
      "number": "I00003481",
      "idtotal_numberamount": "546712",38.5,
      "unsettled_amount": 38.5,
      "issued_on": "2017-07-19T21:18:38",
      "currency_rate_period": null,
      "genderid": "FEMALE92795A6DF9CF4338BF3BF0DA17D652FA",
      "life_cycle_state": "POSTED",
             "outstanding_amount": 0,
      "datereference_of_birthnumber": {"7449",
                    "due_on": "2017-07-21T21:18:42"
    }
   },
  "monthstatus": null,{
    "code": "OK",
    "description": "",
    "message": ""
  }
           "year": null,
                                "day": null
                }
Expand
titleExample 2

HTTP Method: Post

 

Request:


Body:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
	"token":"{{token}}",
	"accounts_receivable_identifier" : {
		"number":"ACR0000012818"
	},
	"quick_sale_items_set" : [
	{
		"product_identifier": {
			"code": "Smartcard"
		},
		"from_warehouse": {
			"name": "Main Warehouse"
		},
		"to_warehouse": {
			"name": "PTN Warehouse"
		},
		"installed_items_set": [
			{
			"installed_item_identifier":{"serial_number": "ds_7738_sm_24"}
			},
			{
			"installed_item_identifier":{"serial_number": "ds_7738_sm_25"}
			}
		],
		"quantity":2
	}]
}


Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
    "data": {
        "quick_sale_items_set": [
 },            {
                "industry_sectorproduct": null,
       {
                    "passport_numbercode": null,
       "Smartcard",
                    "industryproduct_type": null,
  {
                         "socialmeter_securityreading_numbertype": null,
  
                         "id_issued_by_countryservice_type": null,

                           "passportused_issuedfor_by_countryprovisioning": nulltrue,
                        }
"alternative_code": "S",
                   }       "udr_type": null,
         },                 "idcomposition_method": "CD23F0205A9042CE89FD786CD45E79D2FLAT",
                     "life_cycle_state   "name": "EFFECTIVESMARTCARD",
            },            "description": "log_information": {"SMARTCARD",
                        "created_by_unitid": { "D6BE0209EC0149989A89972CE889DF8B",
                        "alternative_codeclassification": "adminunitPHYSICALGOODS",
                        "groupphysical_good_nametype": "Main GroupTRACEABLE",
                    "community_name": "Community"},
                    "namealternative_code": "Admin UnitS",
                    "description": "admin unitSmartcard",
                    "id": "1"
             "4F656ED5DAC44168B0805227881202CD",
   },                 "updatedpriority_by_unitlevel": {null
                    "alternative_code": "adminunit",
 },
                  "groupinstalled_nameitem": "Main Group",
  null,
                 "community_namequantity": "Community"2,

                   "name"stock_out_warehouse_transaction": "Adminnull
Unit",            }
        "description": "admin unit",],
        "accounts_receivable": {
            "idnumber": "1ACR0000012818",
            "name":    },
  "ACR0000012818 Zambia",
             "created_dateid": "2017-09-05T14:27:456481F2CDA36D461480F82476A15EBB93",
   
            "updatedlife_cycle_datestate": "2017-09-05T14:27:45ACTIVE",
   
            "updatedaccount_by_userowner": {
  {
                 "personcompany_nameprofile": "CRM COM",{
                    "idtax_reference_number": "1"null,
                    "usernameregistered_in_country": "MPAdministrator"
          null,
     },                 "creatednumber_byof_useremployees": {null,
                    "personannual_nameturnover": "CRM COM"null,
                    "idprofile_year": "1"null,
                    "usernameregistration_number": "MPAdministrator"null,
                }    "vat_registration_number": null,
       },             "causedindustry_by_entitysector": null,
                    "currency_rate_periodindustry": { null,
                    "fromestablished_date": "2017-08-21 18:02:15.0", null,
                    "tovat_registered_date": null,by": null,
                    "ratevat_registration_date": 0.84,null
                "inverse_rate": 1.190476},
                "currencycompany_name": {
 "Zambia",
                  "suffix_symbolname": null,
   
                "prefixlast_symbolname": "£"null,
 
                  "decimal_part_name"id": null,
  "E965E2E70AC74160874EE71C5E9CB056",
                 "codelife_cycle_state": "GBPFINANCIAL",

                   "integermiddle_part_name": null,
  
                 "idtitle": "9",
  null,
                 "life_cycle_statetype": "EFFECTIVECOMPANY",
                } "first_name": null,
                "iddemographics": "99D527123ADE4116B72689B157EB7166"null
            },
        },
        "idexpenses_set": [],
        "55D6A0BAB46D4B958935328CF229A46Cinvoice",: {
            "life_cycleposted_stateon": "EFFECTIVE2018-01-04T14:57:32",
            "extra_added_amountnumber": null"I00006234",
            "typetotal_amount": {
   20.2,
            "alternativeunsettled_codeamount": "CI",
20.2,
               "name"issued_on": "Credit Invoice2018-01-04T14:56:56",

               "description": null,
  "currency_rate_period": null,
             "id": "620AABC4DA0A4F3880FB058D8771620FC4BCC9A343C94A4F9C0C9EF976165F90",

               "classification"life_cycle_state": "CREDITPOSTED",
            } "outstanding_amount": 0,
            "caused_by_entity_id": nullreference_number": "13983",
            },
"due_on": "2018-09-28T00:00:00"
       "accounts_receivable_balance": 0 }
    },
    "status": {
        "code": "OK",
        "description": "",
        "message": ""
    }
}
    

 

...