# `Get_Intention` request class

[ℹ️ This document is a part of __WooCommerce Payments Server Requests__](../README.md)

## Description

The `WCPay\Core\Server\Request\Get_Intention` class is used to construct the request for retrieving an intention.

## Parameters

When creating `Get_Intention` requests, the item ID must be provided to the `::create()` method. The identifier should be in the `pi_XXX` format.
There are no additional parameters for this request.

## Filter

When using this request, provide the following filter and arguments:

- Name: `wcpay_get_intent_request`
- Arguments: `WC_Order $order`

## Example:

```php
$request = Get_Intention::create( $id );
$request->set_hook_args( $order )
$request->send();
```
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//www.avanatour.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>http://www.avanatour.com/post-sitemap.xml</loc>
		<lastmod>2025-09-25T03:14:01+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>http://www.avanatour.com/page-sitemap.xml</loc>
		<lastmod>2025-02-10T06:34:07+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>http://www.avanatour.com/category-sitemap.xml</loc>
		<lastmod>2025-09-25T03:14:01+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>http://www.avanatour.com/post_tag-sitemap.xml</loc>
		<lastmod>2024-12-18T22:18:45+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>http://www.avanatour.com/author-sitemap.xml</loc>
		<lastmod>2024-06-28T08:43:06+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->