/orders

Last modified September 9, 2016

Orders

Use this endpoint to retrieve information about a single order or create new orders on behalf of the customer.

Orders can be retrieved by order ID, product path, or date range. You can optionally combine parameters in your request, for example retrieving all orders for a certain product that occurred in a given date range.

Orders can only be created if payment information is available for a customer and this functionality was enabled by FastSpring for your vendor account. For more information see Creating new orders for customers with payment information on file.

Get orders

Get orders by ID

Example 1: Get orders by ID

GET /orders/{id1}[,{id2},{id3},...]

Response example
{
  "action": "order.get",
  "result": "success",
  "orders": [
    {
      "order": "zSprqRHITGeW0kSGC7AKmg",                                // internal order ID
      "id": "zSprqRHITGeW0kSGC7AKmg",                                   // backward compatibility
      "reference": "FUR160822-7349-43132",                              // customer-facing order reference
      "completed": true,                                                // false if order failed or was declined or is pending
      "changed": 1471891827666,                                         // date of the most recent update to this order record, in milliseconds
      "changedValue": 1471891827666,
      "changedInSeconds": 1471891827,                                   // date of the most recent update to this order record, in seconds
      "changedDisplay": "8/22/16",                                      // date of the most recent update to this order record, formatted for display based on the language in which the order was processed, as selected by the customer
      "language": "en",                                                 // ISO 2-digit language code for the language in which the order was processed, as selected by the customer
      "live": true,                                                     // false if test order
      "currency": "USD",
      "account": "uKj7izONRfanVwBL9eiG_A",                              // FastSpring-generated customer account ID
      "payoutCurrency": "USD",
      "invoiceUrl": "https://furiousfalcon.onfastspring.com/account/order/FUR160822-7349-43132/invoice",
      "total": 0,
      "totalDisplay": "$0.00",
      "totalInPayoutCurrency": 0,
      "totalInPayoutCurrencyDisplay": "$0.00",
      "tax": 0,
      "taxDisplay": "$0.00",
      "taxInPayoutCurrency": 0,
      "taxInPayoutCurrencyDisplay": "$0.00",
      "subtotal": 0,
      "subtotalDisplay": "$0.00",
      "subtotalInPayoutCurrency": 0,
      "subtotalInPayoutCurrencyDisplay": "$0.00",
      "discount": 14.9,
      "discountDisplay": "$14.90",
      "discountInPayoutCurrency": 14.9,
      "discountInPayoutCurrencyDisplay": "$14.90",
      "discountWithTax": 16.08,
      "discountWithTaxDisplay": "$16.08",
      "discountWithTaxInPayoutCurrency": 16.08,
      "discountWithTaxInPayoutCurrencyDisplay": "$16.08",
      "payment": {
        "type": "free",                                                 // payment method (e.g. "visa", "mastercard", "PayPal", etc.)
        "cardEnding": 4242                                              // does not appear for free orders - simulated for this example; last four digits of card number, if applicable
      },
      "customer": {
        "first": "John",
        "last": "Doe",
        "email": "ne1@all.com",
        "company": null,
        "phone": "3"
      },
      "address": {
        "addressLine1": "801 Garden St. #201",                          // for physical product purchase or when Storefront is configured to force collection
        "city": "Santa Barbara",                                        // for physical product purchase or when Storefront is configured to force collection
        "region": "California",                                         // for physical product purchase or when Storefront is configured to force collection
        "postalCode": "93101",
        "country": "US",
        "display": "801 Garden St. #201, Santa Barbara, California, 93101, US"
      },
      "notes": [                                                        // order notes added by the publisher / seller via the order details page in the Dashboard
        {
          "note": "An example note added by the seller via the Dashboard.",
          "creator": "admin@furiousfalcon.com"
        }
      ],	  
      "items": [
        {
          "product": "falcon-crosssell",
          "quantity": 1,
          "display": "Furious Falcon Cross-Sell",
          "sku": "abc123",
          "subtotal": 0,
          "subtotalDisplay": "$0.00",
          "subtotalInPayoutCurrency": 0,
          "subtotalInPayoutCurrencyDisplay": "$0.00",
          "attributes": {
            "ProductAttributeKey1": "ProductAttributeValue1",           // key and value are defined under Products > More > Custom Attributes (Advanced)
            "ProductAttributeKey2": "ProductAttributeValue2",           // key and value are defined under Products > More > Custom Attributes (Advanced)
            "ProductAttributeKey3": "ProductAttributeValue3"            // key and value are defined under Products > More > Custom Attributes (Advanced)
          },
          "discount": 9.95,
          "discountDisplay": "$9.95",
          "discountInPayoutCurrency": 9.95,
          "discountInPayoutCurrencyDisplay": "$9.95",
          "coupon": "FREE",                                             // coupon code (not coupon path / ID) applied to the current order item (if applicable)
          "fulfillments": {
            "falcon-crosssell_license_0": [
              {
                "license": "Falcon-xq3b3BhvNavf4qh3eExo",
                "display": "License Key",
                "type": "license"
              }
            ],
            "instructions": "<p>Thank you for purchasing <em>Falcon</em>. To register, please launch the trial version and select <strong>Help</strong> | <strong>Register Falcon</strong>. Then, copy and paste the license key above into the <strong>License Key</strong> field and click <strong>Submit</strong>.</p>"
          }
        },
        {
          "product": "eggs-crosssell-item",
          "quantity": 1,
          "display": "Eggs",
          "sku": "falcon1",
          "subtotal": 0,
          "subtotalDisplay": "$0.00",
          "subtotalInPayoutCurrency": 0,
          "subtotalInPayoutCurrencyDisplay": "$0.00",
          "discount": 4.95,
          "discountDisplay": "$4.95",
          "discountInPayoutCurrency": 4.95,
          "discountInPayoutCurrencyDisplay": "$4.95",
          "coupon": "FREE",                                             // coupon code (not coupon path / ID) applied to the current order item (if applicable)
          "fulfillments": {
            "eggs-crosssell-item_file_1": [
              {
                "display": "Eggs.exe",
                "size": 5769,
                "file": "https://furiousfalcon.test.onfastspring.com/account/file/FUR160822-7349-19145F",
                "type": "file"
              }
            ],
            "eggs-crosssell-item_license_0": [
              {
                "license": "Eggs-gZu5oS6M21EcRjq9EkdS",
                "display": "License Key",
                "type": "license"
              }
            ],
            "instructions": "<p>Thank you for purchasing <em>Eggs</em>. To register, please launch the trial version and select <strong>Help</strong> | <strong>Register Eggs</strong>. Then, copy and paste the license key above into the <strong>License Key</strong> field and click <strong>Submit</strong>.</p>"
          }
        }
      ],
      "coupons": [
        "FREE"                                                          // coupon code (not coupon path / ID) applied to the order (if applicable)
      ],
      "action": "order.get",
      "result": "success"
    }
  ]
}

