Approved Update API endpoints for Trade creation / Item management

aleo

Customer
Hello,
I am using the DragonByte Shop add-on on my XenForo installation. In the Admin Panel I can see permissions such as:


  • dbtech_shop_trade_post:read
  • dbtech_shop_trade_post:write
  • dbtech_shop_trade_post:delete_hard

However, none of these permissions appear in the official XenForo REST API documentation, and I cannot find any DragonByte-specific API endpoints either.


My Goal:
I want to create a trade post via API (programmatically from n8n).
In other words, I need an endpoint that performs the same action as creating a “Trade” inside the Shop manually from the UI.


Questions:


  1. What is the official API endpoint for creating a trade post?
    (Example: POST /api/dbtech-shop/trade-posts or similar)
  2. If these permissions (read, write, etc.) correspond to API scopes, what are the exact routes they enable?
  3. Does the add-on expose API endpoints for the following operations:
    • Creating a trade (trade post creation)
    • Reading a user’s credit balance
    • Reading transaction logs / purchase history
    • Reading user-owned items
  4. If no API endpoints exist, does this mean DragonByte Shop does not provide REST API support at all, despite showing API permissions in the Admin Panel?

I just need clarification on the correct API routes so I can integrate this with my automation system.


Thank you.
 
Upvote 0
"Trade post" is posting a message to a trade, it is not "posting a new trade". There is currently no API for creating a new trade.
There is also no API to read or write anything other than trade posts and trade post comments.

I'll see if I can figure out how to generate the documentation, it's been so long since I created eCommerce's documentation I've entirely forgotten how to do so :P

I'll move this to Suggestions and flag it as Approved so it can be looked into for the next version.
 
I might have been slightly misunderstood here! 🙏🏻

What I meant was more about displaying user credit via API and automating the site for different product types and tasks. I give users tasks to keep them active, and when they complete them, they automatically earn credit, or I want them to spend credit on products that are technically impossible to have in the store (e.g., PDF books). This plugin allows me to sell books, but it doesn't provide support for sending the book to the user. So I automate all these processes with an API key. But guess what's missing from your plugin? 😀
 

Similar threads

  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
1
Views
201
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
1
Views
543
  • Locked
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
2
Views
829
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
0
Views
1K
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
1
Views
225

DragonByte Shop

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
3,725
Customer rating
5.00 star(s) 3 ratings
Back
Top