π¨ 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!
