# FastSpring

> Retrieve orders, customer accounts, subscriptions, products and storefront events.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/fastspring

## Actions

### List all accounts

List all accounts.

**Inputs**

- Email (`email`, text): Only return accounts with the given email address.
- Custom (`custom`, text): Only return accounts with the given custom lookup key.
- Global (`global`, text): Only return accounts with the given global lookup key.
- Order ID (`order_id`, text): Only return accounts with the given order ID.
- Order reference (`order_reference`, text): Only return accounts with the given order reference.
- Subscription ID (`subscription_id`, text): Only return accounts with the given subscription ID.
- Products (`products`, text): Only return accounts with the given product ID.
- Subscriptions (`subscriptions`, text): Only return accounts with subscriptions in the corresponding state. One of: `active`, `ended`, `canceled`, `started`.
- Refunds (`refunds`, text): Only return accounts that include refunds. You can only pass the value 'true' for this parameter.
- Limit (`limit`, number): A limit on the number of objects to be returned per page (default limit is 50).
- Page (`page`, number): Specify which page of results should be returned.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "accounts": [
      "example"
    ],
    "action": "example",
    "limit": 1,
    "nextPage": 1,
    "page": 1,
    "result": "example",
    "total": 1
  }
}
```

### List all coupon codes

List all coupon codes.

**Inputs**

- Coupon ID (`coupon_id`, text, required): The unique path identifier for the coupon.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "codes": [
      "example"
    ],
    "coupon": "example"
  }
}
```

### List all coupons

List all coupons.

**Inputs**: None.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "coupons": [
      "example"
    ]
  }
}
```

### List all orders

List all orders.

**Inputs**

- Begin (`begin`, date): Filters results to include transactions after the specified begin date (in YYYY-MM-DD format). Must be at least one day before the specified end date.
- Days (`days`, number): Filters results to include transactions within a certain time frame.
- End (`end`, date): Filters results to include transactions before the specified end date (in YYYY-MM-DD format).
- Limit (`limit`, number): Limits the number of order records returned per page (default is 50 records).
- Page (`page`, number): Specifies the page number of results to be returned; used together with limit to control pagination.
- Products (`products`, text): Filters results to include only transactions involving the specified product path(s).
- Rebill (`rebill`, true/false): Filters results to include or exclude subscription rebill transactions.
- Returns (`returns`, true/false): Filters results to include orders with or without returns; response includes returns array with return IDs where applicable.
- Scope (`scope`, text): Filters results to include live transactions, test transactions, or both. One of: `all`, `live`, `test`.
- Status (`status`, text): Filters results by transaction status. One of: `completed`, `canceled`, `failed`.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "action": "example",
    "limit": 1,
    "nextPage": 1,
    "orders": [
      "example"
    ],
    "page": 1,
    "result": "example",
    "total": 1
  }
}
```

### List all processed events

List all processed events.

**Inputs**

- Days (`days`, number, required): The number of days for which the data is requested, with a maximum of 30 days. The /events endpoint does not return events that are more than 30 days old. From 1 to 30.
- Begin (`begin`, date): Filters results to include events after the specified begin date (in YYYY-MM-DD format). Must be at least one day before the specified end date.
- End (`end`, date): Filters results to include events before the specified end date (in YYYY-MM-DD format).

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "action": "example",
    "data": [
      {
        "created": 1,
        "data": {
          "account": {},
          "address": {},
          "contact": {},
          "country": {},
          "id": {},
          "language": {},
          "lookup": {},
          "url": {}
        },
        "id": "example",
        "live": true,
        "processed": true,
        "type": "example"
      }
    ],
    "events": [
      {
        "created": 1,
        "data": {
          "account": {},
          "address": {},
          "contact": {},
          "country": {},
          "id": {},
          "language": {},
          "lookup": {},
          "url": {}
        },
        "event": "example",
        "id": "example",
        "live": true,
        "processed": true,
        "type": "example"
      }
    ],
    "limit": 1,
    "more": true,
    "nextPage": 1,
    "page": 1,
    "result": "example",
    "total": 1
  }
}
```

### List all product paths

List all product paths.

**Inputs**: None.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "action": "example",
    "limit": 1,
    "nextPage": 1,
    "page": 1,
    "products": [
      "example"
    ],
    "result": "example",
    "total": 1
  }
}
```

