Use this method to add a new store to a Customer in Komet Sales.

Valid Tokens: Company.


Request


URL: https://api.kometsales.com/api/customer.shipto.add

Method: POST

Content-Type: application/JSON


Input Parameters

authenticationToken (required)(string:50)

Komet Sales security token.


customerId (required) (integer:20)

Customer ID.

You can get this value from the customer.list API method.


name (required)(string:200)

Ship-To name.


address (optional)(string:200)

Shipping address street.


city (optional)(string:50)

Shipping address city.


state (optional)(string:50)

Shipping address state.


zipcode (optional)(string:10)

Shipping address Zip Code.


country (optional)(string:50)

Shipping address Country.


phone (optional)(string:20)

Phone number.


fax (optional)(string:20)

Fax number.


carrierId (optional) (integer:20)

Carrier ID.

You can get this value from the carrier.list API method.


carrierAccount (optional)(string:20)

The Carrier account number.


salesPersonCodeForFlowers (optional)(string:20)

Salesperson code for flower-type products. 

You can find the salesperson code in Setup > Settings. To learn more, read Sales Codes.


salesPersonCodeForPlants (optional)(string:20)

.Salesperson code for plant-type products. 

You can find the salesperson code in Setup > Settings. To learn more, read Sales Codes.


{
    "authenticationToken": "token_info_goes_here", 
    "customerId":6326, 
    "name":"Store miami",
    "city":"miami", 
    "state":"FL", 
    "country":"United States", 
    "zipcode":"568722", 
    "address":"Stree 123 Suite 2", 
    "fax": "786 3434 23232", 
    "phone": "661 522 3154"
  }

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


shipToId (integer:20)

Internal Ship-To ID.


{
  "status": 1,
  "message": "Ship to was successfully saved",
  "shipToId": 20131
 }
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock591392e8-915b-46f8-a2ad-9bb308f4ea2dari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock023cb2bd-1914-4119-b46e-def990242a20defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock591392e8-915b-46f8-a2ad-9bb308f4ea2dari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock023cb2bd-1914-4119-b46e-def990242a20