Sign in

Create batch order activity

documented

Create a batch of order activity events.

POST /v3/{account_id}/shopper_activity/order/batchShopper Activityno 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://api.getdrip.com/v3/{{$account_id}}/shopper_activity/order/batch' \
  -X POST \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'User-Agent: YourApp (www.yourapp.com)' \
  -u '{{GETDRIP_API_KEY}}': \
  -d @- << 'EOF'
{
  "orders": [
    {
      "provider": "{{$provider}}",
      "email": "{{$email}}",
      "action": "{{$action}}",
      "occurred_at": "{{$occurred_at}}",
      "order_id": "{{$order_id}}",
      "order_public_id": "{{$order_public_id}}",
      "grand_total": {{$grand_total}},
      "total_discounts": {{$total_discounts}},
      "total_taxes": {{$total_taxes}},
      "total_fees": {{$total_fees}},
      "total_shipping": {{$total_shipping}},
      "currency": "{{$currency}}",
      "order_url": "{{$order_url}}",
      "items": [
        {
          "product_id": "{{$product_id}}",
          "product_variant_id": "{{$product_variant_id}}",
          "sku": "{{$sku}}",
          "name": "{{$name}}",
          "brand": "{{$brand}}",
          "categories": ["{{$category1}}", "{{$category2}}"],
          "price": {{$price}},
          "quantity": {{$quantity}},
          "total": {{$total}},
          "image_url": "{{$image_url}}"
        }
      ]
    }
  ]
}
EOF
Create batch order activity · Drip · OpenIntegrations