Cashback

Create a private hosted test checkout link

Changed on

Creates a sandbox-only checkout for one user, store, order, and USD amount. The catalog quote is fixed at creation (8% fallback). Links expire in one hour. GET and preview never credit. A human presses Simulate purchase; an agent POSTs the returned completion body. Completion is idempotent and never places a real order. Keep the URL and completion token private. Fixed non-USD commissions are unsupported.

post/v1/cashback/sandbox/links

Request

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

Request body

user_idstring required

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

store_idstring required
order_idstring required
order_amountinteger required

Simulated USD order in cents. 10000 is $100. Uses the catalog quote, or 8% when unavailable.

countrystring
idempotency_keystring required

Example request

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

Response

Hosted sandbox URL and agent JSON completion instructions.

mode'sandbox' required
urlstring uri required
expires_atstring required

Changes