GuidesReference Endpoints
Guides

Adding the Quote Token

The quote token is a foundational component and the first step in constructing an order payload. It gives Teak data on how the quote was calculated.

Example:

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}

Details:

FieldDescription
tokenThe quote token that was returned by the widget with the customer's quote.

Quote Token Retrieval:

The quote token can be obtained using the following widget helper function on your frontend: tg.get("token")

Todo

  • Add quote token to order request body