Get orders by product path

Example 2: Get orders by product path
GET /orders?products=product1,product2
Response example
{
   "action": "order.lookup",
   "result": "success",
   "page": 1,
   "limit": 50,
   "nextPage": 2,
   "total": 1006,
   "orders":    [
            {
         "order": "nlqoczuZSaGKzuNNK5IDiQ",
         "id": "nlqoczuZSaGKzuNNK5IDiQ",
         "reference": null,
         "completed": false,
         "changed": 1471997419992,
         "changedValue": 1471997419992,
         "changedInSeconds": 1471997419,
         "changedDisplay": "8/24/16",
         "language": "en",
         "live": false,
         "currency": "USD",
         "account": "KJRTYQByS_WIcVQ-AZp6kw",
         "payoutCurrency": "USD",
         "invoiceUrl": "https://automation.qa.onfastspring.com/account/order/null/invoice",
         "total": 10,
         "totalDisplay": "$10.00",
         "totalInPayoutCurrency": 10,
         "totalInPayoutCurrencyDisplay": "$10.00",
         "tax": 0,
         "taxDisplay": "$0.00",
         "taxInPayoutCurrency": 0,
         "taxInPayoutCurrencyDisplay": "$0.00",
         "subtotal": 10,
         "subtotalDisplay": "$10.00",
         "subtotalInPayoutCurrency": 10,
         "subtotalInPayoutCurrencyDisplay": "$10.00",
         "discount": 0,
         "discountDisplay": "$0.00",
         "discountInPayoutCurrency": 0,
         "discountInPayoutCurrencyDisplay": "$0.00",
         "discountWithTax": 0,
         "discountWithTaxDisplay": "$0.00",
         "discountWithTaxInPayoutCurrency": 0,
         "discountWithTaxInPayoutCurrencyDisplay": "$0.00",
         "payment": {},
         "customer":          {
            "first": "New",
            "last": "Order",
            "email": "ne1@all.com",
            "company": null,
            "phone": "1234567890"
         },
         "address":          {
            "postalCode": "93101",
            "country": "US",
            "display": "93101, US"
         },
         "notes": [],
         "items": [         {
            "product": "suba",
            "quantity": 1,
            "display": "PaymentReminderBeforeUpdate",
            "sku": "SKU111",
            "subtotal": 10,
            "subtotalDisplay": "$10.00",
            "subtotalInPayoutCurrency": 10,
            "subtotalInPayoutCurrencyDisplay": "$10.00",
            "discount": 0,
            "discountDisplay": "$0.00",
            "discountInPayoutCurrency": 0,
            "discountInPayoutCurrencyDisplay": "$0.00",
            "subscription": "YDnZ-ExrQ3mWe0YTmSsQaQ"
         }
         ]
      }
     ...
    ]
  }  

