آدرس پایانه
curl -X POST "https://api.apieco.ir/hesabam/1.0/catalogs/upload"
--header 'apieco-key:{YOUR_APIECO_KEY}' --header 'hesabam-access-token' : {api key}'
-d
data{
"catalog": {
"billingType": "BEFORE",
"currencies": [
"AED"
],
"date": "string",
"planLists": {
"default": {
"name": "string",
"plans": [
"string"
]
},
"specials": [
{
"name": "string",
"plans": [
"string"
]
}
]
},
"plans": [
{
"billingType": "BEFORE",
"finalStep": {
"fixed": {
"fixedPrices": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"type": "ONE_TIME"
},
"recurring": {
"billingCycle": "DAILY",
"recurringPrice": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
}
},
"timeLength": {
"timeUnit": "DAYS",
"value": 0
},
"type": "TRIAL",
"usages": [
{
"RowCellPolicy": "ALL_ROWS",
"billingCycle": "DAILY",
"billingType": "BEFORE",
"cells": [
{
"minTopUpCredit": 0,
"prices": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"size": 0,
"type": "VANILLA",
"unit": "string"
}
],
"fixedPrice": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"limits": [
{
"max": 0,
"min": 0,
"unit": "string"
}
],
"name": "string",
"recurringPrice": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"rows": [
{
"fixedPrice": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"limits": [
{
"max": 0,
"min": 0,
"unit": "string"
}
],
"recurringPrice": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"rowCells": [
{
"max": 0,
"minTopUpCredit": 0,
"prices": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"size": 0,
"type": "VANILLA",
"unit": "string"
}
]
}
],
"type": "CAPACITY"
}
]
},
"initStep": [
{
"fixed": {
"fixedPrices": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"type": "ONE_TIME"
},
"recurring": {
"billingCycle": "DAILY",
"recurringPrice": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
}
},
"timeLength": {
"timeUnit": "DAYS",
"value": 0
},
"type": "TRIAL",
"usages": [
{
"RowCellPolicy": "ALL_ROWS",
"billingCycle": "DAILY",
"billingType": "BEFORE",
"cells": [
{
"minTopUpCredit": 0,
"prices": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"size": 0,
"type": "VANILLA",
"unit": "string"
}
],
"fixedPrice": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"limits": [
{
"max": 0,
"min": 0,
"unit": "string"
}
],
"name": "string",
"recurringPrice": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"rows": [
{
"fixedPrice": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"limits": [
{
"max": 0,
"min": 0,
"unit": "string"
}
],
"recurringPrice": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"rowCells": [
{
"max": 0,
"minTopUpCredit": 0,
"prices": {
"prices": [
{
"currency": "AED",
"value": 0
}
]
},
"size": 0,
"type": "VANILLA",
"unit": "string"
}
]
}
],
"type": "CAPACITY"
}
]
}
],
"name": "string",
"plansAllowedInBundle": 0,
"product": "string"
}
],
"products": [
{
"contained": [
"string"
],
"exist": [
"string"
],
"name": "string",
"type": "BASE"
}
],
"units": [
{
"name": "string"
}
]
},
"tenantId": "string"
}