Skip to main content
Quickstart: Hosted Page

1. Create a negotiation session

1.1. Create a Negotiation API Route

Create an API route to start a SaleSnip session using the SaleSnip API.
https://api.example.com/negotiate
Ensure this code is run server-side only to protect your API key.
You find the full API reference of this SaleSnip API route here.

1.2 Redirect the User

After creating the session, the SaleSnip API will return a response containing a url field. Redirect the user to this URL to start the negotiation process.

2. Start the checkout or payment

2.1 Create a Checkout API Route

Create an API route that loads the session data from SaleSnip and starts the checkout or payment process.
https://api.example.com/checkout
Ensure this code is run server-side only to protect your API key.
You find the full API reference of this SaleSnip API route here.

2.2 Create the Callback Page

Create a simple callback page to handle the session completion. This should call the checkout API route to start the checkout process.