Cashback

Create a tracked purchase link for a user

Changed on

Use the live savings result’s id as store_id, and its program_id. The user ID belongs to your partner account; API key rotation keeps the same wallet. Retry with the same idempotency_key and identical purchase context. Follow the returned URL and complete checkout in the same browser context. Following the URL alone never credits money. Rates and eligibility are rechecked when activating.

post/v1/cashback/activate

Request

  • Base URL
    https://api.openstock.sh
  • URL
    https://api.openstock.sh/v1/cashback/activate
  • Auth
    HTTP bearer

Request body

store_idstring required
program_idstring required
user_idstring required

Opaque user ID within your authenticated partner account. Do not send email addresses.

countrystring required
destination_urlstring uri
idempotency_keystring required

Example request

{
  "user_id": "grok-user-42",
  "country": "US"
}

Response

Durably recorded click and real affiliate URL.

click_idstring required
urlstring uri required
termsstring[] required
commission_share1 required

Changes