Return or Refund an Order

return.created

Overview of the return.created webhook

When a return.created event is triggered, FastSpring sends a webhook payload containing details about the refund or return. This webhook fires only when a return or refund has been issued. It does not fire for:

  • Tax-only refunds
  • Manual credit adjustments that were not created as returns

If webhook expansion is enabled, the payload includes full account and product objects. Otherwise, the payload includes only the corresponding IDs.

This page provides:

  • A full sample payload showing a populated return.created webhook
  • A detailed table listing every payload property, including name, type, and description
  • Notes on when this webhook is triggered and which fields appear based on Webhook Expansion

Browse the table sections below or use the quick links to jump to a specific group of fields.

Tip: Not all fields are always included. Refer to the Payload properties table to understand when a field appears.

Webhook payload example (expansion enabled)

When a return.created event is triggered, the webhook sends the following JSON payload:

{
    "return": "aBCDE12fGH3iJkL4mNOpqr",
    "quote": null,
    "reference": "ABC1234567-8910-11121D",
    "completed": true,
    "changed": 1751896963416,
    "changedValue": 1751896963416,
    "changedInSeconds": 1751896963,
    "changedDisplay": "7/7/25",
    "changedDisplayISO8601": "2025-07-07",
    "live": false,
    "account": {
        "id": "abCdE1FGH2Hij3KLMnOpqR",
        "account": "abCdE1FGH2Hij3KLMnOpqR",
        "contact": {
            "first": "Jane",
            "last": "Doe",
            "email": "[email protected]",
            "company": "ABC Company",
            "phone": "5555555555",
            "subscribed": true
        },
        "address": {
            "addressLine1": "801 Garden St",
            "addressLine2": "Suite 201",
            "city": "Santa Barbara",
            "country": "US",
            "postal code": "93101",
            "region": "US-CA",
            "region custom": "California",
            "company": "ABC Company"
        },
        "language": "en",
        "country": "US",
        "lookup": { "global": "8x3FKfUESieeIgGoxHBRLg" },
        "url": "https://company.onfastspring.com/account"
    },
    "currency": "USD",
    "payoutCurrency": "USD",
    "totalReturn": 14.95,
    "totalReturnDisplay": "$14.95",
    "totalReturnInPayoutCurrency": 14.95,
    "totalReturnInPayoutCurrencyDisplay": "$14.95",
    "tax": 0.0,
    "taxDisplay": "$0.00",
    "taxInPayoutCurrency": 0.0,
    "taxInPayoutCurrencyDisplay": "$0.00",
    "subtotal": 14.95,
    "subtotalDisplay": "$14.95",
    "subtotalInPayoutCurrency": 14.95,
    "subtotalInPayoutCurrencyDisplay": "$14.95",
    "totalRefundInPayoutCurrency": 14.95,
    "payment": {
        "type": "test",
        "cardEnding": "4242"
    },
    "reason": "Duplicate Order",
    "note": "As requested by customer",
    "type": "RETURN",
    "refundPerformerType": "sellerApp",
    "refundSourceComponent": "refund",
    "original": {
        "id": "wvje2BeoQbyCRAbucnPrRw",
        "order": "wvje2BeoQbyCRAbucnPrRw",
        "reference": "ABC1234567-8910-11121D",
        "account": "abCdE1FGH2Hij3KLMnOpqR",
        "currency": "USD",
        "payoutCurrency": "USD",
        "total": 14.95,
        "totalDisplay": "$14.95",
        "totalInPayoutCurrency": 14.95,
        "totalInPayoutCurrencyDisplay": "$14.95",
        "tax": 0.0,
        "taxDisplay": "$0.00",
        "taxInPayoutCurrency": 0.0,
        "taxInPayoutCurrencyDisplay": "$0.00",
        "subtotal": 14.95,
        "subtotalDisplay": "$14.95",
        "subtotalInPayoutCurrency": 14.95,
        "subtotalInPayoutCurrencyDisplay": "$14.95",
        "notes": []
    },
    "customer": {
        "first": "John",
        "last": "Doe",
        "email": "[email protected]",
        "company": null,
        "phone": "5555555555",
        "subscribed": true
    },
    "items": [
     {
        "product": "furious-falcon",
        "quantity": 1,
        "display": "Furious Falcon",
        "sku": "SKU-12345",
        "refundType": "Full Refund",
        "subtotal": 14.95,
        "subtotalDisplay": "$14.95",
        "subtotalInPayoutCurrency": 14.95,
        "subtotalInPayoutCurrencyDisplay": "$14.95",
        "fulfillments": {},
        "withholdings": {
            "taxWithholdings": false
        }
     }
    ],
    "refundPerformer": "[email protected]"
}

Navigate this webhook

The return.created webhook payload includes details about a completed return, including account info, financials, refund context, and the original order. Use the cards below to jump directly to a section of the property reference.

Payload properties

All fields below are included in the return.created webhook payload. Fields are grouped into categories for easier navigation.

