Pricing configuration

Retrieve pricing configurations

get

Overview

Extract information on the pricing configurations you set for a product.

Path parameters
ProductCodestringRequired

The editable code that you control at product-level, not the unique, system-generated product ID

Example: my_subscription_1
Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
200

OK

application/json
get
/products/{ProductCode}/pricingconfigurations
200

OK

Add a pricing configuration

post

Overview

Add a pricing configuration for a product.

Path parameters
ProductCodestringRequired

The editable code that you control at product-level, not the unique, system-generated product ID

Example: my_subscription_1
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Body
DefaultbooleanOptional
DefaultCurrencystringOptional
NamestringOptional
PriceTypestringOptional
PricingSchemastringOptional
Responses
200

OK

No content

post
/products/{ProductCode}/pricingconfigurations
200

OK

No content

Retrieve a pricing configuration

get

Overview

Extract information on a specific pricing configuration for a product.

Path parameters
ProductCodestringRequired

The editable code that you control at product-level, not the unique, system-generated product ID.

Example: my_subscription_1
CodestringRequired

System-generated identifier. Read-only.

Example: 54DCBC3DC8
Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
200

OK

application/json
get
/products/{ProductCode}/pricingconfigurations/{Code}
200

OK

Update a pricing configuration

put

Overview

Update a pricing configuration for a product.

Path parameters
ProductCodestringRequired

The editable code that you control at product-level, not the unique, system-generated product ID.

Example: my_subscription_1
CodestringRequired

System-generated identifier. Match the similar parameter in the Body of the request. Read-only.

Example: 54DCBC3DC8
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Body
UseOriginalPricesbooleanOptional
CodestringOptional
DefaultbooleanOptional
DefaultCurrencystringOptional
NamestringOptional
PriceTypestringOptional
PricingSchemastringOptional
Responses
200

OK

No content

put
/products/{ProductCode}/pricingconfigurations/{Code}
200

OK

No content

Update a pricing configuration prices

put

Get the prices from a pricing configuration by code

Path parameters
ProductCodestringRequired
PricingConfigurationCodestringRequired
Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Body
Responses
200

true

No content

put
/products/{ProductCode}/pricingconfigurations/{PricingConfigurationCode}/prices

No content

Assign price option to pricing configuration

post

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.

Path parameters
ProductCodestringRequired
PricingConfigurationCodestringRequired
PriceOptionCodestringRequired
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Body
RequiredbooleanRequired
Responses
200

OK

application/json
booleanOptional
post
/products/{ProductCode}/pricingconfigurations/{PricingConfigurationCode}/priceoptions/{PriceOptionCode}

Unassign price option from pricing configuration

delete
Path parameters
ProductCodestringRequired
PricingConfigurationCodestringRequired
PriceOptionCodestringRequired
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Responses
200

OK

application/json
booleanOptional
delete
/products/{ProductCode}/pricingconfigurations/{PricingConfigurationCode}/priceoptions/{PriceOptionCode}

Retrieve SKU code by details

get

Overview Retrieve a product's SKU code by details. At least one of the optional parameters should be provided, no matter which of them.

Path parameters
ProductCodestringRequired

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.

CodestringRequired

Pricing configuration's code

Query parameters
CurrencystringOptional

SKU's currency code

PurchaseTypestringOptional

Type of purchase

PriceOptionsstringOptional

Price option codes, delimited by comma

QuantitynumberOptional

Quantity

Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
200

Success

application/json
get
/products/{ProductCode}/pricingconfigurations/{Code}/sku/match
200

Success

Retrieve SKU details

get

Overview Retrieve a product's SKU details.

Path parameters
ProductCodestringRequired

Product code

PricingConfigurationCodestringRequired

Pricing configuration's code

SKUCodestringRequired

SKU's code

Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
200

Success

application/json
get
/products/{ProductCode}/pricingconfigurations/{PricingConfigurationCode}/sku/{SKUCode}
200

Success

Last updated

Was this helpful?