Clip Offer Endpoint
Description
Users can select offers which they want to get rewards from. Internally it's called clipping
, but it can also be referred to as wishlist
. Everything added to the wishlist will then be considered in the upload endpoint call. It is to note, that no item needs to be on the wishlist. Our system can also auto-detect all offers that are available on a receipt.
Clip offer
This will add an offer to the wishlist.
curl '<https://receipts.bitlabs.ai/?cmd=mp-mr-api-offer-action'>
-H "Authorization: Bearer ODAxOTAzN34xNzE5NDQ5NzQ5fmI5ODUyMTc5ODhlMjU1ZDhjMjE1M2E4MmIxNmE2ZDczNWM0YjdmMWFmOWVjOGJhYzM0NmZiYjYyYjRhZDQ0OTI="
--data-raw 'offerID=7215012&action=add'
Remove
curl '<https://receipts.bitlabs.ai/?cmd=mp-mr-api-offer-action'>
-H "Authorization: Bearer ODAxOTAzN34xNzE5NDQ5NzQ5fmI5ODUyMTc5ODhlMjU1ZDhjMjE1M2E4MmIxNmE2ZDczNWM0YjdmMWFmOWVjOGJhYzM0NmZiYjYyYjRhZDQ0OTI="
--data-raw 'offerID=7215012&action=remove'
Clip Multiple Offers
This will add/remove multiple offers to the wishlist. Keep the list of offerID comma delimited
Add
curl 'https://receipts.bitlabs.ai/?cmd=mp-mr-api-offer-action' \
-H "Authorization: Bearer MTM2MjIwOTJ+MTczMDQ5ODgwMH4zNDFiYTdkOGFjMDIxZmJiNGRiMDRhNjcwYzdkNzllNzM3MWU0MGFlNjgxOWQ3Mjk0YTM2NmM1MTI0ZDM1Y2Vh" \
--data-raw 'offerID=7296396,7306237&action=add'
Remove
curl 'https://receipts.bitlabs.ai/?cmd=mp-mr-api-offer-action' \
-H "Authorization: Bearer MTM2MjIwOTJ+MTczMDQ5ODgwMH4zNDFiYTdkOGFjMDIxZmJiNGRiMDRhNjcwYzdkNzllNzM3MWU0MGFlNjgxOWQ3Mjk0YTM2NmM1MTI0ZDM1Y2Vh" \
--data-raw 'offerID=7296396,7306237&action=remove'
Check clipped offers
Returns all offers on the wishlist.
curl '<https://receipts.bitlabs.ai/?cmd=mp-mr-api-offers-short&sortType=0&myList=true'>
-H "Authorization: Bearer ODAxOTAzN34xNzE5NDQ5NzQ5fmI5ODUyMTc5ODhlMjU1ZDhjMjE1M2E4MmIxNmE2ZDczNWM0YjdmMWFmOWVjOGJhYzM0NmZiYjYyYjRhZDQ0OTI="
Updated about 2 months ago