### List all product prices

List all product prices.

**Inputs**

- Country (`country`, text): The country for which the product price is being requested. This helps filter pricing based on the country's specific pricing rules or regional offers (e.g., "US", "DE").
- Currency (`currency`, text): The currency in which the product price should be displayed. This allows the system to return the price in a specific currency (e.g., "USD", "EUR").
- Limit (`limit`, number): Limits the number of objects returned per page (default limit is 50).
- Page (`page`, number): Specifies the page number of results to be returned; used together with limit to control pagination.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "limit": 1,
    "nextPage": 1,
    "page": 1,
    "products": [
      {
        "action": "example",
        "pricing": {
          "US": {}
        },
        "product": "example",
        "result": "example"
      }
    ]
  }
}
```

### List all subscription entries

List all subscription entries.

**Inputs**

- Subscription ID (`subscription_id`, text, required): Unique identifier for the subscription.

**Outputs**

- `data` (list): The response from FastSpring.

**Example output**

```json
{
  "data": [
    {
      "beginEntryDate": "example",
      "beginPeriodDate": "example",
      "endPeriodDate": "example",
      "id": "example",
      "order": {
        "account": "example",
        "address": {
          "city": {},
          "country": {},
          "display": {},
          "postalCode": {},
          "region": {},
          "regionCode": {},
          "regionDisplay": {}
        },
        "billDescriptor": "example",
        "buyerReference": "example",
        "changed": 1,
        "changedDisplay": "example",
        "changedDisplayEmailEnhancements": "example",
        "changedDisplayEmailEnhancementsWithTime": "example",
        "changedDisplayISO8601": "example",
        "changedInSeconds": 1,
        "changedValue": 1,
        "completed": true,
        "currency": "example",
        "customer": {
          "company": {},
          "email": {},
          "first": {},
          "last": {},
          "phone": {},
          "subscribed": {}
        },
        "discount": 1,
        "discountDisplay": "example",
        "discountInPayoutCurrency": 1,
        "discountInPayoutCurrencyDisplay": "example",
        "discountWithTax": 1,
        "discountWithTaxDisplay": "example",
        "discountWithTaxInPayoutCurrency": 1,
        "discountWithTaxInPayoutCurrencyDisplay": "example",
        "id": "example",
        "invoiceUrl": "example",
        "ipAddress": "example",
        "items": [
          {}
        ],
        "language": "example",
        "live": true,
        "notes": [
          {}
        ],
        "order": "example",
        "payment": {
          "cardEnding": {},
          "type": {}
        },
        "payoutCurrency": "example",
        "quote": "example",
        "recipients": [
          {}
        ],
        "reference": "example",
        "returns": [
          {}
        ],
        "siteId": "example",
        "subtotal": 1,
        "subtotalDisplay": "example",
        "subtotalInPayoutCurrency": 1,
        "subtotalInPayoutCurrencyDisplay": "example",
        "tax": 1,
        "taxDisplay": "example",
        "taxInPayoutCurrency": 1,
        "taxInPayoutCurrencyDisplay": "example",
        "total": 1,
        "totalDisplay": "example",
        "totalInPayoutCurrency": 1,
        "totalInPayoutCurrencyDisplay": "example"
      }
    }
  ]
}
```

### List all subscription plan changes

List all subscription plan changes.

**Inputs**

- Subscription ID (`subscription_id`, text, required): Unique identifier for the subscription.
- Scope (`scope`, text): Specify the item type to filter results. Valid values include `base_plan` and `add_on`. One of: `base_plan` (Base plan), `add_on` (Add on).
- Order (`order`, text): Specify the sort order of the results. Valid values include `increasing` and `decreasing`. The default value is `decreasing`. One of: `increasing`, `decreasing`.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "changes": [
      {
        "changeId": "example",
        "changeType": "example",
        "changedFrom": "example",
        "changedFromDisplay": "example",
        "changedTo": "example",
        "changedToDisplay": "example",
        "insertTimestamp": 1,
        "itemId": "example",
        "itemProductDisplay": "example",
        "itemProductPath": "example",
        "itemProductSku": "example",
        "itemType": "example",
        "orderId": "example",
        "orderRef": "example",
        "prorated": true,
        "siteId": "example",
        "subscriptionId": "example"
      }
    ],
    "currency": "example",
    "timezone": "example"
  }
}
```

