Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Additional information on E-commerce related calls may be found at E-Commerce with external checkout via web services.

Order

The order endpoint provides access to the full order of a user.

Code Block
languagejs
titleOrder (uc_order)
var uc_order = {
  "uid" : 1, // The author of the order
  "customer" : 1, // The uid of the user being purchased for
  "delivery_address" : {
    "first_name" : "Tom",
    "last_name" : "Baker",
    "company" : "DLC",
    "street1" : "1520 Locust",
    "street2" : "Suite 1000",
    "city" : "Philadelphia",
    "postal_code" : "19102",
    "phone" : "215-321-1234",
    "email" : "webservice_user@dlcdev.com"
  },
  "billing_address" : {
    "first_name" : "Billing First",
    "last_name" : "Billing Last",
    "company" : "DLC",
    "street1" : "1520 Locust",
    "street2" : "Suite 1000",
    "city" : "Philadelphia",
    "postal_code" : "19102",
    "phone" : "215-321-1234",
    "email" : "webservice_user@dlcdev.com"
  },
   // Valid values: abandoned, canceled, completed, in_checkout, pending, processing, payment_received
  "order_status" : "completed",
  // Order total is the net value after all discounts and adjustments
  "order_total" : 250.00,
  "primary_email" : "webservice_user@dlcdev.com",
  // This value may vary per installation.
  "payment_method" : "",
  "created" : "2016-05-20T15:00:00Z1463756400", // In ISOEpoch format
  "modified" : 2016-05-20T15:00:00Z"1463756400", // In ISOEpoch format
};

Order Product

An order product is an individual line item within an order. Order products are associated to an order via the order_id field. For instance, an order with two courses being purchased will have two separate order products, with varying data, but the same order_id value.

...