API:GetStoreBuyBackItems

Returns how many Items you can buy back from the merchant GetStoreBuyBackItems

Returns
A Number

Example
/script DEFAULT_CHAT_FRAME:AddMessage(GetStoreBuyBackItems)