Skip to main content
POST
/
v1
/
customer-portal
/
orders
/
{id}
/
confirm-payment
Confirm Retry Payment
curl --request POST \
  --url https://api.spairehq.com/v1/customer-portal/orders/{id}/confirm-payment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "confirmation_token_id": "<string>",
  "payment_method_id": "<string>",
  "payment_processor": "stripe"
}
'
{
  "status": "<string>",
  "client_secret": "<string>",
  "error": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.spairehq.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Customer session tokens are specific tokens that are used to authenticate customers on your organization. You can create those sessions programmatically using the Create Customer Session endpoint.

Path Parameters

id
string<uuid4>
required

The order ID.

Body

application/json

Schema to confirm a retry payment using either a saved payment method or a new confirmation token.

confirmation_token_id
string | null

ID of the Stripe confirmation token for new payment methods.

payment_method_id
string<uuid4> | null

ID of an existing saved payment method.

payment_processor
enum<string>
default:stripe

Payment processor used.

Available options:
stripe

Response

Successful Response

Response after confirming a retry payment.

status
string
required

Payment status after confirmation.

client_secret
string | null

Client secret for handling additional actions.

error
string | null

Error message if confirmation failed.