### List all subscriptions

List all subscriptions.

**Inputs**

- Account ID (`account_id`, text): Filter subscriptions by the associated account ID.
- Begin (`begin`, date): Specify the beginning of a date range in yyyy-mm-dd format.
- End (`end`, date): Specify the end of a date range in yyyy-mm-dd format.
- Event (`event`, text): Specify the event type to filter results. Valid values include `canceled`, `charged`, `created`, `deactivated`, `trialended`, or `trialstarted`. One of: `canceled`, `charged`, `created`, `deactivated`, `trialended`, `trialstarted`.
- Products (`products`, text): Filter subscriptions by specific product IDs.
- Scope (`scope`, text): Specify the scope to filter by `test` or `live` subscriptions. If not provided, both live and test subscriptions are returned by default. One of: `all`, `live`, `test`.
- Status (`status`, text): Specify the subscription status to filter results. Valid values include `active`, `canceled`, `deactivated`, `overdue`, or `trial`. One of: `active`, `canceled`, `deactivated`, `overdue`, `trial`.
- Page (`page`, number): Specify the page number of results to retrieve. Defaults to 1 if not provided.
- Limit (`limit`, number): Specify the maximum number of results per page. Defaults to 50 if not provided.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "action": "example",
    "limit": 1,
    "nextPage": 1,
    "page": 1,
    "result": "example",
    "subscriptions": [
      {}
    ],
    "total": 1
  }
}
```

### List all unprocessed events

List all unprocessed events.

**Inputs**

- Days (`days`, number, required): The number of days for which the data is requested, with a maximum of 30 days. The /events endpoint does not return events that are more than 30 days old. From 1 to 30.
- Begin (`begin`, date): Filters results to include events after the specified begin date (in YYYY-MM-DD format). Must be at least one day before the specified end date.
- End (`end`, date): Filters results to include events before the specified end date (in YYYY-MM-DD format).

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "action": "example",
    "data": [
      {
        "created": 1,
        "data": {
          "account": {},
          "address": {},
          "contact": {},
          "country": {},
          "id": {},
          "language": {},
          "lookup": {},
          "url": {}
        },
        "id": "example",
        "live": true,
        "processed": true,
        "type": "example"
      }
    ],
    "events": [
      {
        "created": 1,
        "data": {
          "account": {},
          "address": {},
          "contact": {},
          "country": {},
          "id": {},
          "language": {},
          "lookup": {},
          "url": {}
        },
        "event": "example",
        "id": "example",
        "live": true,
        "processed": true,
        "type": "example"
      }
    ],
    "limit": 1,
    "more": true,
    "nextPage": 1,
    "page": 1,
    "result": "example",
    "total": 1
  }
}
```

### Retrieve a coupon

Retrieve a coupon.

**Inputs**

- Coupon ID (`coupon_id`, text, required): The unique path identifier for the coupon.
- Expand (`expand`, true/false): When `true`, expands product path identifiers to full product objects in the `products` array of the response.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "applyDiscountImmediately": true,
    "available": {
      "end": "example",
      "start": "example"
    },
    "codes": [
      "example"
    ],
    "combine": true,
    "coupon": "example",
    "discount": {
      "amount": {
        "EUR": 1,
        "GBP": 1,
        "USD": 1
      },
      "discounts": [
        {
          "amount": {},
          "applyDiscountImmediately": {},
          "discountPeriodCount": {},
          "percent": {},
          "products": {},
          "type": {}
        }
      ],
      "hasMultipleDiscounts": true,
      "percent": 1,
      "type": "percent"
    },
    "discountPeriodCount": 1,
    "limit": "example",
    "orderLevelDiscount": true,
    "products": [
      {}
    ],
    "reason": {}
  }
}
```

### Retrieve a product

Retrieve a product.

**Inputs**

- Product path (`product_path`, text, required): Unique identifier to reference a specific product, also known as the product path ID.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "products": [
      {
        "attributes": {},
        "badge": "example",
        "description": {
          "action": {},
          "full": {},
          "summary": {}
        },
        "display": {
          "en": {}
        },
        "image": "example",
        "offers": [
          {}
        ],
        "parent": "example",
        "product": "example",
        "productAppReference": "example",
        "quantityDiscounts": {},
        "quotable": true,
        "rank": 1,
        "sku": "example",
        "visibility": "private"
      }
    ]
  }
}
```

