POST api/Orders

Request Information

URI Parameters

None.

Body Parameters

Collection of Order
NameDescriptionTypeAdditional information
SalesForce_Id

string

None.

EXT_Id__c

string

None.

OrderId

integer

None.

QueryId

string

None.

AccountId

string

None.

Status

string

None.

Note__c

string

None.

EffectiveDate

date

None.

Discount__c

decimal number

None.

orderItems

Collection of OrderItem

None.

LoyaltyPointsUsed

integer

None.

LoyaltyPointsAmountUsed

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "SalesForce_Id": "sample string 1",
    "EXT_Id__c": "sample string 2",
    "OrderId": 3,
    "QueryId": "sample string 4",
    "AccountId": "sample string 5",
    "Status": "sample string 6",
    "Note__c": "sample string 7",
    "EffectiveDate": "2025-01-22T19:50:22.5599595+00:00",
    "Discount__c": 9.1,
    "orderItems": [
      {
        "Id": 1,
        "prodId": "sample string 2",
        "Quantity": 3,
        "UnitPrice": 4.1,
        "Discount__c": 5.1,
        "whsCode": "sample string 6"
      },
      {
        "Id": 1,
        "prodId": "sample string 2",
        "Quantity": 3,
        "UnitPrice": 4.1,
        "Discount__c": 5.1,
        "whsCode": "sample string 6"
      }
    ],
    "LoyaltyPointsUsed": 10,
    "LoyaltyPointsAmountUsed": 11.1
  },
  {
    "SalesForce_Id": "sample string 1",
    "EXT_Id__c": "sample string 2",
    "OrderId": 3,
    "QueryId": "sample string 4",
    "AccountId": "sample string 5",
    "Status": "sample string 6",
    "Note__c": "sample string 7",
    "EffectiveDate": "2025-01-22T19:50:22.5599595+00:00",
    "Discount__c": 9.1,
    "orderItems": [
      {
        "Id": 1,
        "prodId": "sample string 2",
        "Quantity": 3,
        "UnitPrice": 4.1,
        "Discount__c": 5.1,
        "whsCode": "sample string 6"
      },
      {
        "Id": 1,
        "prodId": "sample string 2",
        "Quantity": 3,
        "UnitPrice": 4.1,
        "Discount__c": 5.1,
        "whsCode": "sample string 6"
      }
    ],
    "LoyaltyPointsUsed": 10,
    "LoyaltyPointsAmountUsed": 11.1
  }
]

application/xml, text/xml

Sample:
<ArrayOfOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SalesforceSAPAPI.Models">
  <Order>
    <AccountId>sample string 5</AccountId>
    <Discount__c>9.1</Discount__c>
    <EXT_Id__c>sample string 2</EXT_Id__c>
    <EffectiveDate>2025-01-22T19:50:22.5599595+00:00</EffectiveDate>
    <LoyaltyPointsAmountUsed>11.1</LoyaltyPointsAmountUsed>
    <LoyaltyPointsUsed>10</LoyaltyPointsUsed>
    <Note__c>sample string 7</Note__c>
    <OrderId>3</OrderId>
    <QueryId>sample string 4</QueryId>
    <SalesForce_Id>sample string 1</SalesForce_Id>
    <Status>sample string 6</Status>
    <orderItems>
      <OrderItem>
        <Discount__c>5.1</Discount__c>
        <Id>1</Id>
        <Quantity>3</Quantity>
        <UnitPrice>4.1</UnitPrice>
        <prodId>sample string 2</prodId>
        <whsCode>sample string 6</whsCode>
      </OrderItem>
      <OrderItem>
        <Discount__c>5.1</Discount__c>
        <Id>1</Id>
        <Quantity>3</Quantity>
        <UnitPrice>4.1</UnitPrice>
        <prodId>sample string 2</prodId>
        <whsCode>sample string 6</whsCode>
      </OrderItem>
    </orderItems>
  </Order>
  <Order>
    <AccountId>sample string 5</AccountId>
    <Discount__c>9.1</Discount__c>
    <EXT_Id__c>sample string 2</EXT_Id__c>
    <EffectiveDate>2025-01-22T19:50:22.5599595+00:00</EffectiveDate>
    <LoyaltyPointsAmountUsed>11.1</LoyaltyPointsAmountUsed>
    <LoyaltyPointsUsed>10</LoyaltyPointsUsed>
    <Note__c>sample string 7</Note__c>
    <OrderId>3</OrderId>
    <QueryId>sample string 4</QueryId>
    <SalesForce_Id>sample string 1</SalesForce_Id>
    <Status>sample string 6</Status>
    <orderItems>
      <OrderItem>
        <Discount__c>5.1</Discount__c>
        <Id>1</Id>
        <Quantity>3</Quantity>
        <UnitPrice>4.1</UnitPrice>
        <prodId>sample string 2</prodId>
        <whsCode>sample string 6</whsCode>
      </OrderItem>
      <OrderItem>
        <Discount__c>5.1</Discount__c>
        <Id>1</Id>
        <Quantity>3</Quantity>
        <UnitPrice>4.1</UnitPrice>
        <prodId>sample string 2</prodId>
        <whsCode>sample string 6</whsCode>
      </OrderItem>
    </orderItems>
  </Order>
