Pricing Configuration
Overview
Extract information on the pricing configurations you set for a product.
The editable code that you control at product-level, not the unique, system-generated product ID
my_subscription_1application/jsonExample: application/jsonPossible values: Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"OK
GET /rest/6.0/products/{ProductCode}/pricingconfigurations/ HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
OK
[
{
"BillingCountries": [],
"Code": "54DCBC3DC8",
"Default": true,
"DefaultCurrency": "USD",
"Name": "2Checkout Subscription's Price Configuration",
"PriceOptions": [
{
"Code": "SUPPORT",
"Required": true,
"CustomImpactOnPrice": false
},
{
"Code": "USERS",
"Required": true,
"CustomImpactOnPrice": false
},
{
"Code": "BACKUP",
"Required": false,
"CustomImpactOnPrice": false
}
],
"PriceType": "NET",
"Prices": {
"Regular": [
{
"Amount": 99,
"Currency": "USD",
"MaxQuantity": "99999",
"MinQuantity": "1",
"OptionCodes": []
},
{
"Amount": 0,
"Currency": "EUR",
"MaxQuantity": "99999",
"MinQuantity": "1",
"OptionCodes": []
}
],
"Renewal": []
},
"PricingSchema": "DYNAMIC"
}
]Overview
Add a pricing configuration for a product.
The editable code that you control at product-level, not the unique, system-generated product ID
my_subscription_1Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"application/jsonPossible values: OK
No content
POST /rest/6.0/products/{ProductCode}/pricingconfigurations/ HTTP/1.1
Host: api.2checkout.com
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Accept: application/json
Content-Type: application/json
Content-Length: 575
{
"BillingCountries": [],
"Default": true,
"DefaultCurrency": "USD",
"Name": "2Checkout Subscription's Price Configuration",
"PriceOptions": [
{
"Code": "SUPPORT",
"Required": true,
"CustomImpactOnPrice": false
},
{
"Code": "USERS",
"Required": true,
"CustomImpactOnPrice": false
},
{
"Code": "BACKUP",
"Required": false,
"CustomImpactOnPrice": false
}
],
"PriceType": "NET",
"Prices": {
"Regular": [
{
"Amount": 99,
"Currency": "USD",
"MaxQuantity": "99999",
"MinQuantity": "1",
"OptionCodes": []
},
{
"Amount": 0,
"Currency": "EUR",
"MaxQuantity": "99999",
"MinQuantity": "1",
"OptionCodes": []
}
],
"Renewal": []
},
"PricingSchema": "DYNAMIC"
}OK
No content
Overview
Extract information on a specific pricing configuration for a product.
The editable code that you control at product-level, not the unique, system-generated product ID.
my_subscription_1System-generated identifier. Read-only.
54DCBC3DC8application/jsonExample: application/jsonPossible values: Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"OK
GET /rest/6.0/products/{ProductCode}/pricingconfigurations/{Code}/ HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
OK
{
"BillingCountries": [],
"Code": "54DCBC3DC8",
"Default": true,
"UseOriginalPrices": false,
"DefaultCurrency": "USD",
"Name": "2Checkout Subscription's Price Configuration",
"PriceOptions": [
{
"Code": "SUPPORT",
"Required": true,
"CustomImpactOnPrice": false
},
{
"Code": "USERS",
"Required": true,
"CustomImpactOnPrice": false
},
{
"Code": "BACKUP",
"Required": false,
"CustomImpactOnPrice": false
}
],
"PriceType": "NET",
"Prices": {
"Regular": [
{
"Amount": 99,
"Currency": "USD",
"MaxQuantity": "99999",
"MinQuantity": "1",
"OptionCodes": []
},
{
"Amount": 0,
"Currency": "EUR",
"MaxQuantity": "99999",
"MinQuantity": "1",
"OptionCodes": []
}
],
"Renewal": []
},
"PricingSchema": "DYNAMIC"
}Overview
Update a pricing configuration for a product.
The editable code that you control at product-level, not the unique, system-generated product ID.
my_subscription_1System-generated identifier. Match the similar parameter in the Body of the request. Read-only.
54DCBC3DC8Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"application/jsonPossible values: OK
No content
PUT /rest/6.0/products/{ProductCode}/pricingconfigurations/{Code}/ HTTP/1.1
Host: api.2checkout.com
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Accept: application/json
Content-Type: application/json
Content-Length: 621
{
"BillingCountries": [],
"Code": "54DCBC3DC8",
"UseOriginalPrices": false,
"Default": true,
"DefaultCurrency": "USD",
"Name": "2Checkout Subscription's Price Configuration",
"PriceOptions": [
{
"Code": "SUPPORT",
"Required": true,
"CustomImpactOnPrice": false
},
{
"Code": "USERS",
"Required": true,
"CustomImpactOnPrice": false
},
{
"Code": "BACKUP",
"Required": false,
"CustomImpactOnPrice": false
}
],
"PriceType": "NET",
"Prices": {
"Regular": [
{
"Amount": 99,
"Currency": "USD",
"MaxQuantity": "99999",
"MinQuantity": "1",
"OptionCodes": []
},
{
"Amount": 0,
"Currency": "EUR",
"MaxQuantity": "99999",
"MinQuantity": "1",
"OptionCodes": []
}
],
"Renewal": []
},
"PricingSchema": "DYNAMIC"
}OK
No content
Get the prices from a pricing configuration by code
application/jsonExample: application/jsonPossible values: Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"true
No content
Bad Request
PUT /rest/6.0/products/{ProductCode}/pricingconfigurations/{PricingConfigurationCode}/prices HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Content-Type: application/json
Content-Length: 172
{
"Prices": [
{
"Amount": 100,
"Currency": "USD"
}
],
"Quantities": {
"MinQuantity": 10,
"MaxQuantity": 100
},
"PriceOptions": [
{
"Code": "x9g7asaj",
"Required": true,
"Options": [
"x9g7asaj4f"
]
}
]
}No content
Note For the PayPerUsage type, Required parameter can be only false. For any other usage type, the Required parameter it can be either false or true.
Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"application/jsonPossible values: OK
Bad Request
POST /rest/6.0/products/{ProductCode}/pricingconfigurations/{PricingConfigurationCode}/priceoptions/{PriceOptionCode}/ HTTP/1.1
Host: api.2checkout.com
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Accept: application/json
Content-Type: application/json
Content-Length: 17
{
"Required": true
}trueAuthentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"application/jsonPossible values: OK
Bad Request
DELETE /rest/6.0/products/{ProductCode}/pricingconfigurations/{PricingConfigurationCode}/priceoptions/{PriceOptionCode}/ HTTP/1.1
Host: api.2checkout.com
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Accept: application/json
trueOverview Retrieve a product's SKU code by details. At least one of the optional parameters should be provided, no matter which of them.
Product code. Is used to build a link to product sku resource. This link is returned in request response. Is not used to identifie product sku.
Pricing configuration's code
SKU's currency code
Type of purchase
Price option codes, delimited by comma
Quantity
application/jsonExample: application/jsonPossible values: Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"Success
GET /rest/6.0/products/{ProductCode}/pricingconfigurations/{Code}/sku/match/ HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Success
{
"Resource": "SKU",
"Identifier": "FD98FDE"
}Overview Retrieve a product's SKU details.
Product code
Pricing configuration's code
SKU's code
application/jsonExample: application/jsonPossible values: Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"Success
GET /rest/6.0/products/{ProductCode}/pricingconfigurations/{PricingConfigurationCode}/sku/{SKUCode}/ HTTP/1.1
Host: api.2checkout.com
Accept: application/json
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Success
{
"PricingConfigurationCode": "DFERIRS",
"ProductCode": "FESOWUE",
"Currency": "RON",
"PriceOptions": [
"548AF4D024",
"548AF4D025"
],
"PurchaseType": "PRODUCT",
"FromQuantity": 5,
"ToQuantity": 15
}Last updated
Was this helpful?