### Retrieve a product price

Retrieve a product price.

**Inputs**

- Product path (`product_path`, text, required): Unique identifier to reference a specific product, also known as the product path ID.
- Country (`country`, text): The country for which the product price is being requested. This helps filter pricing based on the country's specific pricing rules or regional offers (e.g., "US", "DE").
- Currency (`currency`, text): The currency in which the product price should be displayed. This allows the system to return the price in a specific currency (e.g., "USD", "EUR").

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "limit": 1,
    "page": 1,
    "products": [
      {
        "action": "example",
        "pricing": {
          "US": {}
        },
        "product": "example",
        "result": "example"
      }
    ]
  }
}
```

### Retrieve a proforma invoice

Retrieve a proforma invoice.

**Inputs**

- Subscription ID (`subscription_id`, text, required): Unique identifier for the subscription.
- Language (`language`, text): Specify the language for the proforma invoice content. If not provided, defaults to the subscription's language or 'en'. One of: `ar`, `cs`, `da`, `de`, `en`, `es`, `fi`, `fr`, `he`, `hr`, and 12 more.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "contact": {
      "address": {
        "accountId": "example",
        "addressLine1": "example",
        "city": "example",
        "country": "example",
        "postalCode": "example",
        "region": "example"
      },
      "company": "example",
      "email": "example",
      "firstName": "example",
      "phone": "example"
    },
    "items": {
      "amountDue": {
        "nextChargeAmount": 1,
        "nextChargeAmountDisplay": "example",
        "nextChargeDate": 1,
        "nextChargeDateDisplay": "example",
        "nextChargeDateDisplayISO8601": "example",
        "prorationSubtotal": 1,
        "prorationSubtotalDisplay": "example",
        "prorationTax": 1,
        "prorationTaxDisplay": "example",
        "totalAmountDue": 1,
        "totalAmountDueDisplay": "example"
      },
      "currency": "example",
      "currentPlan": {
        "addons": [
          {}
        ],
        "billingFrequency": "example",
        "discount": 1,
        "discountDisplay": "example",
        "discounts": [
          {}
        ],
        "display": "example",
        "periodEndDate": 1,
        "periodEndDateDisplay": "example",
        "periodEndDateDisplayISO8601": "example",
        "periodStartDate": 1,
        "periodStartDateDisplay": "example",
        "periodStartDateDisplayISO8601": "example",
        "price": 1,
        "priceDisplay": "example",
        "product": "example",
        "proratedItemCharge": 1,
        "proratedItemChargeDisplay": "example",
        "proratedItemCredit": 1,
        "proratedItemCreditDisplay": "example",
        "proratedItemSubtotal": 1,
        "proratedItemSubtotalDisplay": "example",
        "proratedItemTax": 1,
        "proratedItemTaxDisplay": "example",
        "proratedItemTotal": 1,
        "proratedItemTotalDisplay": "example",
        "prorationRemainingDays": 1,
        "prorationTotalDays": 1,
        "prorationUtilizedDays": 1,
        "quantity": 1,
        "subscriptionProratedCharge": 1,
        "subscriptionProratedChargeDisplay": "example",
        "subscriptionProratedCredit": 1,
        "subscriptionProratedCreditDisplay": "example",
        "subscriptionSubtotal": 1,
        "subscriptionSubtotalDisplay": "example",
        "subscriptionTax": 1,
        "subscriptionTaxDisplay": "example",
        "subscriptionTotal": 1,
        "subscriptionTotalDisplay": "example",
        "subtotal": 1,
        "subtotalDisplay": "example",
        "tax": 1,
        "taxDisplay": "example",
        "taxPercent": 1,
        "taxPercentDisplay": "example",
        "total": 1,
        "totalDisplay": "example"
      },
      "endDate": "example",
      "endDateDisplay": "example",
      "endDateDisplayISO8601": "example",
      "isProratable": true,
      "nextChargeDate": 1,
      "nextChargeDateDisplay": "example",
      "nextChargeDateDisplayISO8601": "example",
      "periodEndDate": 1,
      "periodEndDateDisplay": "example",
      "periodEndDateDisplayISO8601": "example",
      "periodStartDate": 1,
      "periodStartDateDisplay": "example",
      "periodStartDateDisplayISO8601": "example",
      "proposedPlan": {
        "addons": [
          {}
        ],
        "billingFrequency": "example",
        "discount": 1,
        "discountDisplay": "example",
        "discounts": [
          {}
        ],
        "display": "example",
        "periodEndDate": 1,
        "periodEndDateDisplay": "example",
        "periodEndDateDisplayISO8601": "example",
        "periodStartDate": 1,
        "periodStartDateDisplay": "example",
        "periodStartDateDisplayISO8601": "example",
        "price": 1,
        "priceDisplay": "example",
        "product": "example",
        "proratedItemCharge": 1,
        "proratedItemChargeDisplay": "example",
        "proratedItemCredit": 1,
        "proratedItemCreditDisplay": "example",
        "proratedItemSubtotal": 1,
        "proratedItemSubtotalDisplay": "example",
        "proratedItemTax": 1,
        "proratedItemTaxDisplay": "example",
        "proratedItemTotal": 1,
        "proratedItemTotalDisplay": "example",
        "prorationRemainingDays": 1,
        "prorationTotalDays": 1,
        "prorationUtilizedDays": 1,
        "quantity": 1,
        "subscriptionProratedCharge": 1,
        "subscriptionProratedChargeDisplay": "example",
        "subscriptionProratedCredit": 1,
        "subscriptionProratedCreditDisplay": "example",
        "subscriptionSubtotal": 1,
        "subscriptionSubtotalDisplay": "example",
        "subscriptionTax": 1,
        "subscriptionTaxDisplay": "example",
        "subscriptionTotal": 1,
        "subscriptionTotalDisplay": "example",
        "subtotal": 1,
        "subtotalDisplay": "example",
        "tax": 1,
        "taxDisplay": "example",
        "taxPercent": 1,
        "taxPercentDisplay": "example",
        "total": 1,
        "totalDisplay": "example"
      },
      "prorationStatus": "example",
      "remainingPeriods": 1,
      "subscription": "example",
      "timezone": "example"
    },
    "merchantContact": {
      "merchantAddress": "example",
      "merchantName": "example"
    },
    "proformaInvoiceHeader": {
      "currency": "example",
      "language": "example",
      "message": "example",
      "proFormaInvoiceCreationDate": 1,
      "proFormaInvoiceCreationDateDisplay": "example",
      "proFormaInvoiceCreationDateDisplayISO8601": "example",
      "proFormaInvoiceExpirationDate": 1,
      "proFormaInvoiceExpirationDateDisplay": "example",
      "proFormaInvoiceExpirationDateDisplayISO8601": "example",
      "timezone": "example"
    },
    "supportContact": {
      "email": "example",
      "name": "example",
      "url": "example"
    }
  }
}
```

