For the complete documentation index, see llms.txt. This page is also available as Markdown.

Orders

Order management endpoints

List orders

get

Retrieve a paginated list of orders

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Query parameters
pageintegerOptional

Page number

Example: 1
per_pageinteger · max: 100Optional

Items per page (max 100)

Example: 25
includestringOptional

Comma-separated list of expansions: fields, integrations, items, payments, subscriptions, paymentplans, customer, affiliate, checkout, attribution, checkoutview

Example: fields,integrations
filter[id]stringOptional

Filter by id (exact match).

filter[id.gte]stringOptional

Filter by id (greater than or equal)

filter[id.lte]stringOptional

Filter by id (less than or equal)

filter[id.in]stringOptional

Filter by id (comma-separated list). Fetches many records in one request instead of one request per id.

Example: 101,102,103
filter[id.nin]stringOptional

Filter by id (excluding a comma-separated list)

filter[customer_id]stringOptional

Filter by customer_id (exact match).

filter[customer_id.gte]stringOptional

Filter by customer_id (greater than or equal)

filter[customer_id.lte]stringOptional

Filter by customer_id (less than or equal)

filter[customer_id.in]stringOptional

Filter by customer_id (comma-separated list). Fetches many records in one request instead of one request per id.

Example: 101,102,103
filter[customer_id.nin]stringOptional

Filter by customer_id (excluding a comma-separated list)

filter[checkout_publish_id]stringOptional

Filter by checkout_publish_id (exact match).

filter[checkout_publish_id.gte]stringOptional

Filter by checkout_publish_id (greater than or equal)

filter[checkout_publish_id.lte]stringOptional

Filter by checkout_publish_id (less than or equal)

filter[checkout_publish_id.in]stringOptional

Filter by checkout_publish_id (comma-separated list). Fetches many records in one request instead of one request per id.

Example: 101,102,103
filter[checkout_publish_id.nin]stringOptional

Filter by checkout_publish_id (excluding a comma-separated list)

filter[checkout_id]stringOptional

Filter by checkout_id (exact match).

filter[checkout_id.gte]stringOptional

Filter by checkout_id (greater than or equal)

filter[checkout_id.lte]stringOptional

Filter by checkout_id (less than or equal)

filter[checkout_id.in]stringOptional

Filter by checkout_id (comma-separated list). Fetches many records in one request instead of one request per id.

Example: 101,102,103
filter[checkout_id.nin]stringOptional

Filter by checkout_id (excluding a comma-separated list)

filter[currency]stringOptional

Filter by currency (exact match).

filter[display_total]stringOptional

Filter by display_total (exact match).

filter[display_total.gte]stringOptional

Filter by display_total (greater than or equal)

filter[display_total.lte]stringOptional

Filter by display_total (less than or equal)

filter[display_total.in]stringOptional

Filter by display_total (comma-separated list). Fetches many records in one request instead of one request per id.

Example: 101,102,103
filter[display_total.nin]stringOptional

Filter by display_total (excluding a comma-separated list)

filter[promo_id]stringOptional

Filter by promo_id (exact match).

filter[promo_id.gte]stringOptional

Filter by promo_id (greater than or equal)

filter[promo_id.lte]stringOptional

Filter by promo_id (less than or equal)

filter[promo_id.in]stringOptional

Filter by promo_id (comma-separated list). Fetches many records in one request instead of one request per id.

Example: 101,102,103
filter[promo_id.nin]stringOptional

Filter by promo_id (excluding a comma-separated list)

filter[created_at]stringOptional

Filter by created_at (exact match).

filter[created_at.gte]stringOptional

Filter by created_at (greater than or equal)

filter[created_at.lte]stringOptional

Filter by created_at (less than or equal)

filter[updated_at]stringOptional

Filter by updated_at (exact match).

filter[updated_at.gte]stringOptional

Filter by updated_at (greater than or equal)

filter[updated_at.lte]stringOptional

Filter by updated_at (less than or equal)

sortstringOptional

Sort field (prefix with - for descending)

Example: -created_at
Responses
200

Successful response with paginated list

