Proposal History
Search proposal versions
The unique merchant proposal id
The page at which the proposal versions should be returned
0The maximum number of proposal versions to return
10Filters the history version by statusComment field. It can be "true" or "false"
application/jsonExample: application/jsonPossible values: Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"OK
The incoming page value
0The incoming limit value
10The total number of proposal versions matching the criterias
1GET /rest/6.0/proposals/{proposalId}/history?Page=0&Limit=10 HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: text
OK
{
"Versions": [
{
"ProposalId": "2c0a8b3a-54fe-4ff9-ac19-a48e49d90298",
"Name": "testName",
"SentBy": {
"FirstName": "Marcus",
"LastName": "Aurelius",
"Email": "marcus.aurelius@sharklasers.io"
},
"ExpirationDate": "2022-05-20T17:21:42+00:00",
"Version": 3,
"CreatedDate": "2020-06-26T11:35:04+00:00",
"UpdatedDate": "2020-06-26T11:35:13+00:00",
"CreatedBy": "john.doe@customer.com",
"UpdatedBy": "",
"Locked": false,
"Source": "MERCHANT_API",
"Type": "acquisition",
"Status": "accepted",
"StatusComment": "",
"Content": {
"Language": "ro",
"Currency": "ron",
"LineItems": [
{
"ProductName": "Antivirus",
"ProductCode": "FP10",
"Quantity": 2,
"Price": 54,
"DiscountedPrice": 50.6,
"PriceType": "gross",
"PriceOptions": [],
"AdditionalFields": [],
"ImmediateAction": "now",
"ContractPeriod": 0
}
],
"AdditionalFields": []
},
"BillTo": {
"Company": "Randcomp",
"Phone": "12172196850",
"Email": "y2hzhca4pc@groupbuff.com",
"Country": "US",
"City": "Carthage",
"State": "Illinois",
"Zip": "62321",
"Address": "1849 Cardinal Lane",
"FirstName": "Marcus",
"LastName": "Aurelius"
},
"SellTo": {
"Company": "Randcomp",
"VatCode": "85421564",
"Phone": "12172196850",
"Email": "y2hzhca4pc@groupbuff.com",
"Country": "US",
"City": "Carthage",
"State": "Illinois",
"Zip": "62321",
"Address": "1849 Cardinal Lane",
"FirstName": "Marcus",
"LastName": "Aurelius",
"taxExemptionId": ""
},
"Tac": {
"Content": "phase7",
"AcceptedDate": "2020-06-26T11:35:13+00:00"
},
"Links": [
{
"LinkId": "d6311c81-8f1a-4381-8d9d-fd6f12e3c0b7",
"Url": "https://proposal.2checkout.com/merchant-code/test/link-id/d6311c81-8f1a-4381-8d9d-fd6f12e3c0b7",
"Status": "sent"
},
{
"LinkId": "971be349-31f6-4177-ad7f-c78e61ec7702",
"Url": "https://proposal.2checkout.com/merchant-code/test/link-id/971be349-31f6-4177-ad7f-c78e61ec7702",
"Status": "accepted"
}
]
},
{
"ProposalId": "2c0a8b3a-54fe-4ff9-ac19-a48e49d90298",
"Name": "testName",
"SentBy": {
"FirstName": "Marcus",
"LastName": "Aurelius",
"Email": "marcus.aurelius@sharklasers.io"
},
"ExpirationDate": "2022-05-20T17:21:42+00:00",
"Version": 2,
"CreatedDate": "2020-06-26T11:35:04+00:00",
"UpdatedDate": "2020-06-26T11:35:13+00:00",
"CreatedBy": "john.doe@customer.com",
"UpdatedBy": "",
"Locked": false,
"Source": "MERCHANT_API",
"Type": "acquisition",
"Status": "accepted",
"StatusComment": "",
"Content": {
"Language": "ro",
"Currency": "ron",
"LineItems": [
{
"ProductName": "Antivirus",
"ProductCode": "FP10",
"Quantity": 2,
"Price": 54,
"DiscountedPrice": 50.6,
"PriceType": "gross",
"PriceOptions": [],
"AdditionalFields": [],
"ImmediateAction": "now",
"ContractPeriod": 0
}
],
"AdditionalFields": []
},
"BillTo": {
"Company": "Randcomp",
"Phone": "12172196850",
"Email": "y2hzhca4pc@groupbuff.com",
"Country": "US",
"City": "Carthage",
"State": "Illinois",
"Zip": "62321",
"Address": "1849 Cardinal Lane",
"FirstName": "Marcus",
"LastName": "Aurelius"
},
"SellTo": {
"Company": "Randcomp",
"VatCode": "85421564",
"Phone": "12172196850",
"Email": "y2hzhca4pc@groupbuff.com",
"Country": "US",
"City": "Carthage",
"State": "Illinois",
"Zip": "62321",
"Address": "1849 Cardinal Lane",
"FirstName": "Marcus",
"LastName": "Aurelius",
"taxExemptionId": ""
},
"Tac": {
"Content": "phase7",
"AcceptedDate": "2020-06-26T11:35:13+00:00"
},
"Links": [
{
"LinkId": "d6311c81-8f1a-4381-8d9d-fd6f12e3c0b7",
"Url": "https://proposal.2checkout.com/merchant-code/test/link-id/d6311c81-8f1a-4381-8d9d-fd6f12e3c0b7",
"Status": "sent"
},
{
"LinkId": "971be349-31f6-4177-ad7f-c78e61ec7702",
"Url": "https://proposal.2checkout.com/merchant-code/test/link-id/971be349-31f6-4177-ad7f-c78e61ec7702",
"Status": "accepted"
}
]
},
{
"ProposalId": "2c0a8b3a-54fe-4ff9-ac19-a48e49d90298",
"Name": "testName",
"SentBy": {
"FirstName": "Marcus",
"LastName": "Aurelius",
"Email": "marcus.aurelius@sharklasers.io"
},
"ExpirationDate": "2022-05-20T17:21:42+00:00",
"Version": 1,
"CreatedDate": "2020-06-26T11:35:04+00:00",
"UpdatedDate": "2020-06-26T11:35:13+00:00",
"CreatedBy": "john.doe@customer.com",
"UpdatedBy": "",
"Locked": false,
"Source": "MERCHANT_API",
"Type": "acquisition",
"Status": "accepted",
"StatusComment": "",
"Content": {
"Language": "ro",
"Currency": "ron",
"LineItems": [
{
"ProductName": "Antivirus",
"ProductCode": "FP10",
"Quantity": 2,
"Price": 54,
"DiscountedPrice": 50.6,
"PriceType": "gross",
"PriceOptions": [],
"AdditionalFields": [],
"ImmediateAction": "now",
"ContractPeriod": 0
}
],
"AdditionalFields": []
},
"BillTo": {
"Company": "Randcomp",
"Phone": "12172196850",
"Email": "y2hzhca4pc@groupbuff.com",
"Country": "US",
"City": "Carthage",
"State": "Illinois",
"Zip": "62321",
"Address": "1849 Cardinal Lane",
"FirstName": "Marcus",
"LastName": "Aurelius"
},
"SellTo": {
"Company": "Randcomp",
"VatCode": "85421564",
"Phone": "12172196850",
"Email": "y2hzhca4pc@groupbuff.com",
"Country": "US",
"City": "Carthage",
"State": "Illinois",
"Zip": "62321",
"Address": "1849 Cardinal Lane",
"FirstName": "Marcus",
"LastName": "Aurelius",
"taxExemptionId": ""
},
"Tac": {
"Content": "phase7",
"AcceptedDate": "2020-06-26T11:35:13+00:00"
},
"Links": [
{
"LinkId": "d6311c81-8f1a-4381-8d9d-fd6f12e3c0b7",
"Url": "https://proposal.2checkout.com/merchant-code/test/link-id/d6311c81-8f1a-4381-8d9d-fd6f12e3c0b7",
"Status": "sent"
},
{
"LinkId": "971be349-31f6-4177-ad7f-c78e61ec7702",
"Url": "https://proposal.2checkout.com/merchant-code/test/link-id/971be349-31f6-4177-ad7f-c78e61ec7702",
"Status": "accepted"
}
]
}
],
"Page": 1,
"Limit": 100,
"Count": 3,
"PagesCount": 1
}Retrieve a proposal version
The unique merchant proposal id
The proposal version
application/jsonExample: application/jsonPossible values: Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"OK
The unique merchant proposal id
FDG123The version of the proposal. Every modification increments the version by 1.
1The UTC creation date for the proposal in ISO 8601 format
2020-01-05T17:21:42ZThe UTC last update date for the proposal in ISO 8601 format
2020-01-05T17:21:42ZThe unique external system user identifier
john.doe@customer.comThe unique external system user identifier
john.doe@customer.comIf the proposal is locked for buy modifications
falseThe source from where the proposal was created
SALESFORCE_CPQThe name of the proposal
Renewal of antivirusThe type of the proposal
acquisitionExample: acquisitionPossible values: The status of the proposal
openedPossible values: The UTC expiration date for the proposal in ISO 8601 format. Set only when the status is changed to "sent".
2020-01-05T17:21:42ZThe associated comment for the status
The price is too high for the first productBad Request
Unauthorized
Not Found
Internal Server Error
GET /rest/6.0/proposals/{proposalId}/history/{versionNumber} HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: text
[
{
"ProposalId": "2c0a8b3a-54fe-4ff9-ac19-a48e49d90298",
"Name": "testName",
"SentBy": {
"FirstName": "Marcus",
"LastName": "Aurelius",
"Email": "marcus.aurelius@sharklasers.io"
},
"ExpirationDate": "2022-05-20T17:21:42+00:00",
"Version": 3,
"CreatedDate": "2020-06-26T11:35:04+00:00",
"UpdatedDate": "2020-06-26T11:35:13+00:00",
"CreatedBy": "john.doe@customer.com",
"UpdatedBy": "",
"Locked": false,
"Source": "MERCHANT_API",
"Type": "acquisition",
"Status": "accepted",
"StatusComment": "",
"Content": {
"Language": "ro",
"Currency": "ron",
"LineItems": [
{
"ProductName": "Antivirus",
"ProductCode": "FP10",
"Quantity": 2,
"Price": 54,
"DiscountedPrice": 50.6,
"PriceType": "gross",
"PriceOptions": [],
"AdditionalFields": [],
"ImmediateAction": "now",
"ContractPeriod": 0
}
],
"AdditionalFields": []
},
"BillTo": {
"Company": "Randcomp",
"Phone": "12172196850",
"Email": "y2hzhca4pc@groupbuff.com",
"Country": "US",
"City": "Carthage",
"State": "Illinois",
"Zip": "62321",
"Address": "1849 Cardinal Lane",
"FirstName": "Marcus",
"LastName": "Aurelius"
},
"SellTo": {
"Company": "Randcomp",
"VatCode": "85421564",
"Phone": "12172196850",
"Email": "y2hzhca4pc@groupbuff.com",
"Country": "US",
"City": "Carthage",
"State": "Illinois",
"Zip": "62321",
"Address": "1849 Cardinal Lane",
"FirstName": "Marcus",
"LastName": "Aurelius",
"taxExemptionId": ""
},
"Tac": {
"Content": "phase7",
"AcceptedDate": "2020-06-26T11:35:13+00:00"
},
"Links": [
{
"LinkId": "d6311c81-8f1a-4381-8d9d-fd6f12e3c0b7",
"Url": "https://proposal.2checkout.com/merchant-code/test/link-id/d6311c81-8f1a-4381-8d9d-fd6f12e3c0b7",
"Status": "sent"
},
{
"LinkId": "971be349-31f6-4177-ad7f-c78e61ec7702",
"Url": "https://proposal.2checkout.com/merchant-code/test/link-id/971be349-31f6-4177-ad7f-c78e61ec7702",
"Status": "accepted"
}
]
}
]Last updated
Was this helpful?