### Retrieve a subscription

Retrieve a subscription.

**Inputs**

- Subscription ID (`subscription_id`, text, required): Unique identifier for the subscription.
- Account ID (`account_id`, text): Filter subscriptions by the associated account ID.
- Begin (`begin`, date): Specify the beginning of a date range in yyyy-mm-dd format.
- End (`end`, date): Specify the end of a date range in yyyy-mm-dd format.
- Event (`event`, text): Specify the event type to filter results. Valid values include `canceled`, `charged`, `created`, `deactivated`, `trialended`, or `trialstarted`. One of: `canceled`, `charged`, `created`, `deactivated`, `trialended`, `trialstarted`.
- Products (`products`, text): Filter subscriptions by specific product IDs. Use commas to separate multiple values.
- Scope (`scope`, text): Specify the scope to filter by `test` or `live` subscriptions. If not provided, both live and test subscriptions are returned by default. One of: `all`, `live`, `test`.
- Status (`status`, text): Specify the subscription status to filter results. Valid values include `active`, `canceled`, `deactivated`, `overdue`, or `trial`. One of: `active`, `canceled`, `deactivated`, `overdue`, `trial`.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "account": "example",
    "active": true,
    "addons": [
      {
        "display": "example",
        "price": 1,
        "priceDisplay": "example",
        "product": "example",
        "quantity": 1,
        "sku": "example"
      }
    ],
    "adhoc": true,
    "attributes": {},
    "autoRenew": true,
    "cardEnding": "example",
    "cardType": "example",
    "changed": 1,
    "changedDisplay": "example",
    "changedInSeconds": 1,
    "changedValue": 1,
    "currency": "example",
    "declineReason": "example",
    "discount": 1,
    "discountDisplay": "example",
    "discountInPayoutCurrency": 1,
    "discountInPayoutCurrencyDisplay": "example",
    "display": "example",
    "expiry": "example",
    "id": "example",
    "isPauseScheduled": true,
    "isSubscriptionEligibleForPauseByBuyer": true,
    "live": true,
    "nextChargeDate": "example",
    "paymentMethod": "example",
    "price": 1,
    "priceDisplay": "example",
    "priceInPayoutCurrency": 1,
    "priceInPayoutCurrencyDisplay": "example",
    "product": "example",
    "quantity": 1,
    "sku": "example",
    "state": "example",
    "subscription": "example",
    "subtotal": 1,
    "subtotalDisplay": "example",
    "subtotalInPayoutCurrency": 1,
    "subtotalInPayoutCurrencyDisplay": "example"
  }
}
```

### Retrieve an account

Retrieve an account.

**Inputs**

- Account ID (`account_id`, text, required): Unique identifier for the account.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "account": "example",
    "action": "example",
    "address": {
      "addressLine1": "example",
      "addressLine2": "example",
      "city": "example",
      "company": "example",
      "postalCode": "example",
      "region": "example",
      "regionCustom": "example"
    },
    "charges": [
      {
        "currency": "example",
        "order": "example",
        "orderReference": "example",
        "payoutCurrency": "example",
        "status": "successful",
        "subscription": "example",
        "timestamp": 1,
        "timestampDisplay": 1,
        "timestampDisplayISO8601": 1,
        "timestampInSeconds": 1,
        "timestampValue": 1,
        "total": "example",
        "totalInPayoutCurrency": 1
      }
    ],
    "contact": {
      "company": "example",
      "email": "example",
      "first": "example",
      "last": "example",
      "phone": "example",
      "subscribed": true
    },
    "country": "example",
    "id": "example",
    "language": "example",
    "lookup": {
      "custom": "example",
      "global": "example"
    },
    "orders": [
      "example"
    ],
    "payment": {
      "active": 1,
      "methods": 1
    },
    "result": "example",
    "subscribed": true,
    "subscriptions": [
      "example"
    ],
    "taxExemptionData": "example",
    "url": "example"
  }
}
```

