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:
| Field | Description |
|---|---|
token | The 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
Updated 8 months ago
