API Migration Guide
Overview
Use this guide to prepare and migrate your 2Checkout API implementation from version 1.0 to 3.0. This document features deprecations, updates and enhancements, providing guidance on how to upgrade your implementation to the latest version of the 2Checkout API.
API 1.0 discontinuation
2Checkout plans to discontinue API 1.0 as of the end of February 2017. The end-of-support date implies ceasing all development of bug fixes and patches for API 1.0.
API 3.0 availability
Version 3.0 of the 2Checkout API is available as of June 2016, following an extensive public testing phase started in November 2015. 2Checkout recommends that you migrate to the latest version of the API (v3.0) to enjoy support for your implementation.
API 3.0 updates and benefits
- Full REST support for existing platform functionalities in addition to SOAP and JSON-RPC.
- Simplify interactions with single-entry point (one endpoint, one client, single-authentication).
- Centralized all previous functionality under 3.0 (plus new capabilities).
-
Unified WSDL for Order, Subscription, and Product scenarios.
Serializations 1.0 vs. 3.0
Single API URL per serialization format
- https://api.avangate.com/rpc/3.0/
- https://api.avangate.com/soap/3.0/
- https://api.avangate.com/rest/3.0/
- https://api.avangate.com/3.0/ redirects to https://api.avangate.com/rest/3.0/ by default
WSDL 1.0 vs. 3.0
When you migrate from API 1.0 to 3.0, stop using https://secure.2checkout.com/api/merchant/?wsdl in favor of https://api.2checkout.com/soap/3.0/?wsdl.
Methods 1.0 vs. 3.0
API 1.0 |
Status |
API 3.0 equivalent |
---|---|---|
addLicense |
Updated. Use: |
|
addProduct |
Deprecated |
N/A. The placeOrder scenario now requires a single method. |
clearProducts |
Deprecated |
N/A. The placeOrder scenario now requires a single method. |
deleteProduct |
Deprecated |
N/A. The placeOrder scenario now requires a single method. |
disableLicense |
Updated. Use: |
|
disableLicenseRecurring |
Updated. Use: |
|
enableLicense |
Updated. Use: |
|
enableLicenseRecurring |
Updated. Use: |
|
extendLicense |
Updated. Use: |
|
getAvailableCountries |
Updated. Use: |
getAvailableCountries |
getAvailableCurrencies |
Updated. Use: |
getAvailableCurrencies |
getAvailableLanguages |
Updated. Use: |
getAvailableLanguages |
getContents |
Updated. Use: |
|
getInvoice |
Updated. Use: |
|
getLicense |
Updated. Use: |
|
getLicensePaymentDetails |
Updated. Use: |
getPaymentInformation |
getLicenseProductUpgradeOptions |
Updated. Use: |
|
getNextRenewalPrice |
Updated. Use: |
|
getOrder |
Updated. Use: |
|
getOrderStatus |
Updated. Use: |
|
getPrice |
Updated. Use: |
|
getProductByCode |
Updated. Use: |
|
getProductById |
Updated. Use: |
|
getProductUpgradeOptionsPrice |
Updated. Use: |
|
getRenewalPrice |
Updated. Use: |
|
getSingleSignOn |
Updated. Use: |
|
getTimezone |
Updated. Use: |
|
isValidOrderReference |
Updated. Use: |
|
login |
Updated. Use: |
|
placeOrder |
Updated. Use: |
|
renewLicense |
Updated. Use: |
|
searchLicense |
Updated. Use: |
|
searchProducts |
Updated. Use: |
|
setBillingDetails |
Deprecated. |
N/A. The placeOrder scenario now requires a single method. |
setClientIP |
Deprecated. |
N/A. The placeOrder scenario now requires a single method. |
setCountry |
Deprecated. |
N/A. The placeOrder scenario now requires a single method. |
setCurrency |
Deprecated. |
N/A. The placeOrder scenario now requires a single method. |
setCustomer |
Deprecated. |
N/A. The placeOrder scenario now requires a single method. |
setCustomRenewalPrice |
Updated. Use: |
|
setDeliveryDetails |
Deprecated. |
N/A. The placeOrder scenario now requires a single method. |
setExternalRef |
Deprecated. |
N/A. The placeOrder scenario now requires a single method. |
setLanguage |
Deprecated. |
N/A. The placeOrder scenario now requires a single method. |
setLicenseEmailSubscription |
Updated. Use: |
|
setLicenseUpgrade |
Updated. Use: |
|
setPaymentDetails |
Deprecated. |
N/A. The placeOrder scenario now requires a single method. |
setSource |
Deprecated. |
N/A. The placeOrder scenario now requires a single method. |
setStaticPrice |
Deprecated. |
N/A. The placeOrder scenario now requires a single method. |
updateLicense |
Updated. Use: |
|
updateLicenseCustomer |
Updated. Use: |
New use cases API 3.0