NAV
Agility v611
json

Overview

The AgilityPublic and Agility APIs are Application Programming Interfaces that can be accessed over the internet and executed on a remote system hosting the requested services. These APIs allow a client application to make service requests for the operations (methods) that are exposed. These operations are limited to the operations DMSi elects to expose and various levels of security allow the network, database, and/or system administrators to restrict access to the API functionality.

The goals of the AgilityPublic and Agility APIs:

This document is intended as a high level overview of the DMSi APIs and the methods available in the REST APIs and their services.

URL Information

Testing Tool

General Information

Field Data Types

Character

Date

Date/Time

Decimal (0.00 or 0.0000)

Integer (0)

Logical

Data-Chunking

RecordFetchLimit

ChunkStartPointer

MoreResultsAvailable

NextChunkStartPointer

Parent/Child Relationships

Input Parameters

Casing must be taken into consideration with input parameters.

Special Characters

Special character values such as < or > must be entered with the ESC characters to pass XML standards. For example, to enter a route of <all>, enter the value as &lt;all&gt; Please consult outside documentation for acceptable translations of special characters.

ReturnCode and MessageText Notes

AgilityPublic API Technical Information

The AgilityPublic API is deployed using REST supporting .NET and Progress clients. This API utilizes RPC with JSON. It uses a state-free session model architecturally, but functionally requires that the client logs in to get a context ID and Branch before business requests are made.

The parameter signatures for the methods that can be requested from the web service are simple data types, with the exception of data structured in records. Groups of records are passed as a complex type that can be translated from/to a dataset.

The login request returns the client’s initial Branch ID as well as the context ID when login has been successful. Branch in Agility means a defined portion of the business that Agility serves. For most Agility systems, branch refers to physical locations, like the Omaha branch and the Milwaukee branch. Some Agility systems are set up such that branches represent something other than location, like functional departments. While some Agility systems have many branches and others have as few as one, there is always at least one branch in Agility, and all Agility processes are performed from the perspective of a particular branch. Therefore, to ensure the user is valid, the context ID and branch ID must be sent in the header for each request.

Note that if a particular context ID is not used to run a program for a certain amount of time, that context ID times out. When the time out occurs, the next request of the server from that client using that context id is rejected. The default time out setting is 4 hours, but the system manager of the Agility system serving the requests can change the value, up to a maximum of 24 hours.

The User ID and Password that are required by the login request are maintained and supplied by the system manager of the Agility system serving the requests. This is not a hard-coded User ID and Password that are specific to a particular usage of Agility Web Services. In other words there is no DMSi-mandated User ID designated for a specific product that interfaces with Agility. Each DMSi customer is allowed to set their own level of security for all User IDs, including the User IDs they create to allow Agility access for 3rd party products.

The AgilityPublic API supports versioning as DMSi routinely makes enhancements and changes to the web services. Changes to web services are detailed in the release notes and, depending on the change, within help documentation with each Agility version.

All API payloads are delivered encrypted while in transit.

AgilityPublic/AccountsPayable Service

This AgilityPublic service contains methods related to creating and updating accounts payable information.

InvoiceCreate

Sample Request

