Skip to main content

🚨 Need Help with FluentCart API β€” Creating an ORDER (JSON request struggle)🚨

Hey everyone πŸ‘‹
I’m stuck on what should be a simple thing, but it’s driving me a bit crazy, so I’m turning to the community πŸ™

🧩 Context

I’m trying to create an ORDER via the FluentCart REST API, following the official documentation:
πŸ‘‰ https://dev.fluentcart.com/restapi/operations/orders/create-order.html

βœ… The route is correct
βœ… Headers are correct (auth, content-type, etc.)
❌ I’m blocked on the JSON payload, especially around required IDs


πŸ’³ My Setup

  • I’m using an external payment system (GoCardless)

  • Every successful payment triggers a webhook

  • The webhook sends data like:

    • customer email
    • customer name
    • amount
    • payment reference, etc.
  • I also include the FluentCart customer ID in the webhook (requiered)

πŸ‘‰ The goal is simple (in theory):
When a payment succeeds β†’ create an Order in FluentCart via API


πŸ”₯ The Real Problem

My main difficulty is the JSON request body:

  • Some items IDs are truly mandatory to create an order, but how to provide then ? Etc exemple "post_id": 7529088,
    "variation_id": 0,
    "object_id": 59,

The documentation explains the fields, but I’m missing a working, practical JSON example for this kind of action.


πŸ™‹ What I’m Looking For

  • A real example of a valid JSON payload that successfully creates an order

  • Clarification on:

    • required vs optional IDs
    • how FluentCart expects orders created outside its own checkout
  • Any gotchas or β€œaha moments” you ran into doing this


🧠 If you’ve already:

  • created orders via API only
  • fought with this JSON and won πŸ˜„

πŸ‘‰ Your help would be massively appreciated.

Thanks in advance β€” and I hope this thread helps others too πŸ™Œ
Happy to share my payload / errors if needed!