POST v1/NexusTax/NexusTaxInsert

Allows user to add one or more nexus tax to the nexus tax record

This is secure method and requires below attributes in header

Authorization: Midnight Authorize Token

Request Information

URI Parameters

None.

Body Parameters

Collection of NexusTaxInsertRequest
NameDescriptionTypeAdditional information
OrderNumber

Required. Must be a valid OrderNumber

string

Required

Quantity

Required.

integer

Required

TaxCode

string

None.

TaxRate

Required.

decimal number

Required

AttnLine

string

None.

AddressLine1

string

None.

AddressLine2

string

None.

AddressLine3

string

None.

City

string

None.

StateCode

string

None.

ZipCode

string

None.

CountryCode

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "OrderNumber": "sample string 3",
    "Quantity": 4,
    "TaxCode": "sample string 5",
    "TaxRate": 6.0,
    "AttnLine": "sample string 7",
    "AddressLine1": "sample string 8",
    "AddressLine2": "sample string 9",
    "AddressLine3": "sample string 10",
    "City": "sample string 11",
    "StateCode": "sample string 12",
    "ZipCode": "sample string 13",
    "CountryCode": "sample string 14"
  },
  {
    "OrderNumber": "sample string 3",
    "Quantity": 4,
    "TaxCode": "sample string 5",
    "TaxRate": 6.0,
    "AttnLine": "sample string 7",
    "AddressLine1": "sample string 8",
    "AddressLine2": "sample string 9",
    "AddressLine3": "sample string 10",
    "City": "sample string 11",
    "StateCode": "sample string 12",
    "ZipCode": "sample string 13",
    "CountryCode": "sample string 14"
  }
]

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IList`1'.

Response Information

Response Formats

application/json, text/json

Sample:
{
  "NexusTaxBatchID": 1
}

application/xml, text/xml

Sample:
<NexusTaxInsertResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <NexusTaxBatchID>1</NexusTaxBatchID>
</NexusTaxInsertResponse>