question

dti avatar image
dti asked dti commented

Items dont auto-decrement inventory with payment made via api

When applying a payment via Clover Station with an order created via the API the inventory does auto-decrement. This is the expected result.

When applying a payment via an API for an order created via API the inventory does not auto-decrement .

Do we need to pass along another value to have it auto-decrement inventory or do we need to adj the inventory via and ITEM call?

Inventory
3 comments
10 |2000

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

Miguel avatar image Miguel commented ·

When you go to Orders app, do you see the payment associated with the order or does it not show any payments?

0 Likes 0 ·
dti avatar image dti commented ·

Interestingly, on the Orders LIST it shows PAID with $0.00. But once you open the details it shows not only PAID but also displays the correct total. Then going back to the Order LIST it shows PAID and the correct total.

Also noteworthy in REPORTING for ITEMS is shows the correct number sold.

However INVENTORY remains constant unchanged.

0 Likes 0 ·
Miguel avatar image Miguel commented ·

Total is calculated on the machine, so it looks like it's possible for the machine to display a different total than the server if not all the line items have synced. That's why after opening the order, it displays correctly because it refreshes the order details of new line items.

0 Likes 0 ·
dti avatar image
dti answered

Interestingly, on the Orders LIST it shows PAID with $0.00. But once you open the details it shows not only PAID but also displays the correct total. Then going back to the Order LIST it shows PAID and the correct total.

Also noteworthy in REPORTING for ITEMS is shows the correct number sold.

However INVENTORY remains constant unchanged.

Still need help with this.

10 |2000

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

Miguel avatar image
Miguel Deactivated answered

If you make orders/payments through Clover apps, it will auto-decrement. If you are doing this through our APIs, you will need to update the stock quantity yourself using this endpoint /v3/merchants/{mId}/item_stocks/{itemId}.

10 |2000

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

Welcome to the
Clover Developer Community