Orders
Order management endpoints
Retrieve a paginated list of orders
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.
Page number
1Items per page (max 100)
25Comma-separated list of expansions: fields, integrations, items, payments, subscriptions, paymentplans, customer, affiliate, checkout, attribution, checkoutview
fields,integrationsFilter by id (exact match).
Filter by id (greater than or equal)
Filter by id (less than or equal)
Filter by id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by id (excluding a comma-separated list)
Filter by customer_id (exact match).
Filter by customer_id (greater than or equal)
Filter by customer_id (less than or equal)
Filter by customer_id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by customer_id (excluding a comma-separated list)
Filter by checkout_publish_id (exact match).
Filter by checkout_publish_id (greater than or equal)
Filter by checkout_publish_id (less than or equal)
Filter by checkout_publish_id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by checkout_publish_id (excluding a comma-separated list)
Filter by checkout_id (exact match).
Filter by checkout_id (greater than or equal)
Filter by checkout_id (less than or equal)
Filter by checkout_id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by checkout_id (excluding a comma-separated list)
Filter by currency (exact match).
Filter by display_total (exact match).
Filter by display_total (greater than or equal)
Filter by display_total (less than or equal)
Filter by display_total (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by display_total (excluding a comma-separated list)
Filter by promo_id (exact match).
Filter by promo_id (greater than or equal)
Filter by promo_id (less than or equal)
Filter by promo_id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by promo_id (excluding a comma-separated list)
Filter by created_at (exact match).
Filter by created_at (greater than or equal)
Filter by created_at (less than or equal)
Filter by updated_at (exact match).
Filter by updated_at (greater than or equal)
Filter by updated_at (less than or equal)
Sort field (prefix with - for descending)
-created_atSuccessful response with paginated list
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Internal Server Error - An unexpected error occurred
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
}
}Retrieve a single orders by ID
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.
orders ID
12345Comma-separated list of expansions: fields, integrations, items, payments, subscriptions, paymentplans, customer, affiliate, checkout, attribution, checkoutview
fields,integrationsSuccessful response
Unique order identifier
123Customer who placed the order
12345Published checkout ID
Payment card ID used
Checkout view ID
Payment gateway ID
Admin user who created order (if manual)
Account address ID
Unique URL token for order
Order currency code
USDPossible values: Total order amount in cents
9999Shipping country code
USShipping ZIP/postal code
10001Shipping state/province
NYShipping city
New YorkShipping address line 2
Apt 4BShipping address line 1
123 Main StBilling country code
USBilling ZIP/postal code
10001Billing state/province
NYBilling city
New YorkBilling address line 2
Billing address line 1
Customer phone number
+1-555-123-4567Browser user agent string
When terms were accepted
When privacy policy was accepted
When customer opted into marketing
Whether order used Apple Pay
falseWhether order is a rollback
Whether CAPTCHA was completed
Promotion ID applied
Internal order name/reference
Whether order used Google Pay
falseOffer/campaign name
Customer IP address
192.168.1.1Whether customer data was pre-filled
Affiliate tracking cookie data (JSON)
When order event was ready
Array of published block item IDs
BCP 47 locale code captured at checkout
Order creation timestamp
2024-01-15T10:30:00ZLast update timestamp
2024-01-20T14:45:00ZComputed payment status
succeededOrder fields array (expansion: fields)
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
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 core and custom fields
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.
Successful response
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Conflict - The request conflicts with the current state of the resource
Internal Server Error - An unexpected error occurred
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 all payments on an order. For partial refunds of a specific payment, use refund_payment.
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.
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.
Successful response
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Internal Server Error - An unexpected error occurred
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
Mark an order item as canceled
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.
Order ID
Order item ID to cancel
Successful response
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Conflict - The request conflicts with the current state of the resource
Internal Server Error - An unexpected error occurred
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 affiliate commission settings for an order
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.
Order ID
Affiliate ID
Affiliate program ID
Successful response
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Conflict - The request conflicts with the current state of the resource
Internal Server Error - An unexpected error occurred
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 affiliate attribution from an order
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.
Order ID
Deleted successfully
No content
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
DELETE /v2/orders/{order_id}/affiliate HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated