Sweet Spot API

Command Palette

Search for a command to run...

POST/v1/checkouts/{id}/cancel

Cancels a checkout. For checkouts with pre-authorized payments, the authorization will be voided. For checkouts where the deposit has been captured, a refund will be issued.

Cancellable states: Created, ProfilePending, IdentityRequired, IdentityVerifying, IdentityProcessing, QualificationPending, ShippingAddressPending, PickupLocationPending, LeaseReviewPending, DepositPending, DepositProcessing, RecurringPaymentMethodPending, DocumentsPending, FulfillmentPending, AddendumsPending, ReturnPending, Returned, WaitlistedAfterProfile, WaitlistedAfterDeposit, WaitlistedLocation, DepositFailed, CaptureFailed, FulfillmentException.

Cannot cancel: LeaseActive (fulfilled), Expired, Cancelled, IdentityFailed, QualificationFailed.

Requires CheckoutCancel permission.

Parameters
Request parameters for this endpoint
NameLocationTypeRequiredDescription
idpathstringRequiredCheckout public ID
Response Data
Fields returned in the response

Always Present

NameTypeDescription
createdAt
string (date-time)
-
id
CheckoutPubId
Public-facing unique identifier for the checkout
insuranceStatus
Status of insurance approval (pending, approved, denied)
lifecycle
Current lifecycle state of the checkout
offtakePartnerId
OftakePartnerId
-
recurringPaymentStatus
Status of recurring payments (pending, active, cancelled)
updatedAt
string (date-time)
-
checkoutUrl
string
URL to access the checkout page
customerId
UserPubId
Public ID of the customer (resolved from internal customer_id)
progress
Unified progress information for the checkout flow Includes milestones with timestamps for post-confirmation checkouts

Optional

NameTypeDescription
billingAddress
-
billingAddressLocked
boolean
Whether the billing address is locked (set by organization, cannot be changed by customer)
cancelUrl
string
URL to redirect to when checkout is cancelled
deliveredAt
string
When the items were delivered
depositInvoiceId
string
Stripe invoice ID for the deposit payment
depositPreauthExpiresAt
string
Timestamp when the pre-authorization expires (typically 7 days from authorization)
depositTimestamp
string
Timestamp when the deposit was paid
externalOrderId
string
External order ID from integrated systems
failureUrl
string
URL to redirect to when checkout fails
lastPaymentError
string
Last payment error message (if payment failed)
lastPaymentErrorAt
string
Timestamp of last payment error
lastPaymentErrorCode
string
Last payment error code (if payment failed)
leaseDocumentId
string
ID of the lease document in PandaDoc
leaseEndDate
string
-
leaseStartDate
string
-
leaseTermId
LeaseTermId
-
paymentFailureCount
integer
Count of payment failures
pickupLocationId
integer
ID of the pickup location (if using pickup instead of shipping)
previousLifecycle
-
purchaseItems
Purchase items applied to this checkout
recurringPaymentMethod
-
recurringPaymentMethodId
string
Stripe PaymentMethod ID for recurring payments (may differ from deposit payment method)
returnCancelledAt
string
When a pending return was cancelled
returnCompletedAt
string
When the return was completed
returnInitiatedAt
string
When the return was initiated
returnNotes
string
Additional notes about the return
returnReason
string
Reason for the return
shippedAt
string
When the items were shipped
shippingAddress
-
shippingAddressLocked
boolean
Whether the shipping address is locked (set by organization, cannot be changed by customer)
signedBy
string
Who signed for the delivery
stripeDepositPaymentIntentId
string
Stripe PaymentIntent ID for the deposit pre-authorization
stripeSubscriptionId
string
Stripe subscription ID for recurring payments
successUrl
string
URL to redirect to on successful checkout completion
trackingCarrier
-
trackingNumber
string
Tracking number for shipped items
trackingStatus
-
waitlistLocationAddress
-
waitlistLocationReasonCode
-
waitlistReason
-
locationMessage
string
Location waitlist message (machine-readable) when waitlisted by location
organizationId
OrganizationPubId
-