Confirm a hosted surcharge quote
POST/api/invoices/hosted/quote/confirm
Charges the card from a surcharge quote for exactly the quoted total. Returns 200 with status: "success" when the card is approved, or 400 with a reasonCode: a number for a processor decline, or "QUOTE_CHANGED" when the surcharge the rules give has changed since the quote (nothing is charged; quote again). An expired or already-used quote answers 400. A 503 carries a reasonCode too: "NOT_CHARGED" when a read or the publish failed before any charge (nothing was charged; confirm again, or quote again if that reports the quote expired), "OUTCOME_UNKNOWN" when the outcome could not be read after the charge was submitted. The card is deleted after the charge unless savePaymentMethod is true. The invoice token is the auth.
Request
Responses
- 200
- 400
- 401
- 404
- 503
200
400
401
404
503