Start a hosted checkout
Creates a checkout and sends the payer to it. Submit it as an HTML form post from the payer’s browser, which follows the redirect. Or send it as JSON from your server without following redirects, and send the payer to the Location it returns. The answer is always a 303 redirect, never a JSON body: to the checkout page or to a failure address.
Each request creates a new checkout. Its link works until it is paid or expires_at passes, whichever comes first.
Body
Starts a hosted checkout. In a form post, nest fields with brackets: items[0][id], items[0][amount], metadata[account].
Response
Always a redirect. On success, to the checkout page. On failure, to cancel_url with HostedCheckoutFailedResult parameters, or to the GroGov error page with ?code=<HostedCheckoutErrorCode> when there is no usable cancel_url.