# OrderIntentAction

> The `OrderIntentAction` object.

Source: https://docs.gastrogate.io/docs/api/types/OrderIntentAction

**Kind:** Objects

## Fields

### `type`

[`OrderIntentActionType`](https://docs.gastrogate.io/docs/api/types/OrderIntentActionType.md)

### `url`

[`String`](https://docs.gastrogate.io/docs/api/types/String.md)

### `statusUrl`

[`String`](https://docs.gastrogate.io/docs/api/types/String.md)

For type "OpenSwish" and "UseIntegratedTerminal" this is an url which will give the current status of the payment request.

When receiving a HTTP GET request, the response will contain a JSON document with a single field "status", which can have one of the following values:

- 'CANCELED'
- 'CREATED'
- 'DECLINED'
- 'ERROR'
- 'PAID'

### `qrCodeValue`

[`String`](https://docs.gastrogate.io/docs/api/types/String.md)

For type "OpenSwish" this is the value of the QR code to display to the end user.

## How to get it

This type is returned by:

- [`OrderIntent.action`](https://docs.gastrogate.io/docs/api/types/OrderIntent.md#action) (field on [`OrderIntent`](https://docs.gastrogate.io/docs/api/types/OrderIntent.md))
