createHostedCheckoutSession
Creates a hosted checkout session
This page contains
Arguments
| input CreateHostedCheckoutSessionInput! PREVIEW |
CreateHostedCheckoutSessionInput fields
| returnUrl URL! | URL to redirect the buyer after checkout |
| buyer HostedCheckoutBuyerInput! PREVIEW | Buyer for the hosted checkout session |
| items [HostedCheckoutSessionItemInput!]! PREVIEW | List of items to include in the session |
| currency Currency | Currency for all items in the session |
Return Fields
| session HostedCheckoutSession PREVIEW | Created hosted checkout session |
| userErrors [HostedCheckoutSessionError!]! PREVIEW | Errors encountered during session creation |
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.