application/json
get/v2/orders
GET /v2/orders HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "id": 123,
      "customer_id": 12345,
      "checkout_publish_id": 1,
      "card_id": 1,
      "checkoutview_id": 1,
      "gateway_id": 1,
      "user_id": 1,
      "account_address_id": 1,
      "url_token": "text",
      "currency": "USD",
      "display_total": 9999,
      "shipping_country": "US",
      "shipping_zip": "10001",
      "shipping_state": "NY",
      "shipping_city": "New York",
      "shipping_street2": "Apt 4B",
      "shipping_street1": "123 Main St",
      "billing_country": "US",
      "billing_zip": "10001",
      "billing_state": "NY",
      "billing_city": "New York",
      "billing_street2": "text",
      "billing_street1": "text",
      "phone_number": "+1-555-123-4567",
      "user_agent": "text",
      "terms_signed_at": "2026-01-01T00:00:00.000Z",
      "privacy_policy_signed_at": "2026-01-01T00:00:00.000Z",
      "marketing_opted_in_at": "2026-01-01T00:00:00.000Z",
      "is_apple_pay": false,
      "is_rollback": true,
      "is_captcha": true,
      "promo_id": 1,
      "internal_name": "text",
      "is_google_pay": false,
      "offer_name": "text",
      "ip": "192.168.1.1",
      "is_customer_prefilled": true,
      "affiliate_cookies": "text",
      "event_ready_at": "2026-01-01T00:00:00.000Z",
      "published_block_item_ids": [
        1
      ],
      "preserved_params": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "locale": "text",
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-20T14:45:00Z",
      "detail": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "payment_status": "succeeded",
      "stepkeys": [
        {
          "id": 1,
          "order_id": 1,
          "status": "accepted",
          "url_slug": "text",
          "session_key": "text",
          "created_at": "2026-01-01T00:00:00.000Z",
          "updated_at": "2026-01-01T00:00:00.000Z"
        }
      ],
      "checkout": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "card": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "gateway": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "promo": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "user": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "checkoutview": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "account_address": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "items": [
        {
          "id": 456,
          "order_id": 123,
          "name": "Premium Widget",
          "base_price": 2999,
          "tax_type": "vat",
          "tax_rate": 0.0825,
          "is_commissionable": true,
          "is_refunded_by_spiffy": true,
          "published_checkout_item_id": 1,
          "sort_order": 1,
          "product_option_price_id": 1,
          "parent_id": 1,
          "published_block_item_id": 1,
          "replace_published_block_item_id": 1,
          "block_type": "text",
          "offset_type": "text",
          "replace_price_id": 1,
          "is_skipped": true,
          "event_ready_at": "2026-01-01T00:00:00.000Z",
          "created_at": "2026-01-01T00:00:00.000Z",
          "updated_at": "2026-01-01T00:00:00.000Z",
          "payment_ids": [
            1
          ],
          "discounts": [
            {
              "id": 1,
              "order_item_id": 1,
              "promo_id": 1,
              "discount_type": "amount",
              "discount_offset": 1,
              "use_taxes": true,
              "created_at": "2026-01-01T00:00:00.000Z",
              "updated_at": "2026-01-01T00:00:00.000Z",
              "promo_code": "text"
            }
          ]
        }
      ],
      "payments": [
        {
          "id": 789,
          "order_id": 123,
          "customer_id": 12345,
          "source_id": 1,
          "source": {
            "id": 1,
            "card_id": 1,
            "gateway_id": 1,
            "stripe_source_id": "text",
            "stripe_paymentmethod_id": "text",
            "paypal_billing_agreement_id": "text",
            "created_at": "2026-01-01T00:00:00.000Z",
            "updated_at": "2026-01-01T00:00:00.000Z",
            "stripe_customer_id": "text",
            "paypal_payer_id": "text",
            "paypal_customer_id": "text",
            "paypal_token_id": "text",
            "nmi_customer_vault_id": "text",
            "authentication": null,
            "customer_id": 1,
            "is_active": true,
            "is_three_d_secure_supported": true,
            "type": "text",
            "last_four": "text",
            "exp_month": "text",
            "exp_year": "text",
            "address_zip": "text",
            "country": "text",
            "fingerprint": "text",
            "cardholder_name_first": "text",
            "cardholder_name_last": "text",
            "address_street1": "text",
            "address_street2": "text",
            "address_city": "text",
            "address_state": "text",
            "address_country": "text"
          },
          "gateway_id": 1,
          "initial_payment_id": 1,
          "stripe_charge_id": "ch_1abc123",
          "stripe_invoice_id": "text",
          "stripe_paymentintent_id": "pi_1abc123",
          "paypal_order_id": "text",
          "paypal_capture_id": "text",
          "is_manual": true,
          "is_3ds_in_progress": true,
          "amount": 4999,
          "amount_paid": 4999,
          "amount_refunded": 0,
          "currency": "USD",
          "failure_reason": "text",
          "has_pending_retry": true,
          "refunded_at": "2026-01-01T00:00:00.000Z",
          "status": "succeeded",
          "is_3ds": true,
          "can_skip": true,
          "nmi_transaction_id": "text",
          "is_startup_fee": true,
          "failure_code": "text",
          "payment_method_type": "klarna",
          "financing_installments_count": 4,
          "created_at": "2026-01-01T00:00:00.000Z",
          "updated_at": "2026-01-01T00:00:00.000Z",
          "attempts": [
            {
              "id": 1,
              "order_id": 1,
              "initial_payment_id": 1,
              "amount": 1,
              "amount_paid": 1,
              "amount_refunded": 1,
              "currency": "text",
              "status": "text",
              "failure_reason": "text",
              "has_pending_retry": true,
              "created_at": "2026-01-01T00:00:00.000Z",
              "updated_at": "2026-01-01T00:00:00.000Z"
            }
          ]
        }
      ],
      "subscriptions": [
        {
          "id": 1,
          "order_item_id": 1,
          "product_option_price_id": 1,
          "card_id": 1,
          "swapped_from_id": 1,
          "published_block_item_id": 1,
          "replace_published_block_item_id": 1,
          "name": "text",
          "block_type": "text",
          "stripe_subscription_id": "text",
          "stripe_subscription_item_id": "text",
          "status": "active",
          "next_payment_at": "2026-01-01T00:00:00.000Z",
          "trial_days": 1,
          "num_payment_skips_remaining": 1,
          "tax_rate": 0.0825,
          "is_commissionable": true,
          "is_trial_end_upcoming_sent": true,
          "unpaid_at": "2026-01-01T00:00:00.000Z",
          "canceled_at": "2026-01-01T00:00:00.000Z",
          "order_id": 1,
          "tax_type": "text",
          "replace_price_id": 1,
          "published_checkout_item_id": "text",
          "event_ready_at": "2026-01-01T00:00:00.000Z",
          "created_at": "2026-01-01T00:00:00.000Z",
          "updated_at": "2026-01-01T00:00:00.000Z",
          "payment_ids": [
            1
          ],
          "retry_schedule": [
            "text"
          ],
          "current_payment_status": "text",
          "detail": {
            "ANY_ADDITIONAL_PROPERTY": null
          },
          "discounts": [
            {
              "id": 1,
              "subscription_id": 1,
              "promo_id": 1,
              "stripe_coupon_id": "text",
              "discount_type": "amount",
              "discount_offset": 1,
              "duration_in_months": 1,
              "use_taxes": true,
              "created_at": "2026-01-01T00:00:00.000Z",
              "updated_at": "2026-01-01T00:00:00.000Z",
              "deactivated_at": "2026-01-01T00:00:00.000Z",
              "promo_code": "text"
            }
          ],
          "usage": {
            "ANY_ADDITIONAL_PROPERTY": null
          },
          "payments": [
            {
              "ANY_ADDITIONAL_PROPERTY": null
            }
          ],
          "custom_fields": [],
          "customer": {
            "ANY_ADDITIONAL_PROPERTY": null
          },
          "order": {
            "ANY_ADDITIONAL_PROPERTY": null
          },
          "price": {
            "ANY_ADDITIONAL_PROPERTY": null
          },
          "card": {
            "ANY_ADDITIONAL_PROPERTY": null
          },
          "gateway": {
            "ANY_ADDITIONAL_PROPERTY": null
          }
        }
      ],
      "paymentplans": [
        {
          "id": 1,
          "order_id": 1,
          "card_id": 1,
          "status": "active",
          "next_payment_at": "2026-01-01T00:00:00.000Z",
          "finished_at": "2026-05-04T12:00:00Z",
          "frequency": "month",
          "frequency_count": 1,
          "is_finance_hidden": true,
          "unpaid_at": "2026-01-01T00:00:00.000Z",
          "is_scheduled": true,
          "created_at": "2026-01-01T00:00:00.000Z",
          "updated_at": "2026-01-01T00:00:00.000Z",
          "remaining_balance": 1,
          "paid_amount": 1,
          "total_amount": 1,
          "defaulted_amount": 1,
          "payments_made": 1,
          "payments_remaining": 1,
          "item_ids": [
            1
          ],
          "current_payment_status": "text",
          "payment_ids": [
            1
          ],
          "retry_schedule": [
            "text"
          ],
          "detail": {
            "ANY_ADDITIONAL_PROPERTY": null
          },
          "items": [
            {
              "ANY_ADDITIONAL_PROPERTY": null
            }
          ],
          "payments": [
            {
              "ANY_ADDITIONAL_PROPERTY": null
            }
          ],
          "order": {
            "ANY_ADDITIONAL_PROPERTY": null
          },
          "customer": {
            "ANY_ADDITIONAL_PROPERTY": null
          },
          "custom_fields": [],
          "card": {
            "ANY_ADDITIONAL_PROPERTY": null
          },
          "gateway": {
            "ANY_ADDITIONAL_PROPERTY": null
          }
        }
      ],
      "customer": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "affiliate": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "program": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "fields": [],
      "integrations": {
        "ANY_ADDITIONAL_PROPERTY": null
      }
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 25,
    "total": 150,
    "pages": 6
  }
}

