Product

Retrieve product info

get

Extract information about the products you configured for your account.

Query parameters
NamestringOptional

Product name. Can be NULL.

Example: Subscription
TypesstringOptional

Array of the values representing the type of products. Possible values: REGULAR or BUNDLE. Leave empty to have all product types returned to the search.Can be NULL. If NULL, 2Checkout returns both regular and bundle products.

Example: REGULAR
EnabledbooleanOptional

True or false. Can be NULL.

Example: true
ReviewStatusbooleanOptional

Can be 'Does not exist', 'Pending', 'In Review', 'Passed' or 'Rejected'.

Example: Passed
GroupNamestringOptional

The name of the group that the product is associated with. Can be NULL.

Example: General
LimitnumberOptional

Number of results (products) displayed per page. Default value is 10. Can be NULL.

Example: 10
PagenumberOptional

A specific page of search results. Default value is 1. Can be NULL.

Example: 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
AvangateIdinteger · nullableOptional

Unique, system-generated product ID (read-only)

ProductCodestringOptional

The unique product code you can define for each of your offerings

ExternalReferencestringOptional

External reference set when defining the product

ProductTypestring · enumOptional

The type of the product (REGULAR or BUNDLE)

Default: REGULARPossible values:
ProductNamestringOptional

The name of the product

ProductVersionstringOptional

The product version number

PurchaseMultipleUnitsbooleanOptional

Customers can purchase multiple units (when set TRUE) or only one unit (when set FALSE) of this product

Default: true
GiftOptionbooleanOptional

True or false depending on whether the product can be gifted or not

Default: false
ShortDescriptionstringOptional

Product's short description

Default: ""
LongDescriptionstringOptional

Product's long description

Default: ""
SystemRequirementsstringOptional

System requirements

Default: ""
ProductCategoryone ofOptional

Product's category name

stringOptional
or
booleanOptionalDefault: false
TrialUrlstringOptional

The URL where shoppers can download trial software from

Default: ""
TrialDescriptionstringOptional

Descriptive text entered for trials

Default: ""
TangiblebooleanOptional

TRUE - for physical products, FALSE - for digital products

EnabledbooleanOptional

True/false depending on whether the products are active or disabled

Default: false
ReviewProductUrlbooleanOptional

The URL where the product can be reviewed before approval. Required if the "Enabled" property is sent as TRUE and the product needs to be reviewed by our internal teams before activation.

Default: ""
ReviewAdditionalDetailsbooleanOptional

Additional information can be added to access the review of the product. Parameter is optional.

Default: ""
Fulfillmentstring · enumOptional

Possible values BY_AVANGATE, BY_VENDOR, NO_DELIVERY

Possible values:
GeneratesSubscriptionbooleanOptional

TRUE or FALSE depending on whether you set the product to generate subscriptions or not

Default: false
get
/products/

Add a product

post

Use the Product object to create/add, update/edit and retrieve products for your account. You cannot set a group name when creating a new product. You can control:

  • Product information

  • Pricing

  • Subscription plan settings and renewal configuration

  • Subscription plan recurring billing

  • Fulfillment

  • Shipping classes

  • Localization

Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

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

Unique, system-generated product ID (read-only)

ProductCodestringRequired

The unique product code you can define for each of your offerings

ExternalReferencestringOptional

External reference set when defining the product

ProductTypestring · enumOptional

The type of the product (REGULAR or BUNDLE)

Default: REGULARPossible values:
ProductNamestringRequired

The name of the product

ProductVersionstringOptional

The product version number

PurchaseMultipleUnitsbooleanOptional

Customers can purchase multiple units (when set TRUE) or only one unit (when set FALSE) of this product

Default: true
GiftOptionbooleanOptional

True or false depending on whether the product can be gifted or not

Default: false
ShortDescriptionstringOptional

Product's short description

Default: ""
LongDescriptionstringOptional

Product's long description

Default: ""
SystemRequirementsstringOptional

System requirements

Default: ""
ProductCategoryone ofOptional

Product's category name

stringOptional
or
booleanOptionalDefault: false
TrialUrlstringOptional

The URL where shoppers can download trial software from

Default: ""
TrialDescriptionstringOptional

Descriptive text entered for trials

Default: ""
TangiblebooleanOptional

TRUE - for physical products, FALSE - for digital products

EnabledbooleanOptional

True/false depending on whether the products are active or disabled

