Create XGR purchase order
create_xgr_purchase_orderUse when the user specifies an exact integer amount_xgr. Call get_xgr_purchase_options first, use payment_assets[].key, collect user-supplied identity and wallet fields, require explicit terms acceptance, and create one live reservation. Pay only from the returned payment_instruction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Purchaser name supplied by the user. Do not invent it. | |
| Yes | Purchaser email supplied by the user. Do not invent it. | ||
| amount_xgr | Yes | Exact integer XGR amount requested by the user. | |
| xgr_wallet | Yes | User-controlled XGRChain wallet that will receive the purchased XGR. | |
| country_code | Yes | Two-letter uppercase country code supplied by the user, for example DE. | |
| payment_asset | Yes | Exact payment_assets[].key returned by get_xgr_purchase_options, for example usdc_eth. Do not use the display symbol. | |
| sender_wallet | No | User-controlled wallet that will send the stablecoin payment on the listed payment chain. Required when the selected payment asset has requires_sender_wallet=true. | |
| terms_accepted | Yes | Set to true only after the user explicitly accepts the purchase terms. Never infer or invent acceptance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Structured result data returned by the XGR MCP gateway. |