User Tools

Site Tools


webapi:examples:customers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
webapi:examples:customers [2020/01/10 13:20 (4 years ago)] kevinwebapi:examples:customers [2020/01/14 09:02 (4 years ago)] kevin
Line 4: Line 4:
  
 <note> <note>
-If you were to update an address using /update_Retail_Customer of the source Billing or Shipping customer.  Re-printing a  past order will have the address updated when printed at that new point in time.  In our clients retail business, this is typically not a challenge as the order is shipped and dealt with well before a future address change takes place.  With business to consumer website workflow, multiple orders with different ship to locations could be imported in close succession and poses a problem.+If you were to update an address using /update_Retail_Customer of the source Billing or Shipping customer.  Re-printing a  past order will have the address updated when printed at that new point in time.  In our clients retail business, this is typically not a challenge as the order is shipped and dealt with well before a future address change takes place.  With business to consumer website workflow, multiple orders with different ship to locations could be imported in close succession and pose a problem.
 </note> </note>
  
Line 18: Line 18:
   * Else create a new customer using Customer/addCustomer   * Else create a new customer using Customer/addCustomer
  
 +===== Sample Customer JSON =====
 +<code>
 +{
 +  "Customers": [
 +    {
 +      "Unique": 0,
 +      "Name": "string",
 +      "FirstName": "string",
 +      "LastName": "string",
 +      "Addr1": "string",
 +      "Addr2": "string",
 +      "City": "string",
 +      "Postal": "string",
 +      "State": "string",
 +      "Country": "string",
 +      "Phone1": "string",
 +      "Phone2": "string",
 +      "Phone3": "string",
 +      "APDiscount": 0,
 +      "APDiscountRule": 0,
 +      "APDiscountDays": 0,
 +      "Balances": {
 +        "C_BALANCE": 0,
 +        "C_DEPOSIT": 0,
 +        "C_SB_30": 0,
 +        "C_SB_60": 0,
 +        "C_SB_90": 0,
 +        "CN_BALANCE": 0,
 +        "CN_DEPOSIT": 0,
 +        "C_PO_BILLED": 0
 +      },
 +      "Duty": "string",
 +      "FedTax": "string",
 +      "AutoDiscount": "string",
 +      "DueDays": 0,
 +      "PriceSchedule": 0,
 +      "ContractDate": "string",
 +      "Salesman": 0,
 +      "CSType": "string",
 +      "Terms": "string",
 +      "Interest": 0,
 +      "TaxStatus": "string",
 +      "TaxNumber": "string",
 +      "BankInfo": "string",
 +      "ShipNo": 0,
 +      "CreditLimit": 0,
 +      "StandingPO": "string",
 +      "POExpiryDate": "string",
 +      "POMaximumValue": 0,
 +      "POBilledSoFar": 0,
 +      "GSTExempt": "string",
 +      "Department": 0,
 +      "TaxCode": "string",
 +      "Number": "string",
 +      "DisNv": 0,
 +      "DisStat": 0,
 +      "RetailType": "string",
 +      "Foreign": "string",
 +      "LastVisit": "string",
 +      "Email": "string",
 +      "WebComments": "string",
 +      "Password": "string",
 +      "EFTAccount": "string",
 +      "EFTBank": "string",
 +      "EFTName": "string",
 +      "TimeZone": 0,
 +      "ShippingAddress": "string",
 +      "Contacts": [
 +        {
 +          "ContactId": 0,
 +          "FirstName": "string",
 +          "LastName": "string",
 +          "City": "string",
 +          "Country": "string",
 +          "State": "string",
 +          "Postal": "string",
 +          "Phone1": "string",
 +          "Phone2": "string",
 +          "Email": "string",
 +          "Address1": "string",
 +          "Address2": "string"
 +        }
 +      ],
 +      "FreeFormGroup": [
 +        {
 +          "FreeFormData": "string",
 +          "FreeFormID": 0
 +        }
 +      ],
 +      "ShipName": "string",
 +      "ShipAddr1": "string",
 +      "ShipAddr2": "string",
 +      "ShipCity": "string",
 +      "ShipPostal": "string",
 +      "ShipState": "string",
 +      "ShipCountry": "string",
 +      "ShipPhone1": "string"
 +    }
 +  ],
 +  "ConnectionInfo": {
 +    "TerminalNumber": 0
 +  }
 +}
 +</code>
  
 Continue on to [[webapi:examples:invoice|Adding an Invoice]] Continue on to [[webapi:examples:invoice|Adding an Invoice]]
webapi/examples/customers.txt · Last modified: 2020/04/21 17:26 (4 years ago) by kevin