question

florian avatar image
florian asked

I cannot consume an Item,I am trying to consume an item in unity. For the ConsumeItemRequest I am using the ItemInstanceID but I am still getting an error.

I am trying to consume an item but I get an error callback every time. For the ConsumeItemRequest I use the ItemInstanceID like I should but the API still gives me the error callback. Even when trying the call on

https://api.playfab.com/documentation/client/method/ConsumeItem

it returns the error. Could anyone tell me what is going wrong?

Error code:

{
"code": 400,
"status": "BadRequest",
"error": "InvalidItemProperties",
"errorCode": 1091,
"errorMessage": "Unable to find item with id 7068218046178319650",
"CallBackTimeMS": 328
}

,
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Andy avatar image
Andy answered

The error indicates the ItemInstanceId you included in the request was not found in the calling player's inventory. Can you post the response to a GetUserInventory request so that we can validate you're using the correct id?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.