> For the complete documentation index, see [llms.txt](https://docs.2checkout.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.2checkout.com/soap-api-reference/soap-api-6.0/api-requests/proposal-microservice/perform-action.md).

# Perform action

Use the **performAction** method via SOAP APIv6 to execute an action on the proposal.

## Request parameters

| Action  | Parameter       | Type / Description                                                                                              |
| ------- | --------------- | --------------------------------------------------------------------------------------------------------------- |
|         | `sessionId`     | <p><strong>Required (string)</strong><br>Unique 2Checkout session ID code.</p>                                  |
| SEND    | `proposalId`    | <p><strong>Required (string)</strong><br>The unique merchant proposal ID generated by the 2Checkout system.</p> |
|         | `exirationDate` | <p><strong>Required (date)</strong><br>The date at which the proposal expires; date-time ISO 8601 format.</p>   |
|         | `userId`        | <p><strong>Optional (string)</strong><br>The unique user ID generated by the 2Checkout system.</p>              |
|         | `action`        | <p><strong>Required (string)</strong><br>The action to be executed on the proposal.</p>                         |
|         | `statusComment` | <p><strong>Optional (string)</strong><br>Free text comments that can accompany a status.</p>                    |
|         | `sentBy`        | <p><strong>Required (string)</strong><br>Represents the account manager of the merchant.</p>                    |
|         | `FirstName`     | <p><strong>Required (string)</strong><br>The first name of the email sender.</p>                                |
|         | `LastName`      | <p><strong>Required (string)</strong><br>The last name of the email sender.</p>                                 |
|         | `Email`         | <p><strong>Required (string)</strong><br>The email address of the email sender.</p>                             |
| ACCEPT  | `action`        | <p><strong>Required (string)</strong><br>The action to be executed on the proposal.</p>                         |
|         | `statusComment` | <p><strong>Optional (string)</strong><br>Free text comments that can accompany a status.</p>                    |
| CLOSE   | `action`        | <p><strong>Required(string)</strong><br>The action to be executed on the proposal.</p>                          |
|         | `statusComment` | <p><strong>Optional (string)</strong><br>Free text comments that can accompany a status.</p>                    |
|         | `userId`        | <p><strong>Optional (string)</strong><br>The unique user ID generated by the 2Checkout system.</p>              |
| DISCARD | `action`        | <p><strong>Required (string)</strong><br>The action to be executed on the proposal.</p>                         |
|         | `statusComment` | <p><strong>Optional (string)</strong><br>Free text comments that can accompany a status.</p>                    |
|         | `userId`        | <p><strong>Optional (string)</strong><br>The unique user ID generated by the 2Checkout system.</p>              |
| REOPEN  | `action`        | <p><strong>Required (string)</strong><br>The action to be executed on the proposal.</p>                         |
|         | `statusComment` | <p><strong>Optional (string)</strong><br>Free text comments that can accompany a status.</p>                    |
|         | `userId`        | <p><strong>Optional (string)</strong><br>The unique user ID generated by the 2Checkout system.</p>              |
| DECLINE | `action`        | <p><strong>Required (string)</strong><br>The action to be executed on the proposal.</p>                         |
|         | `statusComment` | <p><strong>Optional (string)</strong><br>Free text comments that can accompany a status.</p>                    |

### Request sample

```php
<?php

require ('PATH_TO_AUTH');

$proposalId = "0573e71d-38bb-4d61-88ca-b3c557517c68";

$actionPayload = new stdClass();
$actionPayload->ExpirationDate = "2021-01-05T17:21:42+00:00";
$actionPayload->UserId = "john.doe@email.com";
$actionPayload->action = "decline";
$actionPayload->StatusComment = "The price is too high for the first product";
$actionPayload->SentBy = new stdClass();
$actionPayload->SentBy->FirstName = "John";
$actionPayload->SentBy->LastName = "Doe";
$actionPayload->SentBy->Email = "john.doe@email.com";

try {
    $results = $soapClient->performAction($sessionID, $proposalId , $actionPayload);
    echo "Performing action: </br>",
    var_dump($results);
}
catch (SoapFault $e) {
    echo "Could not perform action: " . $e->getMessage();
    exit;
}
```

## Response

The **performAction** call via SOAP APIv6 returns the [Proposal object](https://docs.2checkout.com/soap-api-reference/soap-api-6.0/api-requests/proposal-microservice.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.2checkout.com/soap-api-reference/soap-api-6.0/api-requests/proposal-microservice/perform-action.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
