Purchase external order
documentedRecord a purchase transaction for an external order.
POST /external_orders/{id}/transactions/purchaseExternal Ordersno implementation yet0 runsNo 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.thinkific.com/api/public/v1/external_orders/{{$external_order_id}}/transactions/purchase" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"transaction": {"amount_cents": {{$amount_cents}}, "currency": "{{$currency}}", "payment_method": "{{$payment_method}}", "status": "{{$status}}", "gateway_transaction_id": "{{$gateway_transaction_id}}", "description": "{{$description}}", "metadata": {{$metadata}}}, "customer": {"email": "{{$email}}", "first_name": "{{$first_name}}", "last_name": "{{$last_name}}"}, "line_items": [ {"product_id": "{{$product_id}}", "quantity": {{$quantity}} } ] }'