Get orders

get

Retrieve a single orders by ID

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Path parameters
idintegerRequired

orders ID

Example: 12345
Query parameters
includestringOptional

Comma-separated list of expansions: fields, integrations, items, payments, subscriptions, paymentplans, customer, affiliate, checkout, attribution, checkoutview

Example: fields,integrations
Responses
200

Successful response

application/json
idintegerRequired

Unique order identifier

Example: 123
customer_idintegerRequired

Customer who placed the order

Example: 12345
checkout_publish_idintegerRequired

Published checkout ID

card_idintegerRequired

Payment card ID used

checkoutview_idinteger · nullableOptional

Checkout view ID

gateway_idinteger · nullableOptional

Payment gateway ID

user_idinteger · nullableOptional

Admin user who created order (if manual)

account_address_idinteger · nullableOptional

Account address ID

url_tokenstring · max: 255 · nullableOptional

Unique URL token for order

currencystring · enum · nullableOptional

Order currency code

Example: USDPossible values:
display_totalintegerOptional

Total order amount in cents

Example: 9999
shipping_countrystring · max: 255 · nullableOptional

Shipping country code

Example: US
shipping_zipstring · max: 255 · nullableOptional

Shipping ZIP/postal code

Example: 10001
shipping_statestring · max: 255 · nullableOptional

