API ReferenceLast reviewed: Fri Dec 12 2025 00:00:00 GMT+0000 (Coordinated Universal Time)

Products

Manage products and services

Products

Manage products and services.

GET Get All Products

GET /query?action=product

Returns a list of products. If no products exist, returns:

json
1{ "products": [] }

with HTTP status 200.

GET Get Single Product

GET /query/product/{id}

POST Create Product

POST /query?action=product

Body:

json
1{
2  "x_login": "...",
3  "x_tran_key": "...",
4  "product": {
5    "name": "Premium Service",
6    "description": "One hour consultation",
7    "price": 99.99,
8    "isBookable": true,
9    "duration": 60
10  }
11}

PUT Update Product

PUT /query?action=product

Body:

json
1{
2  "x_login": "...",
3  "x_tran_key": "...",
4  "_method": "PUT",
5  "product": {
6    "uniqueID": 123,
7    "name": "Updated Service Name",
8    "price": 149.99,
9    "isBookable": true,
10    "duration": 60
11  }
12}

Ready to design your custom plan?

Join the fastest-growing companies using Troute to scale their payments infrastructure.

Talk to sales