POST api/Customer/CustomerAndAddress
Create Customer object and Customer Address
Request Information
Request body formats
application/json, text/json
Sample:
{ "Customer": { "Customer_Num": "sample string 1", "Customer_Name": "sample string 2", "Customer_Class": "sample string 3", "Corporate_Customer_Num": "sample string 4", "Short_Name": "sample string 5", "Statement_Name": "sample string 6", "Primary_Addr_Code": "sample string 7", "Primary_Bill_To_Addr_Code": "sample string 8", "Primary_Ship_To_Addr_Code": "sample string 9", "Statement_To_Addr_Code": "sample string 10", "Sales_Person_ID": "sample string 11", "Sales_Territory": "sample string 12", "Payment_Terms": "sample string 13", "Shipping_Method": "sample string 14", "Price_Level": "sample string 15", "User_Def_1": "sample string 16", "User_Def_2": "sample string 17", "Tax_Exempt_1": "sample string 18", "Tax_Exempt_2": "sample string 19", "Tax_Registration_Num": "sample string 20", "Comment_1": "sample string 21", "Comment_2": "sample string 22", "IntegrationSource": 23, "Inactive": true, "On_Hold": true, "Note": "sample string 24", "Currency_ID": "sample string 25", "Currency_Dec": 1, "Last_Aged": "2025-04-04T00:31:44.8-04:00", "Balance": 1.0, "Unapplied_Amount": 1.0, "Customer_Credit_Limit": 26.0, "Last_Pay_Date": "2025-04-04T00:31:44.8-04:00", "Last_Pay_Amt": 1.0, "First_Invoice_Date": "2025-04-04T00:31:44.8-04:00", "Last_Invoice_Date": "2025-04-04T00:31:44.8-04:00", "Last_Invoice_Amt": 1.0, "Last_Stmt_Date": "2025-04-04T00:31:44.8-04:00", "Last_Stmt_Amt": 1.0, "Life_Avg_Days": 1, "Year_Avg_Days": 1, "Total_Amt_NSF_Checks_YTD": 1.0, "Num_NSF_Checks_YTD": 1, "Tax_Schedule": "sample string 27", "Ship_Complete": true, "Stmt_Email_To": "sample string 28", "Stmt_Email_CC": "sample string 29", "Stmt_Email_BCC": "sample string 30", "Email_To": "sample string 31", "Email_CC": "sample string 32", "Email_BCC": "sample string 33", "Message": "sample string 34", "USERDEF1": "sample string 35", "USERDEF2": "sample string 36", "Trade_Discount": 1.0, "Master_Distributor": "sample string 37", "Method_Of_Billing": 38, "Send_Email_Statements": 64, "Created_On": "2025-04-04T00:31:44.8-04:00", "Changed_On": "2025-04-04T00:31:44.8-04:00", "Promotions_Applied_Customer": "sample string 42", "DEX_ROW_TS": "2025-04-04T00:31:44.8-04:00", "On_Order_Amount": 1.0, "Credit_Limit_Type": 44, "Finance_Charge_Type": 45, "Finance_Charge_Amt": 46.0, "Finance_Charge_Pct": 47, "Min_Pmt_Type": 48, "Min_Pmt_Amt": 49.0, "Min_Pmt_Pct": 50, "Balance_Type": 51, "Max_Writeoff_Type": 52, "Max_Writeoff_Amt": 53.0, "UserFieldData": [ {}, {}, {} ], "UserFieldNames": [ "sample string 1", "sample string 2", "sample string 3" ], "Notifications": null }, "CustomerAddr": { "Customer_Num": "sample string 1", "Address_Code": "sample string 2", "Address_Use": "sample string 3", "Sales_Person_ID": "sample string 4", "Shipping_Method": "sample string 5", "UPS_Zone": "sample string 6", "Tax_Schedule": "sample string 7", "Alt_Company_Name": "sample string 8", "Contact_Person": "sample string 9", "Address_Line_1": "sample string 10", "Address_Line_2": "sample string 11", "Address_Line_3": "sample string 12", "Country": "sample string 13", "Country_Code": "sample string 14", "City": "sample string 15", "State": "sample string 16", "Zip": "sample string 17", "Phone_1": "sample string 18", "Phone_2": "sample string 19", "Phone_3": "sample string 20", "Fax": "sample string 21", "Modified_On": "2025-04-04T00:31:44.8-04:00", "Created_On": "2025-04-04T00:31:44.8-04:00", "Comment": "sample string 24", "Email": "sample string 25", "Email_To": "sample string 26", "Email_CC": "sample string 27", "Email_BCC": "sample string 28", "Web_Site": "sample string 29", "Login": "sample string 30", "Password": "sample string 31", "Warehouse_Code": "sample string 32", "USERDEF1": "sample string 33", "USERDEF2": "sample string 34", "Dont_Email": true, "Dont_Mail": true, "Sales_Territory": "sample string 35", "Dont_Fax": true, "Address_Validated": true, "Address_Classification": "sample string 36", "File_Location_1": "sample string 37", "File_Location_2": "sample string 38", "DEX_ROW_TS": "2025-04-04T00:31:44.8-04:00", "UserFieldData": [ {}, {}, {} ], "UserFieldNames": [ "sample string 1", "sample string 2", "sample string 3" ], "Notifications": null } }
Response Information
Response body formats
application/json, text/json
Sample:
{ "Customer": { "Customer_Num": "sample string 1", "Customer_Name": "sample string 2", "Customer_Class": "sample string 3", "Corporate_Customer_Num": "sample string 4", "Short_Name": "sample string 5", "Statement_Name": "sample string 6", "Primary_Addr_Code": "sample string 7", "Primary_Bill_To_Addr_Code": "sample string 8", "Primary_Ship_To_Addr_Code": "sample string 9", "Statement_To_Addr_Code": "sample string 10", "Sales_Person_ID": "sample string 11", "Sales_Territory": "sample string 12", "Payment_Terms": "sample string 13", "Shipping_Method": "sample string 14", "Price_Level": "sample string 15", "User_Def_1": "sample string 16", "User_Def_2": "sample string 17", "Tax_Exempt_1": "sample string 18", "Tax_Exempt_2": "sample string 19", "Tax_Registration_Num": "sample string 20", "Comment_1": "sample string 21", "Comment_2": "sample string 22", "IntegrationSource": 23, "Inactive": true, "On_Hold": true, "Note": "sample string 24", "Currency_ID": "sample string 25", "Currency_Dec": 1, "Last_Aged": "2025-04-04T00:31:44.815-04:00", "Balance": 1.0, "Unapplied_Amount": 1.0, "Customer_Credit_Limit": 26.0, "Last_Pay_Date": "2025-04-04T00:31:44.815-04:00", "Last_Pay_Amt": 1.0, "First_Invoice_Date": "2025-04-04T00:31:44.815-04:00", "Last_Invoice_Date": "2025-04-04T00:31:44.815-04:00", "Last_Invoice_Amt": 1.0, "Last_Stmt_Date": "2025-04-04T00:31:44.815-04:00", "Last_Stmt_Amt": 1.0, "Life_Avg_Days": 1, "Year_Avg_Days": 1, "Total_Amt_NSF_Checks_YTD": 1.0, "Num_NSF_Checks_YTD": 1, "Tax_Schedule": "sample string 27", "Ship_Complete": true, "Stmt_Email_To": "sample string 28", "Stmt_Email_CC": "sample string 29", "Stmt_Email_BCC": "sample string 30", "Email_To": "sample string 31", "Email_CC": "sample string 32", "Email_BCC": "sample string 33", "Message": "sample string 34", "USERDEF1": "sample string 35", "USERDEF2": "sample string 36", "Trade_Discount": 1.0, "Master_Distributor": "sample string 37", "Method_Of_Billing": 38, "Send_Email_Statements": 64, "Created_On": "2025-04-04T00:31:44.815-04:00", "Changed_On": "2025-04-04T00:31:44.815-04:00", "Promotions_Applied_Customer": "sample string 42", "DEX_ROW_TS": "2025-04-04T00:31:44.815-04:00", "On_Order_Amount": 1.0, "Credit_Limit_Type": 44, "Finance_Charge_Type": 45, "Finance_Charge_Amt": 46.0, "Finance_Charge_Pct": 47, "Min_Pmt_Type": 48, "Min_Pmt_Amt": 49.0, "Min_Pmt_Pct": 50, "Balance_Type": 51, "Max_Writeoff_Type": 52, "Max_Writeoff_Amt": 53.0, "UserFieldData": [ {}, {}, {} ], "UserFieldNames": [ "sample string 1", "sample string 2", "sample string 3" ], "Notifications": null }, "CustomerAddr": { "Customer_Num": "sample string 1", "Address_Code": "sample string 2", "Address_Use": "sample string 3", "Sales_Person_ID": "sample string 4", "Shipping_Method": "sample string 5", "UPS_Zone": "sample string 6", "Tax_Schedule": "sample string 7", "Alt_Company_Name": "sample string 8", "Contact_Person": "sample string 9", "Address_Line_1": "sample string 10", "Address_Line_2": "sample string 11", "Address_Line_3": "sample string 12", "Country": "sample string 13", "Country_Code": "sample string 14", "City": "sample string 15", "State": "sample string 16", "Zip": "sample string 17", "Phone_1": "sample string 18", "Phone_2": "sample string 19", "Phone_3": "sample string 20", "Fax": "sample string 21", "Modified_On": "2025-04-04T00:31:44.815-04:00", "Created_On": "2025-04-04T00:31:44.815-04:00", "Comment": "sample string 24", "Email": "sample string 25", "Email_To": "sample string 26", "Email_CC": "sample string 27", "Email_BCC": "sample string 28", "Web_Site": "sample string 29", "Login": "sample string 30", "Password": "sample string 31", "Warehouse_Code": "sample string 32", "USERDEF1": "sample string 33", "USERDEF2": "sample string 34", "Dont_Email": true, "Dont_Mail": true, "Sales_Territory": "sample string 35", "Dont_Fax": true, "Address_Validated": true, "Address_Classification": "sample string 36", "File_Location_1": "sample string 37", "File_Location_2": "sample string 38", "DEX_ROW_TS": "2025-04-04T00:31:44.815-04:00", "UserFieldData": [ {}, {}, {} ], "UserFieldNames": [ "sample string 1", "sample string 2", "sample string 3" ], "Notifications": null } }