POST api/Shopify?appname={appname}&accesstoken={accesstoken}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
appname

string

Required

accesstoken

string

Required

Body Parameters

ShopifyPostData
NameDescriptionTypeAdditional information
productvariantid

string

None.

qty

integer

None.

trackingnumber

string

None.

trackingURL

string

None.

orderid

string

None.

items

Collection of GenData

None.

productID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "productvariantid": "sample string 1",
  "qty": 2,
  "trackingnumber": "sample string 3",
  "trackingURL": "sample string 4",
  "orderid": "sample string 5",
  "items": [
    {
      "storename": "sample string 1",
      "sku": "sample string 2",
      "orderdate": "sample string 3",
      "decrement": "sample string 4",
      "increment": "sample string 5",
      "description": [
        {},
        {}
      ],
      "title": "sample string 6",
      "orderid": 7,
      "quantity": 8,
      "paymentmethod": {},
      "customername": "sample string 10",
      "price": "sample string 11",
      "size": "sample string 12",
      "total_discount": "sample string 13"
    },
    {
      "storename": "sample string 1",
      "sku": "sample string 2",
      "orderdate": "sample string 3",
      "decrement": "sample string 4",
      "increment": "sample string 5",
      "description": [
        {},
        {}
      ],
      "title": "sample string 6",
      "orderid": 7,
      "quantity": 8,
      "paymentmethod": {},
      "customername": "sample string 10",
      "price": "sample string 11",
      "size": "sample string 12",
      "total_discount": "sample string 13"
    }
  ],
  "productID": "sample string 6"
}

application/xml, text/xml

Sample:
<ShopifyPostData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KRSWebAPI.Models">
  <items>
    <GenData>
      <customername>sample string 10</customername>
      <decrement>sample string 4</decrement>
      <description xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:anyType />
        <d4p1:anyType />
      </description>
      <increment>sample string 5</increment>
      <orderdate>sample string 3</orderdate>
      <orderid>7</orderid>
      <paymentmethod />
      <price>sample string 11</price>
      <quantity>8</quantity>
      <size>sample string 12</size>
      <sku>sample string 2</sku>
      <storename>sample string 1</storename>
      <title>sample string 6</title>
      <total_discount>sample string 13</total_discount>
    </GenData>
    <GenData>
      <customername>sample string 10</customername>
      <decrement>sample string 4</decrement>
      <description xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:anyType />
        <d4p1:anyType />
      </description>
      <increment>sample string 5</increment>
      <orderdate>sample string 3</orderdate>
      <orderid>7</orderid>
      <paymentmethod />
      <price>sample string 11</price>
      <quantity>8</quantity>
      <size>sample string 12</size>
      <sku>sample string 2</sku>
      <storename>sample string 1</storename>
      <title>sample string 6</title>
      <total_discount>sample string 13</total_discount>
    </GenData>
  </items>
  <orderid>sample string 5</orderid>
  <productID>sample string 6</productID>
  <productvariantid>sample string 1</productvariantid>
  <qty>2</qty>
  <trackingURL>sample string 4</trackingURL>
  <trackingnumber>sample string 3</trackingnumber>
</ShopifyPostData>

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 'ShopifyPostData'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>