Get orders by date range

Example 3: Get orders by date range

GET /orders?begin=yyyy-mm-dd&end=yyyy-mm-dd

Response example
{
   "action": "order.lookup",
   "result": "success",
   "begin": "6/1/16",
   "end": "8/30/16",
   "page": 1,
   "limit": 50,
   "nextPage": 2,
   "total": 1048,
   "orders":    [
            {
         "order": "Qf1jNhlCSKGW5RJdfM7cTg",
         "id": "Qf1jNhlCSKGW5RJdfM7cTg",
         "reference": "AUT160824-6097-31167",
         "completed": true,
         "changed": 1472061802969,
         "changedValue": 1472061802969,
         "changedInSeconds": 1472061802,
         "changedDisplay": "8/24/16",
         "language": "en",
         "live": false,
         "currency": "USD",
         "account": "cZnOkAUIQ2qCtcrTtyXgYQ",
         "payoutCurrency": "USD",
         "invoiceUrl": "https://automation.qa.onfastspring.com/account/order/AUT160824-6097-31167/invoice",
         "total": 19.44,
         "totalDisplay": "$19.44",
         "totalInPayoutCurrency": 19.44,
         "totalInPayoutCurrencyDisplay": "$19.44",
         "tax": 1.44,
         "taxDisplay": "$1.44",
         "taxInPayoutCurrency": 1.44,
         "taxInPayoutCurrencyDisplay": "$1.44",
         "subtotal": 18,
         "subtotalDisplay": "$18.00",
         "subtotalInPayoutCurrency": 18,
         "subtotalInPayoutCurrencyDisplay": "$18.00",
         "discount": 2,
         "discountDisplay": "$2.00",
         "discountInPayoutCurrency": 2,
         "discountInPayoutCurrencyDisplay": "$2.00",
         "discountWithTax": 2.16,
         "discountWithTaxDisplay": "$2.16",
         "discountWithTaxInPayoutCurrency": 2.16,
         "discountWithTaxInPayoutCurrencyDisplay": "$2.16",
         "payment":          {
            "type": "test",
            "cardEnding": "4242"
         },
         "customer":          {
            "first": "Reenable",
            "last": "MailingList",
            "email": "ne1@all.com",
            "company": null,
            "phone": "1234567890"
         },
         "address":          {
            "addressLine1": "801 Garden Street",
            "city": "Santa Barbara",
            "region": "California",
            "postalCode": "93101",
            "country": "US",
            "display": "801 Garden Street, Santa Barbara, California, 93101, US"
         },
         "notes": [],
         "items":          [
                        {
               "product": "physical",
               "quantity": 1,
               "display": "Physical",
               "sku": null,
               "subtotal": 9,
               "subtotalDisplay": "$9.00",
               "subtotalInPayoutCurrency": 9,
               "subtotalInPayoutCurrencyDisplay": "$9.00",
               "attributes": {"SystemExtension.eds": "true"},
               "discount": 1,
               "discountDisplay": "$1.00",
               "discountInPayoutCurrency": 1,
               "discountInPayoutCurrencyDisplay": "$1.00",
               "coupon": "TEST",
               "fulfillments": {"physical_file_0": [               {
                  "display": "malware.zip",
                  "size": 4106,
                  "file": "https://automation.qa.onfastspring.com/account/file/AUT160824-6097-46172F",
                  "type": "file"
               }]}
            },
                        {
               "product": "SystemExtension.eds",
               "quantity": 1,
               "display": "EDS",
               "sku": null,
               "subtotal": 9,
               "subtotalDisplay": "$9.00",
               "subtotalInPayoutCurrency": 9,
               "subtotalInPayoutCurrencyDisplay": "$9.00",
               "attributes": {"SystemExtension.eds": "true"},
               "discount": 1,
               "discountDisplay": "$1.00",
               "discountInPayoutCurrency": 1,
               "discountInPayoutCurrencyDisplay": "$1.00",
               "coupon": "TEST",
               "fulfillments": {}
            }
         ],
         "coupons": ["TEST"]
      }
      ...
    ]
  }

