POST /api/public/v1/purchase/confirmBusinessRegion
Changed onConfirms the country of the caller's live purchase's confirmed business. A business with no country gets it written; the same country is confirmed without a write; a different one is refused with PRECONDITION_FAILED as businessRegionMismatch and left to the business details, and a country purchases are not sold in (outside purchaseRegionIds, whatever the deployment enables) is refused as businessRegionNotSold, writing nothing. Refused with PRECONDITION_FAILED as organizationUnconfirmed, organizationNotEligible, purchaseIntentClosed or selectionChanged when the purchase moved meanwhile; an optional selectionVersion other than the purchase's is refused as selectionChanged before any Stripe call or write. A purchase frozen for a hosted Checkout is refused checkoutInProgress, unless its business has since moved to another country than the one confirmed and the requested country is that business's own country and one purchases are sold in, all checked before any Stripe call (a different country is refused businessRegionMismatch, and one purchases are not sold in businessRegionNotSold, with the session left open): then every session the purchase opened is closed first, by the rules of purchase.cancel, and refused as checkoutInProgress while an attempt is reserved or unknown, checkoutPaymentPending while a paid session is still being settled, checkoutAlreadyPaid once that business's subscription stands, and checkoutCheckFailed when Stripe cannot confirm a session closed; once all are closed the freeze is released, or refused as checkoutInProgress when another attempt appeared meanwhile or selectionChanged when the freeze moved, and the country is confirmed on the same purchase.
Request
- Base URLhttps://app.fortuneos.ai
- Authnone declared
Request body
Response
OK
Changes
- info
added the new optional request property
selectionVersion
- info
- info
endpoint added
- info