Shipping state/province

Example: NY
shipping_citystring · max: 255 · nullableOptional

Shipping city

Example: New York
shipping_street2string · max: 255 · nullableOptional

Shipping address line 2

Example: Apt 4B
shipping_street1string · max: 255 · nullableOptional

Shipping address line 1

Example: 123 Main St
billing_countrystring · max: 255 · nullableOptional

Billing country code

Example: US
billing_zipstring · max: 255 · nullableOptional

Billing ZIP/postal code

Example: 10001
billing_statestring · max: 255 · nullableOptional

Billing state/province

Example: NY
billing_citystring · max: 255 · nullableOptional

Billing city

Example: New York
billing_street2string · max: 255 · nullableOptional

Billing address line 2

billing_street1string · max: 255 · nullableOptional

Billing address line 1

phone_numberstring · max: 255 · nullableOptional

Customer phone number

Example: +1-555-123-4567
user_agentstring · nullableOptional

Browser user agent string

terms_signed_atstring · date-time · nullableOptional

When terms were accepted

privacy_policy_signed_atstring · date-time · nullableOptional

When privacy policy was accepted

marketing_opted_in_atstring · date-time · nullableOptional

When customer opted into marketing

is_apple_paybooleanOptional

Whether order used Apple Pay

Example: false
is_rollbackbooleanOptional

Whether order is a rollback

