...
Note |
---|
Please reach out to Lopes da Costa, Valentina or another PM to get you access to the API Key in Production or Staging for your brand |
...
Info | |||||
---|---|---|---|---|---|
If we want to set the end date as X seconds after assignment, we need to use the below logic By default, the assigned offers will have the same rules as the ones configured in Sanity. If you want to override some of these with custom rules, for example, a custom End Date & Start Date, you can pass the following arguments:
In the above example, we set the Start Date to be the time when the Offer was assigned, and we set the End Date to be 7 days after the offer was assigned (now + 604800 seconds). |
Note |
---|
|
Note |
---|
Be extremely careful and test your webhooks, once an offer is assigned to a user its rules CANNOT be changed from Sanity. |
Other resources
...