Get orders by product path AND date range

Example 4: Get orders by product path AND date range

GET /orders?product=product1&begin=yyyy-mm-dd&end=yyyy-mm-dd

Response example
{
   "action": "order.lookup",
   "result": "success",
   "begin": "6/1/16",
   "end": "7/30/16",
   "page": 1,
   "limit": 50,
   "nextPage": null,
   "total": 5,
   "orders":    [
            {
         "order": "sHwVlGLER9qJHKr6lkX5oA",
         "id": "sHwVlGLER9qJHKr6lkX5oA",
         "reference": "AUT160710-2490-94117",
         "completed": true,
         "changed": 1468120080887,
         "changedValue": 1468120080887,
         "changedInSeconds": 1468120080,
         "changedDisplay": "7/10/16",
         "language": "en",
         "live": false,
         "currency": "USD",
         "account": "E93cH9zLS6ebdnrUjCYLFA",
         "payoutCurrency": "USD",
         "invoiceUrl": "https://automation.qa.onfastspring.com/account/order/AUT160710-2490-94117/invoice",
         "total": 66.96,
         "totalDisplay": "$66.96",
         "totalInPayoutCurrency": 66.96,
         "totalInPayoutCurrencyDisplay": "$66.96",
         "tax": 4.96,
         "taxDisplay": "$4.96",
         "taxInPayoutCurrency": 4.96,
         "taxInPayoutCurrencyDisplay": "$4.96",
         "subtotal": 62,
         "subtotalDisplay": "$62.00",
         "subtotalInPayoutCurrency": 62,
         "subtotalInPayoutCurrencyDisplay": "$62.00",
         "discount": 0,
         "discountDisplay": "$0.00",
         "discountInPayoutCurrency": 0,
         "discountInPayoutCurrencyDisplay": "$0.00",
         "discountWithTax": 0,
         "discountWithTaxDisplay": "$0.00",
         "discountWithTaxInPayoutCurrency": 0,
         "discountWithTaxInPayoutCurrencyDisplay": "$0.00",
         "payment":          {
            "type": "test",
            "cardEnding": "4242"
         },
         "customer":          {
            "first": "test",
            "last": "order",
            "email": "ne1@all.com",
            "company": null,
            "phone": "1234567890"
         },
         "address":          {
            "addressLine1": "801 Garden Street",
            "city": "Santa Barbara",
            "region": "California",
            "postalCode": "93101",
            "country": "US",
            "display": "801 Garden Street, Santa Barbara, California, 93101, US"
         },
         "notes": [],
         "items":          [
                        {
               "product": "testbundle",
               "quantity": 3,
               "display": "TestBundle",
               "sku": null,
               "subtotal": 30,
               "subtotalDisplay": "$30.00",
               "subtotalInPayoutCurrency": 30,
               "subtotalInPayoutCurrencyDisplay": "$30.00",
               "attributes": {"SystemExtension.eds": "true"},
               "discount": 0,
               "discountDisplay": "$0.00",
               "discountInPayoutCurrency": 0,
               "discountInPayoutCurrencyDisplay": "$0.00",
               "fulfillments": {}
            },
                        {
               "product": "physical",
               "quantity": 3,
               "display": "Physical",
               "sku": null,
               "subtotal": 0,
               "subtotalDisplay": "$0.00",
               "subtotalInPayoutCurrency": 0,
               "subtotalInPayoutCurrencyDisplay": "$0.00",
               "attributes": {"SystemExtension.eds": "true"},
               "discount": 0,
               "discountDisplay": "$0.00",
               "discountInPayoutCurrency": 0,
               "discountInPayoutCurrencyDisplay": "$0.00",
               "fulfillments": {"physical_file_0": [               {
                  "display": "malware.zip",
                  "size": 4106,
                  "file": "https://automation.test.qa.onfastspring.com/account/file/AUT160710-2490-43134F",
                  "type": "file"
               }]}
            },
                        {
               "product": "firstsub",
               "quantity": 3,
               "display": "firstSub",
               "sku": null,
               "subtotal": 0,
               "subtotalDisplay": "$0.00",
               "subtotalInPayoutCurrency": 0,
               "subtotalInPayoutCurrencyDisplay": "$0.00",
               "attributes": {"SystemExtension.eds": "true"},
               "discount": 0,
               "discountDisplay": "$0.00",
               "discountInPayoutCurrency": 0,
               "discountInPayoutCurrencyDisplay": "$0.00",
               "subscription": "KNj-JrZyQ7i2yALyv5nv7Q",
               "fulfillments":                {
                  "firstsub_license_0": [                  {
                     "license": "1",
                     "display": "License Key",
                     "type": "license"
                  }],
                  "firstsub_file_0": [                  {
                     "display": "poty2006.zip",
                     "size": 538835908,
                     "file": "https://automation.test.qa.onfastspring.com/account/file/AUT160710-2490-80119F",
                     "type": "file"
                  }]
               }
            },
                        {
               "product": "digitalphysical",
               "quantity": 1,
               "display": "digitalPhysical",
               "sku": null,
               "subtotal": 10,
               "subtotalDisplay": "$10.00",
               "subtotalInPayoutCurrency": 10,
               "subtotalInPayoutCurrencyDisplay": "$10.00",
               "attributes": {"SystemExtension.eds": "true"},
               "discount": 0,
               "discountDisplay": "$0.00",
               "discountInPayoutCurrency": 0,
               "discountInPayoutCurrencyDisplay": "$0.00",
               "fulfillments": {"digitalphysical_file_0": [               {
                  "display": "Anaconda2-2.4.1-MacOSX-x86_64.pkg",
                  "size": 257787337,
                  "file": "https://automation.test.qa.onfastspring.com/account/file/AUT160710-2490-25147F",
                  "type": "file"
               }]}
            },
                        {
               "product": "SystemExtension.shippingcalculation",
               "quantity": 1,
               "display": "Shipping",
               "sku": null,
               "subtotal": 12,
               "subtotalDisplay": "$12.00",
               "subtotalInPayoutCurrency": 12,
               "subtotalInPayoutCurrencyDisplay": "$12.00",
               "attributes": {"SystemExtension.eds": "true"},
               "discount": 0,
               "discountDisplay": "$0.00",
               "discountInPayoutCurrency": 0,
               "discountInPayoutCurrencyDisplay": "$0.00",
               "fulfillments": {}
            },
                        {
               "product": "SystemExtension.eds",
               "quantity": 1,
               "display": "EDS",
               "sku": null,
               "subtotal": 10,
               "subtotalDisplay": "$10.00",
               "subtotalInPayoutCurrency": 10,
               "subtotalInPayoutCurrencyDisplay": "$10.00",
               "attributes": {"SystemExtension.eds": "true"},
               "discount": 0,
               "discountDisplay": "$0.00",
               "discountInPayoutCurrency": 0,
               "discountInPayoutCurrencyDisplay": "$0.00",
               "fulfillments": {}
            }
         ]
      }
      ...
    ]
  }

