Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Available from CRM.COM R13.0.0
Tip
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.

...

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

 

fromudf_string_warehouse1

(optional)

String

The warehouse from which the installed items will be sold to the Partner. Applicable only if the Accounts Receivable selected is related to a Partner. Only the Warehouses which are not owned by any Partner Group can be provided.

Include Page
V4:warehouse_identifierV4:warehouse_identifier
Tip

Available from CRM.COM R14.0.0

 to_warehouse

(optional on conditions)

 String

 The warehouse to which the installed items sold to the Partner are moved to. Applicable and mandatory only if the Accounts Receivable selected is related to a Partner owning a Warehouse. Only the Warehouses owned by the specified Partner Group can be provided.

Include PageV4:warehouse_identifierV4:warehouse_identifier
Tip

Available from CRM.COM R14.0.0

udf_string_1User 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_24

(optional)

String

User Defined Field of type String

udf_string_35

(optional)

String

User Defined Field of type String

udf_string_46

(optional)

String

User Defined Field of type String

udf_string_57

(optional)

String

User Defined Field of type String

udf_string_68

(optional)

String

User Defined Field of type String

udf_string_7

(optional)

String

User Defined Field of type String

udf_string_8

float_1

(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

...

 { "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"} },

: Post

 

Request:


Body:

Expand
titleExample 1

HTTP Method: Post

 

Request:

Body:

Code Block
themeConfluence
languagejavascript
linenumberstrue
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",
            "physical_good_type": "NONTRACEABLE"
          },
          "alternative_code": "A",
          "description": "Antenna",
          "id": "872C558604704AA29D8512A70B608573"
        },
        "installed_item": null,
        "quantity": 3,
        "stock_out_warehouse_transaction": null
      }
    ],
    "accounts_receivable": {
      "number": "ACR0000012263",
      "name": "ACR0000012263",
      "id": "828C4BC409DF4E5AAD2EA1EC3E68224B",
      "life_cycle_state": "ACTIVE",
      "account_owner": {
         "productcompany_identifierprofile": {"code": "Antenna"},
null,
        "quantitycompany_name":3 null,

        "discount_percentagename":5 null,
         "udflast_string_1name": "udf string 1Kyriakou",
         "udf_string_2id":"udf string 2 "E4C44CF8ECBE4218B755EC2B490907C6",

        "udflife_stringcycle_3state": "udf string 3FINANCIAL",
         "udfmiddle_string_4name":"udf string 4" null,
         "udf_string_5title":"udf string 5",
 null,
        "udf_string_6type": "udf string 6PERSON",
         "udffirst_string_7name": "udf string 7Stella",
         "udf_string_8demographics":"udf string{
8",          "udfname_float_1day":10, {
            "udf_float_2month":20 null,
            "udf_float_3day":30, null
          "udf_float_4":40},
          "udfid_date_1":"2014-05-05T15:49:59",number": null,
          "udf_date_2":"2014-06-05T15:49:59"gender": null,
          "udfdate_dateof_3":"2014-07-05T15:49:59",
birth": {
        "udf_date_4":"2014-08-05T15:49:59"    "month": null,
  },  {          "product_identifieryear": {"code": "Installation Kit"}, null,
            "installed_item_identifier":{"serial_number": "IK_0001x"},day": null
          },
          "priceindustry_plansector": {"code": "CPricePlan"},null,
          "udfpassport_string_1number":"udf stringnull,