is_captchabooleanOptional

Whether CAPTCHA was completed

promo_idinteger · nullableOptional

Promotion ID applied

internal_namestring · max: 255 · nullableOptional

Internal order name/reference

is_google_paybooleanOptional

Whether order used Google Pay

Example: false
offer_namestring · max: 255 · nullableOptional

Offer/campaign name

ipstring · max: 255 · nullableOptional

Customer IP address

Example: 192.168.1.1
is_customer_prefilledboolean · nullableOptional

Whether customer data was pre-filled

affiliate_cookiesstring · nullableOptional

Affiliate tracking cookie data (JSON)

event_ready_atstring · date-time · nullableOptional

When order event was ready

published_block_item_idsinteger[] · nullableOptional

Array of published block item IDs

localestring · max: 10 · nullableOptional

BCP 47 locale code captured at checkout

created_atstring · date-time · nullableOptional

Order creation timestamp

Example: 2024-01-15T10:30:00Z
updated_atstring · date-time · nullableOptional

Last update timestamp

Example: 2024-01-20T14:45:00Z
payment_statusstringOptional

Computed payment status

Example: succeeded
fieldsany ofOptional

Order fields array (expansion: fields)

or
or
any · nullableOptional
get/v2/orders/{id}
GET /v2/orders/{id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": 123,
  "customer_id": 12345,
  "checkout_publish_id": 1,
  "card_id": 1,
  "checkoutview_id": 1,
  "gateway_id": 1,
  "user_id": 1,
  "account_address_id": 1,
  "url_token": "text",
  "currency": "USD",
  "display_total": 9999,
  "shipping_country": "US",
  "shipping_zip": "10001",
  "shipping_state": "NY",
  "shipping_city": "New York",
  "shipping_street2": "Apt 4B",
  "shipping_street1": "123 Main St",
  "billing_country": "US",
  "billing_zip": "10001",
  "billing_state": "NY",
  "billing_city": "New York",
  "billing_street2": "text",
  "billing_street1": "text",
  "phone_number": "+1-555-123-4567",
  "user_agent": "text",
  "terms_signed_at": "2026-01-01T00:00:00.000Z",
  "privacy_policy_signed_at": "2026-01-01T00:00:00.000Z",
  "marketing_opted_in_at": "2026-01-01T00:00:00.000Z",
  "is_apple_pay": false,
  "is_rollback": true,
  "is_captcha": true,
  "promo_id": 1,
  "internal_name": "text",
  "is_google_pay": false,
  "offer_name": "text",
  "ip": "192.168.1.1",
  "is_customer_prefilled": true,
  "affiliate_cookies": "text",
  "event_ready_at": "2026-01-01T00:00:00.000Z",
  "published_block_item_ids": [
    1
  ],
  "preserved_params": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "locale": "text",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-20T14:45:00Z",
  "detail": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "payment_status": "succeeded",
  "stepkeys": [
    {
      "id": 1,
      "order_id": 1,
      "status": "accepted",
      "url_slug": "text",
      "session_key": "text",
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z"
    }
  ],
  "checkout": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "card": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "gateway": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "promo": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "user": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "checkoutview": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "account_address": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "items": [
    {
      "id": 456,
      "order_id": 123,
      "name": "Premium Widget",
      "base_price": 2999,
      "tax_type": "vat",
      "tax_rate": 0.0825,
      "is_commissionable": true,
      "is_refunded_by_spiffy": true,
      "published_checkout_item_id": 1,
      "sort_order": 1,
      "product_option_price_id": 1,
      "parent_id": 1,
      "published_block_item_id": 1,
      "replace_published_block_item_id": 1,
      "block_type": "text",
      "offset_type": "text",
      "replace_price_id": 1,
      "is_skipped": true,
      "event_ready_at": "2026-01-01T00:00:00.000Z",
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z",
      "payment_ids": [
        1
      ],
      "discounts": [
        {
          "id": 1,
          "order_item_id": 1,
          "promo_id": 1,
          "discount_type": "amount",
          "discount_offset": 1,
          "use_taxes": true,
          "created_at": "2026-01-01T00:00:00.000Z",
          "updated_at": "2026-01-01T00:00:00.000Z",
          "promo_code": "text"
        }
      ]
    }
  ],
  "payments": [
    {
      "id": 789,
      "order_id": 123,
      "customer_id": 12345,
      "source_id": 1,
      "source": {
        "id": 1,
        "card_id": 1,
        "gateway_id": 1,
        "stripe_source_id": "text",
        "stripe_paymentmethod_id": "text",
        "paypal_billing_agreement_id": "text",
        "created_at": "2026-01-01T00:00:00.000Z",
        "updated_at": "2026-01-01T00:00:00.000Z",
        "stripe_customer_id": "text",
        "paypal_payer_id": "text",
        "paypal_customer_id": "text",
        "paypal_token_id": "text",
        "nmi_customer_vault_id": "text",
        "authentication": null,
        "customer_id": 1,
        "is_active": true,
        "is_three_d_secure_supported": true,
        "type": "text",
        "last_four": "text",
        "exp_month": "text",
        "exp_year": "text",
        "address_zip": "text",
        "country": "text",
        "fingerprint": "text",
        "cardholder_name_first": "text",
        "cardholder_name_last": "text",
        "address_street1": "text",
        "address_street2": "text",
        "address_city": "text",
        "address_state": "text",
        "address_country": "text"
      },
      "gateway_id": 1,
      "initial_payment_id": 1,
      "stripe_charge_id": "ch_1abc123",
      "stripe_invoice_id": "text",
      "stripe_paymentintent_id": "pi_1abc123",
      "paypal_order_id": "text",
      "paypal_capture_id": "text",
      "is_manual": true,
      "is_3ds_in_progress": true,
      "amount": 4999,
      "amount_paid": 4999,
      "amount_refunded": 0,
      "currency": "USD",
      "failure_reason": "text",
      "has_pending_retry": true,
      "refunded_at": "2026-01-01T00:00:00.000Z",
      "status": "succeeded",
      "is_3ds": true,
      "can_skip": true,
      "nmi_transaction_id": "text",
      "is_startup_fee": true,
      "failure_code": "text",
      "payment_method_type": "klarna",
      "financing_installments_count": 4,
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z",
      "attempts": [
        {
          "id": 1,
          "order_id": 1,
          "initial_payment_id": 1,
          "amount": 1,
          "amount_paid": 1,
          "amount_refunded": 1,
          "currency": "text",
          "status": "text",
          "failure_reason": "text",
          "has_pending_retry": true,
          "created_at": "2026-01-01T00:00:00.000Z",
          "updated_at": "2026-01-01T00:00:00.000Z"
        }
      ]
    }
  ],
  "subscriptions": [
    {
      "id": 1,
      "order_item_id": 1,
      "product_option_price_id": 1,
      "card_id": 1,
      "swapped_from_id": 1,
      "published_block_item_id": 1,
      "replace_published_block_item_id": 1,
      "name": "text",
      "block_type": "text",
      "stripe_subscription_id": "text",
      "stripe_subscription_item_id": "text",
      "status": "active",
      "next_payment_at": "2026-01-01T00:00:00.000Z",
      "trial_days": 1,
      "num_payment_skips_remaining": 1,
      "tax_rate": 0.0825,
      "is_commissionable": true,
      "is_trial_end_upcoming_sent": true,
      "unpaid_at": "2026-01-01T00:00:00.000Z",
      "canceled_at": "2026-01-01T00:00:00.000Z",
      "order_id": 1,
      "tax_type": "text",
      "replace_price_id": 1,
      "published_checkout_item_id": "text",
      "event_ready_at": "2026-01-01T00:00:00.000Z",
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z",
      "payment_ids": [
        1
      ],
      "retry_schedule": [
        "text"
      ],
      "current_payment_status": "text",
      "detail": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "discounts": [
        {
          "id": 1,
          "subscription_id": 1,
          "promo_id": 1,
          "stripe_coupon_id": "text",
          "discount_type": "amount",
          "discount_offset": 1,
          "duration_in_months": 1,
          "use_taxes": true,
          "created_at": "2026-01-01T00:00:00.000Z",
          "updated_at": "2026-01-01T00:00:00.000Z",
          "deactivated_at": "2026-01-01T00:00:00.000Z",
          "promo_code": "text"
        }
      ],
      "usage": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "payments": [
        {
          "ANY_ADDITIONAL_PROPERTY": null
        }
      ],
      "custom_fields": [],
      "customer": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "order": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "price": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "card": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "gateway": {
        "ANY_ADDITIONAL_PROPERTY": null
      }
    }
  ],
  "paymentplans": [
    {
      "id": 1,
      "order_id": 1,
      "card_id": 1,
      "status": "active",
      "next_payment_at": "2026-01-01T00:00:00.000Z",
      "finished_at": "2026-05-04T12:00:00Z",
      "frequency": "month",
      "frequency_count": 1,
      "is_finance_hidden": true,
      "unpaid_at": "2026-01-01T00:00:00.000Z",
      "is_scheduled": true,
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z",
      "remaining_balance": 1,
      "paid_amount": 1,
      "total_amount": 1,
      "defaulted_amount": 1,
      "payments_made": 1,
      "payments_remaining": 1,
      "item_ids": [
        1
      ],
      "current_payment_status": "text",
      "payment_ids": [
        1
      ],
      "retry_schedule": [
        "text"
      ],
      "detail": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "items": [
        {
          "ANY_ADDITIONAL_PROPERTY": null
        }
      ],
      "payments": [
        {
          "ANY_ADDITIONAL_PROPERTY": null
        }
      ],
      "order": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "customer": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "custom_fields": [],
      "card": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "gateway": {
        "ANY_ADDITIONAL_PROPERTY": null
      }
    }
  ],
  "customer": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "affiliate": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "program": {
    "ANY_ADDITIONAL_PROPERTY": null
  },
  "fields": [],
  "integrations": {
    "ANY_ADDITIONAL_PROPERTY": null
  }
}

