Sign in

Create transaction

documented

Create a new transaction for a store.

POST /stores/{store_id}/transactionsStoresno 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.foxycart.com/stores/{{$store_id}}/transactions\" \
  -X POST \
  -H \"FOXY-API-VERSION: 1\" \
  -H \"Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}\" \
  -H \"Content-Type: application/json\" \
  -H \"Accept: application/hal+json\" \
  -d '{\"cart_id\":\"{{$cart_id}}\",\"currency_code\":\"{{$currency_code}}\",\"locale_code\":\"{{$locale_code}}\",\"customer\":{\"first_name\":\"{{$customer_first_name}}\",\"last_name\":\"{{$customer_last_name}}\",\"email\":\"{{$customer_email}}\"},\"total_order\":{{$total_order}},\"total_tax\":{{$total_tax}},\"total_shipping\":{{$total_shipping}},\"hide_transaction\":{{$hide_transaction}},\"data_is_fed\":{{$data_is_fed}}}'