Get orders using only an end date

Example 5: Get orders by specifying only the end date

// When no begin date is specified, the beginning date for the range defaults to 30 days

GET /orders?end=yyyy-mm-dd

Response example
{
   "action": "order.lookup",
   "result": "success",
   "end": "6/30/16",
   "page": 1,
   "limit": 50,
   "nextPage": null,
   "total": 9,
   "orders":    [
            {
         "order": "US5oKN5sRU2OUWxVwivl_Q",
         "id": "US5oKN5sRU2OUWxVwivl_Q",
         "reference": "AUT160629-3229-57108B",
         "completed": true,
         "changed": 1467239032151,
         "changedValue": 1467239032151,
         "changedInSeconds": 1467239032,
         "changedDisplay": "6/29/16",
         "language": "en",
         "live": false,
         "currency": "USD",
         "account": "E93cH9zLS6ebdnrUjCYLFA",
         "payoutCurrency": "USD",
         "invoiceUrl": "https://automation.qa.onfastspring.com/account/order/AUT160629-3229-57108B/invoice",
         "total": 10,
         "totalDisplay": "USD 10.00",
         "totalInPayoutCurrency": 10,
         "totalInPayoutCurrencyDisplay": "USD 10.00",
         "tax": 0,
         "taxDisplay": "USD 0.00",
         "taxInPayoutCurrency": 0,
         "taxInPayoutCurrencyDisplay": "USD 0.00",
         "subtotal": 10,
         "subtotalDisplay": "USD 10.00",
         "subtotalInPayoutCurrency": 10,
         "subtotalInPayoutCurrencyDisplay": "USD 10.00",
         "discount": 0,
         "discountDisplay": "USD 0.00",
         "discountInPayoutCurrency": 0,
         "discountInPayoutCurrencyDisplay": "USD 0.00",
         "discountWithTax": 0,
         "discountWithTaxDisplay": "USD 0.00",
         "discountWithTaxInPayoutCurrency": 0,
         "discountWithTaxInPayoutCurrencyDisplay": "USD 0.00",
         "payment": {"type": "test"},
         "customer":          {
            "first": "test",
            "last": "test",
            "email": "ne1@all.com",
            "company": null,
            "phone": "1234567890"
         },
         "address":          {
            "addressLine1": "272 Gonghang-ro",
            "city": "Jung-gu",
            "region": "Incheon",
            "postalCode": "40765",
            "country": "KR",
            "display": "272 Gonghang-ro, Jung-gu, Incheon, 40765, KR"
         },
         "notes": [],
         "items": [         {
            "product": "firstsub",
            "quantity": 1,
            "display": "firstSub",
            "sku": null,
            "subtotal": 10,
            "subtotalDisplay": "USD 10.00",
            "subtotalInPayoutCurrency": 10,
            "subtotalInPayoutCurrencyDisplay": "USD 10.00",
            "discount": 0,
            "discountDisplay": "USD 0.00",
            "discountInPayoutCurrency": 0,
            "discountInPayoutCurrencyDisplay": "USD 0.00",
            "subscription": "1hrkNaKxRyizVyj_Lv9RCA"
         }]
      }
      ...	  
    ]
  }

