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:
| ||||||||||||
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:
| ||||||||||||
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:
| ||||||||||||
due_on (optional) | Date | The 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:
| ||||||||||||
notes (optional) | String | Shared 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_identifier | V4:warehouse_identifier |
Tip |
---|
Available from CRM.COM R14.0.0 |
 to_warehouse
(optional on conditions)
 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.
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
(mandatory)
fields_set
(optional)
...
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
HTTP Method: Post  Request: Body: Code Block | | |||||
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
 {
"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 | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "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 | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
HTTP Method: Post  Request: Body:
Response:
|