Create a new Product Plan as a copy of an existing ACTIVE Product Plan accessible to the user. The new Product Plan inherits country prices, durations, and other fields from the source. The caller chooses a subset of features and automationDirectories — both must be subsets of the source's. The new Product Plan is created in ACTIVE status. Child Sales Partners are allowed to copy their own Product Plans. If the target Sales Partner has no active default Product Plan, the copy is automatically set as the default.
Copy parameters
Features for the new Product Plan. Must be a non-empty subset of the source Product Plan features.
Automation directories for the new Product Plan. Must be a non-empty subset of the source Product Plan automationDirectories.
- https://uberall.com/apihttps://uberall.com/api/product-plans/copy
- Mock Serverhttps://docs.uberall.com/_mock/apis/swagger/product-plans/copy
- X-API-KEY
- Authorization
curl -i -X POST \
https://uberall.com/api/product-plans/copy \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"productPlanId": 0,
"name": "string",
"description": "string",
"features": [
"ADS"
],
"automationDirectories": [
"FOURSQUARE"
],
"salesPartnerId": 0
}'Product Plan successfully copied
{
"status": "SUCCESS",
"message": "string",
"warnings": [
"string"
],
"response": {
"productPlanResponse": {
"id": 0,
"name": "string",
"salesPartnerId": 0,
"features": [
"ADS"
],
"updatedDirectories": [
"FOURSQUARE"
],
"countryPrice": [
{
"country": "AF",
"price": 0,
"marketDevelopmentFunds": 0,
"priceSetup": 0
}
],
"currency": "string",
"defaultPlan": true,
"identifier": "string",
"description": "string",
"dateCreated": "2019-08-24T14:15:22Z",
"lastUpdated": "2019-08-24T14:15:22Z",
"duration": 0,
"initialDuration": 0,
"billingPeriod": 0,
"initialBillingPeriod": 0,
"defaultPrice": 0,
"defaultOriginalPrice": 0,
"defaultPriceSetup": 0,
"defaultMarketDevelopmentFunds": 0,
"status": "ACTIVE"
}
}
}