I am trying to create an Item with InventoryConnector.
var item:Item = Item() item.name = "TEST 1" item.alternateName = "TEST 1 ALTERNATIVE" item.price = 13 item.priceType = PriceType.FIXED item.cost = 45 item.categories = inventoryConnector.categories item.modifierGroups = inventoryConnector.modifierGroups item.taxRates = inventoryConnector.taxRates item.options = inventoryConnector.options item.code = "CODE 1" item.sku = "SJKU" inventoryConnector.createItem(item)
but the error i got
"
Process: com.raklet.cloverentegration, PID: 7268
com.clover.sdk.v1.ForbiddenException: status code: 403 Permission denied
at com.clover.sdk.v1.ServiceConnector.throwOnFailure(ServiceConnector.java:331)
at com.clover.sdk.v1.ServiceConnector.execute(ServiceConnector.java:266)
at com.clover.sdk.v3.inventory.InventoryConnector.createItem(InventoryConnector.java:181)
at com.raklet.cloverentegration.ui.MembershipFragment$cloverAuth$2.invokeSuspend(MembershipFragment.kt:177)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
"
all my permissions are full but i still can't register.
I can create customers.
I can create employe.
I can create an order.
I can't create Item in inventory