Appearance
AMZSDD_WebSharedCodeUnits
Shared codeunit service for cross-platform business operations: document management, PDF generation, customer operations, payment processing, and work order posting.
Service Details
| Property | Value |
|---|---|
| Endpoint | /Codeunit/AMZSDD_WebSharedCodeUnits |
| SOAP Namespace | urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits |
| Full URL (Production) | http://nav.amzs.si:7047/DynamicsNAV90-WSC/WS/AMZS%20d.d./Codeunit/AMZSDD_WebSharedCodeUnits |
SOAP Action Pattern: All methods use the action format:
urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:{MethodName}Authentication & User Management
AuthUser
Authenticates a user by username and password (or MD5 hash), returning whether the user exists and whether the account is blocked.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:AuthUser
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
userName | String | In | Username for authentication |
password | String | In | Plaintext password |
mD5Password | String | In | MD5-hashed password (alternative to plaintext) |
blocked | Boolean | In/Out | Whether the account is blocked |
exists | Boolean | In/Out | Whether the user exists in the system |
Result: WSCDAuthUser_Result
| Field | Type | Description |
|---|---|---|
return_value | Boolean | true if authentication succeeded |
blocked | Boolean | true if the account is blocked |
exists | Boolean | true if the user exists |
GetUserRoles
Retrieves the roles and groups assigned to a user.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:GetUserRoles
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
userName | String | In | Username to look up |
userRoles | String | In/Out | Comma-separated list of role codes |
userGroups | String | In/Out | Comma-separated list of group codes |
Result: WSCDGetUserRoles_Result
| Field | Type | Description |
|---|---|---|
userRoles | String | Assigned role codes |
userGroups | String | Assigned group codes |
ChangeUserPassword
Changes the password for a user account.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ChangeUserPassword
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
userName | String | In | Username whose password is being changed |
cPassword | String | In | Current password |
nPassword | String | In | New password |
status | Boolean | In/Out | true if the password change succeeded |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| Boolean | Returns status -- true on success, false on failure |
IsDefinitionCurrent
Checks whether the local definition data is still current compared to the server.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:IsDefinitionCurrent
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
lastDefinitionDate | Date | In | The date of the last definition update on the client |
Return
| Type | Description |
|---|---|
| Boolean | true if the client's definition is still current |
Customer Management
CreateCustomer
Creates a new customer record with full company/individual details.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateCustomer
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In/Out | Customer number (empty to auto-assign; returns assigned number) |
name | String | In | Customer name (line 1) |
name2 | String | In | Customer name (line 2) |
address | String | In | Street address (line 1) |
address2 | String | In | Street address (line 2) |
postCode | String | In | Postal code |
countryCode | String | In | ISO country code |
vATRegistrationNo | String | In | VAT registration number |
taxPayer | Boolean | In | Whether the customer is a tax payer |
foreignCompany | Boolean | In | Whether the customer is a foreign (non-EU) company |
foreignEuCompany | Boolean | In | Whether the customer is a foreign EU company |
memberNo | String | In | AMZS membership number (if applicable) |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | The assigned customer number (no) |
CreateMembershipCustomer
Creates a customer record from an existing AMZS membership.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateMembershipCustomer
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In/Out | Customer number (returns assigned number) |
membershipNo | String | In | Membership number to link |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | The assigned customer number (no) |
CheckMembershipExists
Checks whether a given membership number exists in the system.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckMembershipExists
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
membershipNo | String | In | Membership number to check |
Return
| Type | Description |
|---|---|
| Boolean | true if the membership exists |
GetCustomerNoFromMember
Looks up the customer number associated with a membership or parameter code.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:GetCustomerNoFromMember
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
parameterCode | String | In | Primary lookup code |
parameterCode2 | String | In/Out | Secondary code; returns the customer number |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | The customer number (returned via parameterCode2) |
CheckMemberExpired
Checks whether a customer's membership has expired and returns an error message if so.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckMemberExpired
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
customerNo | String | In | Customer number to check |
errorText | String | In/Out | Error text if membership is expired |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | Error text (returned via errorText); empty if not expired |
LinkCustomerFromMember
Links an existing customer record to a membership number.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:LinkCustomerFromMember
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
customerNo | String | In | Customer number to link |
memberNo | String | In | Membership number to associate |
user_ID | String | In | ID of the user performing the action |
Return
| Type | Description |
|---|---|
| void | No return value |
CheckCustVatNo
Validates a customer's VAT registration number and returns updated customer information.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckCustVatNo
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In/Out | Customer number |
vATRegistrationNo | String | In | VAT registration number to validate |
response | String | In/Out | Validation response message |
webUserID | String | In | ID of the web user performing the action |
Result: WSCDCheckCustVatNo_Result
| Field | Type | Description |
|---|---|---|
no | String | Customer number |
response | String | Validation response message |
UpdateCustVatNo
Updates a customer's VAT registration number and associated company details.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:UpdateCustVatNo
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In/Out | Customer number |
name | String | In/Out | Updated customer name (line 1) |
name2 | String | In/Out | Updated customer name (line 2) |
address | String | In/Out | Updated street address (line 1) |
address2 | String | In/Out | Updated street address (line 2) |
postCode | String | In/Out | Updated postal code |
countryCode | String | In/Out | Updated ISO country code |
vATRegistrationNo | String | In | New VAT registration number |
webUserID | String | In | ID of the web user performing the action |
Result: WSCDUpdateCustVatNo_Result
| Field | Type | Description |
|---|---|---|
no | String | Customer number |
name | String | Updated name (line 1) |
name2 | String | Updated name (line 2) |
address | String | Updated address (line 1) |
address2 | String | Updated address (line 2) |
postCode | String | Updated postal code |
countryCode | String | Updated country code |
GetAMClubByPostCode
Retrieves the AMZS club codes associated with a given postal code.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:GetAMClubByPostCode
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
postCodeNo | String | In | Postal code to look up |
aMClubCodes | String | In/Out | Returned club codes |
Return
| Type | Description |
|---|---|
| String | Club codes for the postal code (returned via aMClubCodes) |
Vehicle Management
CheckVehicleChassis
Checks whether a chassis number is valid and exists in the vehicle registry.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckVehicleChassis
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
chassisNo | String | In | Chassis (VIN) number to check |
isChassis | Boolean | In/Out | true if the chassis number is valid |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| Boolean | Returns isChassis -- true if valid |
TransferCustomerToChassis
Links a customer to a vehicle chassis record and returns the vehicle code.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:TransferCustomerToChassis
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
chassisNo | String | In | Chassis (VIN) number |
customerNo | String | In | Customer number to link |
vehicleCode | String | In/Out | Returns the vehicle code |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | The vehicle code (returned via vehicleCode) |
CreateNewVehicle
Creates a new vehicle record in the system.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateNewVehicle
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
chassisNo | String | In | Chassis (VIN) number for the new vehicle |
customerNo | String | In | Owner customer number |
vehicleNo | String | In/Out | Returns the assigned vehicle number |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | The assigned vehicle number (returned via vehicleNo) |
Document Creation
CreateWorkOrder
Creates a new work order document.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateWorkOrder
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
workOrderNo | String | In/Out | Returns the assigned work order number |
orderType | Integer | In | Type of work order to create |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | The assigned work order number (returned via workOrderNo) |
CreateSalesInvoice
Creates a new sales invoice document.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateSalesInvoice
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
invoiceNo | String | In/Out | Returns the assigned invoice number |
documentType | String | In/Out | Document type code |
webUserID | String | In | ID of the web user performing the action |
Result: WSCDCreateSalesInvoice_Result
| Field | Type | Description |
|---|---|---|
invoiceNo | String | The assigned invoice number |
documentType | String | The document type code |
CreateSalesQuote
Creates a new sales quote document.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateSalesQuote
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
quoteNo | String | In/Out | Returns the assigned quote number |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | The assigned quote number (returned via quoteNo) |
CreatePurchaseOrder
Creates a new purchase order document.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreatePurchaseOrder
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
orderNo | String | In/Out | Returns the assigned purchase order number |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | The assigned order number (returned via orderNo) |
CreateCashRegisterHeader
Creates a new cash register header record.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateCashRegisterHeader
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
cashRegisterNo | String | In/Out | Returns the assigned cash register number |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | The assigned cash register number (returned via cashRegisterNo) |
CreateDrivingSchoolOrder
Creates a new driving school order document.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateDrivingSchoolOrder
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
drivingSchoolOrderNo | String | In/Out | Returns the assigned driving school order number |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | The assigned order number (returned via drivingSchoolOrderNo) |
CreateCreditMemo
Creates a credit memo linked to an existing invoice.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateCreditMemo
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
documentNo | String | In/Out | Returns the assigned credit memo number |
invoiceNo | String | In/Out | The invoice number being credited |
crMemoNote | String | In | Note or reason for the credit memo |
webUserID | String | In | ID of the web user performing the action |
Result: WSCDCreateCreditMemo_Result
| Field | Type | Description |
|---|---|---|
documentNo | String | The assigned credit memo number |
invoiceNo | String | The referenced invoice number |
CreateNewItem
Creates a new item (product/service) in the item catalog.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CreateNewItem
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In/Out | Item number (empty to auto-assign; returns assigned number) |
description | String | In | Item description |
base_Unit_of_Measure | String | In | Base unit of measure code |
eAN_Code | String | In | EAN barcode |
item_Category_Code | String | In | Item category code |
product_Group_Code | String | In | Product group code |
no_2 | String | In | Secondary item number |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | The assigned item number (returned via no) |
Posting & Processing
PostSalesInvoice
Posts (finalizes) a sales invoice, generating the posted invoice number.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:PostSalesInvoice
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In | Sales invoice document number |
invNumbec | String | In/Out | Returns the posted invoice number |
user_ID | String | In | ID of the user performing the action |
Return
| Type | Description |
|---|---|
| String | The posted invoice number (returned via invNumbec) |
PostPurcheseOrder
Posts (finalizes) a purchase order, generating the posted document number.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:PostPurcheseOrder
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In | Purchase order document number |
invNumbec | String | In/Out | Returns the posted document number |
user_ID | String | In | ID of the user performing the action |
Return
| Type | Description |
|---|---|
| String | The posted document number (returned via invNumbec) |
Note
The method name contains a typo (PostPurcheseOrder instead of PostPurchaseOrder). This reflects the actual SOAP endpoint name and must be used as-is.
PostWorkOrder
Posts a work order with a specified posting selection, returning the generated invoice and shipment numbers.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:PostWorkOrder
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
documentNo | String | In/Out | Work order document number |
postingSelection | String | In/Out | Posting selection code (e.g., ship, invoice, or both) |
invoiceNo | String | In/Out | Returns the posted invoice number |
shipmentNo | String | In/Out | Returns the posted shipment number |
webUserID | String | In | ID of the web user performing the action |
Result: WSCDPostWorkOrder_Result
| Field | Type | Description |
|---|---|---|
documentNo | String | The work order document number |
postingSelection | String | The posting selection used |
invoiceNo | String | The generated invoice number |
shipmentNo | String | The generated shipment number |
ChangePaymentMethod
Changes the payment method on a document.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ChangePaymentMethod
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
documentNo | String | In | Document number to update |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| void | No return value |
SetSalesSerials
Sets serial number tracking on a sales document line.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:SetSalesSerials
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
documentType | Integer | In | Document type identifier |
documentNo | String | In | Document number |
documentLineNo | Integer | In | Line number within the document |
serialLineNo | Integer | In | Serial line number to assign |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| void | No return value |
CheckCashRegisterPayments
Validates payments on a cash register document, including insurance agency details.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckCashRegisterPayments
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
docNo | String | In | Cash register document number |
insAgencyCode | String | In | Insurance agency code |
insLineNo | Integer | In | Insurance line number |
user_ID | String | In | ID of the user performing the action |
Return
| Type | Description |
|---|---|
| void | No return value |
WorkOrderCorrection
Applies a correction to a posted work order with a comment explaining the change.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:WorkOrderCorrection
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
docNo | String | In | Work order document number |
comment | String | In | Explanation for the correction |
user_ID | String | In | ID of the user performing the action |
Return
| Type | Description |
|---|---|
| void | No return value |
CheckWorkOrderHours
Validates the recorded hours on a work order.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckWorkOrderHours
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
docNo | String | In | Work order document number |
user_ID | String | In | ID of the user performing the action |
Return
| Type | Description |
|---|---|
| void | No return value |
ReleaseSalesQuote
Releases a sales quote, changing its status from open to released.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ReleaseSalesQuote
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In | Sales quote document number |
user_ID | String | In/Out | ID of the user performing the action |
Return
| Type | Description |
|---|---|
| String | Returns user_ID |
ReopenSalesQuote
Reopens a previously released sales quote, reverting its status to open.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ReopenSalesQuote
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In | Sales quote document number |
user_ID | String | In/Out | ID of the user performing the action |
Return
| Type | Description |
|---|---|
| String | Returns user_ID |
ChangeResCenterOnWO
Changes the responsibility center assigned to a work order.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ChangeResCenterOnWO
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
workOrderNo | String | In | Work order number |
newResCenter | String | In/Out | New responsibility center code |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | The updated responsibility center code (returned via newResCenter) |
UpdateTireLocation
Updates the tire storage location for a work order and returns a user message.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:UpdateTireLocation
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
docNo | String | In | Document number |
userMessage | String | In/Out | Returns a status message to display to the user |
webUserID | String | In | ID of the web user performing the action |
Return
| Type | Description |
|---|---|
| String | Status message (returned via userMessage) |
DrivingSchoolTaskChange
Updates a task assignment on a driving school order line.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:DrivingSchoolTaskChange
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
document_Noa46 | String | In | Document number |
document_Line_Noa46 | Integer | In | Document line number |
usage_Document_Line_Noa46 | Integer | In | Usage document line number |
task_Code | String | In | New task code to assign |
respCenter | String | In | Responsibility center code |
user_ID | String | In | ID of the user performing the action |
Return
| Type | Description |
|---|---|
| void | No return value |
Payment Amounts
ShowPaymentAmount
Calculates and returns the payment breakdown for a sales invoice, including total, differential amount, and cash return.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ShowPaymentAmount
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In | Invoice document number |
totalAmount | BigDecimal | In/Out | Total amount due |
differentAmountToPay | BigDecimal | In/Out | Differential amount to pay |
cashAccepted | BigDecimal | In | Amount of cash accepted from the customer |
cashToReturn | BigDecimal | In/Out | Amount of cash to return to the customer |
user_ID | String | In/Out | ID of the user performing the action |
Result: WSCDShowPaymentAmount_Result
| Field | Type | Description |
|---|---|---|
totalAmount | BigDecimal | Total amount due |
differentAmountToPay | BigDecimal | Differential amount to pay |
cashToReturn | BigDecimal | Cash to return to the customer |
user_ID | String | User ID |
ShowPaymentAmountOrder
Calculates and returns the payment breakdown for a work order.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ShowPaymentAmountOrder
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In | Work order document number |
totalAmount | BigDecimal | In/Out | Total amount due |
differentAmountToPay | BigDecimal | In/Out | Differential amount to pay |
cashAccepted | BigDecimal | In | Amount of cash accepted from the customer |
cashToReturn | BigDecimal | In/Out | Amount of cash to return to the customer |
webUserID | String | In | ID of the web user performing the action |
Result: WSCDShowPaymentAmountOrder_Result
| Field | Type | Description |
|---|---|---|
totalAmount | BigDecimal | Total amount due |
differentAmountToPay | BigDecimal | Differential amount to pay |
cashToReturn | BigDecimal | Cash to return to the customer |
ShowPaymentAmountQuote
Calculates and returns the payment breakdown for a sales quote.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ShowPaymentAmountQuote
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In | Sales quote document number |
totalAmount | BigDecimal | In/Out | Total amount due |
differentAmountToPay | BigDecimal | In/Out | Differential amount to pay |
cashAccepted | BigDecimal | In | Amount of cash accepted from the customer |
cashToReturn | BigDecimal | In/Out | Amount of cash to return to the customer |
user_ID | String | In/Out | ID of the user performing the action |
Result: WSCDShowPaymentAmountQuote_Result
| Field | Type | Description |
|---|---|---|
totalAmount | BigDecimal | Total amount due |
differentAmountToPay | BigDecimal | Differential amount to pay |
cashToReturn | BigDecimal | Cash to return to the customer |
user_ID | String | User ID |
Gift Cards
CheckGiftCard
Checks whether a gift card serial number exists and returns its type.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:CheckGiftCard
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
serialNo | String | In | Gift card serial number |
exists | Boolean | In/Out | true if the gift card exists |
type | Integer | In/Out | Gift card type code |
user_ID | String | In | ID of the user performing the action |
Result: WSCDCheckGiftCard_Result
| Field | Type | Description |
|---|---|---|
exists | Boolean | Whether the gift card was found |
type | Integer | Gift card type code |
ConsumeGiftCard
Consumes (redeems) a gift card against a document for a specified amount.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:ConsumeGiftCard
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
serialNo | String | In | Gift card serial number |
documentNo | String | In | Document number to apply the gift card to |
documentDate | Date | In | Document date |
consumationAmount | BigDecimal | In | Amount to consume from the gift card |
user_ID | String | In | ID of the user performing the action |
Return
| Type | Description |
|---|---|
| void | No return value |
Metadata
GetTableMetadata
Retrieves metadata for a NAV table by its numeric ID.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:GetTableMetadata
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
tableId | Integer | In | NAV table ID |
data | String | In/Out | Returns the metadata as a serialized string |
Return
| Type | Description |
|---|---|
| String | Table metadata (returned via data) |
GetTableMetadataFromWSName
Retrieves metadata for a NAV table by its web service name.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:GetTableMetadataFromWSName
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
wSName | String | In | Web service name of the table |
metaData | String | In/Out | Returns the metadata as a serialized string |
Return
| Type | Description |
|---|---|
| String | Table metadata (returned via metaData) |
GetLookupRecords
Retrieves lookup records based on a structured request object.
SOAP Action: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:GetLookupRecords
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
GetLookupRecords | WSCDGetLookupRecords | In | Structured lookup request object |
Return
| Type | Description |
|---|---|
| String | The lookup result (returned via resoult field) |
PDF Generation
Base64-Encoded PDF Content
All PDF generation methods return the document as a base64-encoded string in the pDF field. Decode this value to obtain the raw PDF binary data. The mime field will typically be application/pdf, and documentName provides the suggested filename.
All 15 PDF methods share a common pattern for parameters and response structure. They generate a PDF representation of the specified document and return it along with metadata and printer settings.
Common Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
no | String | In | Document number to generate the PDF for |
user_ID | String | In | ID of the user requesting the PDF |
pDF | String | In/Out | Returns the base64-encoded PDF content |
documentName | String | In/Out | Returns the suggested document filename |
mime | String | In/Out | Returns the MIME type (typically application/pdf) |
printerSettings | String | In/Out | Returns printer configuration settings |
Common Result Fields
| Field | Type | Description |
|---|---|---|
pDF | String | Base64-encoded PDF binary content |
documentName | String | Suggested filename for the document |
mime | String | MIME type of the content |
printerSettings | String | Printer configuration settings |
PDF Methods Reference
| # | Method | SOAP Action | Result Type | Description |
|---|---|---|---|---|
| 46 | GetInvoicePDF | ...:GetInvoicePDF | WSCDGetInvoicePDF_Result | Posted sales invoice PDF |
| 47 | GetInvoice2PDF | ...:GetInvoice2PDF | WSCDGetInvoice2PDF_Result | Alternative posted sales invoice PDF (variant layout) |
| 48 | GetSalesQuotePDF | ...:GetSalesQuotePDF | WSCDGetSalesQuotePDF_Result | Sales quote document PDF |
| 49 | GetQuotePDF | ...:GetQuotePDF | WSCDGetQuotePDF_Result | Quote document PDF |
| 50 | GetWorkOrderPDF | ...:GetWorkOrderPDF | WSCDGetWorkOrderPDF_Result | Work order document PDF (page 1) |
| 51 | GetWorkOrderPage2PDF | ...:GetWorkOrderPage2PDF | WSCDGetWorkOrderPage2PDF_Result | Work order document PDF (page 2) |
| 52 | GetWorkOrderBothPage2PDF | ...:GetWorkOrderBothPage2PDF | WSCDGetWorkOrderBothPage2PDF_Result | Work order document PDF (both pages combined) |
| 53 | GetWOInvoicePDF | ...:GetWOInvoicePDF | WSCDGetWOInvoicePDF_Result | Work order posted invoice PDF |
| 54 | GetWOShipmentPDF | ...:GetWOShipmentPDF | WSCDGetWOShipmentPDF_Result | Work order posted shipment PDF |
| 55 | GetStorageReceivePDF | ...:GetStorageReceivePDF | WSCDGetStorageReceivePDF_Result | Storage receive document PDF |
| 56 | GetStorageOutputPDF | ...:GetStorageOutputPDF | WSCDGetStorageOutputPDF_Result | Storage output document PDF |
| 57 | GetCreditMemoPDF | ...:GetCreditMemoPDF | WSCDGetCreditMemoPDF_Result | Posted credit memo PDF |
| 58 | GetReceiptPDF | ...:GetReceiptPDF | WSCDGetReceiptPDF_Result | Cash receipt PDF |
| 59 | GetDrivSchoolOrderPDF | ...:GetDrivSchoolOrderPDF | WSCDGetDrivSchoolOrderPDF_Result | Driving school order PDF |
| 60 | GetBalanceOverviewPDF | ...:GetBalanceOverviewPDF | WSCDGetBalanceOverviewPDF_Result | Balance overview report PDF |
SOAP Action Prefix
In the table above, ... represents urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits. The full SOAP action for each method follows the pattern: urn:microsoft-dynamics-schemas/codeunit/AMZSDD_WebSharedCodeUnits:{MethodName}
GetBalanceOverviewPDF -- Special Parameters
GetBalanceOverviewPDF (method 60) differs from the other PDF methods in that it accepts date filter parameters instead of a single document number.
| Name | Type | Direction | Description |
|---|---|---|---|
dateFilter | String | In | Date range filter for the balance overview |
documentDatefilter | String | In | Document date range filter |
user_ID | String | In | ID of the user requesting the PDF |
pDF | String | In/Out | Returns the base64-encoded PDF content |
documentName | String | In/Out | Returns the suggested document filename |
mime | String | In/Out | Returns the MIME type |
printerSettings | String | In/Out | Returns printer configuration settings |