Payments
Payment management
Retrieve a paginated list of payments
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: customer, order
customer,orderFilter by status (exact match). Valid values: pending, succeeded, failed, refunded, disputed, dispute_refunded.
Filter by status (comma-separated list). Fetches many records in one request instead of one request per id.
pending,succeededFilter by status (excluding a comma-separated list)
Filter by order_id (exact match).
Filter by order_id (greater than or equal)
Filter by order_id (less than or equal)
Filter by order_id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by order_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 gateway_id (exact match).
Filter by gateway_id (greater than or equal)
Filter by gateway_id (less than or equal)
Filter by gateway_id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by gateway_id (excluding a comma-separated list)
Filter by currency (exact match).
Filter by currency (contains)
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/payments HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"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"
}
]
}
],
"pagination": {
"page": 1,
"limit": 25,
"total": 150,
"pages": 6
}
}Retrieve a single payments 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.
payments ID
12345Comma-separated list of expansions: customer, order
customer,orderSuccessful response
Payment ID
789Associated order ID
123Customer who made the payment (sourced from the parent order; included for convenience so customer-centric reporting doesn't require a second hop through /v2/orders)
12345Payment source (card) ID (database field)
Payment gateway ID
Initial payment ID (for retries)
Stripe charge ID
ch_1abc123Stripe invoice ID
Stripe PaymentIntent ID
pi_1abc123PayPal order ID
PayPal capture ID
Whether payment was manually recorded
Whether 3D Secure authentication is in progress
Total payment amount in cents
4999Amount successfully paid in cents
4999Amount refunded in cents
0Payment currency code
USDPossible values: Human-readable failure reason
Whether a retry is pending
Refund timestamp
Payment status
succeededPossible values: Whether 3D Secure was used
Whether payment can be skipped
NMI transaction ID
Whether this is a startup/setup fee
Gateway-specific failure code
What actually paid this charge, as the gateway reports it (e.g. card, apple_pay, klarna, afterpay_clearpay). Null when unknown or not recorded — clients should fall back to the card display.
klarnaNumber of installments for a financing (BNPL) payment. Null for non-financing payments.
4Creation timestamp
Last update timestamp
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/payments/{id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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"
}
]
}Refund a payment on an order. refund_amount is required — pass the payment's full remaining refundable balance for a full refund.
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.
Payment ID
Amount to refund as a whole number of the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500). Fractions are rejected. Must not exceed the payment's remaining refundable balance.
Array of order item IDs to mark as refunded
Whether to adjust affiliate commissions
Skip the merchant's own automations for this refund. The refund is 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 the payment, so a later refund of the same payment made outside Spiffy inherits it — the last choice made through Spiffy wins.
Internal notes for the refund
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
Internal Server Error - An unexpected error occurred
POST /v2/payments/{id}/refund HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 109
{
"refund_amount": 1,
"items": [
1
],
"do_affiliate_adjustment": true,
"skip_integration_actions": true,
"notes": "text"
}No content
Queue a retry for a failed payment. Only the original failed payment (not subsequent attempts) can be retried.
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.
Payment ID
Successful response
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
POST /v2/payments/{id}/retry HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated