Upsell for pending credit purchasesβ
Itβs possible to include your own upsell functionality after the purchase is complete in the checkout. This is done with a call to Reauthorize with the added products of the customer's choice or a larger amount than the original.
How to get started πβ
- When the purchase is completed and the checkout information is fetched, it will return an
orderId
. - Use the
orderId
for calling the Reauthorize endpoint, remember to send along all existing article rows with the new upsell articles if you want the old articles to show on the new invoice. If you only want to adjust the amount, sending in an amount is enough. This will return a201
or202
response depending on if a credit check is needed or not. The response headers will contain aLocation
header with a path to the order. - Use this url path to verify that the order has successfully been reauthorized. In the case where a credit check happens (201), you will need to poll on the endpoint you recieved in the
Location header
to await that the reauthorize finalizes.
Please note
The reauthorize call is only possible for credit purchases with status NotActivated
or PartActivated
. This means that invoices that are auto activated cannot use the upsell functionality.