Versions Compared

Key

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

Available from CRM.COM R13.0.0

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)

...

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

...

type_identifier

(optional)

...

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

...

Expand
titleExample 1

HTTP Method: Post

 

Request:


Body:

 { "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": [ {
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"
            },
            "alternative_code": "IK",
            "description": "Installation Kit",
            "id": "D970FFF8F63F4A489108FB60A69657D1"
          },
          "alternative_code": "IK_0001x",
          "serial_number": "IK_0001x",
          "id": "47775A48DE41455AA1E02224C3D0B9AD",
          "state": "EFFECTIVE"
        },
        "quantity": 1,
        "stock_out_warehouse_transaction": {
          "number": "2415",
          "batch_number": null,
          "id": "1B279BEB03294E06BDF17E0F7488BF2D",
          "life_cycle_state": "POSTED"
        }
      },
      {
        "product": {
          "code": "Antenna",
          "product_type": {
            "service_type": null,
            "used_for_provisioning": false,
            "alternative_code": "001",
            "composition_method": "FLAT",
            "name": "Equipment",
            "description": null,
            "id": "EQ",
            "classification": "PHYSICALGOODS",
            "productphysical_good_identifiertype": {"codeNONTRACEABLE":
  "Expense 1"}       },
      {     "alternative_code": "A",
         "product_identifier": {"codedescription": "Antenna"},
          "quantityid":3, "872C558604704AA29D8512A70B608573"
        "discount_percentage":5},
         "udfinstalled_string_1item":"udf string 1" null,
         "udf_string_2quantity":"udf string 2" 3,
         "udfstock_out_stringwarehouse_3transaction":"udf string 3", null
      }
    ],
    "udfaccounts_string_4receivable":"udf string{
