Edit Product Price
Testing Env
https://www.testecommerce.vodoerp.com
Testing Env
https://www.testecommerce.vodoerp.com
PUT
/{{ProductPrices}}/1
Last modified:2025-04-13 23:03:52
Key | Value | Description | Type |
---|---|---|---|
apikey | 5f28583f26a1a | API key for authentication; contact support to obtain. Required | string |
apiconnection | appmobile | Connection type; contact support to obtain. Required | string |
secure-business-key | 4765066450c0bd66325.48403130 | Business-specific key; contact support for valid values. Required | string |
userToken | 09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9 | User token from authentication API. Required (Get user token from https://testaccounts.vodoerp.com/api/login or https://accounts.vodoerp.com/api/login ) | string |
Key | Value | Description | Type |
---|---|---|---|
title | Sample Tiitle | Price title. | string |
description | Sample Description | Price description. Optional | string |
value | 200.00 | Price value. Required | float |
from_date | 2024-02-01 | Start date for price validity. | string |
to_date | 2027-02-21 | End date for price validity. | string |
type | 1 | Price type: 0 (update) or 1 (promotion). | integer |
country | [7,5,10] | List of country IDs. Optional | array |
city | [9,2,3] | List of city IDs. Optional | array |
customer_cat | [11,17] | List of customer category IDs. Optional | array |
customer_status | 1 | Customer status (0 or 1). Optional | integer |
customer_reg_from_date | 2024-01-01 | Customer registration start date. Optional | string |
customer_reg_to_date | 2024-12-31 | Customer registration end date. Optional | string |
cart_value | 150.00 | Minimum cart value for price applicability. Optional | float |
employees_ids | [9,55] | List of employee IDs. Optional | array |
jobs_ids | [3,5] | List of job IDs. Optional | array |
branch_ids | [4,8] | List of branch IDs. Optional | array |
platfrom | [5,7,8] | List of platform IDs. Optional | array |
device | [0,5] | List of device IDs. Optional | array |
status | 1 | Price status (0 or 1). | integer |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'https://www.testecommerce.vodoerp.com/api/v1/ecomm_product_prices/1' \
--header 'apikey: 5f28583f26a1a' \
--header 'apiconnection: appmobile' \
--header 'secure-business-key: 4765066450c0bd66325.48403130' \
--header 'userToken: 09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "Sample Tiitle",
"description": "Sample Description",
"value": 200.00,
"from_date": "2024-02-01",
"to_date": "2027-02-21",
"type": 1, // 0 => Update Price or 1 => Promotion
"country": [7,5,10],
"city": [9, 2, 3],
"customer_cat": [11, 17],
"customer_status": 1,
"customer_reg_from_date": "2024-01-01",
"customer_reg_to_date": "2024-12-31",
"cart_value": 150.00,
// "acc_user_cat": [8, 10],
// "acc_user_id": [1, 4, 2],
// "ecomm_user_cat": [3, 5],
// "ecomm_user_id": [4, 8],
"employees_ids": [9, 55],
"jobs_ids": [3, 5],
"branch_ids": [4, 8],
"platfrom": [5, 7, 8],
"device": [0,5],
"status": 1 // 0 or 1
}'
Response Response Example
{}
Request
Header Params
apikey
stringÂ
required
Example:
5f28583f26a1a
apiconnection
stringÂ
required
Example:
appmobile
secure-business-key
stringÂ
required
728106399db2b289783.89154521
2680667168f2f8a68f6.12561200
140356399db2b2c32f0.25237063
96701678e330f31f768.22400604
14807664478836358b0.31329842
Example:
4765066450c0bd66325.48403130
userToken
stringÂ
required
https://testaccounts.vodoerp.com/api/login
or
https://accounts.vodoerp.com/api/login
Example:
09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9
Body Params application/json