1",          "udf_string_2industry":"udf stringnull,
2",          "udfsocial_stringsecurity_3number":"udf stringnull,
3",          "udfid_issued_stringby_4country":"udf string 4" null,
          "udfpassport_issued_stringby_5country":"udf string 5", null
        }
    "udf_string_6":"udf string 6",}
    },
    "udfexpenses_string_7set":"udf string 7",
 [
      {
        "udf_string_8code": "udfExpense string 81",
         "udfproduct_float_1type":10, {
          "udf_floatservice_2type":20 "EXPENSE",
          "udfused_floatfor_3provisioning":30 false,
          "udfalternative_float_4code":40 "006",
          "udfcomposition_date_1method":"2014-05-05T15:49:59 "FLAT",
          "udf_date_2name":"2014-06-05T15:49:59 "Fees",
          "udf_date_3description":"2014-07-05T15:49:59", "Fees One Time Services",
          "udf_date_4id":"2014-08-05T15:49:59" "6",
       }   "classification": "SERVICES",
] }

Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
{   "data": {     "quickphysical_salegood_items_settype": [null
        {},
        "productalternative_code": {
"E1",
         "codedescription": "InstallationExpense Kit1",

         "product_typeid": {"A9917A7895044BEF9499DD6958539D33"
      }
     "service_type": null],
    "invoice": {
      "usedposted_for_provisioningon": true"2017-07-19T21:18:42",
            "alternative_code"number": "IKI00003481",
      "total_amount": 38.5,
      "compositionunsettled_methodamount": "FIXEDBUNDLE",
     38.5,
      "nameissued_on": "Installation Kit2017-07-19T21:18:38",
            "description"currency_rate_period": "Provisioningnull,
Installation kit that can include traceable and non traceable products",
     "id": "92795A6DF9CF4338BF3BF0DA17D652FA",
      "idlife_cycle_state": "380C41872DA048DEB1D57CF67D7550F6POSTED",
      "outstanding_amount": 0,
      "classificationreference_number": "PHYSICALGOODS7449",
     
      "physicaldue_good_typeon": "TRACEABLE2017-07-21T21:18:42"
    }
  },
  },
"status": {
    "code": "OK",
    "alternative_codedescription": "IK",
    "message": ""
      "description": "Installation Kit",
          "id": "D970FFF8F63F4A489108FB60A69657D1"
        },
        "installed_item": {
          "product": {
            }
}
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": "Installation Kit",
            "product_typeSmartcard"
		},
		"from_warehouse": {
			"name": "Main Warehouse"
           "service_type		},
		"to_warehouse": 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",
{
			"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": [
            {
"id": "380C41872DA048DEB1D57CF67D7550F6",               "classificationproduct": "PHYSICALGOODS",{
              "physical_good_type": "TRACEABLE"             }"code": "Smartcard",
            "alternative_code": "IK",               "descriptionproduct_type": "Installation{
Kit",             "id": "D970FFF8F63F4A489108FB60A69657D1"           }"meter_reading_type": null,
          "alternative_code": "IK_0001x",              "serialservice_numbertype": "IK_0001x"null,
           "id": "47775A48DE41455AA1E02224C3D0B9AD",             "stateused_for_provisioning": "EFFECTIVE"
  true,
     },         "quantity": 1,           "stock_out_warehouse_transactionalternative_code": {"S",
            "number": "2415",           "batchudr_numbertype": null,
          "id": "1B279BEB03294E06BDF17E0F7488BF2D",              "lifecomposition_cycle_statemethod": "POSTEDFLAT"
  ,
     }       },       {         "product": {"name": "SMARTCARD",
            "code": "Antenna",           "product_typedescription": {
  "SMARTCARD",
          "service_type": null,             "used_for_provisioningid": false"D6BE0209EC0149989A89972CE889DF8B",
            "alternative_code": "001",             "composition_methodclassification": "FLATPHYSICALGOODS",
            "name": "Equipment",             "descriptionphysical_good_type": "TRACEABLE"
null,             "id": "EQ",      },
      "classification": "PHYSICALGOODS",             "physicalalternative_good_typecode": "NONTRACEABLES",
          },           "alternative_codedescription": "ASmartcard",
          "description": "Antenna",           "id": "872C558604704AA29D8512A70B6085734F656ED5DAC44168B0805227881202CD",
         },           "installedpriority_itemlevel": null,
        "quantity": 3,         "stock_out_warehouse_transaction": null},
      }     ],     "accountsinstalled_receivableitem": {null,
        "number": "ACR0000012263",       "namequantity": "ACR0000012263", 2,
        "id": "828C4BC409DF4E5AAD2EA1EC3E68224B",       "lifestock_out_cyclewarehouse_statetransaction": "ACTIVE",null
          "account_owner": { }
       "company_profile": null ],
        "companyaccounts_namereceivable": null, {
            "namenumber": null"ACR0000012818",
            "last_name": "KyriakouACR0000012818 Zambia",
            "id": "E4C44CF8ECBE4218B755EC2B490907C66481F2CDA36D461480F82476A15EBB93",
            "life_cycle_state": "FINANCIAL","ACTIVE",
            "middleaccount_nameowner": null, {
                "titlecompany_profile": null,{
          "type": "PERSON",         "firsttax_reference_namenumber": "Stella"null,
        "demographics": {           "nameregistered_in_daycountry": {null,
            "month": null,             "day"number_of_employees": null,
          },           "idannual_numberturnover": null,

         "gender": null,           "dateprofile_of_birthyear": null,
{              "month": null,     "registration_number": null,
      "year": null,             "dayvat_registration_number": null
,
         },           "industry_sector": null,
          "passport_number": null,           "industry": null,
          "social_security_number          "established_date": 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": null,
  "Fees One Time Services",           "idtitle": "6",null,
                "classificationtype": "SERVICESCOMPANY",
          "physical_good_type      "first_name": null,
        },         "alternative_code": "E1",
"demographics": 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": ""
    }
}