Some content on this site may not be available right now. We are aware and actively monitoring the situation.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Retrieve proposal by ID

Use the getProposalById method via SOAP APIv6 to retrieve a proposal/quote using a specific ID.

Request parameters

Parameters
Type
Required/Optional
Description

proposalId

String

Required

The unique merchant proposal ID generated by the 2Checkout system.

sessionId

String

Required

Unique 2Checkout session ID code.

Request sample

<?php

require ('PATH_TO_AUTH');

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

try {
    $result = $soapClient->getProposalById($sessionID, $proposalID);
    echo "Proposal: </br>",
    var_dump($result);
}
catch (SoapFault $e) {
    echo "Could not fetch proposal: " . $e->getMessage();
    exit;
}

Response

The getProposalById call via SOAP APIv6 returns the Proposal object.

Last updated

Was this helpful?