4",          "udf_string_5"number": "udf string 5ACR0000012263",
 
       "udf_string_6name": "udf string 6ACR0000012263",
  
      "udf_string_7id": "udf string 7828C4BC409DF4E5AAD2EA1EC3E68224B",
  
      "udflife_stringcycle_8state": "udf string 8ACTIVE",
  
      "udfaccount_float_1owner":10, {
        "udfcompany_float_2profile":20 null,
         "udfcompany_float_3name":30 null,
         "udf_float_4name":40 null,
         "udflast_date_1name":"2014-05-05T15:49:59 "Kyriakou",

        "udf_date_2id":"2014-06-05T15:49:59 "E4C44CF8ECBE4218B755EC2B490907C6",

        "udflife_datecycle_3state":"2014-07-05T15:49:59 "FINANCIAL",
         "udfmiddle_date_4name":"2014-08-05T15:49:59"
 null,
        "title": null,
      },  {
"type": "PERSON",
        "productfirst_identifiername": {"code": "Installation Kit"},Stella",
        "demographics": {
          "installedname_item_identifierday":{"serial_number": "IK_0001x"}, {
           "price_plan": {"codemonth": "CPricePlan"}null,
          "udf_string_1  "day":"udf stringnull
1",          "udf_string_2":"udf string 2",},
           "udfid_string_3number":"udf stringnull,
3",          "udf_string_4gender":"udf stringnull,
4",          "udfdate_stringof_5birth":"udf {
 string 5",          "udf_string_6month":"udf string 6", null,
            "udf_string_7year":"udf string 7", null,
            "udf_string_8":"udf string 8",day": null
          },
          "udfindustry_float_1sector":10 null,
          "udfpassport_float_2number":20 null,
          "udf_float_3industry":30 null,
          "udfsocial_floatsecurity_4number":40 null,
          "udfid_issued_dateby_1country":"2014-05-05T15:49:59" null,
          "udfpassport_issued_dateby_2":"2014-06-05T15:49:59",country": null
        }
      "udf_date_3":"2014-07-05T15:49:59",}
    },
    "udfexpenses_date_4":"2014-08-05T15:49:59"set": [
      {
  }     ]
}

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{ "code": "Expense 1",
        "dataproduct_type": {
          "quick_sale_items_setservice_type": ["EXPENSE",
          {"used_for_provisioning": false,
          "productalternative_code": {"006",
          "codecomposition_method": "Installation KitFLAT",
          "product_typename": {"Fees",
            "service_typedescription": null,
  "Fees One Time Services",
          "used_for_provisioningid": true"6",
 
          "alternative_codeclassification": "IKSERVICES",
            "compositionphysical_good_methodtype": "FIXEDBUNDLE",null
        },
        "namealternative_code": "Installation KitE1",
            "description": "ProvisioningExpense Installation1",
kit that can include traceable and non traceable products"id",: "A9917A7895044BEF9499DD6958539D33"
      }
    "id": "380C41872DA048DEB1D57CF67D7550F6"],
    "invoice": {
      "classificationposted_on": "PHYSICALGOODS2017-07-19T21:18:42",
            "physical_good_type"number": "TRACEABLEI00003481",
          }"total_amount": 38.5,
          "alternativeunsettled_codeamount": "IK",
   38.5,
      "descriptionissued_on": "Installation Kit",
   2017-07-19T21:18:38",
      "idcurrency_rate_period": "D970FFF8F63F4A489108FB60A69657D1"null,
        }"id": "92795A6DF9CF4338BF3BF0DA17D652FA",
        "installedlife_cycle_itemstate": {"POSTED",
          "product"outstanding_amount": {
  0,
         "code"reference_number": "Installation Kit7449",
     
      "productdue_typeon": {"2017-07-21T21:18:42"
        }
  },
  "service_typestatus": null,{
    "code": "OK",
        "used_for_provisioning"description": true"",
    "message": ""
  }
}
Expand
titleExample 2

HTTP Method: Post

 

Request:


Body:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{
	"token":"{{token}}",
	"accounts_receivable_identifier" : {
 "alternative_code		"number": "IKACR0000012818"
	},
	"quick_sale_items_set" : [
	{
		"product_identifier":          "composition_method{
			"code": "FIXEDBUNDLESmartcard",
              
		},
		"from_warehouse": {
			"name": "InstallationMain KitWarehouse"
		},
		"to_warehouse":              "description{
			"name": "ProvisioningPTN Installation kit that can include traceable and non traceable products",
              "id": "380C41872DA048DEB1D57CF67D7550F6",
              "classification": "PHYSICALGOODS",
    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": {
         "physicalquick_sale_gooditems_typeset": "TRACEABLE"[
            },{
            "alternative_code": "IK",      "product": {
     "description": "Installation Kit",             "idcode": "D970FFF8F63F4A489108FB60A69657D1Smartcard"
,
         },           "alternativeproduct_codetype": "IK_0001x", {
            "serial_number": "IK_0001x",           "idmeter_reading_type": "47775A48DE41455AA1E02224C3D0B9AD"null,
          "state": "EFFECTIVE"         },    "service_type": null,
   "quantity": 1,         "stock_out_warehouse_transaction": {           "numberused_for_provisioning": "2415"true,
           "batch_number": null,             "idalternative_code": "1B279BEB03294E06BDF17E0F7488BF2DS",
          "life_cycle_state": "POSTED"         }       }"udr_type": null,
      {         "product": {
          "codecomposition_method": "AntennaFLAT",
          "product_type": {             "service_typename": null"SMARTCARD",
            "used_for_provisioning": false,
            "alternative_codedescription": "001SMARTCARD",
            "composition_method": "FLAT",             "nameid": "EquipmentD6BE0209EC0149989A89972CE889DF8B",
            "description": null,
            "idclassification": "EQPHYSICALGOODS",
            "classification": "PHYSICALGOODS",
            "physical_good_type": "NONTRACEABLETRACEABLE"
                    },
                    "alternative_code": "AS",
                    "description": "AntennaSmartcard",
                    "id": "872C558604704AA29D8512A70B6085734F656ED5DAC44168B0805227881202CD",
         },           "installedpriority_itemlevel": null,
        "quantity": 3,       },
 "stock_out_warehouse_transaction": null       }     ],
    "accountsinstalled_receivableitem": {null,
        "number": "ACR0000012263",       "namequantity": "ACR0000012263",2,
            "id": "828C4BC409DF4E5AAD2EA1EC3E68224B",   "stock_out_warehouse_transaction": null
  "life_cycle_state": "ACTIVE",       "account_owner": { }
       "company_profile": null ],
        "companyaccounts_namereceivable": null,{
            "namenumber": null"ACR0000012818",
            "last_name": "KyriakouACR0000012818 Zambia",
            "id": "E4C44CF8ECBE4218B755EC2B490907C66481F2CDA36D461480F82476A15EBB93",
            "life_cycle_state": "FINANCIALACTIVE",
            "middle_name": null,account_owner": {
                "titlecompany_profile": {
null,          "type": "PERSON",         "firsttax_reference_namenumber": "Stella"null,
        "demographics": {           "nameregistered_in_daycountry": { null,
                    "monthnumber_of_employees": null,
  
         "day": null           }"annual_turnover": null,
          "id_number": null,           "genderprofile_year": null,
          "date_of_birth": {             "monthregistration_number": null,
            "year": null,             "day"vat_registration_number": null,
          },           "industry_sector": null,
          "passport_number": null,           "industry": null,
                    "socialestablished_security_numberdate": null,
          "id_issued_by_country": null,           "passportvat_issuedregistered_by_country": null
    ,
   }       }     },     "expensesvat_registration_setdate": [null
      {         "code": "Expense 1" },
        "product_type": {           "servicecompany_typename": "EXPENSEZambia",
          "used_for_provisioning      "name": falsenull,
                "alternativelast_codename": "006", null,
                "composition_methodid": "FLATE965E2E70AC74160874EE71C5E9CB056",
                "namelife_cycle_state": "FeesFINANCIAL",
             "description   "middle_name": "Fees One Time Services",null,
                "idtitle": "6"null,
          "classification      "type": "SERVICESCOMPANY",
                "physicalfirst_good_typename": null,
        },         "alternative_codedemographics": "E1", null
       "description": "Expense 1",   }
     "id": "A9917A7895044BEF9499DD6958539D33"  },
    }    "expenses_set": [],
        "invoice": {
            "posted_on": "20172018-0701-19T2104T14:1857:4232",
            "number": "I00003481I00006234",
            "total_amount": 3820.52,
            "unsettled_amount": 3820.52,
            "issued_on": "20172018-0701-19T2104T14:1856:3856",
            "currency_rate_period": null,
            "id": "92795A6DF9CF4338BF3BF0DA17D652FAC4BCC9A343C94A4F9C0C9EF976165F90",
            "life_cycle_state": "POSTED",
            "outstanding_amount": 0,
            "reference_number": "744913983",
            "due_on": "20172018-0709-21T2128T00:1800:4200"
        }
    },
    "status": {
        "code": "OK",
        "description": "",
        "message": ""
    }
}