{
  "request": {
    "dsInvoiceRequest": {
      "dtInvoiceHeaderRequest": [
        {
          "InvoiceID": "01251901",
          "InvoiceDate": "2019-01-25",
          "PostingPeriod": 1,
          "PostingYear": 2019,
          "SupplierID": "WEH",
          "SupplierRemitToSequence": 1,
          "EnforceSupplierMatch": true,
          "PaymentMethod": "Check",
          "PaymentTermsCode": "",
          "DueDate": null,
          "BatchID": "1",
          "Requires1099": false,
          "Payment1099TypeCode": "",
          "Taxable": false,
          "TaxAmount": null,
          "TaxCode": "",
          "DiscountDate": null,
          "DiscountAmount": 0,
          "VoucherStatus": "Ready for Payment",
          "FreightID": "",
          "CashGLAccount": "",
          "DiscountGLAccount": "",
          "APGLAccount": "",
          "PaymentRemark": "",
          "HandlingCode": "FEDEX",
          "HandlingCodeAddlInfo": "FAST",
          "SuppressCurrencyMatch": false
        }
      ],
      "dtInvoiceOrdersRequest": [
        {
          "TranOrAPReconID": "8003",
          "Amount": 0,
          "DiscountableAmount": 0,
          "TaxAmount": 0
        }
      ],
      "dtExpenseAccountsRequest": [
        {
          "GLExpAccount": "0100120004",
          "Amount": 0,
          "ProjectNumber": null,
          "Remark": null
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "VoucherNumber": 2170,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates an A/P invoice

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

AgilityPublic/AccountsReceivable Service

This AgilityPublic service contains methods related to creating and updating accounts receivable information.

BalancesList

Sample Request

{
  "request": {
    "CustomerID": "12345"
  }
}

Sample Response

{
  "response": {
    "BalanceResponse": {
      "dsARBalanceResponse": {
        "dtARBalanceHeaderResponse": [
          {
            "CustomerID": "12345",
            "BranchID": "WESTONBRANCH",
            "ProcessDate": "2019-01-17",
            "CustomerName": "DAA Hardware and Supply",
            "AccountBalance": -679793.05,
            "FutureBalance": 0,
            "CurrentBalance": -841956.04,
            "PastDueBalance1": 0,
            "PastDueBalance2": -500,
            "PastDueBalance3": 0,
            "PastDueBalance4": 0,
            "FinanceChargeTotal": 0,
            "PaymentOnAcctTotal": -829596.37,
            "DepositOnAcctTotal": -12359.67,
            "OnHoldTotal": 0,
            "TermsDiscountTotal": 0,
            "LastPaymentDate": "2018-09-18",
            "LastPaymentAmount": 354.05,
            "PastDueBalance1Label": "2-30 Days",
            "PastDueBalance2Label": "31-60 Days",
            "PastDueBalance3Label": "61-90 Days",
            "PastDueBalance4Label": "Over 90 Days",
            "dtARBalanceDetailResponse": [
              {
                "CustomerID": "12345",
                "BranchID": "WESTONBRANCH",
                "ProcessDate": "2019-01-17",
                "InvoiceBranchID": "CENTRALBRNCH",
                "InvoiceNumber": "CA-000000222",
                "InvoiceNumberSequence": 0,
                "TransactionID": 0,
                "ShipmentNumber": 0,
                "InvoiceType": "Payment on Account",
                "ShipToSequence": 1,
                "BillToSequence": 1,
                "CustomerPO": "",
                "InvoiceOnHold": false,
                "ShipDate": null,
                "InvoiceDate": "2018-02-21",
                "InvoiceDueDate": "2018-02-21",
                "TermsCode": "",
                "TermsDescription": "",
                "TermsDiscountDate": null,
                "TermsDiscountAmount": 0,
                "InvoiceSubtotal": -500,
                "InvoiceChargesAmount": 0,
                "InvoiceTaxAmount": 0,
                "InvoiceTotal": -500,
                "InvoicePaymentAdjustAmount": 0,
                "InvoiceBalance": -500,
                "TransactionReference": "",
                "TransactionJob": "",
                "PaymentId": "02212018002741",
                "CMOrigInvoiceNumber": "",
                "ShipToName": "",
                "ShipToAddress1": "",
                "ShipToAddress2": "",
                "ShipToAddress3": "",
                "ShipToCity": "",
                "ShipToState": "",
                "ShipToZip": "",
                "PastDueBalanceBucket": ""
              }
            ]
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns the current AR aging information and related invoices

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

CashReceiptsACHPayment

Sample Request

{
  "request": {
    "CashReceiptsPaymentJSON": {
      "dsCashReceiptsPaymentRequest": {
        "dtCashReceiptsPaymentRequest": [
          {
            "CustomerID": "ATHOME",
            "ShiptoSequence": 1,
            "BilltoSequence": 1,
            "BankGUID": "1013f4e-2f02-128b-6614-aabd68261354",
            "AmountTendered": 100,
            "PaymentDate": null
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "CashReceiptsPaymentJSONResponse": {
      "dsARInvoiceResponse": {
        "dtARInvoiceResponse": [
          {
            "InvoiceNumber": "CA-000001169",
            "AmountTendered": 100,
            "PaymentID": "03042022009608"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates ACH cash on account using the bank specified

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v555

CashReceiptsCCManualPayment

Sample Request

{
  "request": {
    "CashReceiptsPaymentJSON": {
      "dsCashReceiptsPaymentRequest": {
        "dtCashReceiptsPaymentRequest": [
          {
            "CustomerID": "ATHOME",
            "ShiptoSequence": 1,
            "BilltoSequence": 1,
            "ProcessorTransactionID": "133982036",
            "PaymentDate": null
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "CashReceiptsPaymentJSONResponse": {
      "dsARInvoiceResponse": {
        "dtARInvoiceResponse": [
          {
            "InvoiceNumber": "CA-000001169",
            "AmountTendered": 212,
            "ApprovedAmount": 212,
            "PaymentID": "133982036"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates cash on a customer account using the ID from a previously processed transaction.

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v555

CashReceiptsCCTokenPayment

Sample Request

{
  "request": {
    "CashReceiptsPaymentJSON": {
      "dsCashReceiptsPaymentRequest": {
        "dtCashReceiptsPaymentRequest": [
          {
            "CustomerID": "SH001",
            "ShiptoSequence": 1,
            "BilltoSequence": 1,
            "PaymentAccountID": "D91A5-4EF3-9968-3E35F0F562A8",
            "AllowTokenDelete": false,
            "AmountTendered": 100,
            "PaymentDate": null,
            "Surcharge": 3,
            "SurchargeBasis": "Percent",
            "UseAgilitySurcharge": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "CashReceiptsPaymentJSONResponse": {
      "dsARInvoiceResponse": {
        "dtARInvoiceResponse": [
          {
            "InvoiceNumber": "CA-000000002",
            "AmountTendered": 100,
            "Surcharge": 3,
            "ApprovedAmount": 103,
            "PaymentID": "148473539",
            "dtARReceiptResponse": [
              {
                "MerchantName": "Nebraska Pro Dealer",
                "MerchantAddress1": "1460 35th Ave",
                "MerchantAddress2": "",
                "MerchantCity": "Columbus",
                "MerchantState": "NE",
                "MerchantZIP": "68601",
                "TransactionAmount": 100,
                "TransactionDate": "2022-05-13",
                "AccountNumber": "xxxx-xxxx-xxxx-5550",
                "AuthorizationCode": "148473539",
                "ApplicationID": "961",
                "SurchargeAmount": 3,
                "SurchargeDescriptor": "Surcharge",
                "CardNetworkName": "Visa",
                "ApplicationLabel": "Agility",
                "TerminalID": "0001",
                "CardholderName": "Sunset Hills",
                "SalesTaxAmount": 0,
                "TransactionType": "CreditCardSale",
                "EntryMode": "Keyed",
                "ApprovalNumber": "000016",
                "HostResponse": "000/AP"
              }
            ]
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates cash on a customer account using a saved credit card token

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v555; surcharge fields added in v556

CreditStatusUpdate

Sample Request

{
    "request": {
        "SalesOrderID": 1000346179,
        "ShipmentNum": 0,
        "CreditStatusUpdateJSON": {
            "dsCreditStatusUpdateRequest": {
                "dtCreditStatusUpdateRequest": [{
                    "CreditStatus": "Pending",
                    "PendingNote": "Awaiting Phone Call"
                }]
            }
        }
    }
}

Sample Response

{
    "response": {
        "ReturnCode": 0,
        "MessageText": ""
    }
}

Purpose

Change the credit hold status of an existing Sales Order

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v601

CustomerACHBankList

Sample Request

{
  "request": {
    "CustomerACHBankListJSON": {
      "dsCustomerRequest": {
        "dtCustomerRequest": [
          {
            "CustomerID": "ATHOME",
            "ShiptoSequence": 1,
            "BilltoSequence": 0
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "CustomerACHBankListJSONResponse": {
      "dsACHBankAccountResponse": {
        "dtACHBankAccountResponse": [
          {
            "CustomerID": "ATHOME",
            "CustomerType": "Ship-to",
            "ShiptoBilltoSequence": 1,
            "BankName": "SHIPTO 1-1",
            "BankAcctName": "Ship-to 1 account name",
            "TruncatedAccountNumber": "Acct ending 0123",
            "BankGUID": "1026a-da9c-8214-8e3fd0ce006b",
            "AccountType": "Savings",
            "DefaultAccountForCashApp": false
          },
          {
            "CustomerID": "BUIL103",
            "CustomerType": "Ship-to",
            "ShiptoBilltoSequence": 1,
            "BankName": "SHIPTO 1-2",
            "BankAcctName": "",
            "TruncatedAccountNumber": "Acct ending 7439",
            "BankGUID": "1031351385-9014-c15f98655c8b",
            "AccountType": "Checking",
            "DefaultAccountForCashApp": false
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of approved customer bank records for a specific customer ship-to or bill-to

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v556

CustomerOpenActivity

Sample Request

{
  "request": {
    "CustomerID": "IDEAL",
    "ShiptoSequence": 1
  }
}

Sample Response

{
  "response": {
    "OrdersResponse": {
      "dsOrdersResponse": {
        "dtOrderResponse": [
          {
            "BranchID": "1MELISSA",
            "OrderID": 2238,
            "CustomerID": "IDEAL",
            "ShipToSequence": 1,
            "OrderedBy": "",
            "OrderDate": "2021-11-11",
            "ExpectedDate": "2021-11-11",
            "OrderStatus": "Open",
            "OrderProcessStatus": "",
            "CreditHoldStatus": "",
            "SaleType": "WH",
            "SaleTypeDescription": "Warehouse",
            "TransactionJob": "",
            "TransactionReference": "",
            "CustomerPO": "",
            "RouteID": "",
            "ShipVia": "FedEx",
            "FreightTerms": "",
            "PayTermsCode": "NET30",
            "OrderSubtotal": 20.02,
            "OrderChargesAmount": 0,
            "Taxable": true,
            "TaxCode": "AK",
            "OrderTaxAmount": 0,
            "OrderTotal": 20.02,
            "DiscountAmount": 0,
            "AfterDeductFreightAmt": 0,
            "ShipToName": "Ideal Building Supply",
            "ShipToAddress1": "3333 R Road",
            "ShipToAddress2": "",
            "ShipToAddress3": "",
            "ShipToCity": "Cook",
            "ShipToState": "NE",
            "ShipToCountry": "USA",
            "ShipToZip": "68130",
            "ShipToPhone": "(402)-440-6890",
            "BillToName": "Ideal Building Supply",
            "BillToAddress1": "3333 R Road",
            "BillToAddress2": "",
            "BillToAddress3": "",
            "BillToCity": "Cook",
            "BillToState": "NE",
            "BillToCountry": "USA",
            "BillToZip": "68130",
            "BillToPhone": "(402)-440-6890",
            "SalesAgentID1": "AGENT1",
            "SalesAgentName1": "Sales Agent 1",
            "SalesAgentID2": "",
            "SalesAgentName2": "",
            "SalesAgentID3": "",
            "SalesAgentName3": "",
            "SalesAgentID4": "",
            "SalesAgentName4": "",
            "SalesAgentID5": "",
            "SalesAgentName5": "",
            "SalesAgentID6": "",
            "SalesAgentName6": "",
            "UpdateDate": "2021-11-11",
            "UpdateTime": "12:46:11",
            "ContactEmail": "",
            "ContactName": "",
            "ContactPhone": "",
            "ShipComplete": false,
            "CostTotal": 22,
            "CostType": "Item default",
            "TotalWeight": 2,
            "TotalLoad": 2,
            "dtOrderDetailResponse": [
              {
                "BranchID": "1MELISSA",
                "OrderID": 2238,
                "Sequence": 1,
                "DisplaySequence": 1,
                "LineType": "SO",
                "ItemCode": "PI-BLANK-A100",
                "ItemSize": "50ct",
                "ItemDescription": "Common Nails",
                "TotalOrderedQuantity": 2,
                "QuantityUOM": "EA",
                "GrossPrice": 10.01,
                "NetPrice": 10.01,
                "PriceUOM": "EA",
                "DiscountDescription": "",
                "Taxable": true,
                "ExtendedPrice": 20.02,
                "TotalBackorderedQuantity": 0,
                "TotalStagedQuantity": 0,
                "TotalUnstagedQuantity": 2,
                "TotalInvoicedQuantity": 0,
                "LinkedTranType": "",
                "LinkedTranID": 0,
                "LinkedTranSequence": 0,
                "CustomerPOLineNumber": "000001",
                "DepartmentName": "",
                "DepartmentNumber": "",
                "PartNumber": "",
                "SKU": "",
                "UPCCode": "",
                "ExtCost": 21.9994,
                "ExtWeight": 2,
                "ExtLoad": 2,
                "ExpectedDate": "2021-11-11",
                "ItemXrefUsedToOrder": "",
                "RelatedQuoteBranchID": "CENTRALBRNCH",
                "RelatedQuoteID": 300160114,
                "RelatedQuoteExternalSource": "",
                "RelatedQuoteExternalProjectID": "GRIDS-ABC"
              }
            ]
          }
        ]
      }
    },
    "QuotesResponse": {
      "dsQuotesResponse": {
        "dtQuoteResponse": [
          {
            "BranchID": "1MELISSA",
            "QuoteID": 2239,
            "HeaderGUID": "102944-eb05-2ca1-8a14-0fea006d75a8",
            "QuoteType": "",
            "CustomerID": "IDEAL",
            "ShipToSequence": 1,
            "QuotedBy": "mwellensiek",
            "QuotedFor": "",
            "QuoteDate": "2021-11-11",
            "ActivationDate": "2021-11-11",
            "ClosedDate": "2022-03-11",
            "QuoteProcessStatus": "Open",
            "SaleType": "WH",
            "SaleTypeDescription": "Warehouse",
            "TransactionJob": "",
            "TransactionReference": "",
            "CustomerPO": "",
            "ShipVia": "FedEx",
            "FreightTerms": "",
            "PayTermsCode": "NET30",
            "OrderSubtotal": 20.02,
            "OrderChargesAmount": 0,
            "Taxable": true,
            "TaxCode": "AK",
            "OrderTaxAmount": 0,
            "OrderTotal": 20.02,
            "DiscountAmount": 0,
            "AfterDeductFreightAmt": 0,
            "ShipToName": "Ideal Building Supply",
            "ShipToAddress1": "3333 R Road",
            "ShipToAddress2": "",
            "ShipToAddress3": "",
            "ShipToCity": "Cook",
            "ShipToState": "NE",
            "ShipToCountry": "USA",
            "ShipToZip": "68130",
            "ShipToPhone": "(402)-440-6890",
            "BillToName": "Ideal Building Supply",
            "BillToAddress1": "3333 R Road",
            "BillToAddress2": "",
            "BillToAddress3": "",
            "BillToCity": "Cook",
            "BillToState": "NE",
            "BillToCountry": "USA",
            "BillToZip": "68130",
            "BillToPhone": "(402)-440-6890",
            "SalesAgentID1": "AGENT1",
            "SalesAgentName1": "Sales Agent 1",
            "SalesAgentID2": "",
            "SalesAgentName2": "",
            "SalesAgentID3": "",
            "SalesAgentName3": "",
            "SalesAgentID4": "",
            "SalesAgentName4": "",
            "SalesAgentID5": "",
            "SalesAgentName5": "",
            "SalesAgentID6": "",
            "SalesAgentName6": "",
            "ExpectedDate": "2021-11-11",
            "dtQuoteDetailResponse": [
              {
                "BranchID": "1MELISSA",
                "QuoteID": 2239,
                "Sequence": 1,
                "DisplaySequence": 1,
                "ItemCode": "PI-BLANK-A100",
                "ItemSize": "50ct",
                "ItemDescription": "Common Nails",
                "DetailProcessStatus": "Open",
                "TotalOrderedQuantity": 2,
                "QuantityUOM": "EA",
                "GrossPrice": 10.01,
                "NetPrice": 10.01,
                "PriceUOM": "EA",
                "DiscountDescription": "",
                "Taxable": true,
                "ExtendedPrice": 20.02,
                "WOPhrase": "",
                "DetailGroupID": "",
                "TotalReleasedQuantity": 0,
                "TotalRemainingQuantity": 9
              }
            ]
          }
        ]
      }
    },
    "CreditMemosResponse": {
      "dsCreditMemosResponse": {
        "dtCreditMemoResponse": [
          {
            "BranchID": "1MELISSA",
            "OrderID": 2237,
            "CustomerID": "IDEAL",
            "ShipToSequence": 1,
            "OrderedBy": "Melissa",
            "OrderDate": "2021-11-11",
            "ExpectedDate": null,
            "OrderStatus": "Open",
            "OrderProcessStatus": "",
            "CreditHoldStatus": "",
            "ApprovalStatus": "Hold",
            "SaleType": "WH",
            "SaleTypeDescription": "Warehouse",
            "TransactionJob": "",
            "TransactionReference": "",
            "CustomerPO": "",
            "RouteID": "",
            "ShipVia": "FedEx",
            "FreightTerms": "",
            "PayTermsCode": "NET30",
            "OrderSubtotal": -10.01,
            "OrderChargesAmount": 0,
            "Taxable": true,
            "TaxCode": "AK",
            "OrderTaxAmount": 0,
            "OrderTotal": -10.01,
            "DiscountAmount": 0,
            "AfterDeductFreightAmt": 0,
            "ShipToName": "Ideal Building Supply",
            "ShipToAddress1": "3333 R Road",
            "ShipToAddress2": "",
            "ShipToAddress3": "",
            "ShipToCity": "Cook",
            "ShipToState": "NE",
            "ShipToCountry": "USA",
            "ShipToZip": "68130",
            "ShipToPhone": "(402)-440-6890",
            "BillToName": "Ideal Building Supply",
            "BillToAddress1": "3333 R Road",
            "BillToAddress2": "",
            "BillToAddress3": "",
            "BillToCity": "Cook",
            "BillToState": "NE",
            "BillToCountry": "USA",
            "BillToZip": "68130",
            "BillToPhone": "(402)-440-6890",
            "SalesAgentID1": "AGENT1",
            "SalesAgentName1": "Sales Agent 1",
            "SalesAgentID2": "",
            "SalesAgentName2": "",
            "SalesAgentID3": "",
            "SalesAgentName3": "",
            "SalesAgentID4": "",
            "SalesAgentName4": "",
            "SalesAgentID5": "",
            "SalesAgentName5": "",
            "SalesAgentID6": "",
            "SalesAgentName6": "",
            "UpdateDate": "2021-11-11",
            "UpdateTime": "12:45:13",
            "ContactEmail": "",
            "ContactName": "",
            "ContactPhone": "",
            "ShipComplete": false,
            "CostTotal": -11,
            "CostType": "Item default",
            "TotalWeight": 1,
            "TotalLoad": 1,
            "StatusType": "RMA",
            "dtCreditMemoDetailResponse": [
              {
                "BranchID": "1MELISSA",
                "OrderID": 2237,
                "Sequence": 1,
                "DisplaySequence": 1,
                "LineType": "CM",
                "ItemCode": "PI-BLANK-A100",
                "ItemSize": "50ct",
                "ItemDescription": "Common Nails",
                "TotalOrderedQuantity": -1,
                "QuantityUOM": "EA",
                "GrossPrice": 10.01,
                "NetPrice": 10.01,
                "PriceUOM": "EA",
                "DiscountDescription": "",
                "Taxable": true,
                "ExtendedPrice": -10.01,
                "TotalBackorderedQuantity": 0,
                "TotalStagedQuantity": 0,
                "TotalUnstagedQuantity": 0,
                "TotalInvoicedQuantity": 0,
                "LinkedTranType": "",
                "LinkedTranID": 0,
                "LinkedTranSequence": 0,
                "CustomerPOLineNumber": "",
                "DepartmentName": "",
                "DepartmentNumber": "",
                "PartNumber": "",
                "SKU": "",
                "UPCCode": "",
                "ExtCost": -10.9997,
                "ExtWeight": 1,
                "ExtLoad": 1
              }
            ]
          }
        ]
      }
    },
    "BalanceResponse": {
      "dsCustBalanceResponse": {
        "dtBalanceHeaderResponse": [
          {
            "CustomerID": "IDEAL",
            "BranchID": "1MELISSA",
            "ProcessDate": "2021-11-11",
            "CustomerName": "Ideal Building Supply",
            "AccountBalance": 20.02,
            "FutureBalance": 0,
            "CurrentBalance": 20.02,
            "PastDueBalance1": 0,
            "PastDueBalance2": 0,
            "PastDueBalance3": 0,
            "PastDueBalance4": 0,
            "FinanceChargeTotal": 0,
            "PaymentOnAcctTotal": 0,
            "DepositOnAcctTotal": 0,
            "OnHoldTotal": 0,
            "TermsDiscountTotal": 0,
            "LastPaymentDate": null,
            "LastPaymentAmount": 0,
            "PastDueBalance1Label": "31-60 Days",
            "PastDueBalance2Label": "61-90 Days",
            "PastDueBalance3Label": "91-120 Days",
            "PastDueBalance4Label": "Over 120 Days",
            "dtBalanceDetailResponse": [
              {
                "CustomerID": "IDEAL",
                "BranchID": "1MELISSA",
                "ProcessDate": "2021-11-11",
                "InvoiceNumber": "MSW0000002236-001",
                "InvoiceNumberSequence": 0,
                "TransactionID": 2236,
                "ShipmentNumber": 1,
                "InvoiceType": "Invoice",
                "ShipToSequence": 1,
                "BillToSequence": 1,
                "CustomerPO": "",
                "InvoiceOnHold": false,
                "ShipDate": "2021-11-11",
                "InvoiceDate": "2021-11-11",
                "InvoiceDueDate": "2021-12-11",
                "TermsCode": "NET30",
                "TermsDescription": "Net 30",
                "TermsDiscountDate": null,
                "TermsDiscountAmount": 0,
                "InvoiceSubtotal": 20.02,
                "InvoiceChargesAmount": 0,
                "InvoiceTaxAmount": 0,
                "InvoiceTotal": 20.02,
                "InvoicePaymentAdjustAmount": 0,
                "InvoiceBalance": 20.02,
                "TransactionReference": "",
                "TransactionJob": "",
                "PaymentId": "",
                "CMOrigInvoiceNumber": "",
                "ShipToName": "Ideal Building Supply",
                "ShipToAddress1": "3333 R Road",
                "ShipToAddress2": "",
                "ShipToAddress3": "",
                "ShipToCity": "Cook",
                "ShipToState": "NE",
                "ShipToZip": "68130",
                "PastDueBalanceBucket": ""
              }
            ]
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of open orders, open quotes, open credit memos, and the AR balances for a specific customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539, approval status added to response in v554; DetailGroupID, TotalReleaseQuantity, and TotalRemainingQuantity fields added to the response in v609; RelatedQuoteID, RelatedQuoteExternalSource, and RelatedExternalProjectID fields added to the response in v610

InvoicePayment

Sample Request

{
  "request": {
    "InvoicePaymentJSON": {
      "dsInvoicePaymentRequest": {
        "dtCustomerRequest": [
          {
            "CustomerID": "ATHOME",
            "PaymentDate": null,
            "dtInvoiceRequest": [
              {
                "BranchID": "CENTRALBRNCH",
                "InvoiceNumber": "CNTL0302283-001",
                "InstallmentSequence": 1,
                "PaymentAmount": 280,
                "DiscountAmount": 16.5,
                "Remark": "A/R Remark"
              },
              {
                "BranchID": "EASTMOND",
                "InvoiceNumber": "EAST3100155-001",
                "InstallmentSequence": 1,
                "PaymentAmount": 150,
                "DiscountAmount": 0,
                "Remark": "A/R Remark"
              }
            ],
            "dtPaymentRequest": [
              {
                "BranchID": "CENTRALBRNCH",
                "InvoiceNumber": "CNTL0352345-001",
                "PaymentAmount": 110
              },
              {
                "BranchID": "CENTRALBRNCH",
                "InvoiceNumber": "CA-000000012",
                "PaymentAmount": 320
              }
            ]
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "InvoicePaymentJSONResponse": {
      "dsAROpenResponse": {
        "dtAROpenResponse": [
          {
            "CustomerID": "ATHOME",
            "BranchID": "CENTRALBRNCH",
            "ProcessDate": "2022-02-14",
            "InvoiceNumber": "CNTL0302345-001",
            "InstallmentSequence": 1,
            "TransactionID": 300152345,
            "ShipmentNumber": 1,
            "InvoiceType": "Credit Memo",
            "ShipToSequence": 1,
            "BillToSequence": 1,
            "OpenAmount": 114,
            "PaymentAmount": 110,
            "DiscountAmount": 0,
            "InvoiceBalance": 4
          },
          {
            "CustomerID": "ATHOME",
            "BranchID": "CENTRALBRNCH",
            "ProcessDate": "2022-02-14",
            "InvoiceNumber": "CA-000000012",
            "InstallmentSequence": 1,
            "TransactionID": 0,
            "ShipmentNumber": 0,
            "InvoiceType": "Payment on Account",
            "ShipToSequence": 1,
            "BillToSequence": 1,
            "OpenAmount": 680,
            "PaymentAmount": 320,
            "DiscountAmount": 0,
            "InvoiceBalance": 360
          },
          {
            "CustomerID": "ATHOME",
            "BranchID": "CENTRALBRNCH",
            "ProcessDate": "2022-02-14",
            "InvoiceNumber": "CNTL0302283-001",
            "InstallmentSequence": 1,
            "TransactionID": 300152283,
            "ShipmentNumber": 1,
            "InvoiceType": "Invoice",
            "ShipToSequence": 1,
            "BillToSequence": 1,
            "OpenAmount": 424,
            "PaymentAmount": 280,
            "DiscountAmount": 16.5,
            "InvoiceBalance": 127.5
          },
          {
            "CustomerID": "ATHOME",
            "BranchID": "EASTMOND",
            "ProcessDate": "2022-02-14",
            "InvoiceNumber": " EAST310085-001",
            "InstallmentSequence": 1,
            "TransactionID": 3100152285,
            "ShipmentNumber": 1,
            "InvoiceType": "Invoice",
            "ShipToSequence": 1,
            "BillToSequence": 1,
            "OpenAmount": 868,
            "PaymentAmount": 150,
            "DiscountAmount": 0,
            "InvoiceBalance": 718
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Applies payments to invoices

Required Inputs

Optional Inputs

Response

Notes

The following applies only to customers on Agility version 604 and above:

Relationships

Version Deployed

v555; Remark added in v556

InvoicesList

Sample Request

{
  "request": {
    "SearchBy": "",
    "SearchValue": "",
    "CustomerID": "IPS",
    "ShiptoSequence": 1,
    "IncludeOnlyOpenInvoices": false,
    "InvoiceDateRangeStart": "2022-03-02",
    "InvoiceDateRangeEnd": "2022-03-02",
    "ChunkStartPointer": "",
    "RecordFetchLimit": ""
  }
}

Sample Response

{
  "response": {
    "InvoiceResponse": {
      "dsInvoiceResponse": {
        "dtInvoiceOrderResponse": [
          {
            "BranchID": "CENTRALBRNCH",
            "InvoiceNumber": "CNTL0300153610-001",
            "InvoiceNumberSequence": 0,
            "TransactionID": 300153610,
            "TransactionType": "SO",
            "ShipmentNumber": 1,
            "InvoiceType": "Invoice",
            "CustomerID": "HAR01",
            "ShipToSequence": 2,
            "OrderedBy": "Daniel Jacob",
            "OrderDate": "2023-01-13",
            "ShipDate": "2023-01-13",
            "InvoiceDate": "2023-01-13",
            "InvoiceDueDate": "2023-01-13",
            "InvoiceStatus": "Open",
            "SaleType": "wh",
            "SaleTypeDescription": "Orders shipped through the warehouse",
            "TransactionJob": "1435-PPL",
            "TransactionReference": "89347-PY",
            "CustomerPO": "",
            "RouteID": " ",
            "ShipVia": "Our Truck",
            "FreightTerms": "",
            "PayTermsCode": "COD",
            "PaymentTermsDescription": "COD - NO DISCOUNT",
            "OrderSubtotal": 1000,
            "OrderChargesAmount": 0,
            "Taxable": true,
            "TaxCode": "IA_GRUNDY_REINBECK",
            "OrderTaxAmount": 70,
            "OrderTotal": 1070,
            "InvoicePaymentAdjustAmount": 0,
            "OrderBalance": 1070,
            "DiscountAmount": 0,
            "DiscountDate": null,
            "AfterDeductFreightAmt": 0,
            "DiscountPercent": 0,
            "DiscountableAmount": 1000,
            "DueDays": 0,
            "DiscountDays": 0,
            "ShipToName": "Harris Corporation S2",
            "ShipToAddress1": "906 Park Street",
            "ShipToAddress2": "Suite 234",
            "ShipToAddress3": "P O Box 32211",
            "ShipToCity": "Reinbeck",
            "ShipToState": "IA",
            "ShipToCountry": "USA",
            "ShipToZip": "50669     ",
            "ShipToPhone": "(402)-330-6620",
            "BillToName": "Harris Corporation B2",
            "BillToAddress1": "85858 SW Avenue",
            "BillToAddress2": "Suite 234",
            "BillToAddress3": "P O Box 32211",
            "BillToCity": "Omaha",
            "BillToState": "NE",
            "BillToCountry": "USA",
            "BillToZip": "68046 0005",
            "BillToPhone": "(402)-330-6620",
            "SalesAgentID1": "0524",
            "SalesAgentName1": "AP Keaton",
            "SalesAgentID2": "002",
            "SalesAgentName2": "James Harrison",
            "SalesAgentID3": "",
            "SalesAgentName3": "",
            "SalesAgentID4": "",
            "SalesAgentName4": "",
            "SalesAgentID5": "",
            "SalesAgentName5": "",
            "SalesAgentID6": "",
            "SalesAgentName6": "",
            "MiscField1": "B Thomas",
            "MiscField2": "",
            "MiscField3": "",
            "MiscField4": "",
            "MiscField5": "",
            "MiscField6": "",
            "MiscField7": "42.3236° N",
            "MiscField8": "92.5994° W",
            "MiscField9": "",
            "MiscField10": "",
            "MiscField11": "",
            "MiscField12": "",
            "MiscDate1": null,
            "MiscDate2": null,
            "CustomerName": "Harris Corporation Internation",
            "APISourceID": "",
            "SalesAgent1PctOfOrder": 50,
            "SalesAgent2PctOfOrder": 50,
            "SalesAgent3PctOfOrder": 0,
            "SalesAgent4PctOfOrder": 0,
            "SalesAgent5PctOfOrder": 0,
            "SalesAgent6PctOfOrder": 0,
            "dtInvoiceDetailResponse": [
              {
                "BranchID": "CENTRALBRNCH",
                "InvoiceNumber": "CNTL0300153610-001",
                "InvoiceNumberSequence": 0,
                "TransactionID": 300153610,
                "TransactionType": "SO",
                "ShipmentNumber": 1,
                "InvoiceType": "Invoice",
                "Sequence": 1,
                "DisplaySequence": 1,
                "ItemCode": "2827",
                "PartNumber": "2827AC",
                "ItemSize": "",
                "ItemDescription": "Zinc-Plated Hex Lag Screw Indoor/Outdoor",
                "ExtendedDescription": "2827 Steel construction, Zinc plated Hex Lag Screw\nIndoor/Outdoor. Use with DECORATIVE HINGED SCREW COVER to securely fasten DECK MOUNT TERMINAL or INTERMEDIATE ALUMINUM POSTS to the top of a deck. Pre-drill and ensure lag penetrates into structural framing and not just the deck boards.",
                "TotalOrderedQuantity": 2,
                "ShippedQuantity": 2,
                "QuantityUOM": "BNDL",
                "Price": 10,
                "PriceUOM": "EA",
                "DiscountDescription": "",
                "ExtendedPrice": 1000,
                "CustomerPOLineNumber": "000001",
                "ItemXrefUsedToOrder": "",
                "OriginalPrice": 0,
                "OriginalPriceUOM": "EA",
                "OriginalOrderedQty": 10,
                "OriginalOrderedQtyUOM": "BAG"
              }
            ]
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "NextChunkStartPointer": 1,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of invoices, including invoice details, for a specific customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

PendingPaymentList

Sample Request

{
  "request": {
      "PendingPaymentJSON": {
          "dsPendingPaymentRequest": {
              "dtPendingPaymentRequest": [
                  {
                      "CustomerID": "jj.0007",
                      "ShiptoSequence": 1,
                      "PaymentAccountID": "8e123sf165sd4f56-sdf156465",
                      "BankGUID": "1234360125cde1bf-f3a5-fd9e-g614-60cdab6"
                  }
              ]
          }
      }
  }
}

Sample Response

{
  "response": {
    "PendingPaymentListJSONResponse": {
      "dsPendingPaymentResponse": {
        "dtPendingPaymentResponse": [
          {
            "BranchID": "WESTONBRANCH",
            "TransactionID": 1000343976,
            "PaymentAccountID": "8e370a6-af05-7960979b5XXX",
            "TruncatedCardNumber": "xxxxxxxxxxxx5550",
            "BankAcctName":"",
            "TruncatedAccountNumber":""
          },
          {
            "BranchID": "WESTONBRANCH",
            "TransactionID": 1000343979,
            "PaymentAccountID": "8e37640a6-af05-7960979b5XXX",
            "TruncatedCardNumber": "xxxxxxxxxxxx5550",
            "BankAcctName":"First National Bank",
            "TruncatedAccountNumber":"x4321"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of transactions with open pending payments for a specific customer ship-to, BankGUID, or payment account ID

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v556

SavedCreditCardCreate

Sample Request

{
  "request": {
    "SavedCreditCardCreateJSON": {
      "dsSavedCreditCardCreateRequest": {
        "dtSavedCreditCardCreateRequest": [
          {
            "CustomerID": "ATHOME",
            "ShiptoSequence": 1,
            "ReturnURL": "http://www.dmsi.com"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "SavedCreditCardCreateJSONResponse": {
      "dsSavedCreditCardCreateResponse": {
        "dtSavedCreditCardCreateResponse": [
          {
            "TransactionSetupID": "739FF-4FD-423-89AD-94E2 AD0 ",
            "ValidationCode": "A83B75D5C5C2454A",
            "HostedPaymentURL": "https://cerrtranID=7 G39FFFF"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Used to direct customers who store credit cards in Agility to a specified Hosted Payments page where they can enter a new credit card to save or use to process a new transaction

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v555

SavedCreditCardDelete

Sample Request

{
  "request": {
    "SavedCreditCardDeleteJSON": {
      "dsPaymentAccountRequest": {
        "dtPaymentAccountRequest": [
          {
            "PaymentAccountID": " 82c9c611-a9be-1a57d70d7246"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes a saved credit card

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v555

SavedCreditCardList

Sample Request

{
  "request": {
    "CustomerJSON": {
      "dsCustomerShipto": {
        "dtCustomerShipto": [
          {
            "CustomerID": "ATHOME",
            "ShiptoSequence": 1
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "SavedCreditCardListJSONResponse": {
      "dsSavedCreditCard": {
        "dtSavedCreditCard": [
          {
            "CustomerID": "ATHOME",
            "ShiptoSequence": 1,
            "TruncatedCardNumber": "xxxxxxxxxxxx5550",
            "CardType": "Mastercard",
            "BillingName": "AT Home Lumber",
            "BillingAddress1": "17002 Marcy St",
            "BillingAddress2": "",
            "BillingCity": "Omaha",
            "BillingState": "NE",
            "BillingZip": "68118",
            "ExpirationMonth": "03",
            "ExpirationYear": "22",
            "PaymentAccountID": "92572-b531-3fcc204aed",
            "SurchargeBasis": "",
            "SurchargeAmount": 0
          },
          {
            "CustomerID": "ATHOME",
            "ShiptoSequence": 1,
            "TruncatedCardNumber": "xxxxxxxxxxxx5020",
            "CardType": "Visa",
            "BillingName": "AT Home Lumber",
            "BillingAddress1": "17002 Marcy St",
            "BillingAddress2": "",
            "BillingCity": "Omaha",
            "BillingState": "NE",
            "BillingZip": "68118",
            "ExpirationMonth": "12",
            "ExpirationYear": "23",
            "PaymentAccountID": "c5c8421af-3aa5a2439",
            "SurchargeBasis": "Percent",
            "SurchargeAmount": 3
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of saved credit cards for a specific customer ship-to or bill-to

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v555; surcharge fields added in v556

AgilityPublic/Customer Service

This AgilityPublic service contains methods related to creating and updating customer information. The following applies to all methods within the AgilityPublic Customer Service:

CustomerBank

Sample Request

{
  "request": {
    "CustomerID": "",
    "AccountNumber": "",
    "RoutingNumber": "",
    "BankJSON": {
      "dsCustomerBank": {
        "dtCustomerBank": [
          {
            "BankName": "",
            "BankAcctName": "",
            "AccountType": "",
            "DefaultBranch": "",
            "UseForACHProcessing": false,
            "ApprovedForACHProcessing": false,
            "DefaultACHAcctForCashApp": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates sold-to customer bank information

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534

CustomerBilltoBank

Sample Request

{
  "request": {
    "CustomerID": "",
    "BilltoSequence": 0,
    "AccountNumber": "",
    "RoutingNumber": "",
    "BankJSON": {
      "dsCustomerBilltoBank": {
        "dtCustomerBilltoBank": [
          {
            "BankName": "",
            "BankAcctName": "",
            "AccountType": "",
            "DefaultBranch": "",
            "UseForACHProcessing": false,
            "ApprovedForACHProcessing": false,
            "DefaultACHAcctForCashApp": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates bill-to customer bank information

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534

CustomerBilltoContact

Sample Request

{
  "request": {
    "CustomerID": "",
    "BilltoSequence": 0,
    "ContactName": "",
    "ContactType": "",
    "ContactJSON": {
      "dsCustomerBilltoContact": {
        "dtCustomerBilltoContact": [
          {
            "Primary": false,
            "Address1": "",
            "Address2": "",
            "Address3": "",
            "City": "",
            "State": "",
            "ZIP": "",
            "Country": "",
            "Phone1": "",
            "Phone2": "",
            "OtherPhone": "",
            "MobilePhone": "",
            "Fax": "",
            "EmailAddress": "",
            "NotifyShipmentEnRoute": false,
            "NotifyShipmentDelivered": false,
            "NotifyShipmentRefused": false,
            "ContactTitle": "",
            "Salutation": "",
            "OtherData": "",
            "Remarks": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates bill-to customer contact

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534

CustomerBilltoCreate

Sample Request

{
  "request": {
    "CustomerID": "",
    "BilltoJSON": {
      "dsCustomerBillto": {
        "dtCustomerBillto": [
          {
            "Name": "",
            "Address1": "",
            "Address2": "",
            "Address3": "",
            "City": "",
            "State": "",
            "ZIP": "",
            "Country": "",
            "PhoneFormat": "",
            "Fax": "",
            "Phone": "",
            "MobilePhone": "",
            "Email": "",
            "UseBilltoInvNumFormat": false,
            "UseBranchPrefix": false,
            "UseHyphenBeforeShipmentID": false,
            "NumCharactersForTranID": 0,
            "NumCharactersForShipmentID": 0,
            "CrossRefRequired": "",
            "CrossRefRequiredSpecialOrders": "",
            "DefaultStandardPriceLevel": 0,
            "DiscountGraceDays": 0,
            "ApplyCCSurchargeFee": "",
            "CCSurchargeDiscountPercent": 0.0,
            "IncludeInAutoCash": false,
            "FinanceCharge": false,
            "EDIMailbox": "",
            "EDIOrgIDDigits": "",
            "EDIAlternateCashAccount": "",
            "EDIAlternateCashGLComponent": 0,
            "EDIPaymentRules": 0,
            "AutoApplyARRemitLockboxPayments": false,
            "AcceptDupInvARRemit": false,
            "AcceptDupInvLockboxPayments": false,
            "CreateAdjInvForVariancePayDetail": false,
            "SalesAgentForAdjInv": "",
            "BranchForAdjInv": "",
            "RemittoDivision": "",
            "CustomInvoiceProcessing": "",
            "AppliesToShiptoInvoices": false,
            "InvoiceEmailGroupBy": "Use Forms Assignment",
            "PrintInvoiceCopyForBillto": false,
            "BilltoInvoicePhone": "",
            "BilltoInvoiceFax": "",
            "PrintInvoiceCopyForShipto": false,
            "ShiptoInvoicePhone": "",
            "ShiptoInvoiceFax": "",
            "UseBilltoStatementSettings": false,
            "StatementType": "",
            "CycleCode": "",
            "StatementPrintSummaryOnly": false,
            "StatementPrintDiscDate": false,
            "StatementPrintDiscAmt": false,
            "StatementPrintDueDate": false,
            "StatementPrintInvoices": false,
            "ReferenceNum": "",
            "FederalTaxNum": "",
            "StateTaxNum": "",
            "MunicipalTaxNum": "",
            "MinimumFinanceCharge": 0.0,
            "FinanceChargeThreshold": 0.0,
            "IncludeFinanceChargeInvoices": false,
            "CheckCredit": "",
            "DontCheckCreditThru": "2018-05-23",
            "CreditBypassAmt": 0.0,
            "CreditLimitAmt": 0.0,
            "OverdueAmt": 0.0,
            "OverduePercentage": 0.0,
            "OverdueDays": 0,
            "CreditLimitExpDate": "2018-05-23",
            "CreditScore": 0.0,
            "CreditRating": "",
            "CreditReviewDate": "2018-05-23",
            "BureauNum1Rating": "",
            "BureauNum1EffectiveDate": "2018-05-23",
            "BureauNum2Rating": "",
            "BureauNum2EffectiveDate": "2018-05-23",
            "MiscField1": "",
            "MiscField2": "",
            "MiscField3": "",
            "MiscField4": "",
            "MiscField5": "",
            "MiscField6": "",
            "MiscField7": "",
            "MiscField8": "",
            "MiscField9": "",
            "MiscField10": "",
            "MiscField11": "",
            "MiscField12": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "BilltoSequence": 2,
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a bill-to customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534; Updated with Email field v550

CustomerBilltoLaserControls

Sample Request

{
  "request": {
    "CustomerID": "",
    "BilltoSequence": 0,
    "FormType": "",
    "PrinterSequence": 0,
    "LaserControlJSON": {
      "dsCustomerBilltoLaserControls": {
        "dtCustomerBilltoLaserControls": [
          {
            "PrinterName": "",
            "FaxEmailToSource": "",
            "Fax": "",
            "Email": "",
            "Copies": 0,
            "FormFooter": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates bill-to customer laser controls

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534

CustomerBilltoUpdate

Sample Request

{
  "request": {
    "CustomerID": "123456",
    "BilltoSequence": 1,
    "BilltoJSON": {
      "dsCustomerBillto": {
        "dtCustomerBillto": [
          {
            "Name": "",
            "Address1": "",
            "Address2": "",
            "Address3": "",
            "City": "",
            "State": "",
            "ZIP": "",
            "Country": "",
            "PhoneFormat": "",
            "Fax": "",
            "Phone": "",
            "MobilePhone": "",
            "Email": "",
            "UseBilltoInvNumFormat": false,
            "UseBranchPrefix": false,
            "UseHyphenBeforeShipmentID": false,
            "NumCharactersForTranID": 0,
            "NumCharactersForShipmentID": 0,
            "CrossRefRequired": "",
            "CrossRefRequiredSpecialOrders": "",
            "DefaultStandardPriceLevel": 0,
            "DiscountGraceDays": 0,
            "ApplyCCSurchargeFee": "",
            "CCSurchargeDiscountPercent": 0.0,
            "IncludeInAutoCash": false,
            "FinanceCharge": false,
            "EDIMailbox": "",
            "EDIOrgIDDigits": "",
            "EDIAlternateCashAccount": "",
            "EDIAlternateCashGLComponent": 0,
            "EDIPaymentRules": 0,
            "AutoApplyARRemitLockboxPayments": false,
            "AcceptDupInvARRemit": false,
            "AcceptDupInvLockboxPayments": false,
            "CreateAdjInvForVariancePayDetail": false,
            "SalesAgentForAdjInv": "",
            "BranchForAdjInv": "",
            "RemittoDivision": "",
            "CustomInvoiceProcessing": "",
            "AppliesToShiptoInvoices": false,
            "InvoiceEmailGroupBy": "Use Forms Assignment",
            "PrintInvoiceCopyForBillto": false,
            "BilltoInvoicePhone": "",
            "BilltoInvoiceFax": "",
            "PrintInvoiceCopyForShipto": false,
            "ShiptoInvoicePhone": "",
            "ShiptoInvoiceFax": "",
            "UseBilltoStatementSettings": false,
            "StatementType": "",
            "CycleCode": "",
            "StatementPrintSummaryOnly": false,
            "StatementPrintDiscDate": false,
            "StatementPrintDiscAmt": false,
            "StatementPrintDueDate": false,
            "StatementPrintInvoices": false,
            "ReferenceNum": "",
            "FederalTaxNum": "",
            "StateTaxNum": "",
            "MunicipalTaxNum": "",
            "MinimumFinanceCharge": 0.0,
            "FinanceChargeThreshold": 0.0,
            "IncludeFinanceChargeInvoices": false,
            "CheckCredit": "",
            "DontCheckCreditThru": "2018-05-23",
            "CreditBypassAmt": 0.0,
            "CreditLimitAmt": 0.0,
            "OverdueAmt": 0.0,
            "OverduePercentage": 0.0,
            "OverdueDays": 0,
            "CreditLimitExpDate": "2018-05-23",
            "CreditScore": 0.0,
            "CreditRating": "",
            "CreditReviewDate": "2018-05-23",
            "ReleaseOrdersUponCreditChange": false,
            "BureauNum1Rating": "",
            "BureauNum1EffectiveDate": "2018-05-23",
            "BureauNum2Rating": "",
            "BureauNum2EffectiveDate": "2018-05-23",
            "MiscField1": "",
            "MiscField2": "",
            "MiscField3": "",
            "MiscField4": "",
            "MiscField5": "",
            "MiscField6": "",
            "MiscField7": "",
            "MiscField8": "",
            "MiscField9": "",
            "MiscField10": "",
            "MiscField11": "",
            "MiscField12": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates a bill-to customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534; Updated with Email field v550; Updated with credit release processing v603

CustomerBranchShiptoCreate

Sample Request

{
  "request": {
    "CustomerID": "",
    "ShiptoSequence": 1,
    "BranchShiptoJSON": {
      "dsCustomerBranchShipto": {
        "dtCustomerBranchShipto": [
          {
            "UseBranchLaserControls": false,
            "EnableDefaultFlags": false,
            "Active": false,
            "Prospect": false,
            "ShipComplete": false,
            "WMSShipComplete": false,
            "AcceptsBO": false,
            "Nonsalable": false,
            "PricedPickDelv": false,
            "OverridePickDelvSortOrder": false,
            "ApplyPromoPricesDisc": false,
            "DisplayPiecePrice": false,
            "RepriceOrderAtShipment": false,
            "RequireOrderAcknowledgment": false,
            "TrackLinkedReceiptsOrderAck": false,
            "AcceptsNightDeliveries": false,
            "DisplayPaymentsOnSOSave": false,
            "FullPaymentRequired": false,
            "FullPaymentReqPartialShipment": false,
            "FullPaymentRequiredOrderTypes": "",
            "AllowOverpaymentsInvoicing": false,
            "ApplyOverpaymentType": "",
            "DefaultShipmentStatus": "",
            "MinOrderHoldAmount": 0,
            "MinOrderHoldForceShipComplete": false,
            "EnableDefaultCodes": false,
            "FreightTerms": "",
            "ShipVia": "",
            "SaleType": "",
            "ECommerceSaleType": "",
            "Zone": "",
            "Priority": 0,
            "EnableTaxes": false,
            "Taxable": false,
            "Taxcode": "",
            "EnableSalesAgents": false,
            "SalesAgent1": "",
            "SalesAgent1PctOfOrder": 0.0,
            "SalesAgent2": "",
            "SalesAgent2PctOfOrder": 0.0,
            "SalesAgent3": "",
            "SalesAgent3PctOfOrder": 0.0,
            "EnablePaymentTerms": false,
            "PaymentTermsCode": "",
            "CMPaymentTermsCode": "",
            "EnableFieldRequirements": false,
            "OrderedByRequired": false,
            "AuthToChargeRequired": false,
            "ShipViaRequired": false,
            "ShipViaRequiredOrderTypes": "",
            "EnableShippingTracking": false,
            "ShippingTrackingInsuranceReq": false,
            "ShippingTrackingSaturdayDelivery": false,
            "ShippingTrackingSundayDelivery": false,
            "ShippingTrackingDelvInstructions": "",
            "UpdSalesAgentOpenSO": false,
            "UpdSalesAgentOpenQuote": false,
            "UpdSalesAgentOpenCM": false,
            "UpdSalesAgentOpenPOSSO": false,
            "UpdSalesAgentOpenPOSQuote": false,
            "UpdSalesAgentOpenPOSCM": false,
            "UpdSalesAgentOpenTranNotOverride": false,
            "UpdPayTermOpenSO": false,
            "UpdPayTermOpenQuote": false,
            "UpdPayTermOpenCM": false,
            "UpdPayTermOpenTranNotOverride": false,
            "UpdMinOrderHoldAmtOpenSO": false,
            "SetNonSalableWithOpen": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a branch ship-to customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534; Updated with Nonsalable field v548; Updated with SalesAgent#PctOfOrder fields v550; Updated with FullPaymentReqPartialShipment field v611

CustomerBranchShiptoList

Sample Request

{
  "request": {
    "CustomerID": "12345",
    "ShiptoSequence": 1
  }
}

Sample Response

{
  "response": {
    "CustBranchShiptoResults": {
      "dsCustBranchShiptoResponse": {
        "dtCustBranchShiptoResponse": [
          {
            "UseBranchLaserControls": false,
            "EnableDefaultFlags": false,
            "Active": false,
            "ShipComplete": false,
            "WMSShipComplete": false,
            "AcceptsBO": false,
            "Nonsalable": false,
            "PricedPickDelv": false,
            "OverridePickDelvSortOrder": false,
            "ApplyPromoPricesDisc": false,
            "DisplayPiecePrice": false,
            "RepriceOrderAtShipment": false,
            "RequiresOrderAck": false,
            "TrackLinkedReceiptsOnOrderAck": false,
            "AcceptsNightDeliveries": false,
            "DisplayPmtsOnSaveAutoPOS": false,
            "FullPaymentRequired": false,
            "FullPaymentRequiredRule": "Invoices and CM's",
            "AllowOverpaymentAtInvoicing": false,
            "ApplyOverpaymentType": "Cash on Account",
            "ShipmentStatus": "Staged",
            "MinOrderHoldAmount": 0,
            "ForceShipComplete": false,
            "EnableDefaultCodes": true,
            "FreightTerms": "",
            "ShipVia": "",
            "SaleType": "WH",
            "ECommerceSaleType": "WH",
            "Zone": "",
            "Priority": 0,
            "EnableTaxes": false,
            "Taxable": false,
            "Taxcode": "",
            "EnableSalesAgents": true,
            "SalesAgentOne": "1001",
            "SalesAgentTwo": "",
            "SalesAgentThree": "",
            "EnablePaymentTerms": true,
            "PaymentTermsCode": "NET15TH",
            "CMPaymentTermsCode": "",
            "EnableFieldRequirements": false,
            "OrderedByRequired": false,
            "AuthToChargeRequired": false,
            "ShipViaRequired": false,
            "ShipViaAppliesTo": "SO",
            "Prospect": false,
            "SalesAgent1PctOfOrder": 0.0,
            "SalesAgent2PctOfOrder": 0.0,
            "SalesAgent3PctOfOrder": 0.0,
            "EnableShippingTracking": false,
            "ShippingTrackingInsuranceReq": false,
            "ShippingTrackingSaturdayDelivery": false,
            "ShippingTrackingSundayDelivery": false,
            "ShippingTrackingDelvInstructions": "",
            "FullPaymentReqPartialShipment": true
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Gets customer branch ship-to information

Required Inputs

Optional Inputs

Response

Notes

N/A

Relationships

Version Deployed

v539; Updated with Full payment required field v611

CustomerBranchShiptoLaserControls

Sample Request

{
  "request": {
    "CustomerID": "",
    "ShiptoSequence": 0,
    "FormType": "",
    "PrinterSequence": 0,
    "LaserControlJSON": {
      "dsCustBranchShiptoLaserControls": {
        "dtCustBranchShiptoLaserControls": [
          {
            "PrinterName": "",
            "FaxEmailToSource": "",
            "Fax": "",
            "Email": "",
            "Copies": 0,
            "FormFooter": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates branch ship-to customer laser controls

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534

CustomerBranchShiptoUpdate

Sample Request

{
  "request": {
    "CustomerID": "",
    "ShiptoSequence": 1,
    "BranchShiptoJSON": {
      "dsCustomerBranchShipto": {
        "dtCustomerBranchShipto": [
          {
            "UseBranchLaserControls": false,
            "EnableDefaultFlags": false,
            "Active": false,
            "Prospect": false,
            "ShipComplete": false,
            "WMSShipComplete": false,
            "AcceptsBO": false,
            "Nonsalable": false,
            "PricedPickDelv": false,
            "OverridePickDelvSortOrder": false,
            "ApplyPromoPricesDisc": false,
            "DisplayPiecePrice": false,
            "RepriceOrderAtShipment": false,
            "RequireOrderAcknowledgment": false,
            "TrackLinkedReceiptsOrderAck": false,
            "AcceptsNightDeliveries": false,
            "DisplayPaymentsOnSOSave": false,
            "FullPaymentRequired": false,
            "FullPaymentReqPartialShipment": false,
            "FullPaymentRequiredOrderTypes": "",
            "AllowOverpaymentsInvoicing": false,
            "ApplyOverpaymentType": "",
            "DefaultShipmentStatus": "",
            "MinOrderHoldAmount": 0,
            "MinOrderHoldForceShipComplete": false,
            "EnableDefaultCodes": false,
            "PriceGroupsAction": "",
            "PriceGroups": "",
            "FreightTerms": "",
            "ShipVia": "",
            "SaleType": "",
            "ECommerceSaleType": "",
            "Zone": "",
            "Priority": 0,
            "EnableTaxes": false,
            "Taxable": false,
            "Taxcode": "",
            "EnableSalesAgents": false,
            "SalesAgent1": "",
            "SalesAgent1PctOfOrder": 0.0,
            "SalesAgent2": "",
            "SalesAgent2PctOfOrder": 0.0,
            "SalesAgent3": "",
            "SalesAgent3PctOfOrder": 0.0,
            "EnablePaymentTerms": false,
            "PaymentTermsCode": "",
            "CMPaymentTermsCode": "",
            "EnableFieldRequirements": false,
            "OrderedByRequired": false,
            "AuthToChargeRequired": false,
            "ShipViaRequired": false,
            "ShipViaRequiredOrderTypes": "",
            "EnableShippingTracking": false,
            "ShippingTrackingInsuranceReq": false,
            "ShippingTrackingSaturdayDelivery": false,
            "ShippingTrackingSundayDelivery": false,
            "ShippingTrackingDelvInstructions": "",
            "UpdSalesAgentOpenSO": false,
            "UpdSalesAgentOpenQuote": false,
            "UpdSalesAgentOpenCM": false,
            "UpdSalesAgentOpenPOSSO": false,
            "UpdSalesAgentOpenPOSQuote": false,
            "UpdSalesAgentOpenPOSCM": false,
            "UpdSalesAgentOpenTranNotOverride": false,
            "UpdPayTermOpenSO": false,
            "UpdPayTermOpenQuote": false,
            "UpdPayTermOpenCM": false,
            "UpdPayTermOpenTranNotOverride": false,
            "UpdMinOrderHoldAmtOpenSO": false,
            "SetNonSalableWithOpen": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates a branch ship-to customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534; Updated with Nonsalable field v548; Updated with SalesAgent#PctOfOrder fields v550; Updated with FullPaymentReqPartialShipment field v611

CustomerContact

Sample Request

{
  "request": {
    "CustomerID": "",
    "ContactName": "",
    "ContactType": "",
    "ContactJSON": {
      "dsCustomerContact": {
        "dtCustomerContact": [
          {
            "Primary": false,
            "Address1": "",
            "Address2": "",
            "Address3": "",
            "City": "",
            "State": "",
            "ZIP": "",
            "Country": "",
            "Phone1": "",
            "Phone2": "",
            "OtherPhone": "",
            "MobilePhone": "",
            "Fax": "",
            "EmailAddress": "",
            "NotifyShipmentEnRoute": false,
            "NotifyShipmentDelivered": false,
            "NotifyShipmentRefused": false,
            "ContactTitle": "",
            "Salutation": "",
            "OtherData": "",
            "Remarks": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates a sold-to customer contact

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534

CustomerCreate

Sample Request

{
  "request": {
    "CustomerID": "",
    "CustomerJSON": {
      "dsCustomer": {
        "dtCustomer": [
          {
            "Name": "",
            "DivisionID": "",
            "GroupID": "",
            "Address1": "",
            "Address2": "",
            "Address3": "",
            "City": "",
            "State": "",
            "ZIP": "",
            "Country": "",
            "PhoneFormat": "",
            "Fax": "",
            "Phone": "",
            "MobilePhone": "",
            "Email": "",
            "Website": "",
            "DefaultCurrency": "",
            "PrintCurrency": "",
            "FormPrefix": "",
            "FirstInvoiceDate": "2018-05-23",
            "StartDate": "2018-05-23",
            "FirstOrderDate": "2018-05-23",
            "LastInvoiceDate": "2018-05-23",
            "Active": false,
            "FinanceCharge": false,
            "Nonsaleable": false,
            "Prospect": false,
            "CopyPriceGroupsFromShiptoSeq": 0,
            "CreditCardStorageOption": "",
            "CheckSoldtoCredit": false,
            "CheckBilltoCredit": false,
            "CheckShiptoCredit": false,
            "PrintSoldtoStatement": false,
            "PrintBilltoStatement": false,
            "PrintShiptoStatement": false,
            "StatementType": "",
            "CycleCode": "",
            "StatementPrintSummaryOnly": false,
            "StatementPrintDiscDate": false,
            "StatementPrintDiscAmt": false,
            "StatementPrintDueDate": false,
            "StatementPrintInvoices": false,
            "TargetCustomer": false,
            "RequireInvoice": false,
            "RequireOrderAcknowledgment": false,
            "ReferenceNum": "",
            "ParentCustomerID": "",
            "FederalTaxNum": "",
            "StateTaxNum": "",
            "MunicipalTaxNum": "",
            "CertificateAppliesTo": "",
            "AllowCashPayments": false,
            "AllowCheckPayments": false,
            "AllowCreditCardPayments": false,
            "DisplayPriceOnCCDevice": "",
            "CheckCredit": "",
            "DontCheckCreditThru": "2018-05-23",
            "CreditBypassAmt": 0.0,
            "CreditLimitAmt": 0.0,
            "OverdueAmt": 0.0,
            "OverduePercentage": 0.0,
            "OverdueDays": 0,
            "DUNNNumber": "",
            "CreditManager": "",
            "CreditLimitExpDate": "2018-05-23",
            "CreditScore": 0.0,
            "CreditRating": "",
            "CreditReviewDate": "2018-05-23",
            "BureauNum1Rating": "",
            "BureauNum1EffectiveDate": "2018-05-23",
            "BureauNum2Rating": "",
            "BureauNum2EffectiveDate": "2018-05-23",
            "LastReviewDate": "2018-05-23",
            "LastApplicationDate": "2018-05-23",
            "TradeClass": "",
            "Class": "",
            "ConsigneeCode": "",
            "IndustryCode": "",
            "MiscField1": "",
            "MiscField2": "",
            "MiscField3": "",
            "MiscField4": "",
            "MiscField5": "",
            "MiscField6": "",
            "MiscField7": "",
            "MiscField8": "",
            "MiscField9": "",
            "MiscField10": "",
            "MiscField11": "",
            "MiscField12": "",
            "UpdShiptoActiveWhenSetActive": false,
            "UpdShiptoProspectWhenSetProspect": false,
            "SetShipToBillToAddresses": "",
            "UpdAddressOnNonOverriddenTrans": "",
            "UpdAddressOnOverriddenTrans": false,
            "SecondaryGroupsAction": "Add",
            "SecondaryGroups": "Midwest",
            "HomeBranch": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a sold-to customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534; Updated with Email field v550

CustomerLaserControls

Sample Request

{
  "request": {
    "CustomerID": "",
    "FormType": "",
    "PrinterSequence": 0,
    "LaserControlJSON": {
      "dsCustomerLaserControls": {
        "dtCustomerLaserControls": [
          {
            "PrinterName": "",
            "FaxEmailToSource": "",
            "Fax": "",
            "Email": "",
            "Copies": 0,
            "FormFooter": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates sold-to laser controls

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534

CustomerShiptoBank

Sample Request

{
  "request": {
    "CustomerID": "",
    "ShiptoSequence": 0,
    "AccountNumber": "",
    "RoutingNumber": "",
    "BankJSON": {
      "dsCustomerShiptoBank": {
        "dtCustomerShiptoBank": [
          {
            "BankName": "",
            "BankAcctName": "",
            "AccountType": "",
            "DefaultBranch": "",
            "UseForACHProcessing": false,
            "ApprovedForACHProcessing": false,
            "DefaultACHAcctForCashApp": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates ship-to customer bank information

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534

CustomerShiptoContact

Sample Request

{
  "request": {
    "CustomerID": "",
    "ShiptoSequence": 0,
    "ContactName": "",
    "ContactType": "",
    "ContactJSON": {
      "dsCustomerShiptoContact": {
        "dtCustomerShiptoContact": [
          {
            "Primary": false,
            "Address1": "",
            "Address2": "",
            "Address3": "",
            "City": "",
            "State": "",
            "ZIP": "",
            "Country": "",
            "Phone1": "",
            "Phone2": "",
            "OtherPhone": "",
            "MobilePhone": "",
            "PrimaryMobileContact": false,
            "Fax": "",
            "EmailAddress": "",
            "NotifyShipmentEnRoute": false,
            "NotifyShipmentDelivered": false,
            "NotifyShipmentRefused": false,
            "ContactTitle": "",
            "Salutation": "",
            "OtherData": "",
            "Remarks": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates ship-to customer contacts

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534

CustomerShiptoContactDelete

Sample Request

{
  "request": {
    "CustomerID": "BUIL103",
    "ShiptoSequence": 1,
    "ContactName": "John Doe",
    "ContactType": "Warehouse"
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes a customer ship-to contact record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v553

CustomerShiptoCreate

Sample Request

{
  "request": {
    "CustomerID": "",
    "ShiptoJSON": {
      "dsCustomerShipto": {
        "dtCustomerShipto": [
          {
            "ActiveInAllBranches": false,
            "Name": "",
            "Address1": "",
            "Address2": "",
            "Address3": "",
            "City": "",
            "State": "",
            "ZIP": "",
            "Country": "",
            "PhoneFormat": "",
            "Fax": "",
            "Phone": "",
            "MobilePhone": "",
            "EmergencyPhone": "",
            "Email": "",
            "County": "",
            "BilltoSequence": 0,
            "AllowAsTemplate": false,
            "UserDefinedKeywords": "",
            "Active": false,
            "Prospect": false,
            "ShipComplete": false,
            "ShipCompleteWMS": false,
            "AcceptsBackorders": false,
            "Nonsaleable": false,
            "FinanceCharge": false,
            "OverridePickDelvSortOrder": false,
            "ApplyPromoPriceDiscount": false,
            "DisplayPiecePrice": false,
            "RepriceOrderAtShipment": false,
            "DefaultShipmentOnHoldInvoicing": false,
            "RequireOrderAcknowledgment": false,
            "TrackLinkedReceiptsOrderAck": false,
            "AcceptsNightDeliveries": false,
            "DisplayPaymentsOnSOSave": false,
            "FullPaymentRequired": false,
            "FullPaymentReqPartialShipment": false,
            "FullPaymentRequiredOrderTypes": "",
            "AllowOverpaymentsInvoicing": false,
            "ApplyOverpaymentType": "",
            "AllowCreditBalanceAsPayment": false,
            "ApplyCCSurchargeFee": "",
            "CCSurchargeDiscountPercent": 0.0,
            "DefaultShipmentStatus": "",
            "OrderEntryBranchOption": "",
            "BranchOptionDefaultBranch": "",
            "BranchOptionPromptDefaultBranch": false,
            "MinOrderHoldAmount": 0.0,
            "MinOrderHoldForceShipComplete": false,
            "AdditionalScheduleLeadDays": 0,
            "ApplyWMSPickThreshold": false,
            "WMSUnderPickThresholdPercent": 0.0,
            "CallForAppointment": false,
            "StartLoadHours": "",
            "EndLoadHours": "",
            "AllowAddonChargeCost": "",
            "EDIOrgID": "",
            "EDISOCreatedInBranch": "",
            "EDISpecialOrdersCreatedInBranch": "",
            "EDIItemActivityCreatedInBranch": "",
            "ShippingTrackingInsuranceReq": false,
            "ShippingTrackingSaturdayDelivery": false,
            "ShippingTrackingSundayDelivery": false,
            "ShippingTrackingDelvInstructions": "",
            "LienRequired": false,
            "LienDaysFromFirstShipment": 0,
            "LienDaysFromLastShipment": 0,
            "LienDaysFromLastInvoice": 0,
            "LienShipmentAmtGreaterThan": 0.0,
            "LienStatus": "",
            "LienDateOption": "",
            "LienDaysToFile": 0,
            "LienMinAmountToFile": 0.0,
            "FreightTerms": "",
            "ShipVia": "",
            "SaleType": "",
            "ECommerceSaleType": "",
            "Zone": "",
            "Priority": 0,
            "Taxable": false,
            "TaxCode": "",
            "SetTaxCategoryOrderEntryOnly": false,
            "TaxCategory": "",
            "SalesAgent1": "",
            "SalesAgent1PctOfOrder": 0.0,
            "SalesAgent2": "",
            "SalesAgent2PctOfOrder": 0.0,
            "SalesAgent3": "",
            "SalesAgent3PctOfOrder": 0.0,
            "PaymentTermsCode": "",
            "CMPaymentTermsCode": "",
            "ApplyPayTermsFromPayMethod": false,
            "OrderedByRequired": false,
            "AuthToChargeRequired": false,
            "ShipViaRequired": false,
            "ShipViaRequiredOrderTypes": "",
            "PORequired": false,
            "PORequiredOrderTypes": "",
            "POCheckDuplicatesBy": "",
            "POCheckDuplicatesNumMonths": 0,
            "PORule": "",
            "POBlanketValue": "",
            "POValidationCode": "",
            "JobNumberRequired": false,
            "JobNumberRequiredOrderTypes": "",
            "JobNumberRule": "",
            "JobNumberBlanketValue": "",
            "JobValidationCode": "",
            "ReferenceRequired": false,
            "ReferenceRequiredOrderTypes": "",
            "ReferenceValidationCode": "",
            "PickDelvPricedTicket": false,
            "PickPrintDetailPrices": false,
            "PickPrintPriceAsNet": false,
            "PickPrintExtendedPrice": false,
            "PickPrintDimExtendedPrice": false,
            "DelvPrintDetailPrices": false,
            "DelvPrintPriceAsNet": false,
            "DelvPrintExtendedPrice": false,
            "DelvPrintDimExtendedPrice": false,
            "AdditionalCODBasis": "",
            "CODAmount": 0.0,
            "CODNotToExceedBasis": "",
            "CODNotToExceedFixedAmount": 0.0,
            "PrintBOMLabels": false,
            "BOMLabelFormat": "",
            "PrintStockLabels": false,
            "StockLabelFormat": "",
            "PrintNonStockLabels": false,
            "NonstockLabelFormat": "",
            "QuotePrintPriceAsNet": false,
            "QuotePrintPriceOnly": false,
            "QuotePrintExtendedPrice": false,
            "QuotePrintDimExtendedPrice": false,
            "OrderAckFormTitle": "",
            "OrdAckPrintDetailPrices": false,
            "OrdAckPrintPriceAsNet": false,
            "OrdAckPrintExtendedPrice": false,
            "OrdAckPrintDimExtendedPrice": false,
            "OrdAckPrintTotals": false,
            "OrdAckDispGroupOptions": false,
            "OrdAckGroupDefault": "",
            "ASNPrintDefault": "",
            "ASNAutoSendWithWMS": false,
            "InvPrintDetailPrices": false,
            "InvPrintPriceAsNet": false,
            "InvPrintExtendedPrice": false,
            "InvPrintDimExtendedPrice": false,
            "InvPrintPayTerm": false,
            "InvPrintADFAmount": false,
            "InvDispGroupOptions": false,
            "InvGroupDefault": "",
            "StatementPrintDiscDate": false,
            "StatementPrintDiscAmt": false,
            "StatementPrintDueDate": false,
            "StatementPrintInvoices": false,
            "MiscField1": "",
            "MiscField2": "",
            "MiscField3": "",
            "MiscField4": "",
            "MiscField5": "",
            "MiscField6": "",
            "MiscField7": "",
            "MiscField8": "",
            "MiscField9": "",
            "MiscField10": "",
            "MiscField11": "",
            "MiscField12": "",
            "FederalTaxNum": "",
            "StateTaxNum": "",
            "MunicipalTaxNum": "",
            "MinimumFinanceCharge": 0.0,
            "FinanceChargeThreshold": 0.0,
            "IncludeFinanceChargeInvoices": false,
            "CheckCredit": "",
            "DontCheckCreditThru": "2018-05-23",
            "CreditBypassAmt": 0.0,
            "CreditLimitAmt": 0.0,
            "OverdueAmt": 0.0,
            "OverduePercentage": 0.0,
            "OverdueDays": 0,
            "CreditLimitExpDate": "2018-05-23",
            "CreditScore": 0.0,
            "CreditRating": "",
            "CreditReviewDate": "2018-05-23",
            "BureauNum1Rating": "",
            "BureauNum1EffectiveDate": "2018-05-23",
            "BureauNum2Rating": "",
            "BureauNum2EffectiveDate": "2018-05-23",
            "UpdAddressOnNonOverriddenTrans": "",
            "UpdAddressOnOverriddenTrans": false,
            "UpdSalesAgentOpenSO": false,
            "UpdSalesAgentOpenQuote": false,
            "UpdSalesAgentOpenCM": false,
            "UpdSalesAgentOpenPOSSO": false,
            "UpdSalesAgentOpenPOSQuote": false,
            "UpdSalesAgentOpenPOSCM": false,
            "UpdSalesAgentOpenTranNotOverride": false,
            "UpdPayTermOpenSO": false,
            "UpdPayTermOpenQuote": false,
            "UpdPayTermOpenCM": false,
            "UpdPayTermOpenTranNotOverride": false,
            "UpdMinOrderHoldAmtOpenSO": false,
            "HomeBranch": "",
            "ActivateBasedOnHBOrgHierLevel": false,
            "HomeBranchOrgHierLevel": "",
            "ActivateBasedOnHBDistance": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ShiptoSequence": 2,
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a ship-to customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534; updated with EDISpecialOrdersCreatedInBranch, Email, and SalesAgent#PctOfOrder fields v550; updated with PORule, POBlanketValue, JobNumberRule, and JobNumberBlanketValue fields v551; updated with AdditionalScheduleLeadDays field v552; updated with AllowCreditBalanceAsPayment field v556; Updated with FullPaymentReqPartialShipment field v611

CustomerShiptoLaserControls

Sample Request

{
  "request": {
    "CustomerID": "",
    "ShiptoSequence": 0,
    "FormType": "",
    "PrinterSequence": 0,
    "LaserControlJSON": {
      "dsCustomerShiptoLaserControls": {
        "dtCustomerShiptoLaserControls": [
          {
            "PrinterName": "",
            "FaxEmailToSource": "",
            "Fax": "",
            "Email": "",
            "Copies": 0,
            "FormFooter": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates ship-to customer laser controls

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534

CustomerShiptoRoutesList

Sample Request

{
  "request": {
    "SearchBy": "",
    "SearchValue": "",
    "CustomerID": "12345",
    "ShiptoSequence": "",
    "StartPointer": "",
    "RecordFetchLimit": ""
  }
}

Sample Response

{
  "response": {
    "CustomerShiptoRoutesResponse": {
      "dsCustomerShiptoRoutesResponse": {
        "dtCustomerShiptoRoutesResponse": [
          {
            "CustomerID": "12345",
            "ShiptoSequence": 1,
            "ShiptoName": "DS SUPPLY",
            "RouteID": "MON",
            "RouteDescription": "MONDAY DELIVERY",
            "StopID": 1
          },
          {
            "CustomerID": "12345",
            "ShiptoSequence": 1,
            "ShiptoName": "DS SUPPLY",
            "RouteID": "WED",
            "RouteDescription": "WED DELIVERY",
            "StopID": 3
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "NextChunkStartPointer": 2,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of routes associated with customer ship-to records

Required Inputs

Optional Inputs

Response

Notes

This method allows a user to request a specific number of records. Please see the Chunking topic for more information

Relationships

Version Deployed

v539

CustomerShiptoUpdate

Sample Request

{
  "request": {
    "CustomerID": "",
    "ShiptoSequence": 1,
    "ShiptoJSON": {
      "dsCustomerShipto": {
        "dtCustomerShipto": [
          {
            "ActiveInAllBranches": false,
            "Name": "",
            "Address1": "",
            "Address2": "",
            "Address3": "",
            "City": "",
            "State": "",
            "ZIP": "",
            "Country": "",
            "PhoneFormat": "",
            "Fax": "",
            "Phone": "",
            "MobilePhone": "",
            "EmergencyPhone": "",
            "Email": "",
            "County": "",
            "BilltoSequence": 0,
            "AllowAsTemplate": false,
            "UserDefinedKeywords": "",
            "Active": false,
            "Prospect": false,
            "ShipComplete": false,
            "ShipCompleteWMS": false,
            "AcceptsBackorders": false,
            "Nonsaleable": false,
            "FinanceCharge": false,
            "OverridePickDelvSortOrder": false,
            "ApplyPromoPriceDiscount": false,
            "DisplayPiecePrice": false,
            "RepriceOrderAtShipment": false,
            "DefaultShipmentOnHoldInvoicing": false,
            "RequireOrderAcknowledgment": false,
            "TrackLinkedReceiptsOrderAck": false,
            "AcceptsNightDeliveries": false,
            "DisplayPaymentsOnSOSave": false,
            "FullPaymentRequired": false,
            "FullPaymentReqPartialShipment": false,
            "FullPaymentRequiredOrderTypes": "",
            "AllowOverpaymentsInvoicing": false,
            "ApplyOverpaymentType": "",
            "AllowCreditBalanceAsPayment": false,
            "ApplyCCSurchargeFee": "",
            "CCSurchargeDiscountPercent": 0.0,
            "DefaultShipmentStatus": "",
            "OrderEntryBranchOption": "",
            "BranchOptionDefaultBranch": "",
            "BranchOptionPromptDefaultBranch": false,
            "MinOrderHoldAmount": 0.0,
            "MinOrderHoldForceShipComplete": false,
            "ApplyWMSPickThreshold": false,
            "WMSUnderPickThresholdPercent": 0.0,
            "CallForAppointment": false,
            "StartLoadHours": "",
            "EndLoadHours": "",
            "AllowAddonChargeCost": "",
            "EDIOrgID": "",
            "EDISOCreatedInBranch": "",
            "EDIItemActivityCreatedInBranch": "",
            "EDISpecialOrdersCreatedInBranch": "",
            "ShippingTrackingInsuranceReq": false,
            "ShippingTrackingSaturdayDelivery": false,
            "ShippingTrackingSundayDelivery": false,
            "ShippingTrackingDelvInstructions": "",
            "LienRequired": false,
            "LienDaysFromFirstShipment": 0,
            "LienDaysFromLastShipment": 0,
            "LienDaysFromLastInvoice": 0,
            "LienShipmentAmtGreaterThan": 0.0,
            "LienStatus": "",
            "LienDateOption": "",
            "LienDaysToFile": 0,
            "LienMinAmountToFile": 0.0,
            "PriceGroupsAction": "",
            "PriceGroups": "",
            "FreightTerms": "",
            "ShipVia": "",
            "SaleType": "",
            "ECommerceSaleType": "",
            "Zone": "",
            "Priority": 0,
            "Taxable": false,
            "TaxCode": "",
            "SetTaxCategoryOrderEntryOnly": false,
            "TaxCategory": "",
            "SalesAgent1": "",
            "SalesAgent1PctOfOrder": 0.0,
            "SalesAgent2": "",
            "SalesAgent2PctOfOrder": 0.0,
            "SalesAgent3": "",
            "SalesAgent3PctOfOrder": 0.0,
            "PaymentTermsCode": "",
            "CMPaymentTermsCode": "",
            "ApplyPayTermsFromPayMethod": false,
            "OrderedByRequired": false,
            "AuthToChargeRequired": false,
            "ShipViaRequired": false,
            "ShipViaRequiredOrderTypes": "",
            "PORequired": false,
            "PORequiredOrderTypes": "",
            "POCheckDuplicatesBy": "",
            "POCheckDuplicatesNumMonths": 0,
            "PORule": "",
            "POBlanketValue": "",
            "POValidationCode": "",
            "JobNumberRequired": false,
            "JobNumberRequiredOrderTypes": "",
            "JobNumberRule": "",
            "JobNumberBlanketValue": "",
            "JobValidationCode": "",
            "ReferenceRequired": false,
            "ReferenceRequiredOrderTypes": "",
            "ReferenceValidationCode": "",
            "PickDelvPricedTicket": false,
            "PickPrintDetailPrices": false,
            "PickPrintPriceAsNet": false,
            "PickPrintExtendedPrice": false,
            "PickPrintDimExtendedPrice": false,
            "DelvPrintDetailPrices": false,
            "DelvPrintPriceAsNet": false,
            "DelvPrintExtendedPrice": false,
            "DelvPrintDimExtendedPrice": false,
            "AdditionalCODBasis": "",
            "CODAmount": 0.0,
            "CODNotToExceedBasis": "",
            "CODNotToExceedFixedAmount": 0.0,
            "PrintBOMLabels": false,
            "BOMLabelFormat": "",
            "PrintStockLabels": false,
            "StockLabelFormat": "",
            "PrintNonStockLabels": false,
            "NonstockLabelFormat": "",
            "QuotePrintPriceAsNet": false,
            "QuotePrintPriceOnly": false,
            "QuotePrintExtendedPrice": false,
            "QuotePrintDimExtendedPrice": false,
            "OrderAckFormTitle": "",
            "OrdAckPrintDetailPrices": false,
            "OrdAckPrintPriceAsNet": false,
            "OrdAckPrintExtendedPrice": false,
            "OrdAckPrintDimExtendedPrice": false,
            "OrdAckPrintTotals": false,
            "OrdAckDispGroupOptions": false,
            "OrdAckGroupDefault": "",
            "ASNPrintDefault": "",
            "ASNAutoSendWithWMS": false,
            "InvPrintDetailPrices": false,
            "InvPrintPriceAsNet": false,
            "InvPrintExtendedPrice": false,
            "InvPrintDimExtendedPrice": false,
            "InvPrintPayTerm": false,
            "InvPrintADFAmount": false,
            "InvDispGroupOptions": false,
            "InvGroupDefault": "",
            "StatementPrintDiscDate": false,
            "StatementPrintDiscAmt": false,
            "StatementPrintDueDate": false,
            "StatementPrintInvoices": false,
            "MiscField1": "",
            "MiscField2": "",
            "MiscField3": "",
            "MiscField4": "",
            "MiscField5": "",
            "MiscField6": "",
            "MiscField7": "",
            "MiscField8": "",
            "MiscField9": "",
            "MiscField10": "",
            "MiscField11": "",
            "MiscField12": "",
            "FederalTaxNum": "",
            "StateTaxNum": "",
            "MunicipalTaxNum": "",
            "MinimumFinanceCharge": 0.0,
            "FinanceChargeThreshold": 0.0,
            "IncludeFinanceChargeInvoices": false,
            "CheckCredit": "",
            "DontCheckCreditThru": "2018-05-23",
            "CreditBypassAmt": 0.0,
            "CreditLimitAmt": 0.0,
            "OverdueAmt": 0.0,
            "OverduePercentage": 0.0,
            "OverdueDays": 0,
            "CreditLimitExpDate": "2018-05-23",
            "CreditScore": 0.0,
            "CreditRating": "",
            "CreditReviewDate": "2018-05-23",
            "ReleaseOrdersUponCreditChange": false,
            "BureauNum1Rating": "",
            "BureauNum1EffectiveDate": "2018-05-23",
            "BureauNum2Rating": "",
            "BureauNum2EffectiveDate": "2018-05-23",
            "UpdAddressOnNonOverriddenTrans": "",
            "UpdAddressOnOverriddenTrans": false,
            "UpdSalesAgentOpenSO": false,
            "UpdSalesAgentOpenQuote": false,
            "UpdSalesAgentOpenCM": false,
            "UpdSalesAgentOpenPOSSO": false,
            "UpdSalesAgentOpenPOSQuote": false,
            "UpdSalesAgentOpenPOSCM": false,
            "UpdSalesAgentOpenTranNotOverride": false,
            "UpdPayTermOpenSO": false,
            "UpdPayTermOpenQuote": false,
            "UpdPayTermOpenCM": false,
            "UpdPayTermOpenTranNotOverride": false,
            "UpdMinOrderHoldAmtOpenSO": false,
            "SetNonSalableWithOpen": false,
            "HomeBranch": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates a ship-to customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534; Updated with Nonsalable field v548; Updated with Email, EDISpecialOrdersCreatedInBranch, and SalesAgent#PctOfOrderfields v550; Updated with PORule, POBlanketValue, JobNumberRule, and JobNumberBlanketValue fields v551; updated with AllowCreditBalanceAsPaymet field v556; Updated with credit release processing v603; Updated with FullPaymentReqPartialShipment field v611

CustomerShiptosList

Sample Request

{
  "request": {
    "SearchBy": "",
    "SearchValue": "",
    "CustomerID": "12345",
    "ShiptoSequence": 1,
    "FetchOnlyChangedSince": null,
    "RecordFetchLimit": ""
  }
}

Sample Response

{
  "response": {
    "CustomerShipToResponse": {
      "dsCustomerShipToResponse": {
        "dtCustomerShipToResponse": [
          {
            "CustomerID": "12345",
            "CustomerName": "DS SUPPLY",
            "ShiptoName": "DS SUPPLY",
            "ShiptoSequence": 1,
            "Address1": "123 Any Street",
            "Address2": "",
            "Address3": "",
            "City": "Omaha",
            "State": "NE",
            "ZIP": "68122",
            "Country": "USA",
            "Phone": "(402)-555-9585",
            "Fax": "(   )-   -    ",
            "PriceLevel": 1,
            "Active": true,
            "NonSaleable": false,
            "SalesAgent1": "1001",
            "SalesAgent2": "",
            "PayTermsCode": "NET20",
            "LastChanged": "2019-01-22T11:45:24.000",
            "Taxable": false,
            "Misc1Label": "MISC 1",
            "Misc1Value": "",
            "Misc2Label": "MISC 2",
            "Misc2Value": "",
            "Misc3Label": "MISC 3",
            "Misc3Value": "",
            "Misc4Label": "MISC 4",
            "Misc4Value": "",
            "Misc5Label": "MISC 5",
            "Misc5Value": "",
            "Misc6Label": "MISC 6",
            "Misc6Value": "",
            "Misc7Label": "MISC 7",
            "Misc7Value": "",
            "Misc8Label": "MISC 8",
            "Misc8Value": "",
            "Misc9Label": "MISC 9",
            "Misc9Value": "",
            "Misc10Label": "MISC 10",
            "Misc10Value": "",
            "Misc11Label": "MISC 11",
            "Misc11Value": "",
            "Misc12Label": "MISC 12",
            "Misc12Value": "",
            "OrderEntryBranchOption": "Current",
            "OrderEntryBranchPrompt": true,
            "DefaultBranch": "",
            "SaleType": "Transfer",
            "ECommerceSaleType": "",
            "Prospect": false,
            "Email": "test@test.com",
            "SalesAgent1PctOfOrder": 0.0,
            "SalesAgent2PctOfOrder": 0.0,
            "SalesAgent3PctOfOrder": 0.0,
            "ShipVia": "Flatbed",
            "ShippingTrackingInsuranceReq": false,
            "ShippingTrackingSaturdayDelivery": false,
            "ShippingTrackingSundayDelivery": false,
            "ShippingTrackingDelvInstructions": "",
            "MobilePhone": "(402)-555-1234",
            "HomeBranch": "WESTON",
            "FullPaymentRequired": false,
            "FullPaymentRequiredOrderTypes": "CM's Only",
            "FullPaymentReqPartialShipment": false
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "TotalRowsFetched": 1,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of customer ship-tos available to the user and available in the current branch the user is logged into

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539; Updated with Full payment required fields v611

CustomerUpdate

Sample Request

{
  "request": {
    "CustomerID": "",
    "CustomerJSON": {
      "dsCustomer": {
        "dtCustomer": [
          {
            "Name": "",
            "DivisionID": "",
            "GroupID": "",
            "Address1": "",
            "Address2": "",
            "Address3": "",
            "City": "",
            "State": "",
            "ZIP": "",
            "Country": "",
            "PhoneFormat": "",
            "Fax": "",
            "Phone": "",
            "MobilePhone": "",
            "Email": "",
            "Website": "",
            "DefaultCurrency": "",
            "PrintCurrency": "",
            "FormPrefix": "",
            "FirstInvoiceDate": "2018-05-23",
            "StartDate": "2018-05-23",
            "FirstOrderDate": "2018-05-23",
            "LastInvoiceDate": "2018-05-23",
            "Active": false,
            "FinanceCharge": false,
            "Nonsaleable": false,
            "Prospect": false,
            "CopyPriceGroupsFromShiptoSeq": 0,
            "CreditCardStorageOption": "",
            "CheckSoldtoCredit": false,
            "CheckBilltoCredit": false,
            "CheckShiptoCredit": false,
            "PrintSoldtoStatement": false,
            "PrintBilltoStatement": false,
            "PrintShiptoStatement": false,
            "StatementType": "",
            "CycleCode": "",
            "StatementPrintSummaryOnly": false,
            "StatementPrintDiscDate": false,
            "StatementPrintDiscAmt": false,
            "StatementPrintDueDate": false,
            "StatementPrintInvoices": false,
            "TargetCustomer": false,
            "RequireInvoice": false,
            "RequireOrderAcknowledgment": false,
            "ReferenceNum": "",
            "ParentCustomerID": "",
            "FederalTaxNum": "",
            "StateTaxNum": "",
            "MunicipalTaxNum": "",
            "CertificateAppliesTo": "",
            "AllowCashPayments": false,
            "AllowCheckPayments": false,
            "AllowCreditCardPayments": false,
            "DisplayPriceOnCCDevice": "",
            "CheckCredit": "",
            "DontCheckCreditThru": "2018-05-23",
            "CreditBypassAmt": 0.0,
            "CreditLimitAmt": 0.0,
            "OverdueAmt": 0.0,
            "OverduePercentage": 0.0,
            "OverdueDays": 0,
            "DUNNNumber": "",
            "CreditManager": "",
            "CreditLimitExpDate": "2018-05-23",
            "CreditScore": 0.0,
            "CreditRating": "",
            "CreditReviewDate": "2018-05-23",
            "ReleaseOrdersUponCreditChange": false,
            "BureauNum1Rating": "",
            "BureauNum1EffectiveDate": "2018-05-23",
            "BureauNum2Rating": "",
            "BureauNum2EffectiveDate": "2018-05-23",
            "LastReviewDate": "2018-05-23",
            "LastApplicationDate": "2018-05-23",
            "TradeClass": "",
            "Class": "",
            "ConsigneeCode": "",
            "IndustryCode": "",
            "MiscField1": "",
            "MiscField2": "",
            "MiscField3": "",
            "MiscField4": "",
            "MiscField5": "",
            "MiscField6": "",
            "MiscField7": "",
            "MiscField8": "",
            "MiscField9": "",
            "MiscField10": "",
            "MiscField11": "",
            "MiscField12": "",
            "UpdShiptoActiveWhenSetActive": false,
            "UpdShiptoProspectWhenSetProspect": false,
            "SetShipToBillToAddresses": "",
            "UpdAddressOnNonOverriddenTrans": "",
            "UpdAddressOnOverriddenTrans": false,
            "SetAllShiptosNonSalable": false,
            "SetNonSalableWithOpen": false,
            "SecondaryGroupsAction": "Replace",
            "SecondaryGroups": "Drywall",
            "HomeBranch": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates a sold-to customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534; Updated with Nonsalable fields v548; Updated with Email field v550; Updated with credit release processing v603

CustomersList

Sample Request

{
  "request": {
    "SearchBy": "Customer ID",
    "SearchValue": "12345",
    "FetchOnlyChangedSince": null,
    "ChunkStartPointer": "",
    "RecordFetchLimit": ""
  }
}

Sample Response

{
  "response": {
    "CustomerResponse": {
      "dsCustomerResponse": {
        "dtCustomerResponse": [
          {
            "CustomerID": "12345",
            "CustomerName": "DS SUPPLY",
            "Address1": "123 Any Street",
            "Address2": "",
            "Address3": "",
            "City": "Omaha",
            "State": "NE",
            "ZIP": "68122",
            "Country": "USA",
            "Phone": "(402)-555-9585",
            "Fax": "              ",
            "Active": true,
            "LastChanged": "2019-01-22T11:45:24.000",
            "CreditLimit": 0,
            "CreditLimitExpDate": null,
            "HighBalanceYTD": 3000,
            "HighBalanceDate": "2019-01-22",
            "HighBalanceLYR": 0,
            "HighBalanceLYRDate": null,
            "LastPaymentDate": null,
            "OpenSOAmt": 12.49,
            "ReleasedSOAmt": 12.49,
            "DepositAmt": 0,
            "OpenAR": 3000,
            "DisputedAR": 0,
            "Prospect": false,
            "Email": "test@test.com",
            "GroupID": "Drywall",
            "SecondaryGroups": "Midwest",
            "HomeBranch": "WESTON",
            "MobilePhone": "(402)-555-1234"
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "NextChunkStartPointer": 1,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of customers available to the user

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

DefaultCustomerShipto

Sample Request

{
  "request": {
    "LoginID": "asmith"
  }
}

Sample Response

{
  "response": {
    "CustomerID": "12345",
    "ShiptoSequence": 1,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns the default customer and ship-to assigned to the user in Agility

Required Inputs

Optional Inputs

Response

Notes

N/A

Relationships

Version Deployed

v539

AgilityPublic/DataFiles Service

This AgilityPublic service contains methods releated to data and data files.

SaleTypesList

Sample Request

"n/a"

Sample Response

{
  "response": {
    "SaleTypesListResponse": {
      "dsSaleTypesListResponse": {
        "dtSaleTypesListResponse": [
          {
            "SaleType": "WH",
            "Description": "Warehouse",
            "AffectInventory": true,
            "Transfer": false,
            "AllowInPartnerView": false,
            "ShipVia": "Truck",
            "Route": "",
            "FreightTerms": ""
          },
          {
            "SaleType": "WC",
            "Description": "Will Call",
            "AffectInventory": true,
            "Transfer": false,
            "AllowInPartnerView": false,
            "ShipVia": "",
            "Route": "",
            "FreightTerms": ""
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of sale types

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v542

AgilityPublic/Dispatch Service

This AgilityPublic service contains methods related to dispatch.

DispatchCancel

Sample Request

{
  "request": {
    "DispatchID": "12267"
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Cancels dispatch header on an existing, open dispatch

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

DispatchCostPacketsDelete

Sample Request

{
  "request": {
    "DispatchID": 12648,
    "DispatchCostPacketsJSON": {
      "dsDispatchCostPacket": {
        "dtDispatchCostPacket": [
          {
            "CostType": "Broker Fees",
            "SupplierID": "HTL"
          },
          {
            "CostType": "Ocean Frt"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes dispatch cost packet information on an existing dispatch with PO transactions

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

DispatchCostPacketsGet

Sample Request

{
  "request": {
    "DispatchID": 12648
  }
}

Sample Response

{
  "response": {
    "CostPacketResponse": {
      "dsCostPacketsResponse": {
        "dtCostPacketsResponse": [
          {
            "AllocateBy": "Load",
            "FixedAmount": 1300,
            "CostType": "Ocean Frt",
            "CreatedBy": "MSWAPI",
            "CreatedDate": "2019-03-05",
            "CreatedTime": "12:14:04",
            "SupplierID": "900",
            "AssignAPReconBasedOnPO": false,
            "Currency": "YEN",
            "UpdateBy": "MSWAPI",
            "UpdateDate": "2019-03-05",
            "UpdateTime": "12:14:04"
          },
          {
            "AllocateBy": "Ext cost",
            "FixedAmount": 650,
            "CostType": "Broker Fees",
            "CreatedBy": "MSWAPI",
            "CreatedDate": "2019-03-05",
            "CreatedTime": "10:31:11",
            "SupplierID": "HTL",
            "AssignAPReconBasedOnPO": false,
            "Currency": "USD",
            "UpdateBy": "MSWAPI",
            "UpdateDate": "2019-03-05",
            "UpdateTime": "12:14:05"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns dispatch cost packet information on an existing dispatch with PO transactions

Required Inputs

Optional Inputs

Response

Notes

N/A

Relationships

Version Deployed

v539

DispatchCostPacketsUpdate

Sample Request

{
  "request": {
    "DispatchID": 12648,
    "DispatchCostPacketsJSON": {
      "dsDispatchCostPacket": {
        "dtDispatchCostPacket": [
          {
            "AllocateBy": "Ext cost",
            "AssignAPReconBasedOnPO": false,
            "CostType": "Broker Fees",
            "Currency": "USD",
            "FixedAmount": 650.0,
            "SupplierID": "HTL"
          },
          {
            "AllocateBy": "Load",
            "AssignAPReconBasedOnPO": false,
            "CostType": "Ocean Frt",
            "Currency": "YEN",
            "FixedAmount": 1300.0,
            "SupplierID": "900"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates dispatch cost packet information on an existing dispatch with PO transactions

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

DispatchDetailsCreate

Sample Request

{
  "request": {
    "DispatchID": "12576",
    "OrderType": "SO",
    "OrderID": 302148,
    "SubID": 0,
    "DispatchDetailJSON": {
      "dsDispatchDetail": {
        "dtDispatchDetail": [
          {
            "OrderDetailSequence": "1",
            "Quantity": 2,
            "ContainerID": "GTM-TRWNQCM",
            "PalletID": "150120251",
            "DispatchAllQuantity": false
          },
          {
            "OrderDetailSequence": "2",
            "ContainerID": "GTM-TRWNQSO",
            "PalletID": "150120252",
            "DispatchAllQuantity": true
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Create dispatch details and related dispatch tran on an existing dispatch

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

DispatchDetailsDelete

Sample Request

{
  "request": {
    "DispatchID": 12576,
    "OrderType": "SO",
    "OrderID": 302191,
    "SubID": 0,
    "DispatchDetailJSON": {
      "dsDispatchDetail": {
        "dtDispatchDetail": [
          { "OrderDetailSequence": 1 },
          {
            "OrderDetailSequence": 2,
            "ContainerID": "GTM-TJPNWLFYM",
            "PalletID": "5518019"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes dispatch details on an existing dispatch transaction

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

DispatchGet

Sample Request

{
  "request": {
    "DispatchID": "12279"
  }
}

Sample Response

{
  "response": {
    "DispatchResponse": {
      "dsDispatchResponse": {
        "dtDispatchHeader": [
          {
            "AdditionalCost": 20,
            "CalcFirstPickupDate": false,
            "CalcLastDeliveryDate": false,
            "Canceled": false,
            "Contact": "Jeff Pilot",
            "CarrierFax": "(402)-564-3321",
            "CarrierPhone": "(402)-564-3321",
            "CreatedBy": "mwellensiek",
            "CreatedDate": "2019-02-12",
            "CreatedTime": "10:10:43",
            "Currency": "USD",
            "DispatchedBy": "mwellensiek",
            "DispatcherFax": "(402)-957-9990",
            "DispatcherPhone": "(402)-957-9999",
            "DispatchID": 12279,
            "DispatchStatus": "Open",
            "Driver": "apotter",
            "ExportSendStatus": "",
            "ExportStatus": "",
            "FinalDeliveryDate": "2019-02-13",
            "FinalDeliveryTime": "08:00",
            "FirstPickUpDate": "2019-02-12",
            "FirstPickUpTime": "08:00",
            "FreightAllocateBy": "Weight",
            "FreightChargeorCost": "",
            "FreightChargeorCostType": "",
            "FreightCostApplied": false,
            "CleanDry": false,
            "Tarp": true,
            "TarpSize": "1234567890123456",
            "MinimumFreightperStop": 0,
            "MinimumFreightTotal": 0,
            "PerRateLabel": "Mile",
            "PerRateMultiplier": 575,
            "Printed": false,
            "EstimatedRate": 0.25,
            "EstimatedRateType": "Per",
            "SentToWMS": false,
            "StagingLoc": "",
            "TotalDistance": 0,
            "UpdateBy": "mwellensiek",
            "UpdateDate": "2019-02-12",
            "UpdateTime": "10:14:30",
            "WeightLimit": 1000,
            "CarrierID": "AMT001",
            "ShipFromSequence": 1,
            "LoadPriority": "",
            "LoadTimeframe": "",
            "LoadType": "",
            "PackingSlip": "2138189",
            "RailRoute": "",
            "Reference": "190212023",
            "Released": false,
            "SCACCode": "3505",
            "STCCCode": "4590234",
            "TransportNumber": "212190023",
            "TransportType": "Rail Car",
            "dtDispatchTran": [
              {
                "DispatchID": 12279,
                "ASNPrinted": false,
                "BillofLading": "WEST00157425-000",
                "CreatedBy": "mwellensiek",
                "CreatedDate": "2019-02-12",
                "CreatedTime": "10:11:03",
                "DeliveryID": "WEST00157425",
                "DestCallAppt": true,
                "DestinationContact": "Sherry Woods",
                "DestLoadUnloadHours": "16:00",
                "DestinationFax": "              ",
                "DestinationID": "00002859",
                "DestinationPhone": "(333)-333-3333",
                "DestinationSeq": 1,
                "DestStartLoadHours": "12:00",
                "DestinationType": "Customer",
                "Distance": 100,
                "OriginCallAppt": true,
                "OriginContact": "Justin Driever",
                "OriginEndLoadHours": "12:00",
                "OriginFax": "(402)-351-2682",
                "OriginID": "    1030",
                "OriginPhone": "(402)-351-2300",
                "OriginSeq": 1,
                "OriginLoadUnloadHours": "08:00",
                "OriginType": "Supplier",
                "PickUpID": "1012021219",
                "ProNumber": "WESTONBRANCH022019",
                "Reference": "190212023",
                "ShipmentDeliveryDate": "2019-02-13",
                "ShipmentDeliveryTime": "16:00",
                "SubID": 0,
                "StopSequence": 1,
                "OrderID": 157425,
                "OrderBranch": "WESTON",
                "OrderType": "PO",
                "UpdateBy": "mwellensiek",
                "UpdateDate": "2019-02-12",
                "UpdateTime": "11:14:12",
                "dtDispatchDetail": [
                  {
                    "ASNSequence": 0,
                    "ContainerID": "3215112729",
                    "CreatedBy": "mwellensiek",
                    "CreatedDate": "2019-02-12",
                    "CreatedTime": "10:13:47",
                    "PalletID": "8560",
                    "Qty": 100,
                    "SubID": 0,
                    "OrderID": 157425,
                    "OrderDetailSequence": 1,
                    "OrderType": "PO",
                    "UOM": "EA",
                    "UpdateBy": "mwellensiek",
                    "UpdateDate": "2019-02-12",
                    "UpdateTime": "11:14:12",
                    "WMSSequence": 0
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of dispatch fields related to a specific dispatch ID

Required Inputs

Optional Inputs

Response

Notes

N/A

Relationships

Version Deployed

v539

DispatchHeaderCreate

Sample Request

{
  "request": {
    "CarrierID": "AMT001",
    "ShipFromSequence": 1,
    "DispatchHeaderJSON": {
      "dsDispatchHeader": {
        "dtDispatchHeader": [
          {
            "AdditionalCost": 15,
            "CarrierFax": "(402)-555-6620",
            "CarrierPhone": "(402)-555-6629",
            "CleanDry": "Yes",
            "Contact": "Jeff Pilot",
            "DispatchedBy": "mwellensiek1",
            "DispatcherFax": "(402)-555-3479",
            "DispatcherPhone": "(402)-555-3470",
            "Driver": "apotter",
            "EstimatedRate": 0.5,
            "EstimatedRateType": "Per",
            "FirstPickUpDate": "2019-02-19",
            "FirstPickUpTime": "08:00",
            "FinalDeliveryDate": "2019-02-22",
            "FinalDeliveryTime": "16:45",
            "PackingSlip": "9918546819972039",
            "PerRateLabel": "Mile",
            "PerRateMultiplier": 650,
            "Reference": "Hillcrest Apts",
            "Released": "No",
            "SCACCode": "CENF",
            "STCCCode": "0112915",
            "Tarp": "Yes",
            "TarpSize": "1234567890123456",
            "TotalDistance": 1000,
            "TransportNumber": "21520190001",
            "TransportType": "Rail Car",
            "WeightLimit": 10000
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "DispatchID": 162508,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates dispatch header fields

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

DispatchHeaderUpdate

Sample Request

{   "request": {
        "DispatchID": {{DispatchID}},
        "DispatchHeaderJSON": {
            "dsDispatchHeader":{
                "dtDispatchHeader":[{
                                "AdditionalCost": 15,
                                "CarrierFax": "(402)-555-6620",
                                "CarrierID": "AMT001",
                                "CarrierPhone": "(402)-555-6629",
                                "CleanDry": "Yes",
                                "Contact": "Jeff Pilot",
                                "DispatchedBy": "mwellensiek",
                                "DispatcherFax": "(402)-555-7272",
                                "DispatcherPhone": "(402)-555-7279",
                                "Driver": "apotter",
                                "EstimatedRate":  0.50,
                                "EstimatedRateType": "Per",
                                "FirstPickUpDate": "2019-02-19",
                                "FirstPickUpTime": "08:00",
                                "FinalDeliveryDate": "2019-02-22",
                                "FinalDeliveryTime": "16:45",
                                "PackingSlip": "9918546819972039",
                                "PerRateLabel": "Mile",
                                "PerRateMultiplier": 650,
                                "Reference": "Hillcrest Apts",
                                "Released": "Yes",
                                "SCACCode": "CENF",
                                "ShipFromSequence": 1,
                                "STCCCode": "0112915",
                                "Tarp": "Yes",
                                "TarpSize": "1234567890123456",
                                "TotalDistance": 500,
                                "TransportNumber": "21520190001",
                                "TransportType": "Rail Car",
                                "WeightLimit": 60000
                }]
            }
        }
    }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates dispatch header fields

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

DispatchMessageCreate

Sample Request

{
  "request": {
    "MessageCreateJSON": {
      "dsMessageCreate": {
        "dtMessageCreate": [
          {
            "TranID": 1000115076,
            "ShipmentNum": 1,
            "TranSeq": 1,
            "MessageText": "Message Text Here",
            "MessageType": "H",
            "PrintOnForms": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a dispatch transaction message in the branch the user is logged into

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554

DispatchSendASNToWMS

Sample Request

{
  "request": {
    "DispatchID": 3846
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Sends ASN to the WMS for a dispatch with PO transactions that affect inventory

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

DispatchTranDelete

Sample Request

{
  "request": {
    "DispatchID": "12548",
    "OrderType": "SO",
    "OrderID": 1768,
    "SubID": 1
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes a transaction from an existing, open dispatch

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

DispatchTranUpdate

Sample Request

{
  "request": {
    "DispatchID": 12608,
    "OrderType": "PO",
    "OrderID": 158805,
    "SubID": 0,
    "DispatchTranJSON": {
      "dsDispatchTran": {
        "dtDispatchTran": [
          {
            "BillofLading": "2020",
            "DeliveryID": "WEST00158805",
            "DestinationCallAppt": true,
            "DestinationEndLoadHours": "16:00",
            "DestinationID": "VMWC-A1",
            "DestinationSeq": 1,
            "DestinationStartLoadHours": "08:00",
            "DispatchAllQuantity": true,
            "Distance": 65,
            "OriginCallAppt": true,
            "OriginEndLoadHours": "12:00",
            "OriginID": "LMC",
            "OriginSeq": 1,
            "OriginStartLoadHours": "07:00",
            "PickUpID": "022820190063",
            "ProNumber": "GTM001843",
            "Reference": "Hillcrest Apartments",
            "ShipmentDeliveryDate": "2019-03-15",
            "ShipmentDeliveryTime": "12:00",
            "StopSequence": 1
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates dispatch transaction information on an existing dispatch

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

AgilityPublic/Inventory Service

This AgilityPublic service contains methods related to Inventory.

BranchInventoryList

Sample Request

{
  "request": {
    "ItemCode": "148-7",
    "Thickness": 1,
    "Width": 6,
    "Length": 10
  }
}

Sample Response

{
  "response": {
    "BranchInventoryResponse": {
      "dsBranchInventoryResponse": {
        "dtBranchInventoryResponse": [
          {
            "BranchId": "CENTRAL",
            "AvailableQty": 0,
            "SurplusQty": 0,
            "NetQty": 0,
            "OnHandQty": 0,
            "OnOrderQty": 0,
            "ReturnQty": 0,
            "BackOrderedQty": 0,
            "CommittedQty": 0,
            "UOM": "BF"
          },
          {
            "BranchId": "WESTON",
            "AvailableQty": 64050,
            "SurplusQty": 64210,
            "NetQty": 64210,
            "OnHandQty": 64220,
            "OnOrderQty": 0,
            "ReturnQty": 0,
            "BackOrderedQty": 0,
            "CommittedQty": 170,
            "UOM": "BF"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns various quantity totals by branch for a specific item/dimension; similar to what is displayed in stock status

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554

CatalogImageDocCreate

Sample Request

{
  "request": {
    "ImageOrDocumentID": "IPSH5",
    "CatalogImageDocJSON": {
      "dsCatalogImageDoc": {
        "dtCatalogImageDoc": [
          {
            "ImageFile": " https://www.dmsi.com/content/uploads/2021/11.jpg",
            "DisplayText": "Fan control",
            "Type": "Image"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a new image or document record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v556

CatalogImageDocUpdate

Sample Request

{
  "request": {
    "ImageOrDocumentID": "IPSH5",
    "CatalogImageDocJSON": {
      "dsCatalogImageDoc": {
        "dtCatalogImageDoc": [
          {
            "ImageFile": "https://www.dmsi.com/content/uploads/2021/11.jpg",
            "DisplayText": "Sensor fan control",
            "Type": "Image"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates an image or document record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v556

ItemCreateFromTemplate

Sample Request

{
  "request": {
    "Item": "1702676",
    "CopyFromItem": "917-RL",
    "ItemCreateFromTemplateJSON": {
      "dsItemCreateFromTemplate": {
        "dtItemCreateFromTemplate": [
          {
            "ItemGroupMajor": "00",
            "ItemGroupMinor": "PINE",
            "PriceCodeMajor": "00",
            "PriceCodeMinor": "PINE",
            "StockingUOM": "BF",
            "CostingUOM": "BF",
            "StockingToCostingConvFactor": 1,
            "Size": "2x4",
            "ItemDescription": "2x4 Pine Stud",
            "ExtDescription": "2x4 KD Pine Stud",
            "PieceReference": "PC",
            "StockingToPieceCalculation": "Qty/(TxWxL/12)",
            "StandardThickness": 0,
            "Thickness": 2,
            "ThicknessUOM": "Inches",
            "StandardWidth": 0,
            "Width": 4,
            "WidthUOM": "Inches",
            "LengthUOM": "Feet",
            "AlternateUOM1": "MBF",
            "AlternateUOM1ConvFactor": 1000,
            "AlternateUOM2": "CAR",
            "AlternateUOM2ConvFactor": 20000,
            "AlternateUOM3": "TRCK",
            "AlternateUOM3ConvFactor": 1500,
            "StockItem": 1,
            "Active": 1,
            "TemplateForNonStocks": "No",
            "NonSaleable": "No",
            "Discontinued": "No",
            "AllowInPartnerview": "Yes",
            "AllowInAgilityConfigurator": "No",
            "AllowInMobileApps": "Yes",
            "AllowInECommerceAndAPI": "Yes",
            "UserDefinedKeywords": "Pine Stud",
            "ShippingBOLCode": "ABC",
            "ShippingMSDS": "123",
            "TaxCategory": "NT",
            "ItemSupplierCode": "WIN01",
            "ItemSupplierShipFromSequence": 1,
            "ItemSupplierPartNumber": "789712",
            "ItemSupplierWeight": 8.5,
            "ItemSupplierWeightUOM": "EA",
            "ItemSupplierLoad": 7,
            "ItemSupplierLoadUOM": "EA",
            "AllowBrokenUOMInCountEntry": true,
            "BrokenUOM": "BF",
            "DisplayUOM": "BF",
            "PickingTallyUOM": "From order",
            "DWReportUOM": "BF",
            "SOQuoteUOM": "BF",
            "CMUOM": "BF",
            "PickingUOM": "BF",
            "DeliveryUOM": "BF",
            "InvoiceUOM": "BF",
            "UpdateTranFormUOMs": true,
            "CountUOM": "BF",
            "AllowDescOverride": true,
            "TaxableForSales": true,
            "TaxableForTaxCost": true,
            "DisplayMarket": true,
            "PrintItemExtDesc": true,
            "EcommerceDesc": "2 x 4 Pine Stud"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {
        "dtAuditResults": [
          {
            "AuditSequence": 1,
            "AuditType": "Warning",
            "AuditText": "Invalid AlternateUOM3"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a single item and associated item_branch record(s)

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v548

ItemCustomFieldsList

Sample Request

{
  "request": {
    "dsItemCustomFieldsListRequest": {
      "dtItemCustomFieldsListRequest": [
        {
          "ItemCode": "c10",
          "Thickness": 0,
          "Width": 0,
          "Length": 0
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ItemCustomFieldsListResponse": {
      "dsItemCustomFieldsListResponse": {
        "dtItemCustomFieldsListResponse": [
          {
            "ItemCode": "c10",
            "Thickness": 0,
            "Width": 0,
            "Length": 0,
            "FieldLabel": "Buyer",
            "DataType": "Text",
            "CharacterData": "",
            "DateData": null,
            "DecimalData": 0,
            "IntegerData": 0,
            "LogicalData": false,
            "CopyField": false
          },
          {
            "ItemCode": "LL-NAILS",
            "Thickness": 0,
            "Width": 0,
            "Length": 0,
            "FieldLabel": "Supplier",
            "DataType": "Text",
            "CharacterData": "",
            "DateData": null,
            "DecimalData": 0,
            "IntegerData": 0,
            "LogicalData": false,
            "CopyField": false
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns the custom fields for a specified set of items/dimensions

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v542

ItemCustomFieldsUpdate

Sample Request

{
  "request": {
    "UpdateCustomFieldsJSON": {
      "dsItemCustomFieldsRequest": {
        "dtItemCustomFieldsRequest": [
          {
            "ItemCode": "c10",
            "AllSharedBranches": true,
            "Thickness": null,
            "Width": null,
            "Length": null,
            "FieldLabel": "Cut",
            "DataType": "Text",
            "CharacterData": "Cutting",
            "DateData": null,
            "DecimalData": 0.0,
            "IntegerData": 0,
            "LogicalData": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "UpdateCustomFieldsResponse": {
      "dsItemCustomFieldsResponse": {
        "dtItemCustomFieldsResponse": [
          {
            "ItemCode": "812-1",
            "Thickness": 0,
            "Width": 0,
            "Length": 0,
            "FieldLabel": "Color",
            "DataType": "Text",
            "CharacterData": "Goldenrod",
            "DateData": null,
            "DecimalData": 0,
            "IntegerData": 0,
            "LogicalData": false,
            "AllSharedBranches": true,
            "Failures": "",
            "Warnings": "Custom field was not updated."
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates custom field values associated for a set of items and/or dimensions

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v543; AllSharedBranches field added v548

ItemGroupMajorList

Sample Request

"n/a"

Sample Response

{
  "response": {
    "ItemGroupMajorResponse": {
      "dsItemGroupMajorResponse": {
        "dtItemGroupMajorResponse": [
          {
            "ItemGroupMajor": "00",
            "Description": "MISC"
          },
          { "ItemGroupMajor": "01", "Description": "BULK" }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of item/product group majors

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v542

ItemGroupMinorList

Sample Request

{
  "request": {
    "ItemGroupMajor": "00"
  }
}

Sample Response

{
  "response": {
    "ItemGroupMinorResponse": {
      "dsItemGroupMinorResponse": {
        "dtItemGroupMinorResponse": [
          {
            "ItemGroupMajor": "00",
            "ItemGroupMinor": "00",
            "Description": "Tape"
          },
          {
            "ItemGroupMajor": "00",
            "ItemGroupMinor": "01",
            "Description": "Cleaners"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

returns a list of item/product group minors associated with a specified item/product group major

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v542

ItemImageDocCreate

Sample Request

{
  "request": {
    "ImageOrDocumentID": "IPSH5",
    "Item": "IPSH5FAN",
    "ItemImageDocCreateJSON": {
      "dsItemImageDocCreate": {
        "dtItemImageDocCreate": [
          {
            "Primary": "True"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Assigns an image or document to an item record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v556

ItemImageDocDelete

Sample Request

{
  "request": {
    "ImageOrDocumentID": " IPSH5",
    "Item": "IPSH5FAN"
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes the assignment of an image or document to an item record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v556

ItemsInChunksList

Sample Request

{
  "request": {
    "dsItemsInChunksListRequest": {
      "dtItemsInChunksListRequest": [
        {
          "SearchBy": "Item Code",
          "SearchValue": "97114",
          "ChunkStartPointer": 0,
          "IncludeNonStock": true,
          "IncludeNonSaleable": true,
          "IncludePriceData": true,
          "IncludeQuantityData": true,
          "RecordFetchLimit": 3
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ItemsInChunksListResponse": {
      "dsItemsInChunksListResponse": {
        "dtItemsInChunksListResponse": [
          {
            "ItemCode": "97114",
            "ItemXref": "",
            "ItemSize": "SIZE",
            "ItemDescription": "DESCRIPTION",
            "ExtendedDescription": "EXT DESCRIPTION",
            "ItemGroupMajor": "BH",
            "ItemGroupMinor": "1",
            "GrossPrice": 0.35,
            "NetPrice": 0.35,
            "DiscountDescription": "",
            "MinPackQuantity": 0,
            "OnHandQuantity": 1902,
            "AvailableQuantity": 80,
            "UOM": "LF",
            "NonSaleable": false,
            "Stock": true,
            "Discontinued": "No",
            "ItemTypeName": "EWP",
            "ImageURL": "",
            "MinPackType": "Allow - Question",
            "PriceUOM": "LF",
            "PriceUOMGrossPrice": 0.35,
            "PriceUOMNetPrice": 0.35,
            "SpecialItemType": "",
            "HazardousMaterial": false,
            "BOLCode": "",
            "MSDS": "",
            "PrimarySupplierID": "Central",
            "ECommerceDescription": null,
            "OnOrderQuantity": 92,
            "ReturnQuantity": 1870,
            "BackorderedQuantity": 92,
            "CommittedQuantity": 1822,
            "DefaultWeight": 1,
            "DefaultWeightUOM": "LF",
            "DefaultLoad": 1,
            "DefaultLoadUOM": "LF",
            "PrimarySupplierWeight": 1,
            "PrimarySupplierWeightUOM": "LF",
            "PrimarySupplierLoad": 1,
            "PrimarySupplierLoadUOM": "LF",
            "StockingUOM": "LF",
            "StockingMinPackQuantity": 0,
            "StockingAvailableQuantity": 3060,
            "StockingOnHandQuantity": 5000,
            "StockingOnOrderQuantity": 200,
            "StockingReturnQuantity": 280,
            "StockingBackorderedQuantity": 350,
            "StockingCommittedQuantity": 1940,
            "HandlingCode": "EWP",
            "MinPackHandlingCode": "Lumber",
            "dtItemsInChunksListDimResponse": [
              {
                "ItemCode": "97114",
                "ItemXref": "",
                "DimensionSize": "",
                "Thickness": 2,
                "ThicknessUOM": "Inches",
                "Width": 4,
                "WidthUOM": "Inches",
                "Length": 2,
                "LengthUOM": "Feet",
                "GrossPrice": 0.35,
                "NetPrice": 0.35,
                "DiscountDescription": "",
                "MinPackQuantity": 0,
                "OnHandQuantity": 0,
                "AvailableQuantity": 0,
                "UOM": "LF",
                "MinPackType": "Allow - Question",
                "PriceUOM": "LF",
                "PriceUOMGrossPrice": 0.35,
                "PriceUOMNetPrice": 0.35,
                "OnOrderQuantity": 0,
                "ReturnQuantity": 0,
                "BackorderedQuantity": 0,
                "CommittedQuantity": 0,
                "StockingUOM": "LF",
                "StockingMinPackQuantity": 0,
                "StockingAvailableQuantity": 500,
                "StockingOnHandQuantity": 1000,
                "StockingOnOrderQuantity": 200,
                "StockingReturnQuantity": 0,
                "StockingBackorderedQuantity": 0,
                "StockingCommittedQuantity": 500
              }
            ]
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "NextChunkStartPointer": 1,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns item related information for a group of items; optionally, results can include quantity and price information; this method is basically the same as ItemsList, but is specifically made for returning larger chunks of items

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v542; Handling code fields added in v600

ItemsList

Sample Request

{
  "request": {
    "dsItemsListRequest": {
      "dtItemsListRequest": [
        {
          "SearchBy": "Size",
          "SearchValue": "sizzzzzzzzzzzzzzzzzzze",
          "ItemGroupMajor": "00",
          "ItemGroupMinor": "00",
          "IncludeNonStock": true,
          "IncludePriceData": true,
          "IncludeQuantityData": true,
          "IncludeNonSaleable": true,
          "RecordFetchLimit": 5
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ItemsListResponse": {
      "dsItemsListResponse": {
        "dtItemsListResponse": [
          {
            "ItemCode": "c10",
            "ItemXref": "",
            "ItemSize": "2d",
            "ItemDescription": "1 inch nails",
            "ExtendedDescription": "",
            "ItemGroupMajor": "MISC",
            "ItemGroupMinor": "NAILS",
            "GrossPrice": 0,
            "NetPrice": 0,
            "DiscountDescription": "",
            "MinPackQty": 1,
            "OnHandQty": 0,
            "AvailableQty": 0,
            "UOM": "PC",
            "Nonsaleable": false,
            "Stock": true,
            "Discontinued": "No",
            "ItemTypeName": "",
            "ImageUrl": "",
            "MinPackType": "",
            "PriceUOM": "",
            "PriceUOMGrossPrice": 0,
            "PriceUOMNetPrice": 0,
            "SpecialItemType": "",
            "HazardousMaterial": true,
            "BOLCode": "BOL1",
            "MSDS": "",
            "PrimarySupplierID": "",
            "ECommerceDescription": "",
            "OnOrderQty": 0,
            "ReturnQty": 0,
            "BackorderedQty": 0,
            "CommittedQty": 0,
            "DefaultWeight": 4.5,
            "DefaultWeightUOM": "box",
            "DefaultLoad": 1.1,
            "DefaultLoadUOM": "box",
            "PrimarySupplierWeight": 4.5,
            "PrimarySupplierWeightUOM": "box",
            "PrimarySupplierLoad": 1.1,
            "PrimarySupplierLoadUOM": "box"
          },
          {
            "ItemCode": "c10a",
            "ItemXref": "",
            "ItemSize": "5d",
            "ItemDescription": "1.75 inch nails",
            "ExtendedDescription": "",
            "ItemGroupMajor": "MISC",
            "ItemGroupMinor": "NAILS",
            "GrossPrice": 0,
            "NetPrice": 0,
            "DiscountDescription": "",
            "MinPackQty": 1,
            "OnHandQty": 0,
            "AvailableQty": 0,
            "UOM": "EA",
            "Nonsaleable": false,
            "Stock": true,
            "Discontinued": "No",
            "ItemTypeName": "",
            "ImageUrl": "",
            "MinPackType": "",
            "PriceUOM": "",
            "PriceUOMGrossPrice": 0,
            "PriceUOMNetPrice": 0,
            "SpecialItemType": "",
            "HazardousMaterial": false,
            "BOLCode": "",
            "MSDS": "",
            "PrimarySupplierID": "",
            "ECommerceDescription": "",
            "OnOrderQty": 0,
            "ReturnQty": 0,
            "BackorderedQty": 0,
            "CommittedQty": 0,
            "DefaultWeight": 1.25,
            "DefaultWeightUOM": "Box",
            "DefaultLoad": 1.1,
            "DefaultLoadUOM": "Box",
            "PrimarySupplierWeight": 1.25,
            "PrimarySupplierWeightUOM": "Box",
            "PrimarySupplierLoad": 1.1,
            "PrimarySupplierLoadUOM": "Box"
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "TotalRowsFetched": 284,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns item related information for a group of items; optionally, results can include quantity and price information

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v542

ItemPriceAndAvailabilityList

Sample Request

{
  "request": {
    "dsItemPriceAndAvailRequest": {
      "dtPriceAndAvailRequest": [
        {
          "CustomerID": "123456",
          "ShiptoSequence": 1,
          "SaleType": "WH",
          "DateToCalculatePriceFor": "2019-08-15",
          "UseOrderRestrictions": true
        }
      ],
      "dtItemToProcessRequest": [
        {
          "ItemCode": "419147",
          "PartNumber": "P-124",
          "OrderQuantity": 7,
          "UOM": "BF"
        }
      ],
      "dtItemDimensionToProcessReq": [
        {
          "ItemCode": "419147",
          "PartNumber": "P-124",
          "Thickness": 2,
          "Width": 6,
          "Length": 8,
          "OrderQuantity": 10,
          "UOM": "PC"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ItemPriceAndAvailResponse": {
      "dsItemPriceAndAvailResponse": {
        "dtItemPriceAndAvailResponse": [
          {
            "ItemCode": "16RDOAK",
            "OrderQuantity": 5,
            "GrossPrice": 3.1,
            "NetPrice": 3.1,
            "DiscountDescription": "",
            "OnHandQuantity": 77843,
            "AvailableQuantity": 72949,
            "UOM": "BF",
            "ExtendedDescription": "",
            "PriceUOM": "BF",
            "PriceUOMGrossPrice": 3.1,
            "PriceUOMNetPrice": 3.1,
            "Promo": false,
            "NonSaleable": false,
            "Stock": true,
            "MinPackType": "Allow - Question",
            "MinPackQuantity": 0,
            "MaxProductionUnits": 0,
            "ItemXref": "16rdoak-har01-All",
            "ItemSize": "1x6",
            "ItemDescription": "RED OAK",
            "ItemGroupMajor": "Pool",
            "ItemGroupMinor": "Ladder",
            "Discontinued": "No",
            "ItemTypeName": "Specific Length Lumber",
            "ImageUrl": "",
            "SpecialItemType": "",
            "HazardousMaterial": false,
            "BOLCode": "110",
            "MSDS": "123",
            "EcommerceDescription": null,
            "OnOrderQty": 2930,
            "ReturnQty": 0,
            "BackorderedQty": 2677,
            "CommittedQty": 4894,
            "HandlingCode": "label test",
            "AutoCompleteWO": false,
            "DefaultWeight": 6,
            "DefaultWeightUOM": "BF",
            "DefaultLoad": 8,
            "DefaultLoadUOM": "BF",
            "PrimarySupplierID": "ESM",
            "PrimarySupplierWeight": 2,
            "PrimarySupplierWeightUOM": "BF",
            "PrimarySupplierLoad": 3,
            "PrimarySupplierLoadUOM": "BF",
            "PrimarySupplierContainerLength": 21,
            "PrimarySupplierContainerWidth": 43,
            "PrimarySupplierContainerHeight": 5345,
            "PrimarySupplierPartNumber": "15RDOAK-ESM-PART",
            "PrimarySupplierUPC": "",
            "Misc1Label": "Manufacturer Cost",
            "Misc1Value": 1,
            "Misc2Label": "Replacement Cost",
            "Misc2Value": 2,
            "Misc3Label": "Misc cost",
            "Misc3Value": 3,
            "Misc4Label": "Retail",
            "Misc4Value": 4,
            "Misc5Label": "Last Purchased Cost",
            "Misc5Value": 5,
            "dtItemPriceAndAvailDimResponse": [
              {
                "ItemCode": "16RDOAK",
                "Thickness": 1,
                "Width": 6,
                "Length": 8,
                "OrderQuantity": 100,
                "GrossPrice": 12.4,
                "NetPrice": 12.4,
                "DiscountDescription": "",
                "OnHandQuantity": 1520,
                "AvailableQuantity": 1500,
                "UOM": "PC",
                "PriceUOM": "BF",
                "PriceUOMGrossPrice": 3.1,
                "PriceUOMNetPrice": 3.1,
                "Promo": false,
                "MinPackType": "Allow and set as broken min pack",
                "MinPackQuantity": 20,
                "ItemXref": "16rdoak-har01-All",
                "OnOrderQty": 20,
                "ReturnQty": 0,
                "BackorderedQty": 0,
                "CommittedQty": 20,
                "Misc1Label": "Manufacturer Cost",
                "Misc1Value": 1.111,
                "Misc2Label": "Replacement Cost",
                "Misc2Value": 2.111,
                "Misc3Label": "Misc cost",
                "Misc3Value": 3.111,
                "Misc4Label": "Retail",
                "Misc4Value": 4.111,
                "Misc5Label": "Last Purchased Cost",
                "Misc5Value": 5.111
              },
              {
                "ItemCode": "16RDOAK",
                "Thickness": 1,
                "Width": 6,
                "Length": 10,
                "OrderQuantity": 100,
                "GrossPrice": 15.5,
                "NetPrice": 15.5,
                "DiscountDescription": "",
                "OnHandQuantity": 3508,
                "AvailableQuantity": 3333,
                "UOM": "PC",
                "PriceUOM": "BF",
                "PriceUOMGrossPrice": 3.1,
                "PriceUOMNetPrice": 3.1,
                "Promo": false,
                "MinPackType": "Allow and set as broken min pack",
                "MinPackQuantity": 0,
                "ItemXref": "16rdoak-har01-All",
                "OnOrderQty": 274,
                "ReturnQty": 0,
                "BackorderedQty": 243,
                "CommittedQty": 175,
                "Misc1Label": "Manufacturer Cost",
                "Misc1Value": 1.1,
                "Misc2Label": "Replacement Cost",
                "Misc2Value": 2.1,
                "Misc3Label": "Misc cost",
                "Misc3Value": 3.1,
                "Misc4Label": "Retail",
                "Misc4Value": 4.1,
                "Misc5Label": "Last Purchased Cost",
                "Misc5Value": 5.1
              }
            ]
          }
        ]
      }
    },
    "ItemAuditResults": {
      "dsItemAuditResults": {
        "dtItemAuditResults": [
          {
            "AuditSequence": 1,
            "ItemCode": "X90645",
            "PartNumber": "X90645-All",
            "Thickness": 0,
            "WIDTH": 0,
            "LENGTH": 0,
            "AuditType": "Warning",
            "AuditText": "Invalid Item X90645"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns specific price information for an item or set of items based on a specific customer and sale type with related quantities

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v542; updated with ItemAuditResults in v553; PartNumber, MaxProductionUnits, UseOrderRestrictions added in v600

ItemTalliesList

Sample Request

{
  "request": {
    "dsItemTalliesListRequest": {
      "dtItemTalliesListRequest": [
        {
          "ItemCode": "419417",
          "Location": "Yard",
          "Lot": "100",
          "Tag": "T0112616",
          "Content": "1X6X24",
          "Width": 6,
          "Length": 24,
          "LevelOfInformation": "Content"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ItemTalliesListResponse": {
      "dsItemTalliesListResponse": {
        "dtItemTalliesListResponse": [
          {
            "ItemCode": "419417",
            "Location": "Yard",
            "SubLocation": "001",
            "Lot": "100",
            "Tag": "T0112616",
            "Content": "1X6X24",
            "Thickness": 1,
            "Width": 6,
            "Length": 24,
            "Description": "",
            "Description2": "",
            "SupplierName": "",
            "PieceCount": 0,
            "StockQuantity": 120,
            "StockUOM": "BF",
            "DisplayQuantity": 120,
            "DisplayUOM": "BF",
            "PieceQuantity": 0,
            "PieceUOM": ""
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns tally information

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v542

ItemUOMsList

Sample Request

{
  "request": {
    "dsItemUOMsListRequest": {
      "dtItemUOMsListRequest": [
        {
          "ItemCode": "419147"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ItemUOMsListResponse": {
      "dsItemUOMsListResponse": {
        "dtItemUOMsListResponse": [
          {
            "ItemCode": "419147",
            "StockingUOM": "BF",
            "UOM": "BF",
            "FromStocking": 1,
            "ToStocking": 1
          },
          {
            "ItemCode": "419147",
            "StockingUOM": "BF",
            "UOM": "LF",
            "FromStocking": 1,
            "ToStocking": 1
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns UOM information for a specified set of items

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v542

ItemUpdate

Sample Request

{
  "request": {
    "Item": "917-RL",
    "ItemUpdateJSON": {
      "dsItemUpdate": {
        "dtItemUpdate": [
          {
            "AllSharedBranches": 1,
            "ItemGroupMajor": "00",
            "ItemGroupMinor": "PINE",
            "PriceCodeMajor": "00",
            "PriceCodeMinor": "PINE",
            "StockingUOM": "BF",
            "CostingUOM": "BF",
            "StockingToCostingConvFactor": 1,
            "Size": "2x4",
            "ItemDescription": "2 x 4 Pine Stud",
            "ExtDescription": "2 in. X 4 in. KD Pine Stud",
            "PieceReference": "PC",
            "StockingToPieceCalculation": "Qty/(TxWxL/12)",
            "StandardThickness": 0,
            "Thickness": 2,
            "ThicknessUOM": "Inches",
            "StandardWidth": 0,
            "Width": 4,
            "WidthUOM": "Inches",
            "LengthUOM": "Feet",
            "AlternateUOM1": "MBF",
            "AlternateUOM1ConvFactor": 1000,
            "AlternateUOM2": "CAR",
            "AlternateUOM2ConvFactor": 20000,
            "AlternateUOM3": "TRCK",
            "AlternateUOM3ConvFactor": 1500,
            "StockItem": 1,
            "Active": 1,
            "TemplateForNonStocks": "No",
            "NonSaleable": "No",
            "Discontinued": "No",
            "AllowInPartnerview": "Yes",
            "AllowInAgilityConfigurator": "No",
            "AllowInMobileApps": "Yes",
            "AllowInECommerceAndAPI": "Yes",
            "UserDefinedKeywords": "Pine Stud",
            "ShippingBOLCode": "ABC",
            "ShippingMSDS": "123",
            "TaxCategory": "NT",
            "ItemSupplierCode": "WIN01",
            "ItemSupplierShipFromSequence": 1,
            "ItemSupplierPartNumber": "789712",
            "ItemSupplierWeight": 8.5,
            "ItemSupplierWeightUOM": "EA",
            "ItemSupplierLoad": 7,
            "ItemSupplierLoadUOM": "EA",
            "AllowBrokenUOMInCountEntry": true,
            "BrokenUOM": "BF",
            "DisplayUOM": "BF",
            "PickingTallyUOM": "From order",
            "DWReportUOM": "BF",
            "SOQuoteUOM": "BF",
            "CMUOM": "BF",
            "PickingUOM": "BF",
            "DeliveryUOM": "BF",
            "InvoiceUOM": "BF",
            "UpdateTranFormUOMs": true,
            "CountUOM": "BF",
            "AllowDescOverride": true,
            "TaxableForSales": true,
            "TaxableForTaxCost": true,
            "DisplayMarket": true,
            "PrintItemExtDesc": true,
            "EcommerceDesc": "2 x 4 Pine Stud"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {
        "dtAuditResults": [
          {
            "AuditSequence": 1,
            "AuditType": "Warning",
            "AuditText": "Invalid AlternateUOM2"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates a single item and associated item_branch record(s)

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v548

PreReceiptSave

Sample Request

{
    "request": {
        "PreReceiptSaveJSON": {
            "dsPreReceiptSave": {
                "dtPreReceiptHeader": [
                    {
                        "FileSequence": 1,
                        "TranType": "PO",
                        "TranID": "11448430",
                        "ShipmentNum": 0,
                        "dtPreReceiptItem": [
                            {
                                "FileSequence": 1,
                                "ItemSequence": 1,
                                "TranSequence": 0,
                                "ItemCode": "WENGE44FASBF",
                                "ItemXREF": "",
                                "ItemSpecies": "",
                                "ItemGrade": "",
                                "ItemSubGrade": "",
                                "ItemThickness": "",
                                "ItemSurface": "",
                                "ItemDryness": "",
                                "ActivateItemsNotInBranch": false,
                                "AddItem": false,
                                "MarkTagsAsPrinted": false,
                                "DefaultRMKey": "",
                                "DeleteRemaining": false,
                                "dtPreReceiptStorage": [
                                    {
                                        "FileSequence": 1,
                                        "ItemSequence": 1,
                                        "StorageSequence": 1,
                                        "Location": "WHSE",
                                        "Lot": "A",
                                        "Tag": "",
                                        "Content": "",
                                        "Thickness": 1.25,
                                        "Width": 10.00,
                                        "Length": 4.0,
                                        "NominalLength": 0.0,
                                        "PieceCount": 30,
                                        "Comments": "",
                                        "Quantity": 1.0,
                                        "UOM": "UNIT"
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        }
    }
}

Sample Response

{
    "response": {
        "PreReceiptSaveResponseJSON": {
            "dsPreReceiptSaveResponse": {}
        },
        "ReturnCode": 0,
        "MessageText": ""
    }
}

Purpose

Allows pre-receipt records to be saved for purchase orders and reman orders

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v600

TagInfoGet

Sample Request

{
  "request": {
    "Tag": "T0000002"
  }
}

Sample Response

{
  "response": {
    "TagInfoGetResponse": {
      "dsTagInfoGetResponse": {
        "dtTagInfoGetResponse": [
          {
            "ItemCode": "SheetGood",
            "ItemPtr": 103964,
            "StockingUOM": "SF",
            "ItemSize": "",
            "ItemDescription": "Sheet good item",
            "ItemExtDescription": "",
            "Location": "FL01 A1-100",
            "LocationPtr": 17,
            "Lot": "100",
            "Tag": "T0000002",
            "Content": "30\"X60\"",
            "Thickness": 0,
            "WIDTH": 30,
            "LENGTH": 60,
            "PieceCount": 0,
            "CommitInfo": "",
            "TallyString": "40/30\"x60\"",
            "OnHandQty": 500,
            "HasMultipleContents": false,
            "DimensionString": "30X60",
            "DisplayUOM": "SF",
            "DisplayUOMQuantity": 40,
            "DisplayUOMConvFactor": 0.08,
            "PieceReference": "SH",
            "PieceQty": 40,
            "PieceConvFactor": 0.08,
            "InvTagType": "Sngl Unit, PC Cnt, & Length",
            "QtyCarriedAtLot": true,
            "QtyCarriedAtContent": true,
            "QtyOnHold": 0,
            "QtyToBeReturned": 0
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns the information related to a specified inventory tag or tags

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v545

TagValuesList

Sample Request

{
  "request": {
    "dsTagValuesListRequest": {
      "dtTagValuesListRequest": [
        {
          "NumberOfTagSequences": 2
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "TagValuesListResponse": {
      "dsTagValuesListResponse": {
        "dtTagValuesListResponse": [
          {
            "Tag": "T0113334"
          },
          {
            "Tag": "T0113335"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns the next available inventory tag sequences

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v545

TagsPrint

Sample Request

{
  "request": {
    "dsTagsPrintRequest": {
      "dtTagsPrintRequest": [
        {
          "Sequence": 2,
          "Tag": "Tag 1",
          "PrinterID": "LABEL"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Prints inventory tags to a specified printer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v545

AgilityPublic/Orders Service

This AgilityPublic service contains methods related to customer transactions and orders.

CreditMemoCreateFromHistory

Sample Request

{
  "request": {
    "OriginalSOID": 2226,
    "OriginalShipmentNumber": 2,
    "OrderHeaderJSON": {
      "dsOrderHeaderRequest": {
        "dtOrderHeaderRequest": [
          {
            "ExpectedPickUp": "2021-11-30",
            "RMAFlag": true,
            "OrderedBy": "J. Smith",
            "OrderMessage": "Created through API",
            "PlaceOnHold": true,
            "MiscField1": "Sales project 11821-A",
            "MiscField2": "",
            "MiscField3": "",
            "MiscField4": "",
            "MiscField5": "",
            "MiscField6": "",
            "MiscField7": "",
            "MiscField8": "",
            "MiscField9": "",
            "MiscField10": "",
            "MiscField11": "",
            "MiscField12": "",
            "MiscDate1": "2021-12-01",
            "MiscDate2": "2021-12-31",
            "ShipmentTrackingNumber": "93993",
            "ShipmentTrackingDate": "11/19/21"
          }
        ]
      }
    },
    "OrderItemJSON": {
      "dsOrderItemRequest": {
        "dtOrderItemRequest": [
          {
            "OriginalSequence": 1,
            "OrderQty": 1,
            "UOM": "SF",
            "ReasonCode": "Price Only",
            "PurchaseOrderID": 0,
            "ItemMessage": "Monthly special not applied",
            "PrintMsgOnForms": true,
            "PrintMsgOnFormsOverride": true,
            "WorkOrderID": 0,
            "CompletionSeq": 0,
            "UseDefaultLocation": false,
            "dtOrderItemDimensionRequest": [
              {
                "OriginalSequence": 1,
                "Thickness": 0,
                "Width": 24,
                "Length": 36,
                "PieceCount": 0,
                "OrderQty": 1,
                "UOM": "PC"
              }
            ]
          },
          {
            "OriginalSequence": 2,
            "OrderQty": 1,
            "UOM": "BF",
            "ReasonCode": "Return to Stock",
            "PurchaseOrderID": 0,
            "ItemMessage": "Wrong item delivered",
            "PrintMsgOnForms": true,
            "PrintMsgOnFormsOverride": true,
            "WorkOrderID": 0,
            "CompletionSeq": 0,
            "UseDefaultLocation": true,
            "dtOrderItemDimensionRequest": [
              {
                "OriginalSequence": 2,
                "Thickness": 2,
                "Width": 4,
                "Length": 8,
                "PieceCount": 0,
                "OrderQty": 2,
                "UOM": "PC"
              },
              {
                "OriginalSequence": 2,
                "Thickness": 2,
                "Width": 4,
                "Length": 10,
                "PieceCount": 0,
                "OrderQty": 2,
                "UOM": "PC"
              }
            ]
          },
          {
            "OriginalSequence": 5,
            "OrderQty": 2,
            "UOM": "EA",
            "ReasonCode": "Debit Memo",
            "PurchaseOrderID": 0,
            "ItemMessage": "Billing errors",
            "PrintMsgOnForms": false,
            "PrintMsgOnFormsOverride": false,
            "WorkOrderID": 0,
            "CompletionSeq": 0,
            "UseDefaultLocation": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "NewOrderID": 2229,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a new credit memo from an invoiced shipment, which can include BOM parent items and dimensional items with tallies specified.

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554

CreditMemoList

Sample Request

{
  "request": {
    "SearchBy": "",
    "SearchValue": "",
    "CustomerID": "BCH",
    "ShipToSequence": 1,
    "OrderDateRangeStart": "2021-11-08",
    "OrderDateRangeEnd": "2021-11-10",
    "FetchOnlyChangedSince": "2021-11-08",
    "IncludeOpenOrders": true,
    "IncludeInvoicedOrders": true,
    "IncludeCanceledOrders": true,
    "ChunkStartPointer": 0,
    "RecordFetchLimit": 0
  }
}

Sample Response

{
  "response": {
    "CreditMemoResponse": {
      "dsCreditMemos": {
        "dtCreditMemo": [
          {
            "BranchID": "1MELISSA",
            "OrderID": 2232,
            "CustomerID": "BCH",
            "ShipToSequence": 2,
            "OrderedBy": "Melissa",
            "OrderDate": "2021-11-11",
            "ExpectedDate": null,
            "OrderStatus": "Open",
            "OrderProcessStatus": "",
            "CreditHoldStatus": "",
            "ApprovalStatus": "Hold",
            "SaleType": "WH",
            "SaleTypeDescription": "Warehouse",
            "TransactionJob": "",
            "TransactionReference": "",
            "CustomerPO": "",
            "RouteID": "",
            "ShipVia": "FedEx",
            "FreightTerms": "",
            "PayTermsCode": "1%10NET20",
            "OrderSubtotal": -9.01,
            "OrderChargesAmount": 0,
            "Taxable": true,
            "TaxCode": "AK",
            "OrderTaxAmount": 0,
            "OrderTotal": -9.01,
            "DiscountAmount": -0.09,
            "AfterDeductFreightAmt": 0,
            "ShipToName": "Bret's Custom Homes",
            "ShipToAddress1": "3101 R Road",
            "ShipToAddress2": "",
            "ShipToAddress3": "",
            "ShipToCity": "Cook",
            "ShipToState": "NE",
            "ShipToCountry": "USA",
            "ShipToZip": "68130",
            "ShipToPhone": "(402)-440-6890",
            "BillToName": "Bret's Custom Homes",
            "BillToAddress1": "3101 R Road",
            "BillToAddress2": "",
            "BillToAddress3": "",
            "BillToCity": "Cook",
            "BillToState": "NE",
            "BillToCountry": "USA",
            "BillToZip": "68130",
            "BillToPhone": "(402)-440-6890",
            "SalesAgentID1": "NewSA1",
            "SalesAgentName1": "Melissa",
            "SalesAgentID2": "NewSA2",
            "SalesAgentName2": "Charlotte ",
            "SalesAgentID3": "NewSA3",
            "SalesAgentName3": "Violet ",
            "SalesAgentID4": "",
            "SalesAgentName4": "",
            "SalesAgentID5": "",
            "SalesAgentName5": "",
            "SalesAgentID6": "",
            "SalesAgentName6": "",
            "UpdateDate": "2021-11-11",
            "UpdateTime": "09:54:39",
            "ContactEmail": "",
            "ContactName": "",
            "ContactPhone": "",
            "ShipComplete": false,
            "CostTotal": -11,
            "CostType": "Item default",
            "TotalWeight": 1,
            "TotalLoad": 1,
            "StatusType": "RMA",
            "dtCreditMemoDetail": [
              {
                "BranchID": "1MELISSA",
                "OrderID": 2232,
                "Sequence": 1,
                "DisplaySequence": 1,
                "LineType": "CM",
                "ItemCode": "PI-BLANK-A100",
                "ItemSize": "50ct",
                "ItemDescription": "Nails",
                "TotalOrderedQuantity": -1,
                "QuantityUOM": "EA",
                "GrossPrice": 9.01,
                "NetPrice": 9.01,
                "PriceUOM": "EA",
                "DiscountDescription": "",
                "Taxable": true,
                "ExtendedPrice": -9.01,
                "TotalBackorderedQuantity": 0,
                "TotalStagedQuantity": 0,
                "TotalUnstagedQuantity": 0,
                "TotalInvoicedQuantity": 0,
                "LinkedTranType": "",
                "LinkedTranID": 0,
                "LinkedTranSequence": 0,
                "CustomerPOLineNumber": "",
                "DepartmentName": "",
                "DepartmentNumber": "",
                "PartNumber": "",
                "SKU": "",
                "UPCCode": "",
                "ExtCost": -10.9997,
                "ExtWeight": 1,
                "ExtLoad": 1
              }
            ]
          },
          {
            "BranchID": "1MELISSA",
            "OrderID": 2233,
            "CustomerID": "BCH",
            "ShipToSequence": 2,
            "OrderedBy": "Melissa",
            "OrderDate": "2021-11-11",
            "ExpectedDate": null,
            "OrderStatus": "Open",
            "OrderProcessStatus": "",
            "CreditHoldStatus": "",
            "ApprovalStatus": "Hold",
            "SaleType": "WH",
            "SaleTypeDescription": "Warehouse",
            "TransactionJob": "",
            "TransactionReference": "",
            "CustomerPO": "",
            "RouteID": "",
            "ShipVia": "FedEx",
            "FreightTerms": "",
            "PayTermsCode": "1%10NET20",
            "OrderSubtotal": -9.01,
            "OrderChargesAmount": 0,
            "Taxable": true,
            "TaxCode": "AK",
            "OrderTaxAmount": 0,
            "OrderTotal": -9.01,
            "DiscountAmount": -0.09,
            "AfterDeductFreightAmt": 0,
            "ShipToName": "Bret's Custom Homes",
            "ShipToAddress1": "3101 R Road",
            "ShipToAddress2": "",
            "ShipToAddress3": "",
            "ShipToCity": "Cook",
            "ShipToState": "NE",
            "ShipToCountry": "USA",
            "ShipToZip": "68130",
            "ShipToPhone": "(402)-440-6890",
            "BillToName": "Bret's Custom Homes",
            "BillToAddress1": "3101 R Road",
            "BillToAddress2": "",
            "BillToAddress3": "",
            "BillToCity": "Cook",
            "BillToState": "NE",
            "BillToCountry": "USA",
            "BillToZip": "68130",
            "BillToPhone": "(402)-440-6890",
            "SalesAgentID1": "NewSA1",
            "SalesAgentName1": "Melissa",
            "SalesAgentID2": "NewSA2",
            "SalesAgentName2": "Charlotte ",
            "SalesAgentID3": "NewSA3",
            "SalesAgentName3": "Violet ",
            "SalesAgentID4": "",
            "SalesAgentName4": "",
            "SalesAgentID5": "",
            "SalesAgentName5": "",
            "SalesAgentID6": "",
            "SalesAgentName6": "",
            "UpdateDate": "2021-11-11",
            "UpdateTime": "09:59:44",
            "ContactEmail": "",
            "ContactName": "",
            "ContactPhone": "",
            "ShipComplete": false,
            "CostTotal": -11,
            "CostType": "Item default",
            "TotalWeight": 1,
            "TotalLoad": 1,
            "StatusType": "RMA",
            "dtCreditMemoDetail": [
              {
                "BranchID": "1MELISSA",
                "OrderID": 2233,
                "Sequence": 1,
                "DisplaySequence": 1,
                "LineType": "CM",
                "ItemCode": "PI-BLANK-A100",
                "ItemSize": "50ct",
                "ItemDescription": "Nails",
                "TotalOrderedQuantity": -1,
                "QuantityUOM": "EA",
                "GrossPrice": 9.01,
                "NetPrice": 9.01,
                "PriceUOM": "EA",
                "DiscountDescription": "",
                "Taxable": true,
                "ExtendedPrice": -9.01,
                "TotalBackorderedQuantity": 0,
                "TotalStagedQuantity": 0,
                "TotalUnstagedQuantity": 0,
                "TotalInvoicedQuantity": 0,
                "LinkedTranType": "",
                "LinkedTranID": 0,
                "LinkedTranSequence": 0,
                "CustomerPOLineNumber": "",
                "DepartmentName": "",
                "DepartmentNumber": "",
                "PartNumber": "",
                "SKU": "",
                "UPCCode": "",
                "ExtCost": -10.9997,
                "ExtWeight": 1,
                "ExtLoad": 1
              }
            ]
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "NextChunkStartPointer": 2,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of credit memos for a specified customer

Required Inputs

Value Required

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539; approval status added to response in v554

CreditMemoMessageCreate

Sample Request

{
  "request": {
    "MessageCreateJSON": {
      "dsMessageCreate": {
        "dtMessageCreate": [
          {
            "TranID": 300152143,
            "TranSeq": 1,
            "MessageText": "Message Text Here",
            "MessageType": "Detail",
            "PrintOnForms": true
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a credit memo transaction message in the branch the user is logged into

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554

CustomerOrderPadAdd

Sample Request

{
  "request": {
    "CustomerID": "Hayes",
    "ShipToSequence": 1,
    "dsOrderPadItemsRequest": {
      "dtOrderPadItemsRequest": [
        {
          "Sequence": 10,
          "ItemCode": "419147",
          "OrderQty": 7,
          "UOM": "EA",
          "Price": 15,
          "PriceUOM": "EA",
          "PriceLevel": 1,
          "SaleType": "",
          "ItemMessage": "",
          "OrderedBy": "Brad"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a new OrderPad detail; if no OrderPad exists for the customer/ship-to, also creates the main OrderPad record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

CustomerOrderPadDelete

Sample Request

{
  "request": {
    "CustomerID": "Hayes",
    "ShipToSequence": 1,
    "dsOrderPadItemsRequest": {
      "dtOrderPadItemsRequest": [
        {
          "Sequence": 5
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes an existing OrderPad detail; if this is the only OrderPad detail remaining on this OrderPad, the main OrderPad record is also deleted

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

CustomerOrderPadList

Sample Request

{
  "request": {
    "CustomerID": "Hayes",
    "ShipToSequence": 1
  }
}

Sample Response

{
  "response": {
    "dsCustomerOrderPadResponse": {
      "dsCustomerOrderPadResponse": {
        "dtOrderPadHeaderResponse": [
          {
            "CustomerCode": "Hayes",
            "ShipToSequence": 1,
            "PriceLevel": 2,
            "SaleType": "WH",
            "dtOrderPadItemResponse": [
              {
                "ItemCode": "419147",
                "Dimension": "",
                "OrderQty": 150,
                "UOM": "EA",
                "Price": 15,
                "PriceUOM": "EA",
                "AvailableQty": 487,
                "ItemSize": "ISize",
                "ItemDescription": "Elkhorn",
                "PriceOverridden": true,
                "DiscountDescription": "",
                "ExtendedPrice": 2250,
                "Cost": 42.7055,
                "CostDesignator": "A",
                "GrossMarginPercent": -184.7,
                "GrossMarginAmount": -4155.82,
                "PriceLevel": 1,
                "SaleType": "WH",
                "CreatedBy": "Brad",
                "CreatedDate": "2019-02-13",
                "CreatedTime": "12:39:58",
                "UpdateBy": "Brad",
                "UpdateDate": "2019-02-13",
                "UpdateTime": "12:39:58",
                "Sequence": 4,
                "CustomerCode": "Hayes",
                "ShipToSequence": 1,
                "Thickness": 0,
                "Width": 0,
                "Length": 0,
                "ItemMessage": "",
                "OrderedBy": "Brad",
                "SupplierRebate": 0,
                "MinPackQty": 0,
                "MinPackType": "Allow - Question"
              }
            ]
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns an existing OrderPad for a specific customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

CustomerOrderPadUpdate

Sample Request

{
  "request": {
    "CustomerID": "Hayes",
    "ShipToSequence": 1,
    "OrderPadUpdateJSON": {
      "dsCustomerOrderPadItemsRequest": {
        "dtCustomerOrderPadItemsRequest": [
          {
            "Sequence": 4,
            "ItemCode": "419147",
            "Thickness": 0,
            "Width": 0,
            "Length": 0,
            "OrderQty": 77,
            "UOM": "EA",
            "Price": 2,
            "PriceUOM": "EA",
            "SaleType": "WH",
            "ItemMessage": "",
            "OrderedBy": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates an existing OrderPad detail

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

QuicklistList

Sample Request

{
  "request": {
    "CustomerID": "123161",
    "ShipToSequence": 1
  }
}

Sample Response

"response": {
    "dsItemQuickListResponse": {
        "dsdsItemQuickListResponse": {
            "dtQuickListHeaderResponse": [
                {
                    "QuickList": "Top Items by GM %",
                    "dtQuickListItemResponse": [
                        {
                            "QuickList": "Top Items by GM %",
                            "ItemCode": "100040",
                            "ItemSize": "Satin Paint",
                            "ItemDescription": "orange interior",
                            "RankValue": 86.1
                        }
                    ]
                },
                {
                    "QuickList": "Top Items by Hits",
                    "dtQuickListItemResponse": [
                        {
                            "QuickList": "Top Items by Hits",
                            "ItemCode": "97114SHEET",
                            "ItemSize": "",
                            "ItemDescription": "Sheet good",
                            "RankValue": 9
                        }
                    ]
                },
                {
                    "QuickList": "Top Items by Total Sales Amt",
                    "dtQuickListItemResponse": [
                        {
                            "QuickList": "Top Items by Total Sales Amt",
                            "ItemCode": "c10",
                            "ItemSize": "10 gauge2",
                            "ItemDescription": "",
                            "RankValue": 10818.25
                        }
                    ]
                }
            ]
        }
    },
    "ReturnCode": 0,
    "MessageText": ""
}

Purpose

Returns existing quick lists with a quicklist type of 'Sales' for a specific customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

QuicklistPriceandAvailList

Sample Request

{
  "request": {
    "CustomerID": "123161",
    "ShipToSequence": 1
  }
}

Sample Response

{
  "response": {
    "ItemCustomerPricingResponse": {
      "dsItemCustomerPricingResponse": {
        "dtItemPriceAndQtyResponse": [
          {
            "ItemCode": "c10",
            "ItemXref": "All Cust Xref",
            "ItemSize": "10 gauge2",
            "DimensionSize": "",
            "ItemDescription": "",
            "ExtendedDescription": "c10",
            "Thickness": 0,
            "ThicknessUOM": "",
            "Width": 0,
            "WidthUOM": "",
            "Length": 0,
            "LengthUOM": "",
            "ItemGroupMajor": "MISC",
            "ItemGroupMinor": "NAILS",
            "MinPackQty": 1,
            "MinPackType": "Adjust - Notify",
            "Nonsaleable": false,
            "Stock": true,
            "ItemType": "",
            "ItemTypeName": "",
            "ImageUrl": "",
            "UOM": "PC",
            "OnHandQty": 100,
            "AvailableQty": 90,
            "PriceUOM": "box",
            "GrossPrice": 0.27,
            "PriceUOMGrossPrice": 27,
            "NetPrice": 0.27,
            "PriceUOMNetPrice": 27,
            "DiscountDescription": "",
            "QuickList": "Top Items by Total Sales Amt",
            "RankValue": 10818.25,
            "Dimension": "",
            "SpecialItemType": "",
            "Promo": false,
            "DefaultWeight": 4.5,
            "DefaultWeightUOM": "box",
            "DefaultLoad": 1.1,
            "DefaultLoadUOM": "box",
            "PrimarySupplierWeight": 4.5,
            "PrimarySupplierWeightUOM": "box",
            "PrimarySupplierLoad": 1.1,
            "PrimarySupplierLoadUOM": "box"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns existing quick lists with a quicklist type of 'Sales' for a specific customer with price and availability information

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

QuoteCreate

Sample Request

{
  "request": {
    "QuoteHeaderJSON": {
      "dsQuoteHeaderRequest": {
        "dtQuoteHeaderRequest": [
          {
            "CustomerID": "777",
            "ShipToSequence": 1,
            "SaleType": "WH",
            "RequestedDeliveryDate": "2021-09-15",
            "TransactionReference": "",
            "TransactionJob": "",
            "OrderedBy": "",
            "CustomerPO": "",
            "AcknowledgementEmailAddress": "",
            "AcknowledgementEmailAddress2": "",
            "AcknowledgementFaxNumber": "",
            "ShipToName": "",
            "ShipToAddress1": "",
            "ShipToAddress2": "",
            "ShipToAddress3": "",
            "ShipToCity": "",
            "ShipToState": "",
            "ShipToZip": "",
            "ShipToCountry": "",
            "ShipToPhone": "",
            "OrderMessage": "",
            "ShipVia": "",
            "ActivationDate": "2024-02-23", 
            "CloseDate": "2025-02-14", 
            "ExternalSource": "Amazon", 
            "ExternalProjectID": "AM12345" 
          }
        ],
        "dtQuoteHeaderNotesRequest": [
          {
            "OrderNote": "Hold order",
            "HotNote": true
          },
          {
            "OrderNote": "Must ship on time",
            "HotNote": false
          }
        ]
      }
    },
    "OrderItemJSON": {
      "dsOrderItemRequest": {
        "dtOrderItemRequest": [
          {
            "Sequence": 1,
            "ItemCode": "jfsl2",
            "OrderQty": 2,
            "UOM": "EA",
            "Charge": false,
            "Price": 1.6,
            "PriceUOM": "EA",
            "PriceOverride": false,
            "UseItemConvertPriceAndUOM": false,
            "OrderCost": false,
            "CustomerPOLineNumber": "",
            "DepartmentName": "",
            "DepartmentNumber": "",
            "PartNumber": "",
            "SKU": "",
            "UPCCode": "",
            "ItemMessage": "",
            "PrintMsgOnForms": false,
            "PrintMsgOnFormsOverride": false,
            "SendMsgToWMS": false,
            "SendMsgToWMSOverride": false,
            "APIPriceSourceType": "",
            "APIPriceSourceRef": "",
            "ShippingBranch": "",
            "DetailGroupID": "Attic",
            "AddPermanentDetailGroupID": false,
            "UseGroupAsDefaultNewItems": false,
            "TemplateItemCode": "TEMPLATERKE",
            "NonStockSize": "Large",
            "NonStockDescription": "",
            "NonStockExtDescription": "",
            "NonStockCopyCustomFields": true,
            "NonStockSupplierID": "800",
            "NonStockSupplierShipFromSequence": 1,
            "NonStockSupplierPartNumber": "634-980",
            "NonStockProductGroupMajor": "112",
            "NonStockProductGroupMinor": "25",
            "NonStockPriceCodeMajor": "112",
            "NonStockPriceCodeMinor": "10",
            "NonStockCost": 12,
            "NonStockCostUOM": "EA"

          },
          {
            "ItemCode": "Freight Charge",
            "Charge": true,
            "Price": 50
          },
          {
            "ItemCode": "Freight Cost",
            "OrderCost": true,
            "Price": 50
          }
        ],
        "dtOrderItemDimensionRequest": [
          {
            "Sequence": 0,
            "Thickness": 0,
            "Width": 0,
            "Length": 0,
            "OrderQty": 0,
            "UOM": "",
            "Price": 0,
            "PriceUOM": "",
            "PriceOverride": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "NewOrderID": 738,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a new quote

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v552; fields added in v602, v609, and v610

QuoteCreateValidate

Sample Request

{ 
  "request": { 
    "dsQuoteHeaderRequest": { 
      "dtQuoteHeaderRequest": [ 
        { 
          "CustomerID  ": "INC321", 
          "ShipToSequence": 1, 
          "SaleType": "WH", 
          "RequestedDeliveryDate": "2024-01-31",  
          "TransactionReference": "", 
          "TransactionJob ": "", 
          "OrderedBy": "API", 
          "CustomerPO": "", 
          "AcknowledgementEmailAddress": "", 
          "AcknowledgementEmailAddress2": "", 
          "AcknowledgementFaxNumber": "", 
          "ShipToName ": "", 
          "ShipToAddress1": "", 
          "ShipToAddress2": "", 
          "ShipToAddress3": "", 
          "ShipToCity ": "", 
          "ShipToState": "", 
          "ShipToZip": "", 
          "ShipToCountry": "", 
          "ShipToPhone": "", 
          "OrderMessage": "test", 
          "ShipVia": "FedEx", 
          "ActivationDate": "2024-01-31", 
          "CloseDate": "2025-01-31", 
          "ExternalSource": "Roof Hub", 
          "ExternalProjectID": "RH12345" 
        } 
      ], 
      "dtQuoteHeaderNotesRequest": [ 
        { 
          "OrderNote": "Hold order", 
          "HotNote": true 
        }, 
        { 
          "OrderNote": "Must ship on time", 
          "HotNote": false 
        } 
      ] 
    }, 
    "dsOrderItemRequest": { 
      "dtOrderItemRequest": [ 
        { 
          "Sequence": 1, 
          "ItemCode": "1.5FOAM", 
          "OrderQty": 22, 
          "UOM": "EACH", 
          "Charge": false, 
          "Price": 0, 
          "PriceUOM": "EA", 
          "PriceOverride": false, 
          "OrderCost": false, 
          "CustomerPOLineNumber": "", 
          "DepartmentName": "", 
          "DepartmentNumber": "", 
          "PartNumber": "", 
          "SKU": "", 
          "UPCCode": "", 
          "ItemMessage": "", 
          "PrintMsgOnForms": false, 
          "PrintMsgOnFormsOverride": false, 
          "SendMsgToWMS": false, 
          "SendMsgToWMSOverride": false, 
          "APIPriceSourceType": "", 
          "APIPriceSourceRef": "", 
          "DetailGroupID": "Roof", 
          "AddPermanentDetailGroupID": true, 
          "UseGroupAsDefaultNewItems": true,
          "TemplateItemCode": "PI-SL-A100",
          "NonStockSize": "AJS-20",
          "NonStockDescription": "I Joist - residential",
          "NonStockExtDescription": "Flanges - LVL",
          "NonStockCopyCustomFields": true,
          "NonStockSupplierID": "800",
          "NonStockSupplierShipFromSequence": 1,
          "NonStockSupplierPartNumber": "",
          "NonStockProductGroupMajor": "112",
          "NonStockProductGroupMinor": "25",
          "NonStockPriceCodeMajor": "112",
          "NonStockPriceCodeMinor": "10",
          "NonStockCost": 125,
          "NonStockCostUOM": "BF"
        }, 
        { 
          "Sequence": 2, 
          "ItemCode": "", 
          "OrderQty": 200, 
          "UOM": "BF", 
          "Charge": false, 
          "Price": 0, 
          "PriceUOM": "BF", 
          "PriceOverride": false, 
          "OrderCost": false, 
          "CustomerPOLineNumber": "", 
          "DepartmentName": "", 
          "DepartmentNumber": "", 
          "PartNumber": "", 
          "SKU": "", 
          "UPCCode": "", 
          "ItemMessage": "", 
          "PrintMsgOnForms": false, 
          "PrintMsgOnFormsOverride": false, 
          "SendMsgToWMS": false, 
          "SendMsgToWMSOverride": false, 
          "APIPriceSourceType": "", 
          "APIPriceSourceRef": "",
          "DetailGroupID": "Framing", 
          "AddPermanentDetailGroupID": false, 
          "UseGroupAsDefaultNewItems": true 
        }, 
        { 
          "Sequence": 3, 
          "ItemCode": "3068SLAB", 
          "OrderQty": 1, 
          "UOM": "EA", 
          "Charge": false, 
          "Price": 0, 
          "PriceUOM": "EA", 
          "PriceOverride": false, 
          "OrderCost": false, 
          "CustomerPOLineNumber": "", 
          "DepartmentName": "", 
          "DepartmentNumber": "", 
          "PartNumber": "", 
          "SKU": "", 
          "UPCCode": "", 
          "ItemMessage": "", 
          "PrintMsgOnForms": false, 
          "PrintMsgOnFormsOverride": false, 
          "SendMsgToWMS": false, 
          "SendMsgToWMSOverride": false, 
          "APIPriceSourceType": "", 
          "APIPriceSourceRef": "",
          "DetailGroupID": "Foundation", 
          "AddPermanentDetailGroupID": false, 
          "UseGroupAsDefaultNewItems": false
        }, 
        { 
          "ItemCode": "Freight Charge", 
          "Charge": true, 
          "Price": 50 
        }, 
        { 
          "ItemCode": "Freight Cost", 
          "OrderCost": true, 
          "Price": 50 
        } 
      ], 
      "dtOrderItemDimensionRequest": [ 
        { 
          "Sequence": 2, 
          "Thickness": 2, 
          "Width": 4, 
          "Length": 10, 
          "OrderQty": 30, 
          "UOM": "PC", 
          "Price": 0, 
          "PriceUOM": "0", 
          "PriceOverride": false 
        } 
      ] 
    } 
  } 
} 

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {
        "dtAuditResults": [
          {
            "AuditSequence": 1,
            "AuditType": "Failure",
            "AuditTable": "dtOrderItemDimensionRequest",
            "AuditRecordIndex": "Sequence: 2, Thickness: 1, Width: 4, Length: 10",
            "AuditText": "Invalid dimension of T=1 W=4 L=10 for 141730-RL. (ID# 1143)"
          },
          {
            "AuditSequence": 2,
            "AuditType": "Failure",
            "AuditTable": "dtOrderItemRequest",
            "AuditRecordIndex": "Sequence: 1, Item code: 2827",
            "AuditText": "Order Qty cannot be negative for Item 2827. (ID# 1662)"
          }
        ]
      }
    },
    "ReturnCode": 2,
    "MessageText": "See audit results for failures"
  }
}


Purpose

Validates the creation of a new quote order and new items

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v609; fields added in v610

QuoteDelete

Sample Request

{
  "request": {
    "QuoteID": 123456,
    "DeleteReleasedQuote": true
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes an existing quote

Required Inputs

Value Required

Optional Inputs

Response

Notes

Relationships

Version Deployed

549

QuoteDetailsDelete

Sample Request

{
  "request": {
    "OrderID": 300160083,
    "DeleteReleasedDetails": true,
    "QuoteDetailsDeleteJSON": {
      "dsOrderItemRequest": {
        "dtOrderItemRequest": [
          {
            "Sequence": 1
          },
          {
            "Sequence": 2
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {
        "dtAuditResults": [
          {
            "AuditSequence": 1,
            "AuditType": "Failure",
            "AuditTable": "dtOrderItemRequest",
            "AuditRecordIndex": "Sequence: 1",
            "AuditText": "Quote detail sequence 1 not found. (ID# 2381)"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": "See audit results for failures"
  }
}

Purpose

Deletes an existing quote detail record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

QuoteDetailsUpdate

Sample Request

{
  "request": {
    "OrderID": 1000340097,
    "QuoteDetailsUpdateJSON": {},
    "dsOrderItemRequest": {
      "dtOrderItemRequest": [
        {
          "Sequence": 3,
          "OrderQty": 800,
          "UOM": "BF",
          "UseItemConvertPriceAndUOM": false,
          "Price": 100,
          "PriceUOM": "MBF",
          "ApplyPriceToAllDimensions": true,
          "PriceSubjectToFurtherDiscounts": false,
          "PriceOverride": true,
          "DetailGroupID": "Driveway",
          "AddPermanentDetailGroupID": true,
          "UseGroupAsDefaultNewItems": false,
          "dtOrderItemDimensionRequest": [
            {
              "Sequence": 3,
              "Thickness": 2,
              "Width": 4,
              "Length": 10,
              "PieceCount": 0,
              "OrderQty": 200,
              "UOM": "BF"
            }
          ]
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": "",
    "AuditResults": {
      "dsAuditResults": {}
    }
  }
}

Purpose

Updates an existing quote detail record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

QuoteList

Sample Request

{
  "request": {
    "SearchBy": "",
    "SearchValue": "",
    "CustomerID": "123161",
    "ShipToSequence": 1,
    "IncludeOnlyOpenQuotes": false,
    "ChunkStartPointer": "",
    "RecordFetchLimit": ""
  }
}

Sample Response

{
  "response": {
    "QuoteDisplayResponse": {
      "dsQuotesResponse": {
        "dtQuoteResponse": [
          {
            "BranchID": "WESTONBRANCH",
            "QuoteID": 300530,
            "HeaderGUID": "1009e9de529e-b775-b995-4914-f9d5fc29",
            "QuoteType": "",
            "CustomerID": "123161",
            "ShipToSequence": 1,
            "QuotedBy": "llattier",
            "QuoteDate": "2018-12-17",
            "ActivationDate": "2018-12-17",
            "ClosedDate": "2019-04-16",
            "QuoteProcessStatus": "Open",
            "SaleType": "WH",
            "SaleTypeDescription": "Warehouse Order WH",
            "TransactionJob": "",
            "TransactionReference": "",
            "CustomerPO": "",
            "ShipVia": "OUR TRUCK",
            "FreightTerms": "",
            "PayTermsCode": "2%flat",
            "OrderSubtotal": 960,
            "OrderChargesAmount": 0,
            "Taxable": true,
            "TaxCode": "NE5.5",
            "OrderTaxAmount": 52.8,
            "OrderTotal": 1012.8,
            "DiscountAmount": 19.2,
            "AfterDeductFreightAmt": 0,
            "ShipToName": "DAA Hardware - Ralston",
            "ShipToAddress1": "4321 78th Street",
            "ShipToAddress2": "",
            "ShipToAddress3": "",
            "ShipToCity": "Ralston",
            "ShipToState": "NE",
            "ShipToCountry": "",
            "ShipToZip": "68127",
            "ShipToPhone": "(402)-555-3333",
            "BillToName": "DAA HARDWARE BILL-TO 1",
            "BillToAddress1": "123 A STREET",
            "BillToAddress2": "",
            "BillToAddress3": "",
            "BillToCity": "LA VISTA",
            "BillToState": "NE",
            "BillToCountry": "USA",
            "BillToZip": "68128",
            "BillToPhone": "(   )-   -    ",
            "SalesAgentID1": "",
            "SalesAgentName1": "",
            "SalesAgentID2": "",
            "SalesAgentName2": "",
            "SalesAgentID3": "",
            "SalesAgentName3": "",
            "SalesAgentID4": "",
            "SalesAgentName4": "",
            "SalesAgentID5": "",
            "SalesAgentName5": "",
            "SalesAgentID6": "",
            "SalesAgentName6": "",
            "ExternalSource": "AMAZON",
            "ExternalProjectID": "AM12345",
            "dtQuoteDetailResponse": [
              {
                "BranchID": "WESTONBRANCH",
                "QuoteID": 300530,
                "Sequence": 1,
                "DisplaySequence": 1,
                "ItemCode": "PHX283A",
                "ItemSize": "REG",
                "ItemDescription": "",
                "DetailProcessStatus": "Open",
                "TotalOrderedQuantity": 10,
                "QuantityUOM": "EA",
                "GrossPrice": 32,
                "NetPrice": 32,
                "PriceUOM": "EA",
                "DiscountDescription": "",
                "Taxable": true,
                "ExtendedPrice": 320,
                "WOPhrase": "",
                "DetailGroupID": "Basement",
                "TotalReleasedQuantity": 4,
                "TotalRemainingQuantity": 5.5

              }
            ]
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "NextChunkStartPointer": 262,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of quotes for a specified customer

Required Inputs

Value Required

Optional Inputs

Response

Notes

Relationships

Version Deployed

539; fields added in v609

QuoteMessageCreate

Sample Request

{
  "request": {
    "MessageCreateJSON": {
      "dsMessageCreate": {
        "dtMessageCreate": [
          {
            "TranID": 12345,
            "ShipmentNum": 1,
            "TranSeq": 1,
            "MessageText": "Message Text Here",
            "MessageType": "Detail",
            "PrintOnForms": true,
            "SendToWMS": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a quote transaction message in the branch the user is logged into

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554

QuotePriceHoldApprove

Sample Request

{
  "request": {
    "QuoteID": 1000328293,
    "QuoteDetailApproveJSON": {
      "dsQuoteDetail": {
        "dtQuoteDetail": [
          {
            "Sequence": 1,
            "SendNotification": "YES",
            "ReviewerID": "PRCAPP01",
            "Comment": "above floor"
          },
          { "Sequence": 2, "SendNotification": "NO" },
          {
            "Sequence": 4,
            "SendNotification": "YES",
            "ReviewerID": "PRCAPP01",
            "Comment": "below floor"
          },
          {
            "Sequence": 3,
            "SendNotification": "YES",
            "ReviewerID": "PRCAPP01",
            "Comment": "Error in quoted price"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Removes quote items from price hold; approve items on price hold based of the QuoteID and detail line item Sequence

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

QuotePriceHoldReject

Sample Request

{
  "request": {
    "QuoteID": 1000328312,
    "QuoteDetailRejectJSON": {
      "dsQuoteDetail": {
        "dtQuoteDetail": [
          {
            "Sequence": 2,
            "SuggestedPrice": 2.2,
            "SuggestedPriceUOM": "GAL",
            "SendNotification": "YES",
            "ReviewerID": "PRCREJ01",
            "Comment": "below floor"
          },
          {
            "Sequence": 1,
            "SuggestedPrice": 1.1,
            "SuggestedPriceUOM": "EA",
            "SendNotification": "YES",
            "ReviewerID": "PRCREJ01",
            "Comment": "below floor"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Denies removal of quote items from price hold based on the QuoteID and detail line item Sequence and sends a suggested price for approval

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v550

QuoteRelease

Sample Request

{
  "request": {
    "QuoteReleaseJSON": {
      "dsQuoteReleaseSettingsRequest": {
        "dtQuoteReleaseSettingsRequest": [
          {
            "OrderID": 1000380465,
            "ReleaseRule": "Release by item",
            "AppendSalesOrderID": 0,
            "SaleType": "",
            "CombineLikeItems": true,
            "RecalculateOverriddenExpDate": true
          }
        ]
      },
      "dsQuoteReleaseItemRequest": {
        "dtQuoteReleaseItemRequest": [
          {
            "Sequence": 1,
            "ReleaseQuantity": 240,
            "ReleaseUOM": "LF",
            "dtQuoteReleaseItemDimRequest": [
              {
                "Sequence": 1,
                "Thickness": 2,
                "Width": 4,
                "Length": 10,
                "ReleaseQuantity": 100,
                "ReleaseUOM": "LF",
                "PieceCount": 0
              },
              {
                "Sequence": 1,
                "Thickness": 2,
                "Width": 4,
                "Length": 12,
                "ReleaseQuantity": 120,
                "ReleaseUOM": "LF",
                "PieceCount": 0
              }
            ]
          },
          {
            "Sequence": 2,
            "ReleaseQuantity": 25,
            "ReleaseUOM": "RL"
          },
          {
            "Sequence": 3,
            "ReleaseQuantity": 50,
            "ReleaseUOM": "EA"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {
        "dtAuditResults": [
          {
            "AuditSequence": 2,
            "AuditType": "Failure",
            "AuditTable": "dtQuoteReleaseOrderItem",
            "AuditRecordIndex": "Sequence: 2",
            "AuditText": "Item was previously released"
          }
        ]
      }
    },
    "ReturnCode": 2,
    "MessageText": "See audit results for failures"
  }
}

Purpose

Fully or partially release an active/open quote to a sales order

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

QuoteUpdate

Sample Request

{
  "request": {
    "OrderID": 447,
    "QuoteHeaderUpdateJSON": {
      "dsQuoteHeaderUpdateRequest": {
        "dtQuoteHeaderUpdateRequest": [
          {
            "TransactionReference": "",
            "TransactionJob": "",
            "OrderedBy": "",
            "CustomerPO": "",
            "ShipVia": "",
            "RequestedDeliveryDate": "2024-03-28",
            "ActivationDate": "",
            "CloseDate": "",
            "ExternalSource": "",
            "ExternalProjectID": ""
          }
        ]
      }
    },
    "OrderItemUpdateJSON": {
      "dsOrderItemRequest": {
        "dtOrderItemRequest": [
          {
            "Sequence": 1,
            "ItemCode": "BLANK",
            "OrderQty": 1,
            "UOM": "EA",
            "Charge": false,
            "Price": 0,
            "PriceUOM": "",
            "PriceOverride": false,
            "UseItemConvertPriceAndUOM": false,
            "OrderCost": false,
            "CustomerPOLineNumber": "",
            "DepartmentName": "",
            "DepartmentNumber": "",
            "PartNumber": "",
            "SKU": "",
            "UPCCode": "",
            "ItemMessage": "",
            "PrintMsgOnForms": false,
            "PrintMsgOnFormsOverride": false,
            "SendMsgToWMS": false,
            "SendMsgToWMSOverride": false,
            "APIPriceSourceType": "",
            "APIPriceSourceRef": "",
            "DetailGroupID": "Driveway",
            "AddPermanentDetailGroupID": false,
            "UseGroupAsDefaultNewItems": true
          },
          {
            "Sequence": 2,
            "TemplateItemCode": "PI-BLANK-A100",
            "NonStockSize": "AJS-20",
            "NonStockDescription": "I-Joist",
            "NonStockExtDescription": "Flanges - LVL; web - OSB",
            "NonStockCopyCustomFields": true,
            "NonStockSupplierID": "800555",
            "NonStockSupplierShipFromSequence": 51,
            "NonStockSupplierPartNumber": "NonStockXref",
            "NonStockProductGroupMajor": "MISC2",
            "NonStockProductGroupMinor": "MATRLS2",
            "NonStockPriceCodeMajor": "MISC2",
            "NonStockPriceCodeMinor": "MATRLS2",
            "NonStockCost": 7.11,
            "NonStockCostUOM": "EA",
            "NonStockSize": "AJS-20",
            "OrderQty": 1,
            "UOM": "EA",
            "Charge": false,
            "Price": 0,
            "PriceUOM": "",
            "PriceOverride": false,
            "UseItemConvertPriceAndUOM": false,
            "OrderCost": false,
            "CustomerPOLineNumber": "",
            "DepartmentName": "",
            "DepartmentNumber": "",
            "PartNumber": "",
            "SKU": "",
            "UPCCode": "",
            "ItemMessage": "",
            "PrintMsgOnForms": false,
            "PrintMsgOnFormsOverride": false,
            "SendMsgToWMS": false,
            "SendMsgToWMSOverride": false,
            "APIPriceSourceType": "",
            "APIPriceSourceRef": "",
            "DetailGroupID": "Den",
            "AddPermanentDetailGroupID": false,
            "UseGroupAsDefaultNewItems": false
          },
          {
            "ItemCode": "Freight Charge",
            "Charge": true,
            "Price": 50
          },
          {
            "ItemCode": "Freight Cost",
            "OrderCost": true,
            "Price": 50
          }
        ],
        "dtOrderItemDimensionRequest": [
          {
            "Sequence": 0,
            "Thickness": 0,
            "Width": 0,
            "Length": 0,
            "OrderQty": 0,
            "UOM": "",
            "Price": 0,
            "PriceUOM": "",
            "PriceOverride": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates header information and/or adds new items to an existing quote

Required Inputs

Value Required

Optional Inputs

Response

Notes

Relationships

Version Deployed

v609; fields added in v610

QuoteUpdateValidate

Sample Request

{ 
  "request": { 
    "OrderID": 2046, 
    "QuoteHeaderUpdateJSON": { 
      "dsQuoteHeaderUpdateRequest": { 
        "dtQuoteHeaderUpdateRequest": [ 
          { 
            "TransactionReference": "", 
            "TransactionJob": "", 
            "OrderedBy": "", 
            "CustomerPO": "", 
            "ShipVia": "", 
            "RequestedDeliveryDate": "2024-03-28",
            "ActivationDate": "2024-01-01", 
            "CloseDate": "2024-02-29", 
            "ExternalSource": "Amazon", 
            "ExternalProjectID": "AM12345" 
          } 
        ] 
      } 
    }, 
    "dsOrderItemRequest": { 
      "dtOrderItemRequest": [ 
        { 
          "Sequence": 1, 
          "ItemCode": "BLANK", 
          "OrderQty": 1, 
          "UOM": "EA", 
          "Charge": false, 
          "Price": 0, 
          "PriceUOM": "", 
          "PriceOverride": false, 
          "UseItemConvertPriceAndUOM": false, 
          "OrderCost": false, 
          "CustomerPOLineNumber": "", 
          "DepartmentName": "", 
          "DepartmentNumber": "", 
          "PartNumber": "", 
          "SKU": "", 
          "UPCCode": "", 
          "ItemMessage": "", 
          "PrintMsgOnForms": false, 
          "PrintMsgOnFormsOverride": false, 
          "SendMsgToWMS": false, 
          "SendMsgToWMSOverride": false, 
          "APIPriceSourceType": "", 
          "APIPriceSourceRef": "", 
          "DetailGroupID": "Driveway", 
          "AddPermanentDetailGroupID": false,
          "UseGroupAsDefaultNewItems": true
        }, 
        { 
          "Sequence": 2, 
          "TemplateItemCode": "PI-BLANK-A100", 
          "NonStockSize": "AJS-20", 
          "NonStockDescription": "I-Joist", 
          "NonStockExtDescription": "Flanges - LVL", 
          "NonStockCopyCustomFields": true, 
          "NonStockSupplierID":"800555",
          "NonStockSupplierShipFromSequence":51,
          "NonStockSupplierPartNumber":"NonStockXref",
          "NonStockProductGroupMajor":"MISC2",
          "NonStockProductGroupMinor":"MATRLS2",
          "NonStockPriceCodeMajor":"MISC2",
          "NonStockPriceCodeMinor":"MATRLS2",
          "NonStockCost":7.11,
          "NonStockCostUOM":"EA2",
          "OrderQty": 1, 
          "UOM": "EA", 
          "Charge": false, 
          "Price": 0, 
          "PriceUOM": "", 
          "PriceOverride": false, 
          "OrderCost": false, 
          "CustomerPOLineNumber": "", 
          "DepartmentName": "", 
          "DepartmentNumber": "", 
          "PartNumber": "", 
          "SKU": "", 
          "UPCCode": "", 
          "ItemMessage": "", 
          "PrintMsgOnForms": false, 
          "PrintMsgOnFormsOverride": false, 
          "SendMsgToWMS": false, 
          "SendMsgToWMSOverride": false, 
          "APIPriceSourceType": "", 
          "APIPriceSourceRef": "", 
          "DetailGroupID": "Den", 
          "AddPermanentDetailGroupID": "false",
          "UseGroupAsDefaultNewItems": false
        } 
      ], 
      "dtOrderItemDimensionRequest": [ 
        { 
          "Sequence": 0, 
          "Thickness": 0, 
          "Width": 0, 
          "Length": 0, 
          "OrderQty": 0, 
          "UOM": "", 
          "Price": 0, 
          "PriceUOM": "", 
          "PriceOverride": false 
        }  
      ] 
    } 
  } 
} 

Sample Response

{ 
  "response": { 
    "AuditResults": { 
      "dsAuditResults": { 
        "dtAuditResults": [ 
          { 
            "AuditSequence": 1, 
            "AuditType": "Failure", 
            "AuditTable": "dtOrderItem", 
            "AuditRecordIndex": "Sequence: 1, Item code: BLANK, Part number: ", 
            "AuditText": "Invalid Item of BLANK. (ID# 1141)" 
          } 
        ] 
      } 
    }, 
    "ReturnCode": 2, 
    "MessageText": "See audit results for failures" 
  } 
} 

Purpose

Validates updating header information and/or adding new items to an existing quote

Required Inputs

Value Required

Optional Inputs

Response

Notes

Relationships

Version Deployed

v609; fields added in v610

SalesOrderACHPayment

Sample Request

{
  "request": {
    "SalesOrderACHPaymentJSON": {
      "dsPayment": {
        "dtPayment": [
          {
            "Type": "Pending",
            "BankGuid": "191223333b222ec9a-cab9-c111-b111-e791e100b111",
            "dtTransaction": [
              {
                "TransactionID": 1000000001,
                "AmountTendered": 10.00
              }
            ]
          },
          {
            "Type": "Payment",
            "BankGuid": "191223333b222ec9a-cab9-c111-b111-a222e211a333",
            "dtTransaction": [
              {
                "TransactionID": 1000000001,
                "PaymentID": "12345678901234567890",
                "AmountTendered": 15.00
              },
              {
                "TransactionID": 1000000002,
                "PaymentID": "12345678901234567890",
                "AmountTendered": 20.00
              }
            ]
          }
        ]
      }
    }
  }
}

Sample Response

{
 "response": {
    "AuditResults": {
      "dsAuditResults": {
        "dtAuditResults": [
          {
            "AuditSequence": 1,
            "AuditType": "Failure",
            "AuditText": "Required field missing - BankGuid. (ID# 141)"
          },
          {
            "AuditSequence": 2,
            "AuditType": "Failure",
            "AuditText": "1000000001 not found. (ID# 2381)"
          }
        ]
      }
    },
    "ReturnCode": 2,
    "MessageText": "See audit results for failures"
  }
}

Purpose

Creates an ACH payment or an ACH pending payment

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v607

SalesOrderCancel

Sample Request

{
  "request": {
    "SalesOrderID": 300151526,
    "OrderCancelJSON": {
      "dsOrderCancel": {
        "dtOrderCancel": [
          {
            "ReasonCode": "UE",
            "Comment": "User entered in error",
            "CancelLinkedTran": true,
            "AllowLinkedPrintedTran": true,
            "SendS855": false,
            "SendS870": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Cancels a specified sales order

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v553

SalesOrderCreate

Sample Request

{
  "request": {
    "dsOrderHeaderRequest": {
      "dtOrderHeaderRequest": [
        {
          "CustomerID  ": "BCH",
          "ShipToSequence": 1,
          "TransactionReference": "",
          "TransactionJob ": "",
          "OrderedBy": "API",
          "CustomerPurchaseOrder": "",
          "CheckPORequiredSettings": false,
          "CheckPODuplicateSettings": false,
          "AcknowledgementEmailAddress": "",
          "AcknowledgementEmailAddress2": "",
          "AcknowledgementFaxNumber": "",
          "PrePaid": false,
          "ShipToName ": "",
          "ShipToAddress1": "",
          "ShipToAddress2": "",
          "ShipToAddress3": "",
          "ShipToCity ": "",
          "ShipToState": "",
          "ShipToZip": "",
          "ShipToCountry": "",
          "ShipToPhone": "",
          "TaxCode": "",
          "SaleType": "WH",
          "OrderMessage": "test",
          "OrderHold": true,
          "ShipVia": "FedEx",
          "ShipComplete": false,
          "ShipCompleteOverride": false,
          "CreateShipment": false,
          "MiscField1": "",
          "MiscField2": "",
          "MiscField3": "",
          "MiscField4": "",
          "MiscField5": "",
          "MiscField6": "",
          "MiscField7": "",
          "MiscField8": "",
          "MiscField9": "",
          "MiscField10": "",
          "MiscField11": "",
          "MiscField12": "",
          "MiscDate1": null,
          "MiscDate2": null,
          "APISourceID": "",
          "SalesAgent1": "AGENT1",
          "SalesAgent2": "AGENT2",
          "SalesAgent3": "",
          "SalesAgent4": "",
          "SalesAgent5": "",
          "SalesAgent6": "",
          "SalesAgent1PctOfOrder": "50",
          "SalesAgent2PctOfOrder": "25",
          "SalesAgent3PctOfOrder": "",
          "SalesAgent4PctOfOrder": "",
          "SalesAgent5PctOfOrder": "",
          "SalesAgent6PctOfOrder": "",
          "RouteID": "SATURDAYAM",
          "ExpectedDate": "2022-12-31",
          "OverrideShippingTrackingData": true,
          "ShippingTrackingSignatureReq": true,
          "ShippingTrackingInsuranceReq": false,
          "ShippingTrackingSaturdayDelivery": true,
          "ShippingTrackingSundayDelivery": false,
          "ShippingTrackingDelvInstructions": "Delivery can occur between 0600 - 2400 if the office is staffed during that time",
          "FreightTerms": "FOB",
          "PaymentTerms": "NET30"
        }
      ],
      "dtOrderHeaderNotesRequest": [
        {
          "OrderNote": "Hold order",
          "HotNote": true
        },
        {
          "OrderNote": "Must ship on time",
          "HotNote": false
        }
      ]
    },
    "dsOrderItemRequest": {
      "dtOrderItemRequest": [
        {
          "Sequence": 1,
          "ItemCode": "1.5FOAM",
          "OrderQty": 22,
          "UOM": "EACH",
          "Charge": false,
          "Price": 0,
          "PriceUOM": "EA",
          "PriceOverride": false,
          "UseItemConvertPriceAndUOM": false,
          "OrderCost": false,
          "CustomerPOLineNumber": "",
          "DepartmentName": "",
          "DepartmentNumber": "",
          "PartNumber": "",
          "SKU": "",
          "UPCCode": "",
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "SendMsgToWMS": false,
          "SendMsgToWMSOverride": false,
          "APIPriceSourceType": "",
          "APIPriceSourceRef": "",
          "DetailGroupID": "",
          "AddPermanentDetailGroupID": false,
          "UseGroupAsDefaultNewItems": false
        },
        {
          "Sequence": 2,
          "ItemCode": "",
          "TemplateItemCode": "PI-SL-A100",
          "NonStockSize": "AJS-20",
          "NonStockDescription": "I Joist - residential",
          "NonStockExtDescription": "Flanges - LVL",
          "NonStockCopyCustomFields": true,
          "NonStockSupplierID": "800",
          "NonStockSupplierShipFromSequence": 1,
          "NonStockSupplierPartNumber": "",
          "NonStockProductGroupMajor": "112",
          "NonStockProductGroupMinor": "25",
          "NonStockPriceCodeMajor": "112",
          "NonStockPriceCodeMinor": "10",
          "NonStockCost": 12.0,
          "NonStockCostUOM": "EA",
          "OrderQty": 200,
          "UOM": "BF",
          "Charge": false,
          "Price": 0,
          "PriceUOM": "BF",
          "PriceOverride": false,
          "UseItemConvertPriceAndUOM": false,
          "OrderCost": false,
          "CustomerPOLineNumber": "",
          "DepartmentName": "",
          "DepartmentNumber": "",
          "PartNumber": "",
          "SKU": "",
          "UPCCode": "",
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "SendMsgToWMS": false,
          "SendMsgToWMSOverride": false,
          "APIPriceSourceType": "",
          "APIPriceSourceRef": "",
          "DetailGroupID": "Foundation",
          "AddPermanentDetailGroupID": false,
          "UseGroupAsDefaultNewItems": true
        },
        {
          "Sequence": 3,
          "ItemCode": "3068SLAB",
          "OrderQty": 1,
          "UOM": "EA",
          "Charge": false,
          "Price": 0,
          "PriceUOM": "EA",
          "PriceOverride": false,
          "UseItemConvertPriceAndUOM": false,
          "OrderCost": false,
          "CustomerPOLineNumber": "",
          "DepartmentName": "",
          "DepartmentNumber": "",
          "PartNumber": "",
          "SKU": "",
          "UPCCode": "",
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "SendMsgToWMS": false,
          "SendMsgToWMSOverride": false,
          "APIPriceSourceType": "",
          "APIPriceSourceRef": "",
          "DetailGroupID": "",
          "AddPermanentDetailGroupID": false,
          "UseGroupAsDefaultNewItems": false
        },
        {
          "ItemCode": "Freight Charge",
          "Charge": true,
          "Price": 50
        },
        {
          "ItemCode": "Freight Cost",
          "OrderCost": true,
          "Price": 50
        }
      ],
      "dtOrderItemDimensionRequest": [
        {
          "Sequence": 2,
          "Thickness": 2,
          "Width": 4,
          "Length": 10,
          "OrderQty": 30,
          "UOM": "PC",
          "Price": 0,
          "PriceUOM": "0",
          "PriceOverride": false
        }
      ]
    },
    "dsOrderItemComponentRequest": {
      "dtOrderItemComponentRequest": [
        {
          "OrderItemSequence": 3,
          "ComponentSequence": 1,
          "BomType": "o",
          "ItemCode": "ZLH",
          "PartNumber": "",
          "OrderQty": 1,
          "Price": 0,
          "PriceOverride": true,
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "TallyUOM": "",
          "PrintFlag": false,
          "SundryCost": 0,
          "SundryCostOverride": false,
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "UOM": ""
        }
      ]
    },
    "dsTaxAuthorityRequest": {
      "dtTaxAuthorityRequest": [
        {
          "JurisdictionType": "State",
          "State": "NE",
          "County": "Otoe",
          "City": "Cook",
          "Description": "CookNE",
          "SalesTaxRate": 0.0512
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "NewOrderID": 321771,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a new sales order, which can include BOM parent items with components, with specified tax rates and a specified sale type, as well as a shipment

Required Inputs

Value Required

Optional Inputs

Response

Notes

Relationships

Version Deployed

v547, fields added in v552, v553, v555, v600, and v602; fields added in v610

SalesOrderCreateValidate

Sample Request

{
  "request": {
    "dsOrderHeaderRequest": {
      "dtOrderHeaderRequest": [
        {
          "CustomerID  ": "BCH",
          "ShipToSequence": 1,
          "TransactionReference": "",
          "TransactionJob ": "",
          "OrderedBy": "API",
          "CustomerPurchaseOrder": "",
          "CheckPORequiredSettings": false,
          "CheckPODuplicateSettings": false,
          "AcknowledgementEmailAddress": "",
          "AcknowledgementEmailAddress2": "",
          "AcknowledgementFaxNumber": "",
          "PrePaid": false,
          "ShipToName ": "",
          "ShipToAddress1": "",
          "ShipToAddress2": "",
          "ShipToAddress3": "",
          "ShipToCity ": "",
          "ShipToState": "",
          "ShipToZip": "",
          "ShipToCountry": "",
          "ShipToPhone": "",
          "TaxCode": "",
          "SaleType": "WH",
          "OrderMessage": "test",
          "OrderHold": true,
          "ShipVia": "FedEx",
          "ShipComplete": false,
          "ShipCompleteOverride": false,
          "CreateShipment": false,
          "MiscField1": "",
          "MiscField2": "",
          "MiscField3": "",
          "MiscField4": "",
          "MiscField5": "",
          "MiscField6": "",
          "MiscField7": "",
          "MiscField8": "",
          "MiscField9": "",
          "MiscField10": "",
          "MiscField11": "",
          "MiscField12": "",
          "MiscDate1": null,
          "MiscDate2": null,
          "APISourceID": "",
          "SalesAgent1": "AGENT1",
          "SalesAgent2": "AGENT2",
          "SalesAgent3": "",
          "SalesAgent4": "",
          "SalesAgent5": "",
          "SalesAgent6": "",
          "SalesAgent1PctOfOrder": "50",
          "SalesAgent2PctOfOrder": "25",
          "SalesAgent3PctOfOrder": "",
          "SalesAgent4PctOfOrder": "",
          "SalesAgent5PctOfOrder": "",
          "SalesAgent6PctOfOrder": "",
          "RouteID": "SATURDAYAM",
          "ExpectedDate": "2022-12-31",
          "OverrideShippingTrackingData": true,
          "ShippingTrackingSignatureReq": true,
          "ShippingTrackingInsuranceReq": false,
          "ShippingTrackingSaturdayDelivery": true,
          "ShippingTrackingSundayDelivery": false,
          "ShippingTrackingDelvInstructions": "Delivery can occur between 0600 - 2400 if the office is staffed during that time",
          "FreightTerms": "FOB",
          "PaymentTerms": "NET30"
        }
      ],
      "dtOrderHeaderNotesRequest": [
        {
          "OrderNote": "Hold order",
          "HotNote": true
        },
        {
          "OrderNote": "Must ship on time",
          "HotNote": false
        }
      ]
    },
    "dsOrderItemRequest": {
      "dtOrderItemRequest": [
        {
          "Sequence": 1,
          "ItemCode": "1.5FOAM",
          "OrderQty": 22,
          "UOM": "EACH",
          "Charge": false,
          "Price": 0,
          "PriceUOM": "EA",
          "PriceOverride": false,
          "OrderCost": false,
          "CustomerPOLineNumber": "",
          "DepartmentName": "",
          "DepartmentNumber": "",
          "PartNumber": "",
          "SKU": "",
          "UPCCode": "",
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "SendMsgToWMS": false,
          "SendMsgToWMSOverride": false,
          "APIPriceSourceType": "",
          "APIPriceSourceRef": ""
        },
        {
          "Sequence": 2,
          "ItemCode": "",
          "TemplateItemCode": "PI-SL-A100",
          "NonStockSize": "AJS-20",
          "NonStockDescription": "I Joist - residential",
          "NonStockExtDescription": "Flanges - LVL",
          "NonStockCopyCustomFields": true,
          "NonStockSupplierID": "800",
          "NonStockSupplierShipFromSequence": 1,
          "NonStockSupplierPartNumber": "",
          "NonStockProductGroupMajor": "112",
          "NonStockProductGroupMinor": "25",
          "NonStockPriceCodeMajor": "112",
          "NonStockPriceCodeMinor": "10",
          "NonStockCost": 12.0,
          "NonStockCostUOM": "EA",
          "OrderQty": 200,
          "UOM": "BF",
          "Charge": false,
          "Price": 0,
          "PriceUOM": "BF",
          "PriceOverride": false,
          "OrderCost": false,
          "CustomerPOLineNumber": "",
          "DepartmentName": "",
          "DepartmentNumber": "",
          "PartNumber": "",
          "SKU": "",
          "UPCCode": "",
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "SendMsgToWMS": false,
          "SendMsgToWMSOverride": false,
          "APIPriceSourceType": "",
          "APIPriceSourceRef": ""
        },
        {
          "Sequence": 3,
          "ItemCode": "3068SLAB",
          "OrderQty": 1,
          "UOM": "EA",
          "Charge": false,
          "Price": 0,
          "PriceUOM": "EA",
          "PriceOverride": false,
          "OrderCost": false,
          "CustomerPOLineNumber": "",
          "DepartmentName": "",
          "DepartmentNumber": "",
          "PartNumber": "",
          "SKU": "",
          "UPCCode": "",
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "SendMsgToWMS": false,
          "SendMsgToWMSOverride": false,
          "APIPriceSourceType": "",
          "APIPriceSourceRef": ""
        },
        {
          "ItemCode": "Freight Charge",
          "Charge": true,
          "Price": 50
        },
        {
          "ItemCode": "Freight Cost",
          "OrderCost": true,
          "Price": 50
        }
      ],
      "dtOrderItemDimensionRequest": [
        {
          "Sequence": 2,
          "Thickness": 2,
          "Width": 4,
          "Length": 10,
          "OrderQty": 30,
          "UOM": "PC",
          "Price": 0,
          "PriceUOM": "0",
          "PriceOverride": false
        }
      ]
    },
    "dsOrderItemComponentRequest": {
      "dtOrderItemComponentRequest": [
        {
          "OrderItemSequence": 3,
          "ComponentSequence": 1,
          "BomType": "o",
          "ItemCode": "ZLH",
          "PartNumber": "",
          "OrderQty": 1,
          "Price": 0,
          "PriceOverride": true,
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "TallyUOM": "",
          "PrintFlag": false,
          "SundryCost": 0,
          "SundryCostOverride": false,
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "UOM": ""
        }
      ]
    },
    "dsTaxAuthorityRequest": {
      "dtTaxAuthorityRequest": [
        {
          "JurisdictionType": "State",
          "State": "NE",
          "County": "Otoe",
          "City": "Cook",
          "Description": "CookNE",
          "SalesTaxRate": 0.0512
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {
        "dtAuditResults": [
          {
            "AuditSequence": 1,
            "AuditType": "Failure",
            "AuditTable": "dtOrderHeader",
            "AuditRecordIndex": "",
            "AuditText": "Invalid Sales agent 1 of MWELL. (ID# 1141)"
          },
          {
            "AuditSequence": 2,
            "AuditType": "Failure",
            "AuditTable": "dtOrderHeader",
            "AuditRecordIndex": "",
            "AuditText": "Invalid Sales agent 1 101. (ID# 1141)"
          },
          {
            "AuditSequence": 3,
            "AuditType": "Failure",
            "AuditTable": "dtOrderItemDimension",
            "AuditRecordIndex": "",
            "AuditText": ""
          },
          {
            "AuditSequence": 4,
            "AuditType": "Failure",
            "AuditTable": "dtOrderItemDimension",
            "AuditRecordIndex": "",
            "AuditText": ""
          },
          {
            "AuditSequence": 5,
            "AuditType": "Failure",
            "AuditTable": "dtOrderItem",
            "AuditRecordIndex": "",
            "AuditText": ""
          }
        ]
      }
    },
    "ReturnCode": 2,
    "MessageText": "See audit results for failures"
  }
}

Purpose

Validates the creation of a new sales order, which can include BOM parent items with components, specified tax rates and a specified sale type, as well as a shipment

Required Inputs

Value Required

Optional Inputs

Response

Notes

Relationships

Version Deployed

v553; new fields added in v555, v600, and v602; fields added in v610

SalesOrderDetailsDelete

Sample Request

{
  "request": {
    "SalesOrderID": 1000339477,
    "OrderDetailsDeleteJSON": {
      "dsDetailDeleteSettings": {
        "dtDetailDeleteSettings": [
          {
            "UpdateLinkedTran": true,
            "UpdateLinkedPrintedTran": true
          }
        ]
      },
      "dsOrderItemRequest": {
        "dtOrderItemRequest": [
          {
            "Sequence": 2
          },
          {
            "Sequence": 6
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes an existing sales order detail record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554

SalesOrderDetailsUpdate

Sample Request

{
  "request": {
    "SalesOrderID": 1000340097,
    "OrderDetailsUpdateJSON": {
      "dsDetailUpdateSettings": {
        "dtDetailUpdateSettings": [
          {
            "UpdateLinkedTran": false,
            "UpdateLinkedPrintedTran": false
          }
        ]
      },
      "dsOrderItemRequest": {
        "dtOrderItemRequest": [
          {
            "Sequence": 1,
            "OrderQty": 60,
            "UOM": "BF",
            "UseItemConvertPriceAndUOM": false,
            "DetailGroupID": "Deck",
            "AddPermanentDetailGroupID": false,
            "UseGroupAsDefaultNewItems": false,
            "dtOrderItemDimensionRequest": [
              {
                "Sequence": 1,
                "Thickness": 2,
                "Width": 4,
                "Length": 8,
                "PieceCount": 0,
                "OrderQty": 6,
                "UOM": "PC"
              }
            ]
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": "",
    "AuditResults": {
      "dsAuditResults": {}
    }
  }
}

Purpose

Updates an existing sales order detail record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554; fields added in v600

SalesOrderList

Sample Request

{
  "request": {
    "SearchBy": "",
    "SearchValue": "",
    "CustomerID": "123161",
    "ShipToSequence": 3,
    "OrderDateRangeStart": null,
    "OrderDateRangeEnd": null,
    "ExpectedDateRangeStart": null,
    "ExpectedDateRangeEnd": null,
    "FetchOnlyChangedSince": null,
    "IncludeOpenOrders": true,
    "IncludeInvoicedOrders": false,
    "IncludeCanceledOrders": false,
    "ChunkStartPointer": "",
    "RecordFetchLimit": ""
  }
}

Sample Response

{
  "response": {
    "OrdersResponse": {
      "dsOrdersResponse": {
        "dtOrderResponse": [
          {
            "BranchID": "WESTONBRANCH",
            "OrderID": 272801,
            "CustomerID": "123161",
            "ShipToSequence": 3,
            "OrderedBy": "",
            "OrderDate": "2017-08-21",
            "ExpectedDate": "2017-08-22",
            "OrderStatus": "Open",
            "OrderProcessStatus": "",
            "CreditHoldStatus": "",
            "SaleType": "wh",
            "SaleTypeDescription": "Warehouse Order WH",
            "TransactionJob": "",
            "TransactionReference": "",
            "CustomerPO": "",
            "RouteID": "",
            "ShipVia": "",
            "FreightTerms": "",
            "PayTermsCode": "LAL1",
            "OrderSubtotal": 23.85,
            "OrderChargesAmount": 0,
            "Taxable": false,
            "TaxCode": "",
            "OrderTaxAmount": 0,
            "OrderTotal": 23.85,
            "DiscountAmount": 0.24,
            "AfterDeductFreightAmt": 0,
            "ShipToName": "SHIP-TO 3",
            "ShipToAddress1": "ADDRESS 1",
            "ShipToAddress2": "",
            "ShipToAddress3": "ADDRESS 3",
            "ShipToCity": "LA VISTA",
            "ShipToState": "NE",
            "ShipToCountry": "USA",
            "ShipToZip": "68128",
            "ShipToPhone": "(402)-555-1111",
            "BillToName": "DAA HARDWARE BILL-TO 1",
            "BillToAddress1": "123 A STREET",
            "BillToAddress2": "",
            "BillToAddress3": "",
            "BillToCity": "LA VISTA",
            "BillToState": "NE",
            "BillToCountry": "USA",
            "BillToZip": "68128",
            "BillToPhone": "(   )-   -    ",
            "SalesAgentID1": "0901",
            "SalesAgentName1": "",
            "SalesAgentID2": "",
            "SalesAgentName2": "",
            "SalesAgentID3": "",
            "SalesAgentName3": "",
            "SalesAgentID4": "",
            "SalesAgentName4": "",
            "SalesAgentID5": "",
            "SalesAgentName5": "",
            "SalesAgentID6": "",
            "SalesAgentName6": "",
            "UpdateDate": "2017-08-21",
            "UpdateTime": "11:39:01",
            "ContactEmail": "",
            "ContactName": "",
            "ContactPhone": "",
            "ShipComplete": true,
            "CostTotal": 3,
            "CostType": "Item default",
            "TotalWeight": 0,
            "TotalLoad": 0,
            "dtOrderDetailResponse": [
              {
                "BranchID": "WESTONBRANCH",
                "OrderID": 272801,
                "Sequence": 1,
                "DisplaySequence": 1,
                "LineType": "SO",
                "ItemCode": "LL-PAINT",
                "ItemSize": "",
                "ItemDescription": "",
                "TotalOrderedQuantity": 3,
                "QuantityUOM": "GAL",
                "GrossPrice": 7.95,
                "NetPrice": 7.95,
                "PriceUOM": "GAL",
                "DiscountDescription": "",
                "Taxable": true,
                "ExtendedPrice": 23.85,
                "TotalBackorderedQuantity": 3,
                "TotalStagedQuantity": 0,
                "TotalUnstagedQuantity": 0,
                "TotalInvoicedQuantity": 0,
                "LinkedTranType": "PO",
                "LinkedTranID": 148517,
                "LinkedTranSequence": 1,
                "CustomerPOLineNumber": "001",
                "DepartmentName": "",
                "DepartmentNumber": "",
                "PartNumber": "",
                "SKU": "",
                "UPCCode": "",
                "ExtCost": 3,
                "ExtWeight": 0,
                "ExtLoad": 0,
                "ItemXrefUsedToOrder": "",
                "RelatedQuoteBranchID": "CENTRALBRNCH",
                "RelatedQuoteID": 300160114,
                "RelatedQuoteExternalSource": "AMAZON",
                "RelatedQuoteExternalProjectID": "AMZ-8970"
              }
            ]
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "NextChunkStartPointer": 2,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of sales orders for a specified customer

Required Inputs

Value Required

The following inputs require a value due to data type:

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539; ExpectedDateRange fields added v549; "Quote ID" Search by option added v610; RelatedQuoteID, RelatedQuoteExternalSource, and RelatedExternalProjectID tags added to the response in v610

SalesOrderMessageCreate

Sample Request

{
  "request": {
    "MessageCreateJSON": {
      "dsMessageCreate": {
        "dtMessageCreate": [
          {
            "TranID": 12345,
            "ShipmentNum": "0",
            "TranSeq": "1",
            "MessageText": "Message Text Here",
            "MessageType": "H",
            "PrintOnForms": "true",
            "SendToWMS": "false"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a sales order transaction message in the branch the user is logged into

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554

SalesOrderPayment

Sample Request

{
  "request": {
    "SalesOrderPaymentJSON": {
      "dsPayment": {
        "dtPayment": [
          {
            "Type": "Pending",
            "PaymentAccountID": "6B0F870C-1B98-41E4-A023-339620538660",
            "AllowTokenDelete": "No",
            "dtTransaction": [
              {
                "TransactionID": 1000332221,
                "AmountTendered": 0.0
              }
            ]
          },
          {
            "Type": "Payment",
            "ProcessorTransactionID": "89852081",
            "dtTransaction": [
              {
                "TransactionID": 1000332221
              }
            ]
          },
          {
            "Type": "TokenPayment",
            "PaymentAccountID": "00b03696-0248-4a31-ab07-6e0b8c68c822",
            "dtTransaction": [
              {
                "TransactionID": 1000332221,
                "AmountTendered": 25.25
              }
            ]
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Sends credit card authorization and/or payment information to Agility to store alongside the order upon Sales Order creation via an Agility customer’s eCommerce site

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v551

SalesOrderPaymentRecord

Sample Request

{
  "request": {
    "TransactionID": "1000365111",
    "SalesOrderPaymentRecordJSON": {
      "dsSalesOrderPayment": {
        "dtSalesOrderPayment": [
          {
            "PaymentMethod": "DISCOVER",
            "PaymentID": "0214230001",
            "AmountTendered": 1000.0
          },
          {
            "PaymentMethod": "Cash",
            "PaymentID": "",
            "AmountTendered": 250.0
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "SalesOrderPaymentRecordJSONResponse": {
      "dsSalesOrderPaymentResponse": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Send sales order payment information received and processed by an outside source to Agility

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v603

SalesOrderPriceHoldApprove

Sample Request

{
  "request": {
    "OrderID": 1000328293,
    "SalesOrderDetailApproveJSON": {
      "dsSalesOrderDetail": {
        "dtSalesOrderDetail": [
          {
            "Sequence": 1,
            "SendNotification": "YES",
            "ReviewerID": "PRCAPP01",
            "Comment": "above floor"
          },
          { "Sequence": 2, "SendNotification": "NO" }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Removes sales order items from price hold; approve items on price hold based on the OrderID and detail line item Sequence

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v550

SalesOrderPriceHoldReject

Sample Request

{
  "request": {
    "OrderID": 1000328312,
    "SalesOrderDetailRejectJSON": {
      "dsSalesOrderDetail": {
        "dtSalesOrderDetail": [
          {
            "Sequence": 2,
            "SuggestedPrice": 2.2,
            "SuggestedPriceUOM": "GAL",
            "SendNotification": "YES",
            "ReviewerID": "PRCREJ01",
            "Comment": "below floor"
          },
          {
            "Sequence": 1,
            "SuggestedPrice": 1.1,
            "SuggestedPriceUOM": "EA",
            "SendNotification": "YES",
            "ReviewerID": "PRCREJ01",
            "Comment": "below floor"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Denies removal of sales order items from price hold based on the OrderID and detail line item Sequence and sends a suggested price for approval

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v550

SalesOrderUpdate

Sample Request

{
  "request": {
    "OrderID": 447,
    "OrderHeaderUpdateJSON": {
      "dsOrderHeaderUpdateRequest": {
        "dtOrderHeaderUpdateRequest": [
          {
            "TransactionReference": "",
            "TransactionJob": "",
            "OrderedBy": "",
            "CustomerPurchaseOrder": "",
            "ShipVia": "",
            "MiscField1": "",
            "MiscField2": "",
            "MiscField3": "",
            "MiscField4": "",
            "MiscField5": "",
            "MiscField6": "",
            "MiscField7": "",
            "MiscField8": "",
            "MiscField9": "",
            "MiscField10": "",
            "MiscField11": "",
            "MiscField12": "",
            "MiscDate1": null,
            "MiscDate2": null,
            "SalesAgent1": "AGENT4",
            "SalesAgent2": "AGENT6",
            "SalesAgent3": "",
            "SalesAgent4": "",
            "SalesAgent5": "",
            "SalesAgent6": "",
            "SalesAgent1PctOfOrder": 50,
            "SalesAgent2PctOfOrder": 5,
            "SalesAgent3PctOfOrder": 0,
            "SalesAgent4PctOfOrder": 0,
            "SalesAgent5PctOfOrder": 0,
            "SalesAgent6PctOfOrder": 0
          }
        ]
      }
    },
    "dsOrderItemRequest": {
      "dtOrderItemRequest": [
        {
          "Sequence": 1,
          "ItemCode": "BLANK",
          "OrderQty": 1,
          "UOM": "EA",
          "Charge": false,
          "Price": 0,
          "PriceUOM": "",
          "PriceOverride": false,
          "UseItemConvertPriceAndUOM": false,
          "OrderCost": false,
          "CustomerPOLineNumber": "",
          "DepartmentName": "",
          "DepartmentNumber": "",
          "PartNumber": "",
          "SKU": "",
          "UPCCode": "",
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "SendMsgToWMS": false,
          "SendMsgToWMSOverride": false,
          "APIPriceSourceType": "",
          "APIPriceSourceRef": "",
          "DetailGroupID": "Deck",
          "AddPermanentDetailGroupID": false,
          "UseGroupAsDefaultNewItems": false
        },
        {
          "Sequence": 2,
          "TemplateItemCode": "PI-BLANK-A100",
          "NonStockSize": "AJS-20",
          "NonStockDescription": "I-Joist",
          "NonStockExtDescription": "Flanges - LVL; web - OSB ",
          "NonStockCopyCustomFields": true,
          "NonStockSupplierID": "800",
          "NonStockSupplierShipFromSequence": 1,
          "NonStockSupplierPartNumber": "",
          "NonStockProductGroupMajor": "112",
          "NonStockProductGroupMinor": "25",
          "NonStockPriceCodeMajor": "112",
          "NonStockPriceCodeMinor": "10",
          "NonStockCost": 12.0,
          "NonStockCostUOM": "EA",
          "OrderQty": 1,
          "UOM": "EA",
          "Charge": false,
          "Price": 0,
          "PriceUOM": "",
          "PriceOverride": false,
          "UseItemConvertPriceAndUOM": false,
          "OrderCost": false,
          "CustomerPOLineNumber": "",
          "DepartmentName": "",
          "DepartmentNumber": "",
          "PartNumber": "",
          "SKU": "",
          "UPCCode": "",
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "SendMsgToWMS": false,
          "SendMsgToWMSOverride": false,
          "APIPriceSourceType": "",
          "APIPriceSourceRef": "",
          "DetailGroupID": "Deck",
          "AddPermanentDetailGroupID": false,
          "UseGroupAsDefaultNewItems": false
        },
        {
          "ItemCode": "Freight Charge",
          "Charge": true,
          "Price": 50
        },
        {
          "ItemCode": "Freight Cost",
          "OrderCost": true,
          "Price": 50
        }
      ],
      "dtOrderItemDimensionRequest": [
        {
          "Sequence": 0,
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "OrderQty": 0,
          "UOM": "",
          "Price": 0,
          "PriceUOM": "",
          "PriceOverride": false
        }
      ]
    },
    "dsOrderItemComponentRequest": {
      "dtOrderItemComponentRequest": [
        {
          "OrderItemSequence": 0,
          "ComponentSequence": 0,
          "BomType": "",
          "ItemCode": "",
          "PartNumber": "",
          "OrderQty": 0,
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "TallyUOM": "",
          "PrintFlag": false,
          "SundryCost": 0,
          "SundryCostOverride": false,
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "UOM": ""
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates header information and/or adds new items to an existing sales order

Required Inputs

Value Required

The following inputs require a value due to data type:

Optional Inputs

Response

Notes

Relationships

Version Deployed

v550; new fields in added v553 and v600; fields added in v610

SalesOrderUpdateValidate

Sample Request

{
  "request": {
    "OrderID": 2046,
    "OrderHeaderUpdateJSON": {
      "dsOrderHeaderUpdateRequest": {
        "dtOrderHeaderUpdateRequest": [
          {
            "TransactionReference": "",
            "TransactionJob": "",
            "OrderedBy": "",
            "CustomerPurchaseOrder": "",
            "ShipVia": "",
            "MiscField1": "",
            "MiscField2": "",
            "MiscField3": "",
            "MiscField4": "",
            "MiscField5": "",
            "MiscField6": "",
            "MiscField7": "",
            "MiscField8": "",
            "MiscField9": "",
            "MiscField10": "",
            "MiscField11": "",
            "MiscField12": "",
            "MiscDate1": null,
            "MiscDate2": null,
            "SalesAgent1": "AGENT4",
            "SalesAgent2": "AGENT6",
            "SalesAgent3": "",
            "SalesAgent4": "",
            "SalesAgent5": "",
            "SalesAgent6": "",
            "SalesAgent1PctOfOrder": 50,
            "SalesAgent2PctOfOrder": 5,
            "SalesAgent3PctOfOrder": 0,
            "SalesAgent4PctOfOrder": 0,
            "SalesAgent5PctOfOrder": 0,
            "SalesAgent6PctOfOrder": 0
          }
        ]
      }
    },
    "dsOrderItemRequest": {
      "dtOrderItemRequest": [
        {
          "Sequence": 1,
          "ItemCode": "BLANK",
          "OrderQty": 1,
          "UOM": "EA",
          "Charge": false,
          "Price": 0,
          "PriceUOM": "",
          "PriceOverride": false,
          "OrderCost": false,
          "CustomerPOLineNumber": "",
          "DepartmentName": "",
          "DepartmentNumber": "",
          "PartNumber": "",
          "SKU": "",
          "UPCCode": "",
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "SendMsgToWMS": false,
          "SendMsgToWMSOverride": false,
          "APIPriceSourceType": "",
          "APIPriceSourceRef": ""
        },
        {
          "Sequence": 2,
          "TemplateItemCode": "PI-BLANK-A100",
          "NonStockSize": "AJS-20",
          "NonStockDescription": "I-Joist",
          "NonStockExtDescription": "Flanges - LVL",
          "NonStockCopyCustomFields": true,
          "NonStockSupplierID": "800",
          "NonStockSupplierShipFromSequence": 1,
          "NonStockSupplierPartNumber": "",
          "NonStockProductGroupMajor": "112",
          "NonStockProductGroupMinor": "25",
          "NonStockPriceCodeMajor": "112",
          "NonStockPriceCodeMinor": "10",
          "NonStockCost": 12.0,
          "NonStockCostUOM": "EA",
          "OrderQty": 1,
          "UOM": "EA",
          "Charge": false,
          "Price": 0,
          "PriceUOM": "",
          "PriceOverride": false,
          "OrderCost": false,
          "CustomerPOLineNumber": "",
          "DepartmentName": "",
          "DepartmentNumber": "",
          "PartNumber": "",
          "SKU": "",
          "UPCCode": "",
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "SendMsgToWMS": false,
          "SendMsgToWMSOverride": false,
          "APIPriceSourceType": "",
          "APIPriceSourceRef": ""
        }
      ],
      "dtOrderItemDimensionRequest": [
        {
          "Sequence": 0,
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "OrderQty": 0,
          "UOM": "",
          "Price": 0,
          "PriceUOM": "",
          "PriceOverride": false
        }
      ]
    },
    "dsOrderItemComponentRequest": {
      "dtOrderItemComponentRequest": [
        {
          "OrderItemSequence": 0,
          "ComponentSequence": 0,
          "BomType": "",
          "ItemCode": "",
          "PartNumber": "",
          "OrderQty": 0,
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "TallyUOM": "",
          "PrintFlag": false,
          "SundryCost": 0,
          "SundryCostOverride": false,
          "ItemMessage": "",
          "PrintMsgOnForms": false,
          "PrintMsgOnFormsOverride": false,
          "UOM": ""
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {
        "dtAuditResults": [
          {
            "AuditSequence": 1,
            "AuditType": "Failure",
            "AuditTable": "dtOrderItem",
            "AuditRecordIndex": "Sequence: 1, Item code: BLANK, Part number: ",
            "AuditText": "Invalid Item of BLANK. (ID# 1141)"
          }
        ]
      }
    },
    "ReturnCode": 2,
    "MessageText": "See audit results for failures"
  }
}

Purpose

Validates updating header information and/or adds new items to an existing sales order

Required Inputs

Value Required

The following inputs require a value due to data type:

Optional Inputs

Response

Notes

Relationships

Version Deployed

v553; fields added in v610

WorkOrderMessageCreate

Sample Request

{
  "request": {
    "MessageCreateJSON": {
      "dsMessageCreate": {
        "dtMessageCreate": [
          {
            "TranID": 1000199200,
            "TranSeq": 2,
            "MessageText": "Message Text Here",
            "MessageType": "Detail",
            "PrintOnForms": true
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a sales order work order item message in the branch the user is logged into

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554

AgilityPublic/Pricing Service

This AgilityPublic service contains methods relating to pricing.

ApprovedItemsCustomerPricingInChunksList

Sample Request

{
  "request": {
    "CustomerPricingRequestJSON": {
      "dsCustomerPricingRequest": {
        "dtCustomerPricingRequest": [
          {
            "CustomerID": "har01",
            "ShipToSequence": 1,
            "SaleType": "WH",
            "SearchBy": "item code",
            "SearchValue": "62122",
            "ItemGroupMajor": "pool",
            "ItemGroupMinor": "heater",
            "IncludeNonStock": true,
            "IncludeNonSaleable": true,
            "RecordFetchLimit": 10,
            "ChunkStartPointer": 0,
            "UseOrderRestrictions": true
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "CustomerPricingResponse": {
      "dsApprvdItemCustPricingResponse": {
        "dtApprvdItemPriceAndQtyResponse": [
          {
            "ItemCode": "62122-A",
            "ItemXref": "62122-AX",
            "ItemSize": "",
            "DimensionSize": "",
            "ItemDescription": "",
            "ExtendedDescription": "",
            "Thickness": 0,
            "ThicknessUOM": "",
            "Width": 0,
            "WidthUOM": "",
            "Length": 0,
            "LengthUOM": "",
            "ItemGroupMajor": "MAJA",
            "ItemGroupMinor": "MINQ",
            "MinPackQty": 0,
            "MinPackType": null,
            "Nonsaleable": false,
            "Stock": true,
            "ItemType": "",
            "ItemTypeName": "",
            "ImageUrl": "",
            "UOM": "EA",
            "OnHandQty": 500,
            "AvailableQty": 500,
            "PriceUOM": "EA",
            "GrossPrice": 4,
            "PriceUOMGrossPrice": 4,
            "NetPrice": 4,
            "PriceUOMNetPrice": 4,
            "DiscountDescription": "",
            "QuickList": "",
            "RankValue": 0,
            "Dimension": "",
            "SpecialItemType": "",
            "Promo": false,
            "DefaultWeight": 1,
            "DefaultWeightUOM": "EA",
            "DefaultLoad": 1,
            "DefaultLoadUOM": "EA",
            "PrimarySupplierWeight": 0,
            "PrimarySupplierWeightUOM": "",
            "PrimarySupplierLoad": 0,
            "PrimarySupplierLoadUOM": "",
            "Cost": 0,
            "CostDesignator": "",
            "GrossMarginPercent": 0,
            "GrossMarginAmount": 0,
            "MaxProductionUnits": 0,
            "Discontinued": "No",
            "HazardousMaterial": false,
            "BOLCode": "",
            "MSDS": "",
            "PrimarySupplierID": "",
            "OnOrderQty": 0,
            "ReturnQty": 0,
            "BackorderedQty": 0,
            "CommittedQty": 0
          }
        ]
      }
    },
    "NextChunkStartPointer": 1,
    "MoreResultsAvailable": true,
    "TotalRowsFetched": 1,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns item specific information as well as the most specific price for the customer and ship-to specified for a group of items approved for sale to the specified customer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v600

ItemCustomerPricingList

Sample Request

{
  "request": {
    "CustomerID": "123161",
    "ShipToSequence": 1,
    "SaleType": "WH",
    "SearchBy": "",
    "SearchValue": "LL-PAINT",
    "ItemGroupMajor": "",
    "ItemGroupMinor": "",
    "IncludeNonStock": true,
    "IncludeNonSaleable": true,
    "RecordFetchLimit": 0
  }
}

Sample Response

{
  "response": {
    "dsCustomerPricingResponse": {
      "dsItemCustomerPricingResponse": {
        "dtItemPriceAndQtyResponse": [
          {
            "ItemCode": "LL-PAINT",
            "ItemXref": "",
            "ItemSize": "SIZE",
            "DimensionSize": "",
            "ItemDescription": "DESCRIPTION",
            "ExtendedDescription": "EXT DESC",
            "Thickness": 0,
            "ThicknessUOM": "",
            "Width": 0,
            "WidthUOM": "",
            "Length": 0,
            "LengthUOM": "",
            "ItemGroupMajor": "PANT",
            "ItemGroupMinor": "IVORY",
            "MinPackQty": 0,
            "MinPackType": "Allow - Question",
            "Nonsaleable": false,
            "Stock": true,
            "ItemType": "",
            "ItemTypeName": "",
            "ImageUrl": "",
            "UOM": "GAL",
            "OnHandQty": 91560,
            "AvailableQty": 90041,
            "PriceUOM": "GAL",
            "GrossPrice": 7.95,
            "PriceUOMGrossPrice": 7.95,
            "NetPrice": 7.95,
            "PriceUOMNetPrice": 7.95,
            "DiscountDescription": "",
            "QuickList": "",
            "RankValue": 0,
            "Dimension": "",
            "SpecialItemType": "",
            "Promo": false,
            "DefaultWeight": 0.0001,
            "DefaultWeightUOM": "GAL",
            "DefaultLoad": 0.0001,
            "DefaultLoadUOM": "GAL",
            "PrimarySupplierWeight": 0.0001,
            "PrimarySupplierWeightUOM": "GAL",
            "PrimarySupplierLoad": 0.0001,
            "PrimarySupplierLoadUOM": "GAL"
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "TotalRowsFetched": 1,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns item related information as well as the most specific price for the customer and ship-to specified for a group of items

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v543

PriceInfoList

Sample Request

{
  "request": {
    "CustomerID": "12345",
    "ShiptoSequence": 14,
    "SaleType": "WH",
    "PriceTypeOption": "",
    "dsItemToProcessRequest": {
      "dtItemToProcessRequest": [
        {
          "ItemCode": "118835",
          "OrderQty": 100,
          "UOM": "EA"
        },
        {
          "ItemCode": "118835RANDOM",
          "OrderQty": 100,
          "UOM": "BF"
        }
      ],
      "dtItemDimensionToProcessRequest": [
        {
          "ItemCode": "118835RANDOM",
          "Thickness": 2,
          "Width": 6,
          "Length": 8,
          "OrderQty": 10,
          "UOM": "PC"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "GetPricingResponse": {
      "dsPriceInfoResponse": {
        "dtPriceInfoResponse": [
          {
            "ItemCode": "118835RANDOM",
            "Thickness": 2,
            "Width": 6,
            "Length": 8,
            "SaleType": "<all>",
            "PriceType": "Qty Break 0 BF",
            "Dimensions": "00X00X00",
            "PriceUOMGrossPrice": 123,
            "PriceUOMNetPrice": 123,
            "PriceUOM": "BF",
            "DiscountQty": 0,
            "DiscountDescription": "",
            "DiscountUOM": "BF",
            "DateRange": "Open - Open",
            "Promo": false,
            "BOMComponentPrice": "",
            "QtyBreakQty": 10,
            "QtyBreakUOM": "BF"
          },
          {
            "ItemCode": "LL-NAILS",
            "Thickness": 0,
            "Width": 0,
            "Length": 0,
            "SaleType": "<all>",
            "PriceType": "Level  1, Qty Break 0 EA",
            "Dimensions": "",
            "PriceUOMGrossPrice": 2.5,
            "PriceUOMNetPrice": 2.5,
            "PriceUOM": "EA",
            "DiscountQty": 0,
            "DiscountDescription": "",
            "DiscountUOM": "EA",
            "DateRange": "Open - Open",
            "Promo": false,
            "BOMComponentPrice": "",
            "QtyBreakQty": 0,
            "QtyBreakUOM": ""
          }
        ]
      }
    },
    "ItemAuditResults": {
      "dsItemAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns all pricing and discount records from the specified level in the hierarchy for the customer and items/dimensions specified

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v544; updated with ItemAuditResults in v553; updated with QtyBreakQty and QtyBreakUOM in v556

AgilityPublic/Purchasing Service

This AgilityPublic service contains methods related to purchasing and receiving.

PurchaseOrderCostPacketsDelete

Sample Request

{
  "request": {
    "PurchaseOrderID": 158553,
    "PurchaseOrderCostPacketsDeleteJSON": {
      "dsPurchaseOrderCostPacket": {
        "dtPurchaseOrderCostPacket": [
          {
            "CostType": "Freight",
            "SupplierID": "FEDEX"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes cost packets from a specific purchase order

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

PurchaseOrderCostPacketsGet

Sample Request

{
  "request": {
    "PurchaseOrderID": "158553"
  }
}

Sample Response

{
  "response": {
    "CostPacketResponse": {
      "dsCostPacketsResponse": {
        "dtCostPacketsResponse": [
          {
            "AllocateBy": "Load",
            "ApplyPerReceiving": true,
            "CostBasis": "fixed",
            "BasisAmount": 0,
            "FixedAmount": 32.95,
            "Cost": 32.95,
            "CreatedBy": "mwellensiek",
            "CreatedDate": "2019-02-04",
            "CreatedTime": "11:51:45",
            "DispatchID": 0,
            "Freight": true,
            "MinOrderAmount": 0,
            "Overridden": true,
            "PrintOnForm": true,
            "ReceiveNum": 0,
            "ShipmentNum": 0,
            "SOID": 0,
            "SupplierID": "FEDEX",
            "UpdateBy": "mwellensiek",
            "UpdateDate": "2019-02-04",
            "UpdateTime": "11:51:45"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a cost packet information for a specific purchase order

Required Inputs

Optional Inputs

Response

Notes

N/A

Relationships

Version Deployed

v539

PurchaseOrderCostPacketsUpdate

Sample Request

{
  "request": {
    "PurchaseOrderID": "158520",
    "PurchaseOrderCostPacketsUpdateJSON": {
      "dsPurchaseOrderCostPacket": {
        "dtPurchaseOrderCostPacket": [
          {
            "CostType": "Freight",
            "CostBasis": "Fixed",
            "BasisAmount": 0.0,
            "FixedAmount": 56.18,
            "SupplierID": "278200",
            "AllocateBy": "Weight",
            "ApplyPerReceiving": true,
            "PrintOnForm": false,
            "DispatchID": 0
          }
        ]
      }
    }
  }
}

Sample Response

{
    "response": {
        "ReturnCode": 0,
        "MessageText": “”
    }
}

Purpose

Creates or updates purchase order cost packets

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v539

PurchaseOrderDetailsUpdate

Sample Request

{
     "request": {
          "PurchaseOrderID": 158419,
          "PurchaseOrderDetailsUpdateJSON": {
               "dsPurchaseOrderDetail":{
                    "dtPurchaseOrderDetail":[{
                         “PurchaseOrderDetailSequence":1,
                         "ExpectedReceiptDate":"2019-01-30",
                         "ExpectedShipDate":"2019-01-31"
                                                          }]
                                                   }
                                }
                     }
}


Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates purchase order detail expected receipt dates and expected ship dates

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v538

PurchaseOrderGet

Sample Request

{
  "request": {
    "PurchaseOrderID": "158511"
  }
}

Sample Response

{
  "response": {
    "PurchaseOrderResponse": {
      "dsPurchaseOrderResponse": {
        "dtPurchaseOrderHeader": [
          {
            "PurchaseOrderID": 158419,
            "AcknowledgeDate": null,
            "IncomingPOAckPurpose": "",
            "IncomingPOAckStatus": "",
            "AcknowledgeTime": "",
            "AllowChanges": true,
            "AutoTransfer": false,
            "Buyer1": "0901",
            "Buyer2": "451-A",
            "ConfirmedBy": "23274",
            "CreatedBy": "mwellensiek",
            "CreatedDate": "2019-01-16",
            "CreatedTime": "13:08:57",
            "Currency": "USD",
            "CustomerID": "HILLSIDELBR",
            "AllowChangesUntilDate": "2019-02-10",
            "AllowChangesUntilTime": "13:30",
            "Dispatched": "",
            "ExpectedReceiptDate": "2019-02-10",
            "ExpectedShipDate": "2019-02-09",
            "ExpectedReceiptTime": "09:35",
            "FreightTerms": "FOB",
            "OrderDate": "2019-01-16",
            "OriginalSource": "PO Import",
            "PaymentTermsCode": "1%10n30",
            "PickUpID": "107311",
            "POLabel": "Transit",
            "ParentPOID": null,
            "ParentPOFlag": "",
            "POStatus": "Open",
            "PurchaseType": "WH",
            "Reference": "Hillcrest Apts",
            "SendPOVia": "Normal",
            "ShipFromSequence": 1,
            "ShipToSequence": 1,
            "ShipVia": "Pick up",
            "SupplierID": "LMC",
            "TrackingDate": "2019-01-19",
            "TransferPO": false,
            "UpdateBy": "mwellensiek",
            "UpdateDate": "2019-02-03",
            "UpdateLead": false,
            "UpdateTime": "20:42:03",
            "PODescription": "New supplier inv",
            "VerbalPO": "751073"
          }
        ],
        "dtPurchaseOrderDetail": [
          {
            "POID": 158419,
            "Cost": 1.052,
            "CreatedBy": "mwellensiek",
            "CreatedDate": "2019-01-16",
            "CreatedTime": "13:08:57",
            "Discount1": 0,
            "Discount2": 0,
            "Discount3": 0,
            "CostUOM": "EA",
            "DisplaySequence": 1,
            "ExpectedReceiptDate": "2019-02-10",
            "ExpectedReceiptDateOverride": false,
            "ExpectedShipDate": "2019-02-09",
            "ExpectedShipDateOverride": false,
            "GroupID": "",
            "ItemCode": "d10",
            "LandedCost": 1.052,
            "OriginalItemCode": "",
            "CostOverridden": false,
            "DiscountOverridden": false,
            "ItemDescription": "8D Bright Ring Shank",
            "POStatus": "Open",
            "ProposedSellPrice": 0,
            "Quantity": 10,
            "ProposedSellPriceUOM": "EA",
            "PurchaseOrderDetailSequence": 1,
            "ReceivingSet": "",
            "SIZE": "2 1/2",
            "TallyUOM": "",
            "QuantityUOM": "EA",
            "UpdateBy": "mwellensiek",
            "UpdateDate": "2019-02-03",
            "UpdateTime": "20:40:54",
            "WOID": 0
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a specific purchase order, including header and detail information

Required Inputs

Optional Inputs

Response

Notes

N/A

Relationships

Version Deployed

v539

PurchaseOrderHeaderUpdate

Sample Request

{
  "request": {
    "PurchaseOrderID": 1000175221,
    "PurchaseOrderHeaderUpdateJSON": {
      "dsPurchaseOrderHeader": {
        "dtPurchaseOrderHeader": [
          {
            "ExpectedShipDate": "2024-02-11",
            "ExpectedReceiptDate": "2024-02-12",
            "ExpectedReceiptTime": "09:35",
            "PODescription": "New supplier inv",
            "Buyer1": "0901",
            "Buyer2": "451-A",
            "Reference": "Hillcrest Apts",
            "VerbalPO": "751073",
            "POLabel": "Transit",
            "PickUpID": "107311",
            "ShipVia": "Pick up",
            "FreightTerms": "FOB",
            "PaymentTermsCode": "1%10n30",
            "AllowChanges": "Yes",
            "AllowChangesUntilDate": "2019-01-29",
            "AllowChangesUntilTime": "13:30",
            "TrackingDate": "2019-01-19",
            "SendPOVia": "Normal",
            "UpdateLead": "No",
            "ConfirmedBy": "23274",
            "ShipFromSequence": 1,
            "OverriddenCostDiscShipFromUpdate": "No",
            "ApplyOrderMinShipFromUpdate ": "Yes",
            "ApplyMinPackShipFromUpdate": "Yes",
            "UseInactiveShipFromUpdate": "No"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates purchase order header fields

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v538; New ship-from fields added in v608

PurchaseOrderMessageCreate

Sample Request

{
  "request": {
    "MessageCreateJSON": {
      "dsMessageCreate": {
        "dtMessageCreate": [
          {
            "TranID": 12345,
            "TranSeq": 1,
            "MessageText": "Message Text Here",
            "MessageType": "D",
            "PrintOnForms": false,
            "SendToWMS": true
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a purchase order transaction message in the branch the user is logged into

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554

ShippingTrackingUpdateBySupplierReturn

Sample Request

{
    "request": {
        "SupplierReturnID": 440061914,
        "ShippingTrackingUpdateBySRJSON": {
            "dsShipmentUpdateBySRSettings": {
                "dtShipmentUpdateBySRSettings": [
                    {
                        "ShipVia": "Our Truck",
                        "ExpectedShipDate": "2022-10-02"
                    }
                ]
            },
            "dsTrackingDetailBySRRequest": {
                "dtTrackingDetailBySRRequest": [
                    {
                        "TrackingNumber": "1F3Y0A70875015",
                        "ContainerWeight": 9.5,
                        "ContainerWeightUOM": "LB",
                        "ContainerLength": 18,
                        "ContainerWidth": 20,
                        "ContainerHeight": 26,
                        "dtTrackingDetailBySRItemRequest": [
                            {
                                "ItemCode": "90641",
                                "DetailSequence": 1,
                                "Quantity": 1,
                                "QtyUOM": "EA"
                            }
                        ]
                    }
                ]
            }
        }
    }
}

Sample Response

{
    "response": {
        "ReturnCode": 2,
        "MessageText": "Nothing remains to be dispatched for this transaction. (ID# 4539)"
    }
}

Purpose

Stores tracking information for the supplier return on an existing or auto-created dispatch transaction

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v601

SupplierReturnGet

Sample Request

{
    "request": {
        "SupplierReturnID": 440061839
    }
}

Sample Response

{
"response": {
    "SupplierReturnResponse": {
        "dsSupplierReturnResponse": {
            "dtSupplierReturnHeader": [
                {
                    "SupplierReturnID": 440061839,
                    "SRStatus": "Open",
                    "OrderDate": "2022-07-29",
                    "Dispatched": "Dispatched",
                    "SupplierID": "ESM",
                    "ShipFromSequence": 1,
                    "Address1": "4533 Indian Wells Lane",
                    "Address2": "PO Box 125",
                    "Address3": "Suite 43",
                    "City": "Indian Wells",
                    "State": "CA",
                    "Zip": "92210     ",
                    "Country": "USA",
                    "Currency": "USD",
                    "ContactName": "Jack Zeldin",
                    "ContactPhone": "(750)-902-2123",
                    "ContactEmail": "jzeldin@esm.net",
                    "CustomerID": "CENTRAL",
                    "ShipToSequence": 1,
                    "PaymentTermsCode": "eas",
                    "FreightTerms": "Delivery",
                    "PurchaseType": "WH",
                    "SRDescription": "defective materials",
                    "VerbalPO": "2432",
                    "Reference": "",
                    "POLabel": "On Lot",
                    "SendSRVia": "Normal",
                    "Buyer1": "1020",
                    "Buyer2": "LLH1",
                    "ExpectedShipDate": "2022-07-30",
                    "ShipVia": "BOOM TRUCK",
                    "TrackingDate": "2022-08-01",
                    "OriginalSource": "",
                    "ConfirmedBy": "Jack Dutton",
                    "CreatedBy": "lharris",
                    "CreatedDate": "2022-07-29",
                    "CreatedTime": "10:44:30",
                    "UpdateBy": "lharris",
                    "UpdateDate": "2022-07-29",
                    "UpdateTime": "10:44:44"
                }
            ],
            "dtSupplierReturnDetail": [
                {
                    "SupplierReturnID": 440061839,
                    "ItemCode": "90645",
                    "SupplierReturnDetailSequence": 1,
                    "DisplaySequence": 1,
                    "Size": "70” x 60” x 8”",
                    "ItemDescription": "Swimline Pool Pizza Slice Inflatable",
                    "Quantity": -2,
                    "Cost": 40,
                    "CostUOM": "EA",
                    "OriginalItemCode": "90645",
                    "POStatus": "Open",
                    "CreatedBy": "lharris",
                    "CreatedDate": "2022-07-29",
                    "CreatedTime": "10:44:41",
                    "Discount1": 0,
                    "Discount2": 0,
                    "Discount3": 0,
                    "LandedCost": 0,
                    "CostOverridden": false,
                    "DiscountOverridden": false,
                    "TallyUOM": "",
                    "QuantityUOM": "EA",
                    "ReasonCode": "Defective Material",
                    "TotalWeight": 10,
                    "TotalLoad": 12,
                    "ExtendedCost": -80,
                    "ContainerLength": 12,
                    "ContainerWidth": 10,
                    "ContainerHeight": 5,
                    "HazmatFlag": false,
                    "MSDS": "MSDSA",
                    "BolCode": "110",
                    "UpdateBy": "lharris",
                    "UpdateDate": "2022-07-29",
                    "UpdateTime": "10:44:41"
                }
            ]
        },
        "ReturnCode": 0,
        "MessageText": ""
    }
}

Purpose

Retrieve Supplier Return header and detail information

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v601

SupplierReturnMessageCreate

Sample Request

{
  "request": {
    "MessageCreateJSON": {
      "dsMessageCreate": {
        "dtMessageCreate": [
          {
            "TranID": 12345,
            "TranSeq": 3,
            "MessageText": "Message Text Here",
            "MessageType": "Detail",
            "PrintOnForms": true,
            "SendToWMS": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a supplier return transaction message in the branch the user is logged into

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554

AgilityPublic/Reman Service

This AgilityPublic service contains methods related to reman work orders.

RemanHeaderCreate

Sample Request

{
  "request": {
    "dsInputRemanHeaderRequest": {
      "dtInputRemanHeaderRequest": [
        {
          "BalancingUOM": "EA",
          "TransactionDescription": "test",
          "ExpectedDate": "2020-04-15",
          "TransactionJob": "33",
          "TransactionReference": "55",
          "RemanType": "Prod",
          "StartDate": "2020-03-25",
          "SupplierID": 700,
          "SupplierShipFromSequence": 11
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "NewOrderID": 96570,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a new reman order

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v546

RemanInputsCreate

Sample Request

{
  "request": {
    "OrderID": 96595,
    "dsInputRemanInputRequest": {
      "dtInputRemanInputRequest": [
        {
          "Sequence": 1,
          "Key": "1",
          "LinkID": "",
          "ItemCode": "INPUT",
          "ItemSize": "",
          "ItemDescription": "",
          "OrderQty": 10,
          "OrderQtyUOM": "GAL",
          "AffectUsage": false
        }
      ],
      "dtInputRemanInputDimReq": [
        {
          "Sequence": 0,
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "OrderQty": 0,
          "OrderQtyUOM": ""
        }
      ],
      "dtInputRemanInputComReq": [
        {
          "Sequence": 1,
          "Location": "001-1",
          "Lot": "",
          "Tag": "",
          "Content": "",
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "OrderQty": 10,
          "OrderQtyUOM": "GAL"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates one or more reman inputs on an existing, open reman order

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v546

RemanInputDelete

Sample Request

{
  "request": {
    "OrderID": 96600,
    "dsInputRemanInputRequest": {
      "dtInputRemanInputRequest": [
        {
          "Sequence": 1,
          "Key": "1",
          "LinkID": "",
          "ItemCode": "INPUT",
          "ItemSize": "",
          "ItemDescription": "",
          "OrderQty": 10,
          "OrderQtyUOM": "GAL",
          "AffectUsage": false
        }
      ],
      "dtInputRemanInputDimReq": [
        {
          "Sequence": 0,
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "OrderQty": 0,
          "OrderQtyUOM": ""
        }
      ],
      "dtInputRemanInputComReq": [
        {
          "Sequence": 1,
          "Location": "001-1",
          "Lot": "",
          "Tag": "",
          "Content": "",
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "OrderQty": 10,
          "OrderQtyUOM": "GAL"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes one or more inputs from an existing, open reman order

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v546

RemanMessageCreate

Sample Request

{
  "request": {
    "MessageCreateJSON": {
      "dsMessageCreate": {
        "dtMessageCreate": [
          {
            "TranID": 12345,
            "TranType": "RM",
            "TranSeq": 3,
            "MessageText": "Message Text Here",
            "MessageType": "Header",
            "PrintOnForms": true
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a reman transaction message in the branch the user is logged into

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554

RemanOperationsCreate

Sample Request

{
  "request": {
    "OrderID": 96595,
    "dsInputRemanOperationRequest": {
      "dtInputRemanOperationRequest": [
        {
          "Sequence": 1,
          "Key": "1",
          "CostType": "Operation",
          "OperationDescription": "",
          "OrderQty": 1,
          "Cost": 5.25,
          "PrintOnWO": false,
          "SupplierID": 700,
          "SupplierShipFromSequence": 11,
          "ExpectedStartDate": "2020-04-03",
          "ExpectedCompletionDate": "2020-04-04"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates one or more operations on an existing, open reman order

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v546

RemanOperationDelete

Sample Request

{
  "request": {
    "OrderID": 96600,
    "dsInputRemanOperationRequest": {
      "dtInputRemanOperationRequest": [
        {
          "Sequence": 3,
          "Key": "3",
          "CostType": "Operation",
          "OperationDescription": "",
          "OrderQty": 1,
          "Cost": 5.25,
          "PrintOnWO": false,
          "SupplierID": 700,
          "SupplierShipFromSequence": 11,
          "ExpectedStartDate": "2020-04-06",
          "ExpectedCompletionDate": "2020-04-07"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes one or more operations from an existing, open reman order

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v546

RemanOrderGet

Sample Request

{
  "request": {
    "OrderID": 96584
  }
}

Sample Response

{
  "response": {
    "RemanHeaderResponse": {
      "dsGetRemanHeaderResponse": {
        "dtRemanHeaderResponse": [
          {
            "OrderID": 96584,
            "BalancingUOM": "",
            "TransactionDescription": "",
            "ExpectedDate": "2020-04-02",
            "TransactionJob": "123456",
            "TransactionReference": "987654",
            "RemanType": "Dry",
            "StartDate": "2020-04-01",
            "SupplierID": "020774",
            "SupplierShipFromSequence": 1
          }
        ]
      }
    },
    "RemanInputResponse": {
      "dsGetRemanInputResponse": {
        "dtRemanInputResponse": [
          {
            "OrderID": 96584,
            "Sequence": 1,
            "Key": "1",
            "LinkID": "",
            "ItemCode": "INPUT",
            "ItemSize": "INPUT SIZE",
            "ItemDescription": "INPUT DESCRIPTION",
            "OrderQty": 10,
            "OrderQtyUOM": "GAL",
            "AffectUsage": true
          }
        ]
      }
    },
    "RemanOperationResponse": {
      "dsGetRemanOperationResponse": {
        "dtRemanOperationResponse": [
          {
            "OrderID": 96584,
            "Sequence": 1,
            "Key": "1",
            "CostType": "operation",
            "OperationDescription": "REMAN OPERATION",
            "OrderQty": 10,
            "OrderQtyUOM": "EA",
            "Cost": 0,
            "CostUOM": "EA",
            "PrintOnWO": true,
            "SupplierID": "020774",
            "SupplierShipFromSequence": 1,
            "ExpectedStartDate": null,
            "ExpectedCompletionDate": null
          }
        ]
      }
    },
    "RemanOutputResponse": {
      "dsGetRemanOutputResponse": {
        "dtRemanOutputResponse": [
          {
            "OrderID": 96584,
            "Sequence": 1,
            "Key": "1",
            "LinkID": "",
            "Cull": "",
            "ItemCode": "OUTPUT",
            "ItemSize": "OUTPUT SIZE",
            "ItemDescription": "OUTPUT DESCRIPTION",
            "OrderQty": 10,
            "OrderQtyUOM": "GAL",
            "ApplyNegativeUsage": false
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a specific reman order, including its inputs, operations and outputs

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v546

RemanOutputsCreate

Sample Request

{
  "request": {
    "OrderID": 96595,
    "dsInputRemanOutputRequest": {
      "dtInputRemanOutputRequest": [
        {
          "Sequence": 1,
          "Key": "1",
          "LinkID": "",
          "Cull": "",
          "ItemCode": "OUTPUT",
          "ItemSize": "",
          "ItemDescription": "",
          "OrderQty": 10,
          "OrderQtyUOM": "GAL",
          "ApplyNegativeUsage": true
        }
      ],
      "dtInputRemanOutputDimReq": [
        {
          "Sequence": 1,
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "OrderQty": 0,
          "OrderQtyUOM": ""
        }
      ],
      "dtInputRemanOutputStorageReq": [
        {
          "Sequence": 1,
          "Location": "WMS",
          "Lot": "",
          "Tag": "",
          "Content": "",
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "OrderQty": 10,
          "OrderQtyUOM": "GAL"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates one or more reman outputs on an existing, open reman order

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v546

RemanOutputDelete

Sample Request

{
  "request": {
    "OrderID": 96600,
    "dsInputRemanOutputRequest": {
      "dtInputRemanOutputRequest": [
        {
          "Sequence": 4,
          "Key": "4",
          "LinkID": "",
          "Cull": "",
          "ItemCode": "OUTPUT",
          "ItemSize": "",
          "ItemDescription": "",
          "OrderQty": 10,
          "OrderQtyUOM": "GAL",
          "ApplyNegativeUsage": true
        }
      ],
      "dtInputRemanOutputDimReq": [
        {
          "Sequence": 0,
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "OrderQty": 0,
          "OrderQtyUOM": ""
        }
      ],
      "dtInputRemanOutputStorageReq": [
        {
          "Sequence": 4,
          "Location": "001-1",
          "Lot": "",
          "Tag": "",
          "Content": "",
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "OrderQty": 10,
          "OrderQtyUOM": "GAL"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Deletes one or more outputs from an existing, open reman order

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v546

RemanSpecifyTagsToCommit

Sample Request

{
  "request": {
    "OrderID": 96589,
    "dsInputRemanTagsToCommitRequest": {
      "dtInputRemanTagsToCommitRequest": [
        {
          "Tag": "T0113446"
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Commits inventory tags to input items on reman work orders in the branch the user is logged into

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v546

RemanStorageReplace

Sample Request

{
  "request": {
    "OrderID": 96590,
    "dsInputRemanOutputRequest": {
      "dtInputRemanOutputRequest": [
        {
          "Sequence": 1,
          "Key": "1",
          "LinkID": "",
          "Cull": "",
          "ItemCode": "OUTPUT",
          "ItemSize": "",
          "ItemDescription": "",
          "OrderQty": 1,
          "OrderQtyUOM": "",
          "ApplyNegativeUsage": true
        }
      ],
      "dtInputRemanOutputDimensionReq": [
        {
          "Sequence": 0,
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "OrderQty": 0,
          "OrderQtyUOM": ""
        }
      ],
      "dtInputRemanOutputStorageRequest": [
        {
          "Sequence": 1,
          "Location": "WMS",
          "Lot": "",
          "Tag": "",
          "Content": "",
          "Thickness": 0,
          "Width": 0,
          "Length": 0,
          "PieceCount": 0,
          "OrderQty": 1,
          "OrderQtyUOM": "GAL"
        }
      ]
    }
  }
}

Sample Response

Sample response {   "response": {
        "ReturnCode": 0,
        "MessageText": ""
    }}

Purpose

Deletes one or more outputs from an existing, open reman order

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v546

AgilityPublic/Session Service

This AgilityPublic service contains methods related to the user’s session when logged in.

AgilityVersion

No Sample Request


Sample Response

{
  "response": {
    "AgilityVersion": "5.3.4",
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns the customer’s Agility version the web service is accessing

Required Inputs

Optional Inputs

Response

Notes

Relationships

N/A

Version Deployed

v534

BranchList

No Sample Request


Sample Response

{
  "response": {
    "BranchListResponse": {
      "dsBranchListResponse": {
        "dtBranchListResponse": [
          {
            "BranchID": "CORPORATE",
            "CompanyName": "Corporate Branch",
            "ProfName": "CORPORATE"
          },
          {
            "BranchID": "OMAHA",
            "CompanyName": "Omaha Branch",
            "ProfName": "OMAHA"
          }
        ]
      }
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of branches the user has access to

Required Inputs

Optional Inputs

Response

Notes

N/A

Relationships

Version Deployed

v534; ProfName added to response in v554

Login

Sample Request

{
  "request": {
    "LoginID": "username",
    "Password": "password"
  }
}

Sample Response

{
  "response": {
    "SessionContextId": "12345613a90e34-a6c-49ad-314-9f703ef86",
    "InitialBranch": "CORPORATE",
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Logs the user into Agility and returns a context id

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534

Logout

No Sample Request


Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Logs a user out of Agility and removes the context id

Required Inputs

Optional Inputs

Response

Notes

N/A

Relationships

Version Deployed

v534

AgilityPublic/Session Service Restricted methods-DMSi use only

Name Purpose
EnvironmentInfo Used to verify environmental information
ReceiveData Used by specific external interfaces to send files to Agility for processing

AgilityPublic/Shipments Service

This AgilityPublic service includes methods related to shipments.

PickFileCreate

Sample Request

{
  "request": {
    "ViewerName": "Pick File Viewer",
    "AccessType": "All",
    "AccessedBy": "",
    "SaleType": "",
    "Route": "",
    "CustomerID": "",
    "OrderID": "",
    "Dispatched": "",
    "Location": "",
    "HandlingCode": "",
    "ShipVia": "",
    "CutOffDate": null
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a new pick file based on a saved picking viewer

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v540

PickFileList

Sample Request

{
  "request": {
    "OrderID": 304533,
    "ShipmentNumber": "",
    "PickID": "",
    "CustomerID": "",
    "ShipToSequence": "",
    "ExpectDateRangeStart": null,
    "ExpectDateRangeEnd": null,
    "RouteID": "",
    "ChunkStartPointer": "",
    "RecordFetchLimit": ""
  }
}

Sample Response

{
  "response": {
    "PickFilesDisplayResponse": {
      "dsPicksResponse": {
        "dtPickResponse": [
          {
            "BranchID": "CENTRALBRNCH",
            "OrderID": 300153611,
            "PickIDList": "0000133076",
            "ShipmentNumber": 1,
            "CustomerID": "HAR01",
            "ShipToSequence": 2,
            "StopNumber": 0,
            "CreatedBy": "lharris",
            "CreatedDate": "2023-01-13",
            "CreatedTime": "13:32:24",
            "ExpectedDate": "2023-01-16",
            "PayTermsCode": "COD",
            "RouteID": "",
            "SaleType": "wh",
            "SOStatusFlag": "Partial",
            "SOHeaderType": "SO",
            "ShipVia": "Our Truck",
            "TaxDescription": "IA|IA_GRUNDY|IA_GRUNDY_REINBECK|IA_GRUNDY__SILO",
            "TaxTotalPercent": "6|1|0|0",
            "PickTotal": 214,
            "PickTaxAmount": 14,
            "ShipToAddress1": "906 Park Street",
            "ShipToAddress2": "Suite 234",
            "ShipToAddress3": "P O Box 32211",
            "ShipToCity": "Reinbeck",
            "ShipToState": "IA",
            "ShipToZip": "50669",
            "ShipToCountry": "USA",
            "ShipToName": "Harris Corporation S2",
            "ShipToMisc1": "B Thomas",
            "ShipToMisc2": "",
            "ShipToMisc3": "",
            "ShipToMisc4": "",
            "ShipToMisc5": "",
            "ShipToMisc6": "",
            "ShipToMisc7": "42.3236° N",
            "ShipToMisc8": "92.5994° W",
            "ShipToMisc9": "",
            "ShipToMisc10": "",
            "ShipToMisc11": "",
            "ShipToMisc12": "",
            "ShipToMiscDate1": null,
            "ShipToMiscDate2": null,
            "ShipToPhone": "(402)-330-6620",
            "ShipToShippingDate": "",
            "ShipToTrackingNumber": "",
            "PickCostTotal": 1198.45,
            "PickCostType": "Item default",
            "TotalWeight": 20,
            "TotalLoad": 20,
            "CustomerPO": "",
            "ContactName": "1",
            "ContactPhone": "              ",
            "ContactEmail": "",
            "PickRecordSequence": 1,
            "WMSPickHeaderStatusCode": "",
            "WMSPickHeaderStatusDescription": "",
            "FreightTermsCode": "",
            "ShippingTrackingInsuranceReq": false,
            "ShippingTrackingSaturdayDelivery": false,
            "ShippingTrackingSundayDelivery": false,
            "ShippingTrackingDelvInstructions": "",
            "ShippingTrackingSignatureReq": false,
            "CustomerName": "Harris Corporation Internation",
            "TransactionReference": "89347-PY",
            "TransactionJob": "1435-PPL",
            "OrderedBy": "Daniel Jacob",
            "OrderDate": "2023-01-13",
            "APISourceID": "",
            "SalesAgentID1": "0524",
            "SalesAgentName1": "AP Keaton",
            "SalesAgent1PctOfOrder": 50,
            "SalesAgentID2": "002",
            "SalesAgentName2": "James Harrison",
            "SalesAgent2PctOfOrder": 50,
            "SalesAgentID3": "",
            "SalesAgentName3": "",
            "SalesAgent3PctOfOrder": 0,
            "SalesAgentID4": "",
            "SalesAgentName4": "",
            "SalesAgent4PctOfOrder": 0,
            "SalesAgentID5": "",
            "SalesAgentName5": "",
            "SalesAgent5PctOfOrder": 0,
            "SalesAgentID6": "",
            "SalesAgentName6": "",
            "SalesAgent6PctOfOrder": 0,
            "TaxCode": "IA_GRUNDY_REINBECK",
            "Taxable": true,
            "dtPickDetailResponse": [
              {
                "BranchID": "CENTRALBRNCH",
                "OrderID": 300153611,
                "PickID": 133076,
                "ShipmentNumber": 1,
                "DetailSequence": 1,
                "ItemCode": "2827",
                "PickStatus": "Open",
                "TotalOrderedQuantity": 10,
                "OrderedQuantityUOM": "BAG",
                "TotalRequestedQuantity": 20,
                "TotalAdjustedQuantity": 0,
                "NetQuantity": 20,
                "TotalPickedQuantity": 0,
                "PickedQuantityUOM": "EA",
                "AdjustmentType": "",
                "Price": 10,
                "PriceUOM": "EA",
                "ExtendedPrice": 200,
                "MSDS": "",
                "Discount1": 0,
                "Discount2": 0,
                "Discount3": 0,
                "ExtraDiscount1": 0,
                "ExtraDiscount2": 0,
                "ExtraDiscount3": 0,
                "ExtWeight": 20,
                "ExtLoad": 20,
                "ExtCost": 1198.45,
                "ItemSize": "",
                "ItemDescription": "Zinc-Plated Hex Lag Screw Indoor/Outdoor",
                "DispatchID": "",
                "Picker": "",
                "PickRecordSequence": 1,
                "WMSPickDetailStatusCode": "",
                "WMSPickDetailStatusDescription": "",
                "TotalWMSPickedQuantity": 0,
                "HazMatFlag": false,
                "ContainerLength": 0,
                "ContainerWidth": 0,
                "ContainerHeight": 0
              }
            ]
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "NextChunkStartPointer": 1,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns header and detail information for sales order pick files, associated with a customer, specific sales order, specific pick file id, route id or date range

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v540; WMSPickHeader fields added in v547, ShippingService fields added in v555; ShippingTrackingSignatureReq field added in v600

PODSignatureCreate

Sample Request

{
  "request": {
    "PODSignatureCreateJSON": {
      "dsPODSignatureCreate": {
        "dtPODSignatureCreate": [
          {
            "TranType": "SO",
            "TranID": 12345,
            "ShipmentNum": "1",
            "ImageData": "/9j/4AAQAD/tihT/b4L/CrU4xC+IDi++/9k=",
            "ImageInfo": "John Hancock"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates signatures for sales order shipments and credit memo transactions in the branch the user is logged into from a Proof of Delivery (POD) app

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v554

ShipmentInfoUpdate

Sample Request

{
  "request": {
    "OrderID": 283958,
    "ShipmentInfoRequestJSON": {
      "dsShipInfoRequest": {
        "dtShipInfoRequest": [
          {
            "ShipmentNumber": 1,
            "UpdateAllPickFiles": false,
            "UpdateSalesOrder": true,
            "RouteID": "SO Friday",
            "StopNumber": 1,
            "ShipDate": "2019-12-12",
            "RequestedDeliveryDate": "2018-12-12",
            "ShipmentStatusFlag": "L"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates specific fields related to shipment information

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534; ShipmentStatusFlag added v553

ShipmentsList

Sample Request

{
  "request": {
    "dsShipmentDisplayRequest": {
      "dtShipmentDisplayRequest": [
        {
          "OrderID": 283958,
          "ShipmentNumber": 1,
          "CustomerID": "12345",
          "ShipToSequence": 1,
          "ExpectDateRangeStart": null,
          "ExpectDateRangeEnd": null,
          "RouteID": "",
          "StatusFlagList": "",
          "ChunkStartPointer": 0,
          "RecordFetchLimit": 0
        }
      ]
    }
  }
}

Sample Response

{
  "response": {
    "ShipmentDisplayResponse": {
      "dsShipmentDisplayResponse": {
        "dtShipmentDisplayResponse": [
          {
            "BranchID": "CENTRALBRNCH",
            "OrderID": 300152594,
            "ShipmentNum": 1,
            "CustomerID": "HAR01",
            "ShipToSequence": 1,
            "StopNum": 0,
            "CreatedBy": "lharris",
            "CreatedDate": "2022-02-23",
            "CreatedTime": "17:44:36",
            "ExpectedDate": "2022-02-24",
            "InvoiceDate": null,
            "PayTermsCode": "eas",
            "RouteID": "",
            "SaleType": "wh",
            "ShipDate": "2022-02-23",
            "StatusFlag": "Staged",
            "ShipHdrType": "SO",
            "ShipVia": "Our Truck",
            "TaxDescription": "",
            "TaxTotPercent": "",
            "ShipmentCharges": 26.5,
            "ShipmentTotal": 3256.5,
            "ShipmentTaxAmount": 0,
            "ShipmentAfterDeductFreightAmt": 0,
            "ShipToAddress1": "111 SW Avenue",
            "ShipToAddress2": "Suite 111",
            "ShipToAddress3": "P O Box 11111",
            "ShipToCity": "Omaha",
            "ShipToState": "NE",
            "ShipToZip": "68046 1111",
            "ShipToCountry": "USA",
            "ShipToName": "Harris Corporation S1",
            "ShipToMisc1": "B Thomas",
            "ShipToMisc2": "",
            "ShipToMisc3": "",
            "ShipToMisc4": "",
            "ShipToMisc5": "",
            "ShipToMisc6": "",
            "ShipToMisc7": "41.2524° N",
            "ShipToMisc8": "95.9980° W",
            "ShipToMisc9": "",
            "ShipToMisc10": "",
            "ShipToMisc11": "",
            "ShipToMisc12": "",
            "ShipToMiscDate1": null,
            "ShipToMiscDate2": null,
            "ShipToPhone": "(402)-330-6620",
            "ShipToShippingDate": "",
            "ShipToTrackingNumber": "",
            "ShipmentCostTotal": 801.38,
            "ShipmentCostType": "Item default",
            "TotalWeight": 225,
            "TotalLoad": 265,
            "CustomerPO": "",
            "ContactName": "Mr. Frankenstein the Monster!!",
            "ContactPhone": "              ",
            "ContactEmail": "",
            "ShippingTrackingSignatureReq": false,
            "ShippingTrackingDelvInstructions": "",
            "ShippingTrackingInsuranceReq": false,
            "ShippingTrackingSaturdayDelivery": false,
            "ShippingTrackingSundayDelivery": false,
            "PricedPickDelivery": false,
            "ShipmentTotalDue": 0,
            "FreightTerms": "",
            "CustomerName": "Harris Corporation",
            "TransactionReference": "",
            "TransactionJob": "",
            "OrderedBy": "",
            "OrderDate": "2022-02-23",
            "APISourceID": "",
            "SalesAgentID1": "026",
            "SalesAgentName1": "Frank Pike",
            "SalesAgent1PctOfOrder": 0,
            "SalesAgentID2": "",
            "SalesAgentName2": "",
            "SalesAgent2PctOfOrder": 0,
            "SalesAgentID3": "testdmsi",
            "SalesAgentName3": "John Smith",
            "SalesAgent3PctOfOrder": 0,
            "SalesAgentID4": "",
            "SalesAgentName4": "",
            "SalesAgent4PctOfOrder": 0,
            "SalesAgentID5": "",
            "SalesAgentName5": "",
            "SalesAgent5PctOfOrder": 0,
            "SalesAgentID6": "",
            "SalesAgentName6": "",
            "SalesAgent6PctOfOrder": 0,
            "TaxCode": "",
            "Taxable": false,
            "dtTrackingHeaderResponse": [
              {
                "BranchID": "CENTRALBRNCH",
                "OrderID": 300152594,
                "ShipmentNum": 1,
                "Sequence": 1,
                "DispatchID": 333025556,
                "TrackingNumber": "3",
                "ContainerWeight": 200,
                "ContainerWeightUOM": "LB",
                "ContainerLength": 7,
                "ContainerWidth": 8,
                "ContainerHeight": 5
              },
              {
                "BranchID": "CENTRALBRNCH",
                "OrderID": 300152594,
                "ShipmentNum": 1,
                "Sequence": 2,
                "DispatchID": 333025556,
                "TrackingNumber": "7",
                "ContainerWeight": 25,
                "ContainerWeightUOM": "LB",
                "ContainerLength": 8,
                "ContainerWidth": 9,
                "ContainerHeight": 10
              }
            ],
            "dtShipmentDisplayResponseDetail": [
              {
                "BranchID": "CENTRALBRNCH",
                "OrderID": 300152594,
                "ShipmentNum": 1,
                "Sequence": 1,
                "ItemCode": "90645",
                "TotalOrderedQuantity": 5,
                "OrderedQuantityUOM": "BOX",
                "TotalStagedQuantity": 5,
                "StagedQuantityUOM": "BOX",
                "Price": 62,
                "PriceUOM": "EA",
                "ExtendedPrice": 2480,
                "MSDS": "MSDSA",
                "Discount1": 0,
                "Discount2": 0,
                "Discount3": 0,
                "ExtraDiscount1": 0,
                "ExtraDiscount2": 0,
                "ExtraDiscount3": 0,
                "ExtWeight": 200,
                "ExtLoad": 240,
                "ExtCost": 408,
                "ItemSize": "70” x 60” x 8”",
                "ItemDescription": "Swimline Pool Pizza Slice Inflatable",
                "CustomerPOLineNumber": "000001",
                "HazMatFlag": false,
                "OriginalPrice": 62,
                "OriginalPriceUOM": "EA",
                "OriginalOrderedQty": 5,
                "OriginalOrderedQtyUOM": "BOX",
                "ExtendedDescription": "1 person float\nPizza design\nCan be connected to second slice",
                "PartNumber": "90645-HAR01-All",
                "PrimarySupplierContainerLength": 12,
                "PrimarySupplierContainerWidth": 10,
                "PrimarySupplierContainerHeight": 5,
                "ItemXrefUsedToOrder": "",
                "dtSerialNumberDetailResponse": [
                  {
                    "BranchID": "CENTRALBRNCH",
                    "OrderID": 300152594,
                    "ShipmentNum": 1,
                    "Sequence": 1,
                    "Quantity": 0,
                    "SerialNumber": "8-98",
                    "SerialNumber2": ""
                  }
                ]
              },
              {
                "BranchID": "CENTRALBRNCH",
                "OrderID": 300152594,
                "ShipmentNum": 1,
                "Sequence": 2,
                "ItemCode": "90641",
                "TotalOrderedQuantity": 5,
                "OrderedQuantityUOM": "BOX",
                "TotalStagedQuantity": 5,
                "StagedQuantityUOM": "BOX",
                "Price": 30,
                "PriceUOM": "EA",
                "ExtendedPrice": 750,
                "MSDS": "",
                "Discount1": 0,
                "Discount2": 0,
                "Discount3": 0,
                "ExtraDiscount1": 0,
                "ExtraDiscount2": 0,
                "ExtraDiscount3": 0,
                "ExtWeight": 25,
                "ExtLoad": 25,
                "ExtCost": 393.38,
                "ItemSize": "70” x 60” x 8”",
                "ItemDescription": "Swimline Pool Swan inflatable",
                "CustomerPOLineNumber": "000002",
                "HazMatFlag": true,
                "OriginalPrice": 30,
                "OriginalPriceUOM": "EA",
                "OriginalOrderedQty": 5,
                "OriginalOrderedQtyUOM": "BOX",
                "ExtendedDescription": "2 person float\nSwan design\nCan be connected to second slice",
                "PartNumber": "90641-HAR01-CUST-UPC",
                "PrimarySupplierContainerLength": 453,
                "PrimarySupplierContainerWidth": 65,
                "PrimarySupplierContainerHeight": 652.99,
                "ItemXrefUsedToOrder": "",
                "dtSerialNumberDetailResponse": [
                  {
                    "BranchID": "CENTRALBRNCH",
                    "OrderID": 300152594,
                    "ShipmentNum": 1,
                    "Sequence": 2,
                    "Quantity": 0,
                    "SerialNumber": "458+3",
                    "SerialNumber2": ""
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "NextChunkStartPointer": 1,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of shipments, including details, associated with a customer or specific sales order

Required Inputs

One or more of the following are required for a valid request: CustomerID, OrderID, RouteID, or ExpectDateRangeStart and ExpectDateRangeEnd

Optional Inputs

Response

Notes

Relationships

Version Deployed

v534; tracking fields added in v556; additional tracking fields added in v600

ShippingStatusGet

Sample Request

{
    "request": {
      "SalesOrderID": 3171,
        "ShipmentNum": 1
    }
}

Sample Response

{
"response": {
  "ShippingStatusResponse": {
    "dsShippingStatus": {
      "dtShippingStatus": [
        {
          "ShippingStatus": "Shipment"
        }
      ]
    }
  },
  "ReturnCode": 0,
  "MessageText": ""
  }
}

Purpose

Returns status of sales order shipment

Required Inputs

Optional Inputs

Response

Notes

Returns the status of the sales order shipment

Relationships

Version Deployed

v600

ShippingTrackingDelete

Sample Request

{
  "request": {
    "TranID": 440061845,
    "TranType": "SR",
    "ShipmentNumber": 0,
    "TrackingDeleteRequestJSON": {
      "dsTrackingDeleteRequest": {
        "dtTrackingDeleteRequest": [
          {
            "TrackingNumber": "Container A"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Delete shipping tracking information assigned to a sales order shipment or supplier return

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v600

ShippingTrackingUpdateByPick

Sample Request

{
  "request": {
    "SalesOrderID": 2527,
    "PickID": 182,
    "ShippingTrackingUpdateJSON": {
      "dsShipmentUpdateSettings": {
        "dtShipmentUpdateSettings": [
          {
            "ShipVia": "FedEx",
            "ShipDate": "2022-02-27",
            "ShipmentStatusFlag": "E",
            "ShipmentCharge": 75,
            "ShipmentCost": 60
          }
        ]
      },
      "dsTrackingDetailRequest": {
        "dtTrackingDetailRequest": [
          {
            "TrackingNumber": "1Z63Y0A70343875012",
            "ContainerWeight": 9.1,
            "ContainerWeightUOM": "LB",
            "ContainerLength": 24,
            "ContainerWidth": 18,
            "ContainerHeight": 12,
            "dtTrackingDetailItemRequest": [
              {
                "ItemCode": "PB4-60",
                "DetailSequence": 1,
                "Quantity": 1,
                "QtyUOM": "EA"
              }
            ]
          },
          {
            "TrackingNumber": "1Z81R9840347017040",
            "ContainerWeight": 87.25,
            "ContainerWeightUOM": "LB",
            "ContainerLength": 1,
            "ContainerWidth": 2,
            "ContainerHeight": 3,
            "dtTrackingDetailItemRequest": [
              {
                "ItemCode": "EC-160301",
                "DetailSequence": 2,
                "Quantity": 1,
                "QtyUOM": "EA"
              },
              {
                "ItemCode": "W3T-CELL",
                "DetailSequence": 3,
                "Quantity": 3,
                "QtyUOM": "BAG"
              }
            ]
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a shipments based off a resolved pick ID and stores tracking information for the shipment on an auto-created dispatch transaction

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v555

ShippingTrackingUpdateByShipment

Sample Request

{
  "request": {
    "SalesOrderID": 300153494,
    "ShipmentNumber": 8,
    "ShippingTrackingUpdateByShipJSON": {
      "dsShipmentUpdateByShipSettings": {
        "dtShipmentUpdateByShipSettings": [
          {
            "ShipVia": "BUS",
            "ShipDate": "2022-07-14",
            "ShipmentStatusFlag": "D",
            "ShipmentCost": 10,
            "ShipmentCharge": 20
          }
        ]
      },
      "dsTrackingDetailByShipRequest": {
        "dtTrackingDetailByShipRequest": [
          {
            "TrackingNumber": "1S7V5470",
            "ContainerWeight": 32.75,
            "ContainerWeightUOM": "LB",
            "ContainerLength": 17,
            "ContainerWidth": 24,
            "ContainerHeight": 24,
            "dtTrackingDtlByShipItemRequest": [
              {
                "ItemCode": "90641",
                "DetailSequence": 1,
                "Quantity": 1,
                "QtyUOM": "EA"
              }
            ]
          },
          {
            "TrackingNumber": "1EZ6338750",
            "ContainerWeight": 9.5,
            "ContainerWeightUOM": "LB",
            "ContainerLength": 18,
            "ContainerWidth": 18,
            "ContainerHeight": 18,
            "dtTrackingDtlByShipItemRequest": [
              {
                "ItemCode": "90641",
                "DetailSequence": 1,
                "Quantity": 1,
                "QtyUOM": "ea"
              }
            ]
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Allow updates to container/tracking information for a shipment

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v600

AgilityPublic/Supplier Service

This AgilityPublic service contains methods related to supplier information.

SupplierBranchCreate

Sample Request

{
  "request": {
    "SupplierID": "CLA22",
    "SupplierBranchJSON": {
      "dsSupplierBranch": {
        "dtSupplierBranch": [
          {
            "ShipVia": "Truck",
            "FreightTerms": "COD",
            "Buyer": "Buy01",
            "Buyer2": "Buy02",
            "PurchaseType": "wh",
            "ECommercePurchaseType": "wh",
            "CutOffPOChangesDay": "Monday",
            "CutOffPOChangesTime": "12:34",
            "PrimaryShipFrom": 1,
            "Region": "East",
            "DistributorNumber": "12-909",
            "ExpenseGLAccount": "040.00.50022",
            "ExpenseGLComponent": "",
            "ExpenseGLComponentLevel": 1,
            "GiveFreightNotSpecifiedQuestion": "Both",
            "OrderMinimumCost": 1000,
            "OrderMinimumWeight": 100,
            "OrderMinimumLoad": 100,
            "FreightMinimumCost": 250,
            "FreightMinimumWeight": 100,
            "FreightMinimumLoad": 250,
            "WMSIncludeLinkedOrders": "true",
            "WMSIncludeVerbalPO": "true",
            "CombineLikeItemsOnPrintedPO": "false"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Create new supplier branch records

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

SupplierBranchUpdate

Sample Request

{
  "request": {
    "SupplierID": "CLA22",
    "SupplierBranchJSON": {
      "dsSupplierBranch": {
        "dtSupplierBranch": [
          {
            "ShipVia": "Truck",
            "FreightTerms": "COD",
            "Buyer": "",
            "Buyer2": "",
            "PurchaseType": "wh",
            "ECommercePurchaseType": "wh",
            "CutOffPOChangesDay": "Monday",
            "CutOffPOChangesTime": "10:45",
            "PrimaryShipFrom": 1,
            "Region": "EAST",
            "DistributorNumber": "IA-22",
            "ExpenseGLAccount": "",
            "ExpenseGLComponent": "xxx.00.50023",
            "ExpenseGLComponentLevel": 2,
            "GiveFreightNotSpecifiedQuestion": "Both",
            "OrderMinimumCost": 1000,
            "OrderMinimumWeight": 240,
            "OrderMinimumLoad": 250,
            "FreightMinimumCost": 200,
            "FreightMinimumWeight": 260,
            "FreightMinimumLoad": 300,
            "WMSIncludeLinkedOrders": true,
            "WMSIncludeVerbalPO": false,
            "CombineLikeItemsOnPrintedPO": false
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates existing supplier branch records

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

SupplierContact

Sample Request

{
  "request": {
    "SupplierID": "1618T",
    "ContactName": "Jolene Doe",
    "ContactType": "Primary",
    "ContactJSON": {
      "dsSupplierContact": {
        "dtSupplierContact": [
          {
            "Primary": true,
            "Address1": "333 Main St.",
            "Address2": "Ste 300",
            "Address3": "PO BOX 300",
            "City": "Omaha",
            "State": "NE",
            "ZIP": "68164",
            "Country": "USA",
            "Phone1": "8281112222",
            "Phone2": "8282222333",
            "OtherPhone": "8283334444",
            "MobilePhone": "8284445555",
            "Fax": "8285556666",
            "EmailAddress": "jdoe@gmail.com",
            "ContactTitle": "Owner",
            "Salutation": "Mrs.",
            "OtherData": "",
            "Remarks": "Call mobile first"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates a supplier contact

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

SupplierCreate

Sample Request

{
  "request": {
    "SupplierID": "REDSUPP",
    "SupplierJSON": {
      "dsSupplier": {
        "dtSupplier": [
          {
            "Name": "REDLAND SUPPLY",
            "Address1": "1121 Russell Slade Blvd",
            "Address2": "",
            "Address3": "",
            "City": "Ames",
            "State": "IA",
            "ZIP": "50011",
            "Country": "USA",
            "Phone": "3193456767",
            "PhoneFormat": "USA",
            "Fax": "3198907874",
            "Website": "",
            "DivisionID": "100",
            "GroupID": "",
            "Currency": "USD",
            "PrintCurrency": "Symbol",
            "Active": true,
            "Temporary": false,
            "CarrierSupplier": true,
            "CarrierType": "Rail",
            "WMSIncludeLinkedOrders": false,
            "WMSIncludeVerbalOrders": false,
            "HistoryDisposition": "",
            "HistoryStartDate": "2023-01-01",
            "HistoryDateFirstOrder": "2023-02-12",
            "HistoryCompanyCode": "",
            "InvoiceDefaultVoucherStatus": "Ready for payment",
            "InvoiceStandardDiscount": 0,
            "InvoicePaymentMethod": "Credit Card",
            "InvoiceDaysToClear": 9,
            "InvoicePaymentTermsCode": "1%flat",
            "InvoiceCreditPaymentTermsCode": "2%flat",
            "InvoiceCostType": "PO",
            "InvoiceXrefRequiredBySupplier": "None",
            "InvoiceCashGLAccount": null,
            "InvoiceCashGLComponent": "XXX.00.50021",
            "InvoiceCashGLComponentLevel": 2,
            "InvoiceAllowDuplicates": true,
            "InvoiceRejectIfDupInvoiceAndDate": true,
            "InvoiceSuppCheckDupMonths": 5,
            "InvoiceSuppRejectDupMonths": 9,
            "Misc1": "",
            "Misc2": "",
            "Misc3": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a supplier

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

SupplierGLCreate

Sample Request

{ 
  "request": { 
    "SuppierID": "0312 TEST", 
    "SupplierGLJSON": { 
      "dsSupplierGL": { 
        "dtSupplierGL": [ 
          { 
            "GLAccount": "", 
            "GLComponent": "XXX.11.50021",
            "GLComponentLevel": 1

            } 
        ] 
      } 
    } 
  } 
}

Sample Response

{ 
  "response": { 
    "dsAuditResults": { 
      "dsAuditResults": {} 
    }, 
    "ReturnCode": 0, 
    "MessageText": "" 
  } 
} 

Purpose

Create a supplier G/L record in the current branch

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

SupplierGLDelete

Sample Request

{
  "request": {
    "SuppierID": "WIN01",
    "SupplierGLJSON": {
      "dsSupplierGL": {
        "dtSupplierGL": [
          {
            "GLAccount": "",
            "GLComponent": "XXX.11.50021",
            "GLComponentLevel": 1
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Delete a supplier G/L record in the current branch

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v611

SupplierRemittoContact

Sample Request

{
  "request": {
    "SupplierID": "1618T",
    "RemittoSequence": 1,
    "ContactName": "Joann Doe",
    "ContactType": "Secondary",
    "ContactJSON": {
      "dsSupplierRemittoContact": {
        "dtSupplierRemittoContact": [
          {
            "Primary": false,
            "Address1": "333 Main St.",
            "Address2": "Ste 300",
            "Address3": "PO BOX 300",
            "City": "Omaha",
            "State": "NE",
            "ZIP": "68164",
            "Country": "USA",
            "Phone1": "8281112222",
            "Phone2": "8282222333",
            "OtherPhone": "8283334444",
            "MobilePhone": "8284445555",
            "Fax": "8285556666",
            "EmailAddress": "j.doe@gmail.com",
                "ReceiveAPRemittance": true,
            "ContactTitle": "Supervisor",
            "Salutation": "Ms.",
            "OtherData": "",
            "Remarks": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates a supplier remit-to contact

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

SupplierRemittoCreate

Sample Request

{
  "request": {
    "SupplierID": "0410-1",
    "SupplierRemittoJSON": {
      "dsSupplierRemitto": {
        "dtSupplierRemitto": [
          {
            "RemittoSequence": 73,
            "RemittoName": "Supplier International",
            "Address1": "11650 Miracle Hills Dr ",
            "Address2": "Suite 100",
            "Address3": "",
            "City": "Omaha",
            "State": "NE",
            "ZIP": "68104",
            "Country": "USA",
            "PhoneFormat": "USA",
            "Phone": "402-555-5645",
            "AccountNumber": "SME-0312",
            "Active": true,
            "Primary": true,
            "PrintOneCheckPerInvoice": false,
            "ACHDetailType": "CTX",
            "ACHCTXQualifier": "CX",
            "ACHCTXMailboxID": "12450698",
            "ACHCTXVersion": "004010",
            "ACHCTXUsageIndicator": "TEST",
            "APInterfaceInvoicePaymentTerms": "Supplier Default",
            "APInterfaceCreditPaymentTerms": "Purchase Order",
            "APInterfaceDefaultToHoldInvoice": false,
            "APInterfaceBranchToApplyInvoice": "WESTONBRANCH",
            "CalculateTaxInInvoiceEntry": true,
            "TaxCode": "NE",
            "APHandlingCode": "ATTN",
            "APHandlingCodeAdditionalInfo": "PickUp",
            "Misc1Value": "",
            "Misc2Value": "",
            "Misc3Value": "",
            "Requires1099": true,
            "Payment1099TypeCode": "Exp",
            "TaxID1099": "123546",
            "LegalID1099": "88-123456789",
            "LegalName1099": "Supplier International",
            "AmountThisYear1099": 100,
            "AmountLastYear1099": 120,
            "BankAccountType": "Checking",
            "BankRoutingNum": "123456",
            "BankAccountNum": "123456789"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "RemittoSequence": 73,
    "AuditResults": {
      "dsAuditResults": {
        "dtAuditResults": [
          {
            "AuditSequence": 1,
            "AuditType": "Warning",
            "AuditText": "An existing remit-to record’s primary flag was unset"
          }
        ]
      }
    },
    "ReturnCode": 2,
    "MessageText": "Supplier Remit-to cannot be created. Supplier Remit-to already exists. (ID# 3316)"
  }
}

Purpose

Create Supplier Remit-to record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

SupplierRemittosList

Sample Request

{
    "request": {
    "SearchBy": "Remit-to Address 1",
    "SearchValue": 904,
    "SupplierID": "NEL01",
    "RemittoSequence":"",
    "FetchOnlyChangedSince": null,
    "ChunkStartPointer": null,
    "RecordFetchLimit": 100
  }
}

Sample Response

{
  "response": {
    "SupplierRemittoResponse": {
      "dsSupplierRemittoResponse": {
        "dtSupplierRemittoResponse": [
          {
            "SupplierID": "NEL01",
            "SupplierName": "Nelson Supply",
            "RemittoName": "Nelson Supply",
            "RemittoSequence": 1,
            "Address1": "904 Park Street",
            "Address2": "Suite 4200",
            "Address3": "",
            "City": "Omaha",
            "State": "NE",
            "ZIP": "68118",
            "Country": "USA",
            "Phone": "(402)-189-0788",
            "Primary": true,
            "Active": true,
            "LastChanged": "2024-02-09T12:14:09.000",
            "Misc1Label": "Remit-to 1",
            "Misc1Value": "",
            "Misc2Label": "Remit-to 2",
            "Misc2Value": "",
            "Misc3Label": "Remit-to 3",
            "Misc3Value": "",
            "Requires1099": false,
            "LegalID1099": "230-898984",
            "LegalName1099": "Nelson Corporation LLC",
            "Payment1099TypeCode": "Exp",
            "TaxID1099": "NE-040124",
            "AmountThisYear1099": 255.01,
            "AmountLastYear1099": 200.99,
            "BankAccountType": "Checking",
            "BankRoutingNumber": "453198",
            "BankAccountNumber": "100173216",
            "PhoneFormat": USA,
            "AccountNumber": "984069",
            "PrintOneCheckPerInvoice": true,
            "ACHDetailType": "CTX",
            "ACHCTXQualifier": "00",
            "ACHCTXMailboxID": "169",
            "ACHCTXVersion": "004010",
            "ACHCTXUsageIndicator": "Prod",
            "APInterfaceInvoicePaymentTerms": "Invoice",
            "APInterfaceCreditPaymentTerms": "Credit Invoice",
            "APInterfaceDefaultToHoldInvoice": false,
            "APInterfaceBranchToApplyInvoice": "WESTONBRANCH",
            "CalculateTaxInInvoiceEntry": false,
            "TaxCode": "NE_Omaha_Douglas",
            "APHandlingCode": "",
            "APHandlingCodeAdditionalInfo": ""
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "NextChunkStartPointer": 1,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of supplier remit-tos available in the branch the user is logged into

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v609; fields added in v610

SupplierRemittoUpdate

Sample Request

{
  "request": {
    "SupplierID": "0410-1",
    "SupplierRemittoJSON": {
      "dsSupplierRemitto": {
        "dtSupplierRemitto": [
          {
            "RemittoSequence": 1,
            "RemittoName": "Supplier International",
            "Address1": "11650 Miracle Hills Dr ",
            "Address2": "Suite 100",
            "Address3": "",
            "City": "Omaha",
            "State": "NE",
            "ZIP": "68104",
            "Country": "USA",
            "PhoneFormat": "USA",
            "Phone": "402-555-5645",
            "AccountNumber": "SME-0312",
            "Active": true,
            "Primary": true,
            "PrintOneCheckPerInvoice": false,
            "ACHDetailType": "CTX",
            "ACHCTXQualifier": "CX",
            "ACHCTXMailboxID": "12450698",
            "ACHCTXVersion": "004010",
            "ACHCTXUsageIndicator": "TEST",
            "APInterfaceInvoicePaymentTerms": "Supplier Default",
            "APInterfaceCreditPaymentTerms": "Purchase Order",
            "APInterfaceDefaultToHoldInvoice": false,
            "APInterfaceBranchToApplyInvoice": "WESTONBRANCH",
            "CalculateTaxInInvoiceEntry": true,
            "TaxCode": "NE",
            "APHandlingCode": "ATTN",
            "APHandlingCodeAdditionalInfo": "PickUp",
            "Misc1Value": "",
            "Misc2Value": "",
            "Misc3Value": "",
            "Requires1099": true,
            "Payment1099TypeCode": "Exp",
            "TaxID1099": "123546",
            "LegalID1099": "88-123456789",
            "LegalName1099": "Supplier International",
            "AmountThisYear1099": 100,
            "AmountLastYear1099": 120,
            "BankAccountType": "Checking",
            "BankRoutingNum": "123456",
            "BankAccountNum": "123456789"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Update existing Supplier Remit-to records

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

SupplierShipfromBranchCreate

Sample Request

{
  "request": {
    "SupplierID": "DID",
    "ShipfromSequence": 6,
    "SupplierShipfromBranchJSON": {
      "dsSupplierShipfromBranch": {
        "dtSupplierShipfromBranch": [
          {
            "EnableMiscSettingFlags": true,
            "UpdateLead": true,
            "EnableLoadUnloadFlags": true,
            "LoadUnloadCallForAppointment": false,
            "LoadUnloadFromHours": "09:30",
            "LoadUnloadToHours": "10:24"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a supplier ship-from branch record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v611

SupplierShipfromBranchUpdate

Sample Request

{
  "request": {
    "SupplierID": "DID",
    "ShipfromSequence": 6,
    "SupplierShipfromBranchJSON": {
      "dsSupplierShipfromBranch": {
        "dtSupplierShipfromBranch": [
          {
            "EnableMiscSettingFlags": true,
            "UpdateLead": true,
            "EnableLoadUnloadFlags": true,
            "LoadUnloadCallForAppointment": false,
            "LoadUnloadFromHours": "09:30",
            "LoadUnloadToHours": "10:24"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates an existing supplier ship-from branch record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v611

SupplierShipfromContact

Sample Request

{
  "request": {
    "SupplierID": "1618T",
    "ShipfromSequence": 1,
    "ContactName": "Jane Doe",
    "ContactType": "Secondary",
    "ContactJSON": {
      "dsSupplierShipfromContact": {
        "dtSupplierShipfromContact": [
          {
            "Primary": false,
            "Address1": "333 Main St.",
            "Address2": "Ste 300",
            "Address3": "PO BOX 300",
            "City": "Omaha",
            "State": "NE",
            "ZIP": "68164",
            "Country": "USA",
            "Phone1": "8281112222",
            "Phone2": "8282222333",
            "OtherPhone": "8283334444",
            "MobilePhone": "8284445555",
            "Fax": "8285556666",
            "EmailAddress": "jdoe@gmail.com",
            "ContactTitle": "Manager",
            "Salutation": "Miss",
            "OtherData": "",
            "Remarks": "Call mobile first"
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates a supplier ship-from contact

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

SupplierShipfromCreate

Sample Request

{
  "request": {
    "SupplierID": "cla22",
    "SupplierShipfromJSON": {
      "dsSupplierShipfrom": {
        "dtSupplierShipfrom": [
          {
            "ShipfromSequence": 99,
            "GrantAccessToAllBranchesOnCreate": false,
            "ShipfromName": "Clarksons Supply",
            "Address1": "22 Hawkeye Road",
            "Address2": "",
            "Address3": "",
            "City": "Coralville",
            "State": "IA",
            "ZIP": "50689",
            "Country": "USA",
            "PhoneFormat": "USA",
            "Phone": "4021112222",
            "Fax": "4028881212",
            "Memo": "",
            "AssignAsDescToTallyRecords": true,
            "Primary": true,
            "NewItemSuppForNewPrimaryShipfrom": false,
            "Active": true,
            "UpdateLead": true,
            "AutoRecvAutoDisplayInvoiceEntry": true,
            "APReconBalanceBy": "P",
            "LoadUnloadCallForAppointment": true,
            "LoadUnloadFromHours": "1000",
            "LoadUnloadToHours": "1200",
            "Misc1Value": "Unload in dock 14A ",
            "Misc2Value": "",
            "Misc3Value": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "ShipfromSequence": 99,
    "AuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates a ship-from supplier record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v611

SupplierShipfromLaserControls

Sample Request

{
  "request": {
    "SupplierID": "did",
    "ShipfromSequence": 10,
    "FormType": "PO",
    "PrinterSequence": 1,
    "LaserControlJSON": {
      "dsSupplierShipfromLaserControls": {
        "dtSupplierShipfromLaserControls": [
          {
            "PrinterName": "EMAIL",
            "FaxEmailToSource": "Primary Remit-to contact",
            "Fax": "",
            "Email": "",
            "Copies": 1,
            "FormFooter": "Customer Copy "
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "dsAuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Creates or updates supplier ship-from laser controls

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v611

SupplierShipfromsList

Sample Request

{
  "request": {
    "SearchBy": "Ship-from Address 1",
    "SearchValue": "2222",
    "SupplierID": "cla22",
    "ShipfromSequence": null,
    "FetchOnlyChangedSince": "2024-02-08T10:00:00.000",
    "ChunkStartPointer": 0,
    "RecordFetchLimit": 50
  }
}

Sample Response

{
  "response": {
    "SupplierShipfromResponse": {
      "dsSupplierShipfromResponse": {
        "dtSupplierShipfromResponse": [
          {
            "SupplierID": "CLA22",
            "SupplierName": "CLARK SUPPLY",
            "ShipfromName": "Clark Supply",
            "ShipfromSequence": 1,
            "Address1": "2222 Hawkeye Rd",
            "Address2": "",
            "Address3": "",
            "City": "Coralville",
            "State": "IA",
            "ZIP": "50678",
            "Country": "USA",
            "PhoneFormat": "USA",
            "Phone": "(319) 366-1222",
            "Fax": "(319) 344-2999",
            "Memo": "",
            "AssignAsDescToTallyRecords": true,
            "Primary": true,
            "Active": true,
            "UpdateLead": true,
            "AutoRecvAutoDisplayInvoiceEntry": false,
            "APReconBalanceBy": "Purchase Order",
            "LoadUnloadCallForAppointment": false,
            "LoadUnloadFromHours": "10:00",
            "LoadUnloadToHours": "12:00",
            "Misc1Label": "Misc 1",
            "Misc1Value": "",
            "Misc2Label": "Misc 2",
            "Misc2Value": "",
            "Misc3Label": "Misc 3",
            "Misc3Value": "",
            "LastChanged": "2024-05-16T11:51:47.000"
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "NextChunkStartPointer": 1,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of supplier ship-from records

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v611

SupplierShipfromUpdate

Sample Request

{
  "request": {
    "SupplierID": "cla22",
    "SupplierShipfromJSON": {
      "dsSupplierShipfrom": {
        "dtSupplierShipfrom": [
          {
            "ShipfromSequence": 9,
            "ShipfromName": "Clark Supply",
            "Address1": "1090 Hawkeye Rd",
            "Address2": "",
            "Address3": "",
            "City": "Coralville",
            "State": "IA",
            "ZIP": "50678",
            "Country": "USA",
            "PhoneFormat": "USA",
            "Phone": "3193661222",
            "Fax": "3193442999",
            "Memo": "",
            "AssignAsDescToTallyRecords": true,
            "Primary": false,
            "NewItemSuppForNewPrimaryShipfrom": false,
            "Active": true,
            "UpdateLead": true,
            "AutoRecvAutoDisplayInvoiceEntry": false,
            "APReconBalanceBy": "Purchase Order",
            "LoadUnloadCallForAppointment": false,
            "LoadUnloadFromHours": "1000",
            "LoadUnloadToHours": "1200",
            "Misc1Value": "",
            "Misc2Value": "",
            "Misc3Value": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Updates an existing supplier ship-from record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v611

SuppliersList

Sample Request

{
  "request": {
    "SearchBy": "Supplier State",
    "SearchValue": "NE",
    "AdditionalSearchCriteriaJSON": {
      "dsSupplierSearchRequest": {
        "dtSupplierSearchRequest": [
          {
            "IncludeInactive": true,
            "FetchOnlyChangedSince": "2024-04-24T08:39:32",
            "ChunkStartPointer": 0,
            "RecordFetchLimit": 50
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "SupplierResponse": {
      "dsSupplierResponse": {
        "dtSupplierResponse": [
          {
            "SupplierID": "333-2",
            "SupplierName": "JF Supply 2",
            "Address1": "123 Chicken Rd.",
            "Address2": "",
            "Address3": "",
            "City": "Omaha",
            "State": "NE",
            "ZIP": "12345",
            "Country": "USA",
            "PhoneFormat": "USA",
            "Phone": "(402) 137-1240",
            "Fax": "",
            "Website": "",
            "GroupID": "Laminate",
            "DivisionID": "100",
            "Currency": "USD",
            "PrintCurrency": "Symbol",
            "Temporary": true,
            "CarrierSupplier": true,
            "CarrierType": "AMCAR",
            "WMSIncludeLinkedOrders": true,
            "WMSIncludeVerbalOrders": true,
            "HistoryDisposition": "d",
            "HistoryStartDate": "2020-01-22",
            "HistoryDateFirstOrder": "2024-04-25",
            "HistoryCompanyCode": "f",
            "InvoiceDefaultVoucherStatus": "Ready for Payment",
            "InvoiceStandardDiscount": 1,
            "InvoicePaymentMethod": "ACH",
            "InvoiceDaysToClear": 5,
            "InvoicePaymentTermsCode": "eas",
            "InvoiceCreditPaymentTermsCode": "katiou",
            "InvoiceCostType": "PO",
            "InvoiceXRefRequiredBySupplier": "X",
            "InvoiceCashGLAccount": "",
            "InvoiceCashGLComponent": "",
            "InvoiceAllowDuplicates": true,
            "InvoiceRejectDupInvoiceAndDate": true,
            "InvoiceSuppCheckDupMonths": 3,
            "InvoiceSuppRejectDupMonts": 5,
            "Active": true,
            "Misc1Label": "Misc 1",
            "Misc1Value": "m1",
            "Misc2Label": "Misc 2",
            "Misc2Value": "m2",
            "Misc3Label": "Misc 3",
            "Misc3Value": "m3",
            "LastChanged": "2024-04-24T11:45:12.000"
          }
        ]
      }
    },
    "MoreResultsAvailable": false,
    "NextChunkStartPointer": 2,
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Returns a list of suppliers available to the user

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

SupplierUpdate

Sample Request

{
  "request": {
    "SupplierID": "CLASUP",
    "SupplierJSON": {
      "dsSupplier": {
        "dtSupplier": [
          {
            "Name": "CLARK SUPPLY",
            "Address1": "890 Hawkeye Rd",
            "Address2": "Suite A",
            "Address3": "PO Box 890",
            "City": "Coralville",
            "State": "IA",
            "ZIP": "78945",
            "Country": "USA",
            "Phone": "3193374908",
            "PhoneFormat": "1",
            "Fax": "3193372222",
            "Website": "",
            "DivisionID": "200",
            "GroupID": "EXP-UNIFORMS",
            "Currency": "USD",
            "PrintCurrency": "Symbol",
            "Active": true,
            "UpdShipFromActiveWhenSetActive": false,
            "Temporary": false,
            "CarrierSupplier": true,
            "CarrierType": "Rail",
            "WMSIncludeLinkedOrders": false,
            "WMSIncludeVerbalOrders": false,
            "HistoryDisposition": "Open",
            "HistoryStartDate": "2024-12-12",
            "HistoryDateFirstOrder": "2022-12-12",
            "HistoryCompanyCode": "CLARK",
            "InvoiceDefaultVoucherStatus": "On hold",
            "UpdOpenVoucherWithStatusChange": false,
            "InvoicePaymentMethod": "ACH",
            "InvoiceDaysToClear": 4,
            "InvoicePaymentTermsCode": "eas",
            "InvoiceCreditPaymentTermsCode": "eas",
            "InvoiceCostType": "PO",
            "InvoiceXrefRequiredBySupplier": "u",
            "InvoiceCashGLAccount": "",
            "InvoiceCashGLComponent": "xxx.0050021",
            "InvoiceCashGLComponentLevel": 3,
            "InvoiceAllowDuplicates": "true",
            "InvoiceRejectIfDupInvoiceAndDate": false,
            "InvoiceSuppCheckDupMonths": 1,
            "InvoiceSuppRejectDupMonths": 1,
            "Misc1Value": "",
            "Misc2Value": "",
            "Misc3Value": ""
          }
        ]
      }
    }
  }
}

Sample Response

{
  "response": {
    "AuditResults": {
      "dsAuditResults": {}
    },
    "ReturnCode": 0,
    "MessageText": ""
  }
}

Purpose

Update existing supplier record

Required Inputs

Optional Inputs

Response

Notes

Relationships

Version Deployed

v610

Agility API Technical Information

Agility API and Service

This Agility API and Agility service contains multiple methods used to create, update, delete, and view records.

AccountsPayableCreateInvoice

Purpose

Creates an A/P invoice

ChangeBranch

Purpose

Changes the branch associated with a specified context id

CustomerBranchShiptoGet

Purpose

Gets customer branch ship-to information

CustomerBranchShiptoUpdate

Purpose

Updates customer branch ship-to information

GetAgilityVersion

Purpose

Returns the customer’s Agility version the web service is accessing

GetBranchList

Purpose

Returns a list of branches the user has access to

GetRemanOrder

Purpose

Returns a specific reman order, including its inputs, operations and outputs

InventoryGetTagInfo

Purpose

Returns the information related to a specified tag or tags

InventoryGetTagValues

Purpose

Returns the next available tag sequences

InventoryPrintTags

Purpose

Prints inventory tags to a specified printer

Login

Purpose

Logs the user into Agility and returns a context id

Logout

Purpose

Logs a user out of Agility and removes the context id

MessageCreate

Purpose

Creates transaction messages in the branch the user is logged into

RemanCreateHeader

Purpose

Creates a new reman order

RemanCreateInputs

Purpose

Creates one or more reman inputs on an existing, open reman order

RemanCreateOperations

Purpose

Creates one or more operations on an existing, open reman order

RemanCreateOutputs

Purpose

Creates one or more reman outputs on an existing, open reman order

RemanDeleteInputs

Purpose

Deletes one or more inputs from an existing, open reman order

RemanDeleteOperations

Purpose

Deletes one or more operations from an existing, open reman order

RemanDeleteOutputs

Purpose

Deletes one or more outputs from an existing, open reman order

RemanReplaceStorage

Purpose

Deletes one or more outputs from an existing, open reman order

RemanSpecifyTagsToCommit

Purpose

Commits inventory tags to input items on reman work orders in the branch the user is logged into

SignatureCreate

Purpose

Creates signatures for sales order shipments and credit memo transactions in the branch the user is logged into