Default: false
ReviewProductUrlbooleanOptional

The URL where the product can be reviewed before approval. Required if the "Enabled" property is sent as TRUE and the product needs to be reviewed by our internal teams before activation.

Default: ""
ReviewAdditionalDetailsbooleanOptional

Additional information can be added to access the review of the product. Parameter is optional.

Default: ""
Fulfillmentstring · enumOptional

Possible values BY_AVANGATE, BY_VENDOR, NO_DELIVERY

Possible values:
GeneratesSubscriptionbooleanOptional

TRUE or FALSE depending on whether you set the product to generate subscriptions or not

Default: false
Responses
post
/products/

No content

Retrieve product info by code

get

Extract product information using the unique identifier you assign to products.

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
AvangateIdinteger · nullableOptional

Unique, system-generated product ID (read-only)

ProductCodestringOptional

The unique product code you can define for each of your offerings

ExternalReferencestringOptional

External reference set when defining the product

ProductTypestring · enumOptional

The type of the product (REGULAR or BUNDLE)

Default: REGULARPossible values:
ProductNamestringOptional

The name of the product

ProductVersionstringOptional

The product version number

PurchaseMultipleUnitsbooleanOptional

Customers can purchase multiple units (when set TRUE) or only one unit (when set FALSE) of this product

Default: true
GiftOptionbooleanOptional

True or false depending on whether the product can be gifted or not

Default: false
ShortDescriptionstringOptional

Product's short description

Default: ""
LongDescriptionstringOptional

Product's long description

Default: ""
SystemRequirementsstringOptional

System requirements

Default: ""
ProductCategoryone ofOptional

Product's category name

stringOptional
or
booleanOptionalDefault: false
TrialUrlstringOptional

The URL where shoppers can download trial software from

Default: ""
TrialDescriptionstringOptional

Descriptive text entered for trials

Default: ""
TangiblebooleanOptional

TRUE - for physical products, FALSE - for digital products

EnabledbooleanOptional

True/false depending on whether the products are active or disabled

Default: false
ReviewProductUrlbooleanOptional

The URL where the product can be reviewed before approval. Required if the "Enabled" property is sent as TRUE and the product needs to be reviewed by our internal teams before activation.

Default: ""
ReviewAdditionalDetailsbooleanOptional

Additional information can be added to access the review of the product. Parameter is optional.

Default: ""
Fulfillmentstring · enumOptional

Possible values BY_AVANGATE, BY_VENDOR, NO_DELIVERY

Possible values:
GeneratesSubscriptionbooleanOptional

TRUE or FALSE depending on whether you set the product to generate subscriptions or not

Default: false
get
/products/{ProductCode}/

Enable products

post

Enable products for your account.

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
AvangateIdinteger · nullableOptional

Unique, system-generated product ID (read-only)

ProductCodestringOptional

The unique product code you can define for each of your offerings

ExternalReferencestringOptional

External reference set when defining the product

ProductTypestring · enumOptional

The type of the product (REGULAR or BUNDLE)

Default: REGULARPossible values:
ProductNamestringOptional

The name of the product

ProductVersionstringOptional

The product version number

PurchaseMultipleUnitsbooleanOptional

Customers can purchase multiple units (when set TRUE) or only one unit (when set FALSE) of this product

Default: true
GiftOptionbooleanOptional

True or false depending on whether the product can be gifted or not

Default: false
ShortDescriptionstringOptional

Product's short description

Default: ""
LongDescriptionstringOptional

Product's long description

Default: ""
SystemRequirementsstringOptional

System requirements

Default: ""
ProductCategoryone ofOptional

Product's category name

stringOptional
or
booleanOptionalDefault: false
TrialUrlstringOptional

The URL where shoppers can download trial software from

Default: ""
TrialDescriptionstringOptional

Descriptive text entered for trials

Default: ""
TangiblebooleanOptional

TRUE - for physical products, FALSE - for digital products

EnabledbooleanOptional

True/false depending on whether the products are active or disabled

Default: false
ReviewProductUrlbooleanOptional

The URL where the product can be reviewed before approval. Required if the "Enabled" property is sent as TRUE and the product needs to be reviewed by our internal teams before activation.

Default: ""
ReviewAdditionalDetailsbooleanOptional

Additional information can be added to access the review of the product. Parameter is optional.

Default: ""
Fulfillmentstring · enumOptional

