Customer - methods

Uwaga: In a Financials Only business unit, the fields DefaultCarrier, DefaultDispatchWarehouse, DefaultReturnLocation, DefaultSalesDefinitionCode, DefaultSalesperson and PrimaryDeliveryAddress are not applicable. Therefore, payload values for these fields will not be applied when using the Amend, BulkCreateOrAmend, Create and CreateOrAmend methods.

Amend

Driver Type: SASI

Use this method to amend customers. If the customer does not exist, an error message is produced and the payload is rejected.

Uwaga: You cannot use this method to amend the status of a Customer. Instead, use one of the Open, Hidden, SuspendedHeld or Closed methods.

BulkCreateOrAmend

Driver Type: DJI

Use this method for the bulk loading of customer data or bulk amendment of customer data, or where performance is critical.

Uwaga: Although the SASI method accepts dates and periods with slashes, the DJI method does not and expects dates in ddmmyyyy format and periods in pppyyyy format.

You cannot use this method to amend the status of a Customer. Instead, use one of the Open, Hidden, SuspendedHeld or Close methods.

Closed

Driver Type: SASI

Use this method to amend the status of a customer to Closed.

Create

Driver Type: SASI

Use this method to create customers. If the customer already exists, an error message is produced and the payload is rejected.

CreateOrAmend

Driver Type: SASI

This method creates a customer if it does not exist already and amends it if it does. Whereas the Create and Amend methods depend on you to know whether the data does or does not exist in advance, this method can be used if you are unsure.

Uwaga: You cannot use this method to amend the status of a Customer. Instead, use one of the Open, Hidden, SuspendedHeld or Closed methods.

CreateReplaceOrDelete

Driver Type: SASI

Use this method to synchronize customers. The customer is created if it does not exist already and replaced if it does. If the customer does not exist in the originating business unit, it is deleted.

Delete

Driver Type: SASI

Use this method to delete customers.

DeleteChildData

Driver Type: SASI

This method deletes child data (Delivery Addresses, Invoice Addresses, Contact Addresses, Acknowledgement Addresses, Customer Document Formats) but retains the parent record (Customer).

Uwaga: Standard Text should be deleted using the Delete method for the StandardTextLanguageVariants component.

Hidden

Driver Type: SASI

Use this method to amend the status of a customer to Hidden.

Open

Driver Type: SASI

Use this method to amend the status of a customer to Open.

Query

Driver Type: Export

You can use this method to obtain customer details or to extract customer data from SunSystems.

SuspendedHeld

Driver Type: SASI

Use this method to amend the status of a customer to Suspended/Held.