POST api/OmsOrderLinkAccount

Update an order with a new customer ID

Request Information

URI Parameters

None.

Body Parameters

OrderAssociationImportJson

NameDescriptionTypeAdditional information
SiteCode

Represents a specific site.

string

None.

VerificationKey

The verification key for the site.

string

None.

TimestampUTC

Timestamp for when the message was sent.

string

None.

APIUsername

Use it to get the API key from user table to verify the verification key (optional)

string

None.

OrderNumber

Order Number to update

string

None.

CustomerID

New customer ID to assign to order

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SiteCode": "sample string 1",
  "VerificationKey": "sample string 2",
  "TimestampUTC": "sample string 3",
  "APIUsername": "sample string 4",
  "OrderNumber": "sample string 5",
  "CustomerID": "sample string 6"
}

application/xml, text/xml

Sample:
<OrderAssociationImportJson xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DECK.WebApi.Controllers.OMS">
  <APIUsername>sample string 4</APIUsername>
  <CustomerID>sample string 6</CustomerID>
  <OrderNumber>sample string 5</OrderNumber>
  <SiteCode>sample string 1</SiteCode>
  <TimestampUTC>sample string 3</TimestampUTC>
  <VerificationKey>sample string 2</VerificationKey>
</OrderAssociationImportJson>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GenericResponse

NameDescriptionTypeAdditional information
ResponseCode

APIResponseCodes

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseCode": 0,
  "Message": "sample string 1"
}

application/xml, text/xml

Sample:
<GenericResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DECK.Core.Common.Contracts.API">
  <Message>sample string 1</Message>
  <ResponseCode>Success</ResponseCode>
</GenericResponse>