Workflow

TPP Workflow (API Basic Flow)

API Pipeline

1. Search Products
POST /products/search
2. Create Player
POST /players
3. Credit Coins
PUT /coins
4. Reserve Product
POST /orders/{playerId}/reservation
5. Shipping Data
POST /orders/{playerId}/send/{transactionId}
  1. Download products

    • Use paginated POST /products/search to retrieve the available catalog.
    • The response includes product data and values you must save in in your system and will use in the next steps.
  2. Create player

    • Create the player in TPP with POST /players.
    • Keep the returned playerId to continue the flow.
  3. Add coins equal to product value

    • Credit the player using PUT /coins with the amount equivalent to the selected product value.
    • Although this may look as an extra step, this step is required for tracking and audit purposes.
  4. Reserve the product

    • Execute the reservation with POST /orders/{playerId}/reservation.
    • This reserves the selected product for that player.
  5. Send shipping information

    • Complete shipping details with POST /orders/{playerId}/send/{transactionId}.
    • Use the transactionId generated during the reservation step.
  6. Logistics email communication

    • Players will receive logistics emails with updates regarding their order status.