Experiancing Credit Limit issue with product_create mutation

Hi,

I’m getting below error with product_create mutation

There are not enough credits to perform the requested operation, which requires 101 credits, but the are only 55 left. In 4 seconds you will have enough credits to perform the operation

I have more than 10000 products and it was working previousally.

I’m using below data with mutation:

mutation {

product_create(
data: {
name: “Sample”
sku: “SAMPLE 120”
price: “36”
warehouse_products: {
warehouse_id: “fsxfsffds”
on_hand: 50
}
value: “24”
barcode: “564654564”
country_of_manufacture: “US”
dimensions: { weight: “0.00”, height: “0”, width: “0”, length: “0” }
vendors: {
vendor_id: “370971”
vendor_sku: “50791”
price: “36”
}
}
) {
request_id
complexity
product {
id
legacy_id
account_id
name
sku
price
value
barcode
country_of_manufacture
dimensions {
weight
height
width
length
}
tariff_code
kit
kit_build
no_air
final_sale
customs_value
customs_description
not_owned
dropship
created_at
}
}
}

Hi @devrsingh2
Welcome to our community!

Is there any chance you could send me the request_id
It doesn’t seem this mutation is the expensive one, but maybe others made before are making you run out of credits.

With that request_id I will be able to see all the requests made within that last minute and probably be able to help with that.

Thanks in advance!
Tom

Hi @tomasw,

I got the issue, actually i have call other shiphero account to get the all products and insert it to new shiphero account.

the issue is i have called the get API in loop.
please let me know how can i get all products(approx 5000) using products query?

Thanks for confirming that @devrsingh2!

If it works for you, in that case you could use:

  1. Inventory Snapshot: https://developer.shiphero.com/inventory-snapshot/
  2. Use the Bulk Edit section on the UI: https://app.shiphero.com/dashboard/products/bulk-manage

Both of them will save you credits, Bulk edit will help you export all the product details and then you could upload that same file to your new account.

Let me know if that doesn’t help.
Thanks again!
Tom