Possible values BY_AVANGATE, BY_VENDOR, NO_DELIVERY

Possible values:
GeneratesSubscriptionbooleanOptional

TRUE or FALSE depending on whether you set the product to generate subscriptions or not

Default: false
Responses
200

OK

application/json
post
/products/{ProductCode}/

Update a product

put

Update/change the settings of a product you already configured for your account.

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
AvangateIdinteger · nullableOptional

Unique, system-generated product ID (read-only)

ProductCodestringOptional

The unique product code you can define for each of your offerings

ExternalReferencestringOptional

External reference set when defining the product

ProductTypestring · enumOptional

The type of the product (REGULAR or BUNDLE)

Default: REGULARPossible values:
ProductNamestringOptional

The name of the product

ProductVersionstringOptional

The product version number

PurchaseMultipleUnitsbooleanOptional

Customers can purchase multiple units (when set TRUE) or only one unit (when set FALSE) of this product

Default: true
GiftOptionbooleanOptional

True or false depending on whether the product can be gifted or not

Default: false
ShortDescriptionstringOptional

Product's short description

Default: ""
LongDescriptionstringOptional

Product's long description

Default: ""
SystemRequirementsstringOptional

System requirements

Default: ""
ProductCategoryone ofOptional

Product's category name

stringOptional
or
booleanOptionalDefault: false
TrialUrlstringOptional

The URL where shoppers can download trial software from

Default: ""
TrialDescriptionstringOptional

Descriptive text entered for trials

Default: ""
TangiblebooleanOptional

TRUE - for physical products, FALSE - for digital products

EnabledbooleanOptional

True/false depending on whether the products are active or disabled

Default: false
ReviewProductUrlbooleanOptional

The URL where the product can be reviewed before approval. Required if the "Enabled" property is sent as TRUE and the product needs to be reviewed by our internal teams before activation.

Default: ""
ReviewAdditionalDetailsbooleanOptional

Additional information can be added to access the review of the product. Parameter is optional.

Default: ""
Fulfillmentstring · enumOptional

Possible values BY_AVANGATE, BY_VENDOR, NO_DELIVERY

Possible values:
GeneratesSubscriptionbooleanOptional

TRUE or FALSE depending on whether you set the product to generate subscriptions or not

Default: false
GroupNamestringOptional
Responses
200

OK

No content

put
/products/{ProductCode}/

No content

Disable products

delete

Disable products for your account.

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}"
Responses
200

OK

application/json
delete
/products/{ProductCode}/

Get product images list

get
Path parameters
ProductCodestringRequired

Product code

Example: A720693CC9
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

Returns product images list

application/json
DefaultbooleanOptionalExample: true
URLstringOptionalExample: http://secure.avangate.org/images/merchant/2fa8fadcc0c3506875c09e7e7da28835/products/test.png
get
/products/{ProductCode}/productimages/

Get product image by filter

get
Path parameters
ProductCodestringRequired

Product code

Example: A720693CC9
ImageFilterstringRequired

Image filter(numeric image index or image filename (.jpg|.png|.gif))

Example: test.png
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

Returns product image binary string

error_codestringOptional
messagestringOptional
get
/products/{ProductCode}/productimages/{ImageFilter}/

Get crossSell campaigns by filter

get
Path parameters
ProductCodestringRequired
Query parameters
EnabledbooleanOptionalExample: true
TypestringOptionalExample: MERCH
PagenumberOptionalExample: 1
LimitnumberOptionalExample: 10
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

Returns crossSell campaign collection

application/json
get
/products/{ProductCode}/crosssells/

Set product upgrade schema

post
Path parameters
ProductCodestringRequired

Unique code which represents the product

Body
AllowUpgradeFromstring[]Required

The list of the codes of products that can be upgraded to the product specified

Example: PROD322AX3
Responses
200

Set product upgrade schema success response

application/json
booleanOptionalExample: true
post
/products/{ProductCode}/upgrade/

Retrieve price matrix for product

post
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Bodyobject[]
ProductCodestringOptional

product code

PricingConfigurationCodestringOptional

pricing configuration code

OptionHashstringOptional

hash generated based on price options

Responses
200

OK

application/json
ProductCodestringOptional

product code

PricingConfigurationCodestringOptional

pricing configuration code

OptionHashstringOptional

hash generated based on price options

post
/promotions/priceMatrix/
200

OK

Last updated

Was this helpful?