Create new order and complete the charge

POST /orders

Note about creating new transactions via the API

As the merchant and seller of record for all transactions we process,  only  FastSpring can collect customers' payment details (e.g. credit card numbers). Thus, in order to  create new transactions  via the FastSpring API, the customer must already have a payment method on file with FastSpring. Read more about creating orders for customers with payment methods on file here.
Request Example
{  
   "account":"uKj7izONRfanVwX193eG_A",			// must have billing method on file
   "coupon":"",						// optional couponID
   "tags":{  
      "tag1":"value1"
   },
   "currency":"USD",
   "items":[  
      {  
         "product":"falcon-monthly-subscriptions",	// productID
         "quantity":1,
         "pricing":{  
            "trial":0,					// days
            "renew":"auto",				// or "manual", "opt-auto", "opt-manual"
            "interval":"month",				// or "adhoc", "day", "week", "year"
            "intervalLength":1,				// required if "intervral" is specified and is not "adhoc"
            "quantityBehavior":"allow",			// or "lock" or "hide"
            "quantityDefault":1,
            "price":{  
               "USD":14.95,				// currency must be enabled in the Store Settings
               "EUR":10.99
            },
            "attributes":{  
               "ATTRIBUTE1":"value1"
            }
         }
      }
   ]
}
Response Example
{
  "order": "U8OsgSHiTkWhKWvq0D1k9w",                                    // internal order ID
  "id": "U8OsgSHiTkWhKWvq0D1k9w",                                       // backward compatibility
  "reference": "FUR160822-8238-54122",                                  // customer-facing order reference
  "completed": true,                                                    // false if order failed, was declined, or is pending
  "changed": 1471894849295,                                             // date of the most recent update to this order record, in milliseconds
  "changedValue": 1471894849295,
  "changedInSeconds": 1471894849,                                       // date of the most recent update to this order record, in seconds
  "changedDisplay": "8/22/16",                                          // date of the most recent update to this order record, formatted for display based on the language in which the order was processed, as selected by the customer
  "language": "en",                                                     // ISO 2-digit language code for the language in which the order was processed, as selected by the customer
  "live": false,                                                        // true if not a test order
  "currency": "USD",
  "account": "uKj7izONRfanVwBL9eiG_A",                                  // FastSpring-generated customer account ID
  "payoutCurrency": "USD",
  "invoiceUrl": "https://furiousfalcon.onfastspring.com/account/order/FUR160822-8238-54122/invoice",
  "total": 14.95,
  "totalDisplay": "$14.95",
  "totalInPayoutCurrency": 14.95,
  "totalInPayoutCurrencyDisplay": "$14.95",
  "tax": 0,
  "taxDisplay": "$0.00",
  "taxInPayoutCurrency": 0,
  "taxInPayoutCurrencyDisplay": "$0.00",
  "subtotal": 14.95,
  "subtotalDisplay": "$14.95",
  "subtotalInPayoutCurrency": 14.95,
  "subtotalInPayoutCurrencyDisplay": "$14.95",
  "discount": 0,
  "discountDisplay": "$0.00",
  "discountInPayoutCurrency": 0,
  "discountInPayoutCurrencyDisplay": "$0.00",
  "discountWithTax": 0,
  "discountWithTaxDisplay": "$0.00",
  "discountWithTaxInPayoutCurrency": 0,
  "discountWithTaxInPayoutCurrencyDisplay": "$0.00",
  "payment": { 
    "type": "test"                                                     // payment method (e.g. "visa", "mastercard", "PayPal", etc.)
	"cardEnding": 4242                                                 // does not appear for free orders - simulated for this example; last four digits of card number, if applicable
  },
  "customer": {
    "first": "John",
    "last": "Doe",
    "email": "ne1@all.com",
    "company": null,
    "phone": null
  },
  "address": {
    "country": "US",
    "display": "US"
  },
  "tags": {
    "tag1": "value1"                                                   // as specified in POST /orders
  },
  "notes": [],
  "items": [
    {
      "product": "falcon-monthly-subscriptions",
      "quantity": 1,
      "display": "Falcon Monthly Subscription",
      "sku": "furious10",
      "subtotal": 14.95,
      "subtotalDisplay": "$14.95",
      "subtotalInPayoutCurrency": 14.95,
      "subtotalInPayoutCurrencyDisplay": "$14.95",
      "attributes": {
        "CustomAttribute1": "CustomValue1",                            // key and value are defined under Products > More > Custom Attributes (Advanced)
        "CustomAttribute2": "CustomValue2"                             // key and value are defined under Products > More > Custom Attributes (Advanced)
      },
      "discount": 0,
      "discountDisplay": "$0.00",
      "discountInPayoutCurrency": 0,
      "discountInPayoutCurrencyDisplay": "$0.00",
      "subscription": "j4v1k7ymTjWP_ZX2rP4M-A"                         // subscription ID
    }
  ]
}