Order Details

POST /Account/Read/Order

Returns details about the last 5 orders. Secret Hmac Required. Cache Time 1 Hour. Reset if purchase happens.

Body

  • If set, the number of orders returned. Otherwise the five most recent ones are returned.

Responses

  • Order Information successfully returned

    Hide response attributes Show response attributes object
    • Parent number

      Parent User Number (top level)

    • Custno number

      customer number

    • Invoice number

      the invoice/Order number

    • date/time the order was created

    • ShipDate string

      date/time the order was shipped (0 if not shipped)

    • PayDate string

      date/time the order was paid for (0 if not paid)

    • PO string

      the purchase order number

    • Terms string

      the payment terms for the order

    • Company string

      company name

    • ship to first name

    • LastName string

      ship to last name

    • Address1 string

      ship to address line 1

    • Address2 string

      ship to address line 2

    • City string

      ship to city

    • State string

      ship to state/province

    • Zip string

      ship to zip code/postal code

    • ship to country Code

    • Weight number

      Total weight of the order

    • Total number

      Order total

    • Balance number

      Amount left to pay

    • Shipping number

      Shipping amount

    • Tracking object
      Hide Tracking attribute Show Tracking attribute object
      • itemno object

        Information about the products shipped (if any)

    • Detail array[object]

      Order Detail of the items ordered

      Hide Detail attributes Show Detail attributes array[object]
POST /Account/Read/Order
curl \
 -X POST https://Api.StrandVision.com/v1.0/Account/Read/Order \
 -H "Authorization: X-apikey $ACCESS_TOKEN" \
 -H "Authorization: X-apidate $ACCESS_TOKEN" \
 -H "Authorization: X-apihmac $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"ShowCount":5}'
Request example
{
  "ShowCount": 5
}
Request examples
{
  "ShowCount": 5
}
Response examples (200)
[
  {
    "Parent": 10028,
    "Custno": 10028,
    "Invoice": 100617,
    "OrderDate": "Tue, 16 May 2023 21:54:19 GMT",
    "ShipDate": "Tue, 16 May 2023 21:54:19 GMT",
    "PayDate": "Tue, 16 May 2023 21:54:19 GMT",
    "PO": "Verbal",
    "Terms": "No Charge",
    "Company": "StrandVision Digital Signage",
    "FirstName": "",
    "LastName": "",
    "Address1": "6595 South Shore Drive",
    "Address2": "",
    "City": "Altoona",
    "State": "WI",
    "Zip": 54720,
    "CountryCode": "US",
    "Quantity": 2.25,
    "Weight": 0,
    "Total": 0,
    "Balance": 0,
    "Shipping": 0,
    "Tracking": "",
    "InvoiceUrl": "https://www.strandvision.com/.?getinvoice&inv=ebxaDxB",
    "Detail": [
      {
        "ItemNo": 40005012,
        "Desc": "Partner Package (per year)",
        "Qty": 0.25,
        "Weight": 0,
        "Price": 250
      },
      {
        "ItemNo": "Surcharge:Less Than A Year",
        "Desc": "End User Less Than A Year Surcharge",
        "Qty": 1,
        "Weight": 0,
        "Price": 50
      },
      {
        "ItemNo": "Discount:Reseller Discount",
        "Desc": "Reseller Discount",
        "Qty": 1,
        "Weight": 0,
        "Price": -300
      }
    ]
  }
]
Response examples (200)
{
  "Parent": 10028,
  "Custno": 10028,
  "Invoice": 1002200,
  "OrderDate": "Thu, 13 Jul 2023 18:48:27 GMT",
  "ShipDate": "Thu, 13 Jul 2023 19:07:00 GMT",
  "PayDate": 0,
  "PO": "Verbal",
  "Terms": "Net 10",
  "Company": "StrandVision Digital Signage",
  "FirstName": "Mike",
  "LastName": "Strand",
  "Address1": "6595 South Shore Drive",
  "Address2": "string",
  "City": "Altoona",
  "State": "WI",
  "Zip": "54720",
  "CountryCode": "US",
  "Weight": 0,
  "Total": 499.99,
  "Balance": 0,
  "Shipping": 42.0,
  "Tracking": {
    "itemno": {}
  },
  "Detail": [
    {
      "ItemNo": "40000012",
      "Desc": "Basic Package (per year)",
      "Qty": 1,
      "Weight": 0,
      "Price": 499.99
    }
  ]
}