Get protection prices for one item or many in one call: for example, a page of search results, or the customer's cart at checkout.
Sessions. The first call returns a session_id. Send it on every later call for the same customer's purchase, so Teak offers the same protection throughout. Start a new session for each purchase, and never reuse one after the order is placed. See Sessions.
Prices. premium is the protection price for the item. For the same item on the same session, it's the price the customer confirms. If the item changes, for example its cost or event times, call the Programs API again.
One error fails the whole call. If any item can't be priced, for example because its product type isn't mapped, the call fails and returns no prices. The error names the item. Fix or leave out that item and call again.
Items. Items that cost 0 are left out of the response. Each item in the response has your reference_id, so give each item in a call its own reference_id.
Server only. Call this from your server, with an access token. A request with the widget's public key returns 401.
Errors return the HTTP status with a body of msg and type, or a list of field errors for an invalid body. See Error handling.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Server-to-server and AI integrations are for enterprise partners only. Teak Solutions Team works with partners to determine the appropriate integration solution.
The Programs API and the current way of placing server-to-server orders will be deprecated in 2027. The four integration steps stay the same. See Coming soon.
