How to use 2Checkout signature generation API endpoint
Overview
Catalog Products use cases
Catalog products with lock
cURL
curl -X POST \
https://secure.2checkout.com/checkout/api/encrypt/generate/signature \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'merchant-token: eyJhbGciOiJIUz.............oXW6ykmEMx7XjGQPTMFg' \
-d '{
"merchant": "MERCHANT_CODE",
"lock": 1,
"products": [
{
"code": "PRODUCT_CODE_1"
},
{
"code": "PRODUCT_CODE_2"
}
]
}'PHP
Result
Catalog product with expiration date and lock
cURL
PHP
Result
Catalog product with expiration date and custom price
cURL
PHP
Result
Catalog product with trial and expiration
cURL
PHP
Result
Catalog product with return method parameter
cURL
PHP
Result
Catalog product with order external reference
cURL
PHP
Result
Catalog product with customer reference
cURL
PHP
Result
Catalog product with external customer reference
cURL
PHP
Result
Catalog product with custom parameters
cURL
PHP
Result
Catalog product with coupons and lock parameter
cURL
PHP
Result
Catalog product with coupons and custom price
cURL
PHP
Result
Catalog product with quantity and lock parameters
cURL
PHP
Result
Catalog product with quantity and custom price parameters
cURL
PHP
Result
Catalog product with custom options and lock
cURL
PHP
Result
Catalog product with custom options and custom price
cURL
PHP
Result
Catalog product with custom price
cURL
PHP
Result
Dynamic Products Use Cases
Dynamic products
cURL
PHP
Result
Dynamic product with product quantity
cURL
PHP
Result
Dynamic product with options
cURL
PHP
Result
Dynamic product with price
cURL
PHP
Result
Dynamic product with product type
cURL
PHP
Result
Dynamic product with tangible parameter
cURL
PHP
Result
Dynamic product with description
cURL
PHP
Result
Dynamic product with recurrence, duration and renewal price
cURL
PHP
Result
Dynamic product with item external reference
cURL
PHP
Result
Last updated
Was this helpful?