</ArrayOfOrder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Order
NameDescriptionTypeAdditional information
SalesForce_Id

string

None.

EXT_Id__c

string

None.

OrderId

integer

None.

QueryId

string

None.

AccountId

string

None.

Status

string

None.

Note__c

string

None.

EffectiveDate

date

None.

Discount__c

decimal number

None.

orderItems

Collection of OrderItem

None.

LoyaltyPointsUsed

integer

None.

LoyaltyPointsAmountUsed

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "SalesForce_Id": "sample string 1",
  "EXT_Id__c": "sample string 2",
  "OrderId": 3,
  "QueryId": "sample string 4",
  "AccountId": "sample string 5",
  "Status": "sample string 6",
  "Note__c": "sample string 7",
  "EffectiveDate": "2025-01-22T19:50:22.5912046+00:00",
  "Discount__c": 9.1,
  "orderItems": [
    {
      "Id": 1,
      "prodId": "sample string 2",
      "Quantity": 3,
      "UnitPrice": 4.1,
      "Discount__c": 5.1,
      "whsCode": "sample string 6"
    },
    {
      "Id": 1,
      "prodId": "sample string 2",
      "Quantity": 3,
      "UnitPrice": 4.1,
      "Discount__c": 5.1,
      "whsCode": "sample string 6"
    }
  ],
  "LoyaltyPointsUsed": 10,
  "LoyaltyPointsAmountUsed": 11.1
}

application/xml, text/xml

Sample:
<Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SalesforceSAPAPI.Models">
  <AccountId>sample string 5</AccountId>
  <Discount__c>9.1</Discount__c>
  <EXT_Id__c>sample string 2</EXT_Id__c>
  <EffectiveDate>2025-01-22T19:50:22.5912046+00:00</EffectiveDate>
  <LoyaltyPointsAmountUsed>11.1</LoyaltyPointsAmountUsed>
  <LoyaltyPointsUsed>10</LoyaltyPointsUsed>
  <Note__c>sample string 7</Note__c>
  <OrderId>3</OrderId>
  <QueryId>sample string 4</QueryId>
  <SalesForce_Id>sample string 1</SalesForce_Id>
  <Status>sample string 6</Status>
  <orderItems>
    <OrderItem>
      <Discount__c>5.1</Discount__c>
      <Id>1</Id>
      <Quantity>3</Quantity>
      <UnitPrice>4.1</UnitPrice>
      <prodId>sample string 2</prodId>
      <whsCode>sample string 6</whsCode>
    </OrderItem>
    <OrderItem>
      <Discount__c>5.1</Discount__c>
      <Id>1</Id>
      <Quantity>3</Quantity>
      <UnitPrice>4.1</UnitPrice>
      <prodId>sample string 2</prodId>
      <whsCode>sample string 6</whsCode>
    </OrderItem>
  </orderItems>
</Order>