NameTypeDescription
Return Metadata
returnstringUnique identifier for the return
quotestring|nullAssociated quote ID when the return is tied to a quote
referencestringCustomer-facing reference for the return
completedbooleanWhether the return has completed processing
changedintegerReturn creation timestamp in milliseconds
changedValueintegerDuplicate of changed for backward compatibility
changedInSecondsintegerReturn creation timestamp in seconds
changedDisplaystringUser-friendly return creation date
changedDisplayISO8601stringReturn creation date in ISO 8601 format
livebooleanWhether the return originated in live mode
Account Object
account.idstringCustomer account ID for the return
account.accountstringDuplicate of account.id for backward compatibility
account.contact.firststringAccount contact first name
account.contact.laststringAccount contact last name
account.contact.emailstringAccount contact email address
account.contact.companystring|nullAccount contact company name
account.contact.phonestringAccount contact phone number
account.contact.subscribedbooleanWhether the account contact is subscribed to updates
account.address.addressLine1stringAccount address line 1
account.address.addressLine2stringAccount address line 2
account.address.citystringAccount address city
account.address.countrystringTwo-letter ISO country code
account.address.postal codestringPostal or ZIP code
account.address.regionstringRegion code for the account address
account.address.region customstringHuman-readable region name
account.address.companystringCompany name on the account address
account.languagestringTwo-letter ISO language code for the account
account.countrystringTwo-letter ISO country code for the account
account.lookup.globalstringPublic account lookup ID for portals
account.urlstringAccount management URL
Financials
currencystringThree-letter ISO currency code for the return
payoutCurrencystringThree-letter ISO payout currency code
totalReturnnumberTotal returned amount in transaction currency
totalReturnDisplaystringFormatted total returned amount
totalReturnInPayoutCurrencynumberTotal returned amount in payout currency
totalReturnInPayoutCurrencyDisplaystringFormatted total returned amount in payout currency
taxnumberRefunded tax in transaction currency
taxDisplaystringFormatted refunded tax
taxInPayoutCurrencynumberRefunded tax in payout currency
taxInPayoutCurrencyDisplaystringFormatted refunded tax in payout currency
subtotalnumberRefunded subtotal in transaction currency
subtotalDisplaystringFormatted refunded subtotal
subtotalInPayoutCurrencynumberRefunded subtotal in payout currency
subtotalInPayoutCurrencyDisplaystringFormatted refunded subtotal in payout currency
totalRefundInPayoutCurrencynumberTotal refunded in payout currency (overall)
Payment Method
payment.typestringPayment method used for the original order (e.g., test, creditcard)
payment.cardEndingstringLast four digits of the card when applicable
Refund Context
reasonstringReason provided for the refund
notestringInternal note associated with the return
typestringReturn type (e.g., RETURN)
refundPerformerTypestringComponent that initiated the refund (e.g., sellerApp)
refundSourceComponentstringSource of the refund request (e.g., refund)
refundPerformerstringIdentifier of the user or system that performed the refund
Original Order
original.idstringOriginal order ID
original.orderstringDuplicate of original.id for backward compatibility
original.referencestringCustomer-facing reference for the original order
original.accountstringAccount ID associated with the original order
original.currencystringOriginal order currency
original.payoutCurrencystringOriginal order payout currency
original.totalnumberOriginal order total in transaction currency
original.totalDisplaystringFormatted original order total
original.totalInPayoutCurrencynumberOriginal order total in payout currency
original.totalInPayoutCurrencyDisplaystringFormatted original order total in payout currency
original.taxnumberOriginal order tax in transaction currency
original.taxDisplaystringFormatted original order tax
original.taxInPayoutCurrencynumberOriginal order tax in payout currency
original.taxInPayoutCurrencyDisplaystringFormatted original order tax in payout currency
original.subtotalnumberOriginal order subtotal in transaction currency
original.subtotalDisplaystringFormatted original order subtotal
original.subtotalInPayoutCurrencynumberOriginal order subtotal in payout currency
original.subtotalInPayoutCurrencyDisplaystringFormatted original order subtotal in payout currency
original.notesarrayArray of notes on the original order (may be empty)
Customer Object
customer.firststringCustomer first name
customer.laststringCustomer last name
customer.emailstringCustomer email address
customer.companystring|nullCustomer company name
customer.phonestringCustomer phone number
customer.subscribedbooleanWhether the customer is subscribed to updates
Items Array
itemsarrayArray of returned items
items.productstringProduct path or identifier
items.quantityintegerQuantity returned
items.displaystringDisplay name of the returned product
items.skustringSKU of the returned product
items.refundTypestringRefund type applied (e.g., Full Refund)
items.subtotalnumberRefunded item subtotal in transaction currency
items.subtotalDisplaystringFormatted refunded item subtotal
items.subtotalInPayoutCurrencynumberRefunded item subtotal in payout currency
items.subtotalInPayoutCurrencyDisplaystringFormatted refunded item subtotal in payout currency
items.fulfillmentsobjectFulfillment details for the returned item (empty when not applicable)
items.withholdings.taxWithholdingsbooleanWhether tax withholdings are applied to the returned item