Update order fields

patch

Update order core and custom fields

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Body
Responses
200

Successful response

application/json
any · nullableOptional
patch/v2/orders/{id}
PATCH /v2/orders/{id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 85

{
  "fields": [
    {
      "field_id": "text",
      "field_name": "text",
      "field_type": "text",
      "value": null
    }
  ]
}

No content

Refund an order

post

Refund all payments on an order. For partial refunds of a specific payment, use refund_payment.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Body
do_affiliate_adjustmentbooleanOptional
skip_integration_actionsbooleanOptional

Skip the merchant's own automations for every refund made by this call. The refunds are still recorded and order-sync integrations (tax, CRM deal and contact sync) still run. Developer-platform Event Webhooks are still delivered; the merchant's own "Send Webhook" automation action is an automation and does NOT run. The choice is stored on each payment, so a later refund of one of them made outside Spiffy inherits it — the last choice made through Spiffy wins.

notesstringOptional
Responses
200

Successful response

application/json
any · nullableOptional
post/v2/orders/{id}/refund
POST /v2/orders/{id}/refund HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 79

{
  "do_affiliate_adjustment": true,
  "skip_integration_actions": true,
  "notes": "text"
}

No content

Cancel order item

patch

Mark an order item as canceled

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Path parameters
order_idstringRequired

Order ID

item_idstringRequired

Order item ID to cancel

Body
is_refunded_by_spiffybooleanRequired
notesstringOptional
Responses
200

Successful response

application/json
any · nullableOptional
patch/v2/orders/{order_id}/items/{item_id}/canceled
PATCH /v2/orders/{order_id}/items/{item_id}/canceled HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 45

{
  "is_refunded_by_spiffy": true,
  "notes": "text"
}

No content

Update order affiliate

put

Update affiliate commission settings for an order

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Path parameters
order_idstringRequired

Order ID

affiliate_idstringRequired

Affiliate ID

program_idstringRequired

Affiliate program ID

Body
no_retro_commissionsbooleanOptional
Responses
200

Successful response

application/json
any · nullableOptional
put/v2/orders/{order_id}/affiliate/{affiliate_id}/program/{program_id}
PUT /v2/orders/{order_id}/affiliate/{affiliate_id}/program/{program_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29

{
  "no_retro_commissions": true
}

No content

Remove order affiliate

delete

Remove affiliate attribution from an order

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Path parameters
order_idstringRequired

Order ID

Responses
204

Deleted successfully

No content

delete/v2/orders/{order_id}/affiliate
DELETE /v2/orders/{order_id}/affiliate HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated