This page is also inEN
iTeam
API guide · E-commerce and marketplaces With your company’s credentials

Tray API: orders, products and customers with AI agents

Tray is a Brazilian e-commerce platform with a REST API for connecting the store to ERPs, marketplaces and hubs. Store owners and integrators use it to sync orders, catalog and stock. Access is through an application authorized by the store, which generates the access keys.

Nina
API guide

What the Tray API offers

Orders

List and look up orders, and update the status and the tracking code.

Products and variations

Create and edit products, variations, categories and images.

Stock and prices

Update stock and price per product or variation.

Customers

Look up and update customer records.

Coupons and shipping

Check shipping methods and manage coupons.

Notifications

Receive alerts about new orders and changes through a notification URL.

How to access the Tray API

  • With your company’s credentialsThe store authorizes an application registered in Tray, which receives a code used to generate an access token and a refresh token.
  • Tray applies request limits per store, so the agent uses notifications instead of polling all the time.
  • Customer and address data fall under Brazil's data-protection law (LGPD).
  • Bulk price changes need approval.

Official documentation: developers.tray.com.br

What an iTeam agent does with the Tray API

Tracking sent without being asked

When the order ships, the agent records the tracking code in Tray and tells the customer on WhatsApp.

Pending orders and carts

Orders awaiting payment get a reminder from the agent with the payment link.

A catalog without errors

The agent reviews products with no photo, no weight or a short description and proposes fixes.

Stock in sync

Mismatches between the ERP and Tray become an alert with the list of affected SKUs.

From the credential to the agent at work, with approval

01

Authorize the application in the store

Register the integration application in Tray and authorize it in the store to generate the access keys.

02

Register the credential in the iTeam vault

The Tray credential stays in the iTeam vault, out of prompts and spreadsheets. Each agent gets only the actions it needs (read orders, update tracking, adjust stock), and anything that writes data goes through approval.

03

Test with human approval

Before release, update the tracking code of a test order. In the first weeks, write actions stay under approval and everything is in the audit trail.

Questions

Questions about the Tray API

Is the Tray API free?

API use is included for Tray stores, within the platform's limits; third-party applications may have their own cost.

Do I need to write code to use the Tray API with iTeam?

Not necessarily. iTeam's HTTP tool learns the Tray API endpoints from the documentation, and the deployment team sets up credentials, permissions and the process. Your team validates the result.

Is the Tray API useful for connecting to a marketplace?

Yes, it is the foundation of the hubs and ERPs that connect Tray to marketplaces. The iTeam agent uses the same API to follow the operation.

Next step

Put an AI team to work this week.

Start free with a pre-built team, or talk to us and our squad puts AI in production with your people.

300+integrations
4languages
Agents working right now