### Retrieve an invoice

Retrieve an invoice.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The unique identifier of the invoice to retrieve.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "acquisitionReturnTransactionId": "example",
    "acquisitionTransactionId": "example",
    "bankPaymentInstruction": "example",
    "companyName": "example",
    "createdOn": "example",
    "currency": "example",
    "customerReference": "example",
    "dueDate": "example",
    "eguiNumber": "example",
    "id": "example",
    "invoiceOrderType": "example",
    "invoiceSecret": "example",
    "invoiceType": "CREDIT_MEMO",
    "items": [
      {
        "acquisitionTransactionItemId": "example",
        "autoRenew": true,
        "childItems": [
          {}
        ],
        "display": "example",
        "extendedItemDescription": "example",
        "freeTrialPeriod": "example",
        "id": "example",
        "invoiceId": "example",
        "itemTaxes": [
          {}
        ],
        "listPrice": 1,
        "parentId": "example",
        "period": "example",
        "periodCount": 1,
        "periodEndDate": "example",
        "periodPrice": 1,
        "productFormat": "example",
        "productPath": "example",
        "productType": "example",
        "quantity": 1,
        "shippingPrice": 1,
        "siblingPosition": 1,
        "subscription": true,
        "taxExempt": true,
        "totalPreShippingPrice": 1
      }
    ],
    "language": "example",
    "netTermsDays": 1,
    "notes": "example",
    "orderApprovalType": "example",
    "orderIsResumable": true,
    "orderReference": "example",
    "paymentDate": "example",
    "paymentReceiver": {
      "companyName": "example",
      "contactOrganizationId": "example",
      "contactServiceId": "example",
      "contactType": "example",
      "email": "example",
      "firstName": "example",
      "fullName": "example",
      "id": "example",
      "lastName": "example",
      "phoneNumber": "example",
      "website": "example"
    },
    "paymentReceiverAddress": {
      "addressLine1": "example",
      "addressLine2": "example",
      "addressServiceId": "example",
      "city": "example",
      "country": "example",
      "id": "example",
      "postalCode": "example",
      "region": "example",
      "regionCustom": "example"
    },
    "purchaser": {
      "companyName": "example",
      "contactOrganizationId": "example",
      "contactServiceId": "example",
      "contactType": "example",
      "email": "example",
      "firstName": "example",
      "fullName": "example",
      "id": "example",
      "lastName": "example",
      "phoneNumber": "example",
      "website": "example"
    },
    "purchaserAddress": {
      "addressLine1": "example",
      "addressLine2": "example",
      "addressServiceId": "example",
      "city": "example",
      "country": "example",
      "id": "example",
      "postalCode": "example",
      "region": "example",
      "regionCustom": "example"
    },
    "purchaserOrganization": {
      "organizationId": "example",
      "organizationName": "example",
      "organizationReference": "example",
      "organizationType": "example"
    },
    "receiver": {
      "companyName": "example",
      "contactOrganizationId": "example",
      "contactServiceId": "example",
      "contactType": "example",
      "email": "example",
      "firstName": "example",
      "fullName": "example",
      "id": "example",
      "lastName": "example",
      "phoneNumber": "example",
      "website": "example"
    },
    "receiverAddress": {
      "addressLine1": "example",
      "addressLine2": "example",
      "addressServiceId": "example",
      "city": "example",
      "country": "example",
      "id": "example",
      "postalCode": "example",
      "region": "example",
      "regionCustom": "example"
    },
    "receiverOrganization": {
      "organizationId": "example",
      "organizationName": "example",
      "organizationReference": "example",
      "organizationType": "example"
    },
    "refunds": [
      "example"
    ],
    "reminderDate": "example",
    "shippingTotal": 1,
    "siteId": "example",
    "siteMainUrl": "example",
    "siteSupportEmail": "example",
    "status": "CANCELED",
    "subTotal": 1,
    "tagsJson": "example",
    "taxExemptionId": "example",
    "taxRate": 1,
    "taxType": "example",
    "totalDiscountValue": 1,
    "totalListPriceValue": 1,
    "totalOrderValue": 1,
    "totalTaxValue": 1,
    "updatedOn": "example",
    "version": "example"
  }
}
```

### Retrieve an order

Retrieve an order.

**Inputs**

- Order ID (`order_id`, text, required): Unique identifier for the order.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "account": "example",
    "action": "example",
    "address": {
      "city": "example",
      "country": "example",
      "display": "example",
      "postalCode": "example",
      "region": "example",
      "regionCode": "example",
      "regionDisplay": "example"
    },
    "billDescriptor": "example",
    "buyerReference": "example",
    "changed": 1,
    "changedDisplay": "example",
    "changedDisplayEmailEnhancements": "example",
    "changedDisplayEmailEnhancementsWithTime": "example",
    "changedDisplayISO8601": "example",
    "changedInSeconds": 1,
    "changedValue": 1,
    "completed": true,
    "currency": "example",
    "customer": {
      "email": "example",
      "first": "example",
      "last": "example",
      "phone": "example",
      "subscribed": true
    },
    "discount": 1,
    "discountDisplay": "example",
    "discountInPayoutCurrency": 1,
    "discountInPayoutCurrencyDisplay": "example",
    "discountWithTax": 1,
    "discountWithTaxDisplay": "example",
    "discountWithTaxInPayoutCurrency": 1,
    "discountWithTaxInPayoutCurrencyDisplay": "example",
    "id": "example",
    "invoiceUrl": "example",
    "ipAddress": "example",
    "items": [
      {
        "discount": 1,
        "discountDisplay": "example",
        "discountInPayoutCurrency": 1,
        "discountInPayoutCurrencyDisplay": "example",
        "display": "example",
        "driver": {
          "path": {},
          "type": {}
        },
        "fulfillments": {},
        "imageUrl": "example",
        "isAddon": true,
        "product": "example",
        "proratedItemChangeAmount": 1,
        "proratedItemChangeAmountDisplay": "example",
        "proratedItemChangeAmountInPayoutCurrency": 1,
        "proratedItemChangeAmountInPayoutCurrencyDisplay": "example",
        "proratedItemCreditAmount": 1,
        "proratedItemCreditAmountDisplay": "example",
        "proratedItemCreditAmountInPayoutCurrency": 1,
        "proratedItemCreditAmountInPayoutCurrencyDisplay": "example",
        "proratedItemProratedCharge": 1,
        "proratedItemProratedChargeDisplay": "example",
        "proratedItemProratedChargeInPayoutCurrency": 1,
        "proratedItemProratedChargeInPayoutCurrencyDisplay": "example",
        "proratedItemTaxAmount": 1,
        "proratedItemTaxAmountDisplay": "example",
        "proratedItemTaxAmountInPayoutCurrency": 1,
        "proratedItemTaxAmountInPayoutCurrencyDisplay": "example",
        "proratedItemTotal": 1,
        "proratedItemTotalDisplay": "example",
        "proratedItemTotalInPayoutCurrency": 1,
        "proratedItemTotalInPayoutCurrencyDisplay": "example",
        "quantity": 1,
        "shortDisplay": "example",
        "sku": "example",
        "subtotal": 1,
        "subtotalDisplay": "example",
        "subtotalInPayoutCurrency": 1,
        "subtotalInPayoutCurrencyDisplay": "example",
        "withholdings": {
          "taxWithholdings": {}
        }
      }
    ],
    "language": "example",
    "live": true,
    "notes": [
      "example"
    ],
    "order": "example",
    "payment": {
      "bank": "example",
      "cardEnding": "example",
      "creditcard": "example",
      "type": "example"
    },
    "payoutCurrency": "example",
    "quote": "example",
    "recipients": [
      {
        "recipient": {
          "account": {},
          "address": {},
          "company": {},
          "email": {},
          "first": {},
          "last": {},
          "phone": {},
          "subscribed": {}
        }
      }
    ],
    "reference": "example",
    "result": "example",
    "siteId": "example",
    "subtotal": 1,
    "subtotalDisplay": "example",
    "subtotalInPayoutCurrency": 1,
    "subtotalInPayoutCurrencyDisplay": "example",
    "tax": 1,
    "taxDisplay": "example",
    "taxInPayoutCurrency": 1,
    "taxInPayoutCurrencyDisplay": "example",
    "total": 1,
    "totalDisplay": "example",
    "totalInPayoutCurrency": 1,
    "totalInPayoutCurrencyDisplay": "example"
  }
}
```

### Retrieve product offers

Retrieve product offers.

**Inputs**

- Product path (`product_path`, text, required): Unique identifier to reference a specific product, also known as the product path ID.
- Type (`type`, text): A specific type of offer available for the product. One of: `addon`, `alternatives`, `cross-sell`, `crossgrade`, `downgrade`, `downsell`, `upsell`, `upgrade`.

**Outputs**

- `data` (object): The response from FastSpring.

**Example output**

```json
{
  "data": {
    "products": [
      {
        "action": "example",
        "offers": [
          {}
        ],
        "product": "example",
        "result": "example"
      }
    ]
  }
}
```
