Create order
documentedCreate an order for PayPal Checkout.
POST /v2/checkout/ordersOrdersno 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 "{{$paypal_api_base}}/v2/checkout/orders" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"intent": "CAPTURE", "purchase_units": [{"amount": {"currency_code": "{{$currency_code}}", "value": "{{$amount}}"}}], "application_context": {"brand_name": "{{$brand_name}}", "landing_page": "NO_PREFERENCE", "shipping_preference": "NO_SHIPPING", "return_url": "{{$return_url}}", "cancel_url": "{{$cancel_url}}"} }'