Sign in

Create a store credit

documented

Creates a store credit in the platform.

POST /api/v2/platform/store_creditsStore Creditsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$store_url}}/api/v2/platform/store_credits" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/vnd.api+json" \
  -d '{"store_credit": {"user_id": "{{$user_id}}", "category_id": "{{$category_id}}", "created_by_id": "{{$created_by_id}}", "amount": {{$amount}}, "currency": "{{$currency}}", "type_id": "{{$type_id}}", "store_id": "{{$store_id}}", "amount_used": {{$amount_used}}, "memo": "{{$memo}}", "amount_authorized": {{$amount_authorized}}, "originator_id": "{{$originator_id}}", "originator_type": "{{$originator_type}}", "public_metadata": {{$public_metadata}}, "private_metadata": {{$private_metadata}}}}}'
Create a store credit · Spree Commerce · OpenIntegrations