return.created

Last modified May 3, 2019

This article applies to Contextual Commerce. (Looking for Classic Commerce documentation?)

The return.created server webhook event is fired when a refund or a return has been created (e.g. by returning a customer's order via the Dashboard).

About Webhook Expansion

When webhook expansion is enabled, return.created will include the entire customer account object and subscription object(s) (if applicable), rather than just the account ID and the subscription ID(s).

Contents of Event Payload

NameTypeDescription
returnstringinternal return ID
referencestringcustomer-facing reference for the refund (not the original order)
completedBooleanfalse if the return has not been processed successfully
changedintegerdate of the last update to this refund record, in milliseconds
changedValueintegerdate of the last update to this refund record, in milliseconds (backward compatibility)
changedInSecondsintegerdate of the last update to this refund record, in seconds
changedDisplaystringdate of the last update to this refund record, formatted for display based on the language in which the order was processed, as selected by the customer
liveBooleanfalse if the order that was returned was a test order
accountstring (expansion disabled)
object (expansion enabled)
FastSpring-generated account ID of the customer account (expansion disabled)
account object with all account details (expansion enabled)
account.idstringFastSpring-generated account ID of the customer account
account.accountstringFastSpring-generated account ID of the customer account (backward compatibility)
account.contactobjectcustomer's contact details from the customer account
account.contact.firststringcustomer's first name
account.contact.laststringcustomer's last name
account.contact.emailstringcustomer's email address
account.contact.companystringcustomer's company name
account.contact.phonestringcustomer's telephone number
account.languagestringtwo-character ISO code for the language associated with the customer's account
account.countrystringtwo-character ISO code for the country associated with the customer's account
account.lookupobjectmultiple-field object containing lookup IDs for the customer account (e.g. for use with the /accounts endpoint of the FastSpring API)
account.lookup.globalstringexternal customer account ID, generated by FastSpring
account.lookup.customstringoptional custom account ID specified via the /accounts endpoint of the FastSpring API (not shown in examples below)
account.urlstringurl for the Store's default account management page
currencystringthree-character ISO code for the order currency (and thus, the return currency)
payoutCurrencystringthree-character ISO code for the currency in which your disbursement will be made
totalReturnnumbertotal amount of the return in original transaction's currency
totalReturnDisplaystringtotal amount of the return, formatted for display based on the original transaction's currency
totalReturnInPayoutCurrencynumbertotal amount of the return, in the currency of your FastSpring disbursements
totalReturnInPayoutCurrencyDisplaystringtotal amount of the return, formatted for display based on the currency of your FastSpring disbursements
taxnumberamount of tax returned, in the original transaction's currency
taxDisplaystringamount of tax returned, formatted for display in the transaction's currency
taxInPayoutCurrencynumberamount of tax returned, in the currency of your FastSpring disbursements
taxInPayoutCurrencyDisplaystringamount of tax returned, formatted for display in the currency of your FastSpring disbursements
subtotalnumberreturn subtotal (totalReturn - tax) in the transaction's currency
subtotalDisplaystringreturn subtotal (totalReturn - tax), formatted for display in the transaction's currency
subtotalInPayoutCurrencynumberreturn subtotal in the currency of your FastSpring disbursements (totalReturnInPayoutCurrency - taxInPayoutCurrency)
subtotalInPayoutCurrencyDisplaystringreturn subtotal, formatted for display in the currency of your FastSpring disbursements (totalReturnInPayoutCurrency - taxInPayoutCurrency)
totalRefundInPayoutCurrencynumbertotal amount of the return, in the currency of your FastSpring disbursements (backward compatibility)
paymentobjectdetails about the original transaction's payment method (and thus, the payment method that being refunded)
payment.typestringpayment method used for the order: "paypal", "amazon", "creditcard", "test", "bank", "alipay", "purchase-order", "free"
payment.creditcardstring(appears when payment.type = creditcard); type of credit or debit card used for the order: "visa", "mastercard", "amex", "discover", "jcb", "carteblanche", "dinersclub", "unionpay"
payment.cardEndingstring(appears when payment.type = creditcard); last four digits of the card number used for the order
payment.bankstring(appears when payment.type = bank); type of bank transfer used to pay for the order: "wire", "brazilwire", "ideal", "giropay", "sofort", "ecard", "sepa", "alipay"
reasonstringreturn reason type selected by you (or FastSpring) at the time of processing the return
notestringoptional note regarding the return, entered by you (or FastSpring) at the time of processing the return
originalobjectdetails of the order being returned
original.idstringinternal order ID of the order being returned
original.orderstringinternal order ID of the order being returned (backward compatibility)
original.referencestringcustomer-facing order reference of the order being returned
original.accountstringFastSpring-generated customer account ID associated with the original order (will always match the account / account.id)
original.currencystringthree-character ISO code for the order currency
original.payoutCurrencystringthree-character ISO code for the currency of your FastSpring disbursements
original.totalnumbertotal amount of the order in the original.currency
original.totalDisplaystringtotal amount of the order, formatted for display in the original.currency
original.totalInPayoutCurrencynumbertotal amount of the order in the original.payoutCurrency
original.totalInPayoutCurrencyDisplaystringtotal amount of the order, formatted for display in the original.payoutCurrency
original.taxnumberamount of tax in the original.currency
original.taxDisplaystringamount of tax, formatted for display in the original.currency
original.taxInPayoutCurrencynumberamount of tax in the original.payoutCurrency
original.taxInPayoutCurrencyDisplaystringamount of tax, formatted for display in the original.payoutCurrency
original.subtotalnumberorder subtotal in the original.currency
original.subtotalDisplaystringorder subtotal, formatted for display in the original.currency
original.subtotalInPayoutCurrencynumberorder subtotal in the original.payoutCurrency
original.subtotalInPayoutCurrencyDisplaystringorder subtotal, formatted for display in the original.payoutCurrency
notesarrayorder notes from the original order, entered by you (or FastSpring); consists of one JSON object per note with two strings per object ("note" and "creator")
subscriptionsarraystrings identifying the subscription IDs being returned, if any
customerobjectinformation about the customer being refunded, from the original order record (as opposed to the customer's account)
customer.firststringcustomer's first name
customer.laststringcustomer's last name
customer.emailstringcustomer's email address
customer.companystringcustomers company name
customer.phonestringcustomer's telpehone number
itemsarraydetails of the products being returned, one object per product
items.productstringproduct path / product ID of the product
items.quantityintegerquantity of the current product being returned
items.displaystringdisplay name of the current product being returned
items.skustringoptional internal SKU ID (e.g. your part number) of the current product being returned
items.subtotalnumbersubtotal for the current product being returned, in the original.currency
items.subtotalDisplaystringsubtotal for the current product being returned, formatted for display in the original.currency
items.subtotalInPayoutCurrencynumbersubtotal for the current product being returned, in the payout.currency
items.subtotalInPayoutCurrencyDisplaystringsubtotal for the current product being returned, formatted for display in the payout.currency
items.subscriptionstring (expansion disabled)
object (expansion enabled)

ID of the subscription associated with the product being returned, if applicable (expansion disabled)

details of the subscription associated with the product being returned, if applicable (expansion enabled)

items.subscription.idstringID of the subscription
items.subscription.subscriptionstringID of the subscription (backward compatibility)
items.subscription.activeBooleanis the current subscription active? ("false" if deactivated)
items.subscription.statestringcurrent status of the subscription: "active", "overdue", "canceled", "deactivated", "trial"
items.subscription.changedintegerdate of the most recent change to the subscription, in milliseconds
items.subscription.changedValueintegerdate of the most recent change to the subscription, in milliseconds (backward compatiblity)
items.subscription.changedInSecondsintegerdate of the most recent change to the subscription, in seconds
items.subscription.changedDisplaystringdate of the most recent change to the subscription, formatted for display based on the currency of the original order
items.subscription.liveBoolean"true" if not a test order
items.subscription.currencystringthree-character ISO code for the currency associated with the subscription
items.subscription.accountstringFastSpring-generated customer account ID
items.subscription.productstringproduct path / product ID of the subscription product
items.subscription.skustringoptional internal SKU ID (e.g. your part number) for the current product
items.subscription.displaystringcustomer-facing Display name of the subscription product
items.subscription.quantityintegersubscribed quantity of the subscription product
items.subscription.adhocBoolean"true" for managed subscriptions, "false" for standard subscriptions
items.subscription.autoRenewBoolean"true" for automatic subscriptions, "false" for manual renewal subscriptions
items.subscription.pricenumberprice of the subscription; amount of each subscription charge, in items.subscription.currency
items.subscription.priceDisplaystringprice of subscription, formatted for display in items.subscription.currency
items.subscription.priceInPayoutCurrencynumberprice of the subscription, in the currency of your FastSpring disbursements
items.subscription.priceInPayoutCurrencyDisplaystringprice of the subscription, formatted for display in the currency of your FastSpring disbursements
items.subscription.discountnumbertotal amount of all discounts associated with the subscription, in items.subscription.currency
items.subscription.discountDisplaystringtotal amount of all discounts associated with the subscription, formatted for display in the items.subscription.currency
items.subscription.discountInPayoutCurrencynumbertotal amount of all discounts associated with the subscription, in the currency of your FastSpring disbursements
items.subscription.discountInPayoutCurrencyDisplaystringtotal amount of all discounts associated with the subscription, formatted for display in the currency of your FastSpring disbursements
items.subscription.subtotalnumbersubtotal for the subscription,including items.subscription.price and items.subscription.discount, but before tax
items.subscription.subtotalDisplaystringsubtotal for the subscription, formatted for display in items.subscription.currency
items.subscription.subtotalInPayoutCurrencynumbersubtotal for the subscription, in the currency of your FastSpring disbursements
items.subscription.subtotalInPayoutCurrencyDisplaystringsubtotal for the subscription, formatted for display in the currency of your FastSpring disbursements
items.subscription.attributesobjectmultiple-field object containing optional product-level attributes for the subscription (inherited from the subscription product)
items.subscription.nextintegerdate of the next scheduled charge, in milliseconds
items.subscription.nextValueintegerdate of the next scheduled subscription charge (backward compatibility)
items.subscription.nextInSecondsintegerdate of the next scheduled subscription charge, in seconds
items.subscription.nextDisplaystringdate of the next scheduled subscription charge, formatted for display based on the language selected for the original subscription order
items.subscription.endintegerexpected end date of the subscription (if any), in milliseconds (e.g. for subscriptions with a pre-defined number of charges)
items.subscription.endValueintegerexpected end date of the subscription (if any), in milliseconds (e.g. for subscriptions with a pre-defined number of charges) (backward compatibility)
items.subscription.endInSecondsintegerexpected end date of the subscription (if any), in seconds (e.g. for subscriptions with a pre-defined number of charges)
items.subscription.endDisplaystringexpected end date of the subscription (if any), formatted for display based on the language selected for the original subscription order
items.subscription.canceledDateintegerdate on which the subscription was canceled, in milliseconds, if applicable
items.subscription.canceledDateValueintegerdate on which the subscription was canceled, in milliseconds, if applicable (backward compatibility)
items.subscription.canceledDateInSecondsintegerdate on which the subscription was canceled, in seconds, if applicable
items.subscription.canceledDateDisplaystringdate on which the subscription was canceled, if applicable, formatted for display based on the language selected for the original subscription order
items.subscription.deactivationDateintegerdate on which the subscription was or will be deactivated, if applicable, in milliseconds (null if deactivated immediately upon cancellation)
items.subscription.deactivationDateValueintegerdate on which the subscription was or will be deactivated, if applicable, in milliseconds (null if deactivated immediately upon cancellation) (backward compatibility)
items.subscription.deactivationDateInSecondsintegerdate on which the subscription was or will be deactivated, if applicable, in seconds (null if deactivated immediately upon cancellation)
items.subscription.deactivationDateDisplayintegerdate on which the subscription was or will be deactivated, if applicable, formatted for display based on the language selected for the original subscription order (null if deactivated immediately upon cancellation)
items.subscription.sequenceintegersequence number of the current billing period
items.subscription.periodsintegerexpected total number of billing periods (e.g. for subscriptions with a pre-defined number of charges)
items.subscription.remainingPeriodsintegernumber of periods remaining based on total number expected items.subscription.periods
items.subscription.beginintegerdate on which the subscription began, in milliseconds
items.subscription.beginValueintegerdate on which the subscription began, in milliseconds (backward compatibility)
items.subscription.beginInSecondsintegerdate on which the subscription began, in seconds
items.subscription.beginDisplaystringdate on which the subscription began, formatted for display based on the language selected for the original subscription order
items.subscription.intervalUnitstringunit of time used in conjunction with items.subscription.intervalLength to determine the subscription's charge interval: "adhoc", "day", "week", "month", "year"
items.subscription.intervalLengthintegernumber of intervalUnits per billing period for the subscription
items.subscription.trialReminderobjectdefines the timing of the customer-facing reminder email message that will be sent (if any) regarding the approaching end of a free trial period
items.subscription.trialReminder.intervalUnitstringunit of time used in conjunction with items.subscription.trialReminder.intervalLength to determine how long prior to the date of the first subscription charge the trial reminder message will be sent: "day", "week", "month", "year"
items.subscription.trialReminder.intervalLengthintegernumber of items.subscription.trialReminder.intervalUnits prior to the date of the first subscription charge the trial reminder message will be sent
items.subscription.paymentReminderobjectdefines the timing of the customer-facing reminder email message sent prior to each scheduled subscription billing
items.subscription.paymentReminder.intervalUnitstringunit of time used in conjunction with items.subscription.paymentReminder.intervalLength to determine how long prior to the date of the first subscription charge the trial reminder message will be sent: "day", "week", "month", "year"
items.subscription.paymentReminder.intervalLengthintegernumber of items.subscription.paymentReminder.intervalUnits prior to each scheduled subscription billing that the pament reminder message will be sent
items.subscription.paymentOverdueobjectdefines the timing of the customer-facing payment overdue notification message(s) sent when a scheduled billing has failed
items.subscription.paymentOverdue.intervalUnitstringunit of time used in conjunction with items.subscription.paymentOverdue.intervalLength to determine how long after a failed subscription billing a payment overdue notification will be sent (or how long after a prior payment overdue notification message has been sent): "day", "week", "month", "year"
items.subscription.paymentOverdue.intervalLengthintegernumber items.subscription.paymentOverdue.intervalUnits following the failed subscription billing that the first payment overdue notification will be sent - and number of items.subscription.paymentOverdue.intervalUnits between subsequent payment overdue notifications, if any
items.subscription.paymentOverdue.totalintegertotal number of payment overdue notifications to be sent, including the first one
items.subscription.paymentOverdue.sentintegernumber of payment overdue notifcations that have been sent to date
items.subscription.cancellationSettingobjectdefines the timing of automatic subscription cancellation in the event of a failed subscription billing
items.subscription.cancellationSetting.cancellationstringevent trigger used in determining the timing of automatic subscription cancellation, as configured for the subscription product: "AFTER_LAST_NOTIFICATION" or "AFTER_PAYMENT_FAILURE"
items.subscription.cancellationSetting.intervalUnitstringunit of time used in conjunction with items.subscription.cancellationSetting.intervalLength and items.subscription.cancellationSetting.cancellation to determine when a subscription will be canceled as a result of a failed subscription billing
items.subscription.cancellationSetting.intervalLengthintegernumber of items.subscription.cancellationSetting.intervalUnits following the items.subscription.cancellationSetting.cancellation event trigger that the subscription will be canceled due to a failed subscription billing
items.subscription.discountsarrayinformation about the coupon applied to the subscription (if any)
items.subscription.discounts.totalDiscountValuenumbertotal amount of the discount that will be applied, based on items.subscription.discounts.discountValue multiplied by items.subscription.discounts.discountDuration (only present when the discount type is an amount rather than a percentage)
items.subscription.discounts.discountPathstringcoupon ID of the coupon applied to the subscription
items.subscription.discounts.discountDurationintegertotal number of billings, including the original order, to which the coupon discount will be applied
items.subscription.discounts.percentValuenumberpercentage of the coupon discount applied to the subscription (only present when the discount type is a percentage rather than an amount)
items.subscription.discounts.discountValuenumberamount of the discount per billing period, in the items.subscription.currency (only present when the discount type is an amount rather than a percentage)
items.subscription.instructionsarrayinstructions for recurring billings
items.subscription.instructions.typestringtype of instructions for the current instruction object; subscription may have more than one instruction object when applicable:
"trial", (only exists if there's a free trial)
"discounted", (only exists if there's a product-level discount)
"regular" (always present)
items.subscription.instructions.periodStartDateintegerdate of the beginning of the instruction period, in milliseconds
items.subscription.instructions.periodStartDateValueintegerdate of the beginning of the instruction period, in milliseconds (backward compatiblity)
items.subscription.instructions.periodStartDateInSecondsintegerdate of the beginning of the instruction period, in seconds
items.subscription.instructions.periodStartDateDisplaystringdate of the beginning of the instruction period, formatted for display based on the language selected for the original subscription order
items.subscription.instructions.periodEndDateintegerdate of the end of the instruction period, in milliseconds
items.subscription.instructions.periodEndDateValueintegerdate of the end of the instruction period, in milliseconds (backward compatibility)
items.subscription.instructions.periodEndDateInSecondsintegerdate of the end of the instruction period, in seconds
items.subscription.instructions.periodEndDateDisplaystringdate of the end of the instruction period, formatted for display based on the language selected for the original subscription order
items.subscription.instructions.discountDurationUnitstringonly appears when type = "discounted" or "trial"; unit of time used in conjunction with discountDurationLength to determine the total discount duration: "day", "week", "month", or "year"
items.subscription.instructions.discountDurationLengthintegeronly appears when type = "discounted" or "trial"; number of discountDurationUnits in the total discount period
items.subscription.instructions.discountPercentintegerpercentage of the discount for the current instruction period
items.subscription.instructions.discountPercentValueintegerpercentage of the discount for the current instruction period (backward compatibility)
items.subscription.instructions.discountPercentDisplaystringpercentage of the discount for the current instruction period, formatted for display
items.subscription.instructions.discountTotalnumbertotal amount of the discount for the current instruction period, in the items.subscription.currency
items.subscription.instructions.discountTotalDisplaystringtotal amount of the discount for the current instruction period, formatted for display based on the items.subscription.currency
items.subscription.instructions.discountTotalInPayoutCurrencynumbertotal amount of the discount for the current instruction period, in the currency of your FastSpring disbursements
items.subscription.instructions.discountTotalInPayoutCurrencyDisplaystringtotal amount of the discount for the current instruction period, formatted for display in the currency of your FastSpring disbursements
items.subscription.instructions.unitDiscountnumberdiscount amount per unit for the current instruction period, in the items.subscription.currency
items.subscription.instructions.unitDiscountDisplaystringdiscount amount per unit for the current instruction period, formatted for display in the items.subscription.currency
items.subscription.instructions.unitDiscountInPayoutCurrencynumberdiscount amount per unit for the current instruction period, in the currency of your FastSpring disbursements
items.subscription.instructions.unitDiscountInPayoutCurrencyDisplaystringdiscount amount per unit for the current instruction period, formatted for display in the currency of your FastSpring disbursements
items.subscription.instructions.pricenumberlist price of the product before any discounts, in the items.subscription.currency
items.subscription.instructions.priceDisplaystringlist price of the product before any discounts, formatted for display in the items.subscription.currency
items.subscription.instructions.priceInPayoutCurrencynumberlist price of the product before any discounts, in the currency of your FastSpring disbursements
items.subscription.instructions.priceInPayoutCurrencyDisplaystringlist price of the product before any discounts, formatted for display in the currency of your FastSpring disbursements
items.subscription.instructions.priceTotalnumberproduct of (items.subscription.instructions.price * items.subscription.quantity), in the items.subscription.currency, for the current instruction period
items.subscription.instructions.priceTotalDisplaystringproduct of (items.subscription.instructions.price * items.subscription.quantity), formatted for display in the items.subscription.currency, for the current instruction period
items.subscription.instructions.priceTotalInPayoutCurrencynumberproduct of (items.subscription.instructions.price * items.subscription.quantity), in the currency of your FastSpring disbursements, for the current instruction period
items.subscription.instructions.priceTotalInPayoutCurrencyDisplaystringproduct of (items.subscription.instructions.price * items.subscription.quantity), formatted for display in the currency of your FastSpring disbursements, for the current instruction period
items.subscription.instructions.unitPricenumbereffective unit price after any discount, for the current instruction period, in the items.subscription.currency
items.subscription.instructions.unitPriceDisplaystringeffective unit price after any discount, for the current instruction period, formatted for display in the items.subscription.currency
items.subscription.instructions.unitPriceInPayoutCurrencynumbereffective unit price after any discount, for the current instruction period, in the currency of your FastSpring disbursements
items.subscription.instructions.unitPriceInPayoutCurrencyDisplaystringeffective unit price after any discount, for the current instruction period, formatted for display in the currency of your FastSpring disbursements
items.subscription.instructions.totalnumberproduct of (items.subscription.instructions.unitPrice * items.subscription.quantity) for the current instruction period, in the items.subscription.currency
items.subscription.instructions.totalDisplaystringproduct of (items.subscription.instructions.unitPrice * items.subscription.quantity) for the current instruction period, formatted for display in the items.subscription.currency
items.subscription.instructions.totalInPayoutCurrencynumberproduct of (items.subscription.instructions.unitPrice * items.subscription.quantity) for the current instruction period, in the currency of your FastSpring disbursements
items.subscription.instructions.totalInPayoutCurrencyDisplaystringproduct of (items.subscription.instructions.unitPrice * items.subscription.quantity) for the current instruction period, formatted for display in the currency of your FastSpring disbursements
items.subscription.customReferenceIdstring (expansion enabled)an optional value that you can add to a subscription instance via the FastSpring API using POST /subscriptions; only present when expansion is enabled
couponsarraylist of coupon IDs applied to the order (currently, only one coupon can be applied to an order)


Examples

Example 1 - Webhook Expansion Disabled

return.created webhook example (webhook expansion disabled)
{ 
   "return":"wgfKsP9wR2-1yxGu39ThFQ",
   "reference":"FUR160819-2758-26120X",
   "completed":true,
   "changed":1471644016684,
   "changedValue":1471644016684,
   "changedInSeconds":1471644016,
   "changedDisplay":"8/19/16",
   "live":false,
   "account":"pXtfQN3RQKmVYWZJFX2GVA",
   "currency":"USD",
   "payoutCurrency":"USD",
   "totalReturn":4.95,
   "totalReturnDisplay":"$4.95",
   "totalReturnInPayoutCurrency":4.95,
   "totalReturnInPayoutCurrencyDisplay":"$4.95",
   "tax":0.0,
   "taxDisplay":"$0.00",
   "taxInPayoutCurrency":0.0,
   "taxInPayoutCurrencyDisplay":"$0.00",
   "subtotal":4.95,
   "subtotalDisplay":"$4.95",
   "subtotalInPayoutCurrency":4.95,
   "subtotalInPayoutCurrencyDisplay":"$4.95",
   "totalRefundInPayoutCurrency":4.95,
   "payment":{ 
      "type":"test",
      "cardEnding":"4242"
   },
   "reason":"Other Reason",
   "note":"Mac OS 10.5 not supported",
   "original":{ 
      "id":"1wA1nOASTPOW6SL3sC16Ww",
      "order":"1wA1nOASTPOW6SL3sC16Ww",
      "reference":"FUR160819-7349-98162",
      "account":"pXtfQN3RQKmVYWZJFX2GVA",
      "currency":"USD",
      "payoutCurrency":"USD",
      "total":4.95,
      "totalDisplay":"$4.95",
      "totalInPayoutCurrency":4.95,
      "totalInPayoutCurrencyDisplay":"$4.95",
      "tax":0.0,
      "taxDisplay":"$0.00",
      "taxInPayoutCurrency":0.0,
      "taxInPayoutCurrencyDisplay":"$0.00",
      "subtotal":4.95,
      "subtotalDisplay":"$4.95",
      "subtotalInPayoutCurrency":4.95,
      "subtotalInPayoutCurrencyDisplay":"$4.95",
      "notes":[ 
         { 
            "note":"This customer likes chicken.",
            "creator":"admin@furiousfalcon.com"
         }
      ]
   },
   "customer":{ 
      "first":"Leeroy",
      "last":"Jenkins",
      "email":"ne21@all.com",
      "company":null,
      "phone":null
   },
   "items":[ 
      { 
         "product":"eggs",
         "quantity":1,
         "display":"Eggs",
         "sku":"falcon1",
         "subtotal":4.95,
         "subtotalDisplay":"$4.95",
         "subtotalInPayoutCurrency":4.95,
         "subtotalInPayoutCurrencyDisplay":"$4.95"
      }
   ]
}


Example 2 - Webhook Expansion Enabled

return.created webhook example (webhook expansion enabled)
{  
   "return":"YG2tFjVqR5S6vdIDzlmX8Q",
   "reference":"FUR171009-2389-98118X",
   "completed":true,
   "changed":1507576575966,
   "changedValue":1507576575966,
   "changedInSeconds":1507576575,
   "changedDisplay":"10/9/17",
   "live":false,
   "account":{  
      "id":"uKj7izONRfanVwBL9eiG_A",
      "account":"uKj7izONRfanVwBL9eiG_A",
      "contact":{  
         "first":"Leeroy",
         "last":"Jenkins",
         "email":"jtrumble@fastspring.com",
         "company":"Chicken Danger, Inc.",
         "phone":null
      },
      "language":"en",
      "country":"US",
      "lookup":{  
         "global":"5a0fwLTeQV6OPD34t89flg"
      },
      "url":"https://furiousfalcon.onfastspring.com/account"
   },
   "currency":"USD",
   "payoutCurrency":"USD",
   "totalReturn":9.95,
   "totalReturnDisplay":"$9.95",
   "totalReturnInPayoutCurrency":9.95,
   "totalReturnInPayoutCurrencyDisplay":"$9.95",
   "tax":0.0,
   "taxDisplay":"$0.00",
   "taxInPayoutCurrency":0.0,
   "taxInPayoutCurrencyDisplay":"$0.00",
   "subtotal":9.95,
   "subtotalDisplay":"$9.95",
   "subtotalInPayoutCurrency":9.95,
   "subtotalInPayoutCurrencyDisplay":"$9.95",
   "totalRefundInPayoutCurrency":9.95,
   "payment":{  
      "type":"test",
      "cardEnding":"4242"
   },
   "reason":"Compatibility Issues",
   "note":"OS 10.5 not supported",
   "original":{  
      "id":"xCFl0ZGmTMydMCZsCNaCRw",
      "order":"xCFl0ZGmTMydMCZsCNaCRw",
      "reference":"FUR170915-3234-96145",
      "account":"uKj7izONRfanVwBL9eiG_A",
      "currency":"USD",
      "payoutCurrency":"USD",
      "total":9.95,
      "totalDisplay":"$9.95",
      "totalInPayoutCurrency":9.95,
      "totalInPayoutCurrencyDisplay":"$9.95",
      "tax":0.0,
      "taxDisplay":"$0.00",
      "taxInPayoutCurrency":0.0,
      "taxInPayoutCurrencyDisplay":"$0.00",
      "subtotal":9.95,
      "subtotalDisplay":"$9.95",
      "subtotalInPayoutCurrency":9.95,
      "subtotalInPayoutCurrencyDisplay":"$9.95",
      "notes":[  

      ],
      "subscriptions":[  
         "XJtAgTkfQ2Ke6T7EmAfRzQ"
      ]
   },
   "customer":{  
      "first":"Leeroy",
      "last":"Jenkins",
      "email":"jtrumble@fastspring.com",
      "company":"Chicken Danger, Inc.",
      "phone":null
   },
   "items":[  
      {  
         "product":"soar-monthly-subscription",
         "quantity":1,
         "display":"Soar Monthly Subscription",
         "sku":"falcon11",
         "subtotal":9.95,
         "subtotalDisplay":"$9.95",
         "subtotalInPayoutCurrency":9.95,
         "subtotalInPayoutCurrencyDisplay":"$9.95",
         "subscription":{  
            "id":"XJtAgTkfQ2Ke6T7EmAfRzQ",
            "subscription":"XJtAgTkfQ2Ke6T7EmAfRzQ",
            "active":false,
            "state":"deactivated",
            "changed":1505499425887,
            "changedValue":1505499425887,
            "changedInSeconds":1505499425,
            "changedDisplay":"9/15/17",
            "live":false,
            "currency":"USD",
            "account":"uKj7izONRfanVwBL9eiG_A",
            "product":"soar-monthly-subscription",
            "sku":"falcon11",
            "display":"Soar Monthly Subscription",
            "quantity":1,
            "adhoc":false,
            "autoRenew":true,
            "price":9.95,
            "priceDisplay":"$9.95",
            "priceInPayoutCurrency":9.95,
            "priceInPayoutCurrencyDisplay":"$9.95",
            "discount":0.0,
            "discountDisplay":"$0.00",
            "discountInPayoutCurrency":0.0,
            "discountInPayoutCurrencyDisplay":"$0.00",
            "subtotal":9.95,
            "subtotalDisplay":"$9.95",
            "subtotalInPayoutCurrency":9.95,
            "subtotalInPayoutCurrencyDisplay":"$9.95",
            "next":1508025600000,
            "nextValue":1508025600000,
            "nextInSeconds":1508025600,
            "nextDisplay":"10/15/17",
            "end":1505433600000,
            "endValue":1505433600000,
            "endInSeconds":1505433600,
            "endDisplay":"9/15/17",
            "canceledDate":1505433600000,
            "canceledDateValue":1505433600000,
            "canceledDateInSeconds":1505433600,
            "canceledDateDisplay":"9/15/17",
            "deactivationDate":null,
            "deactivationDateValue":null,
            "deactivationDateInSeconds":null,
            "deactivationDateDisplay":null,
            "sequence":1,
            "periods":0,
            "remainingPeriods":0,
            "begin":1505433600000,
            "beginValue":1505433600000,
            "beginInSeconds":1505433600,
            "beginDisplay":"9/15/17",
            "intervalUnit":"month",
            "intervalLength":1,
            "paymentReminder":{  
               "intervalUnit":"day",
               "intervalLength":7
            },
            "paymentOverdue":{  
               "intervalUnit":"week",
               "intervalLength":1,
               "total":2,
               "sent":0
            },
            "cancellationSetting":{  
               "cancellation":"AFTER_LAST_NOTIFICATION",
               "intervalUnit":"week",
               "intervalLength":1
            },
            "instructions":[  
               {  
                  "type":"regular",
                  "periodStartDate":null,
                  "periodStartDateValue":null,
                  "periodStartDateInSeconds":null,
                  "periodStartDateDisplay":null,
                  "periodEndDate":1505433600000,
                  "periodEndDateValue":1505433600000,
                  "periodEndDateInSeconds":1505433600,
                  "periodEndDateDisplay":"9/15/17",
                  "discountPercent":0,
                  "discountPercentValue":0,
                  "discountPercentDisplay":"0%",
                  "discountTotal":0.0,
                  "discountTotalDisplay":"$0.00",
                  "discountTotalInPayoutCurrency":0.0,
                  "discountTotalInPayoutCurrencyDisplay":"$0.00",
                  "unitDiscount":0.0,
                  "unitDiscountDisplay":"$0.00",
                  "unitDiscountInPayoutCurrency":0.0,
                  "unitDiscountInPayoutCurrencyDisplay":"$0.00",
                  "price":9.95,
                  "priceDisplay":"$9.95",
                  "priceInPayoutCurrency":9.95,
                  "priceInPayoutCurrencyDisplay":"$9.95",
                  "priceTotal":9.95,
                  "priceTotalDisplay":"$9.95",
                  "priceTotalInPayoutCurrency":9.95,
                  "priceTotalInPayoutCurrencyDisplay":"$9.95",
                  "unitPrice":9.95,
                  "unitPriceDisplay":"$9.95",
                  "unitPriceInPayoutCurrency":9.95,
                  "unitPriceInPayoutCurrencyDisplay":"$9.95",
                  "total":9.95,
                  "totalDisplay":"$9.95",
                  "totalInPayoutCurrency":9.95,
                  "totalInPayoutCurrencyDisplay":"$9.95"
               }
            ],
            "customReferenceId":"867-5309"
         }
      }
   ]
}