curl --request POST \
--url https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source_reference_identifier": "<string>",
"force": false,
"dry_run": false,
"trigger_order_refresh": true,
"debug": false
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference"
payload = {
"source_reference_identifier": "<string>",
"force": False,
"dry_run": False,
"trigger_order_refresh": True,
"debug": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
source_reference_identifier: '<string>',
force: false,
dry_run: false,
trigger_order_refresh: true,
debug: false
})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'source_reference_identifier' => '<string>',
'force' => false,
'dry_run' => false,
'trigger_order_refresh' => true,
'debug' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference"
payload := strings.NewReader("{\n \"source_reference_identifier\": \"<string>\",\n \"force\": false,\n \"dry_run\": false,\n \"trigger_order_refresh\": true,\n \"debug\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"source_reference_identifier\": \"<string>\",\n \"force\": false,\n \"dry_run\": false,\n \"trigger_order_refresh\": true,\n \"debug\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"source_reference_identifier\": \"<string>\",\n \"force\": false,\n \"dry_run\": false,\n \"trigger_order_refresh\": true,\n \"debug\": false\n}"
response = http.request(request)
puts response.read_body{
"data": {
"success": true,
"message": "Fulfillment order reconciled with remote order.",
"data": {
"fulfillment_order_id": 123,
"source_reference_identifier": "<string>",
"mode": "auto",
"line_items_matched": true,
"forced": true,
"candidates_considered": 123,
"dry_run": true,
"already_reconciled": true
},
"debug": {}
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"data": {
"success": false,
"message": "<string>",
"data": {},
"debug": {}
}
}Reconcile source reference
Bind an existing remote OMS order ID to a fulfillment order’s source_reference_identifier,
resolving push failures caused by duplicate-push errors (HTTP 409) or other desync states
where Luminous lost track of the remote order it already created.
Modes
- Auto (default) — omit or set
source_reference_identifiertonull. Luminous queries the remote OMS for orders matching this fulfillment order’s order number, validates line items, and binds the first match. - Manual — provide
source_reference_identifier. Luminous fetches that specific remote order, validates line items, and binds it. Add"force": trueto skip line-item validation when SKU mappings can’t be resolved.
After a successful bind the fulfillment order status is set to awaiting_fulfillment, its error
message is cleared, and a sales order refresh job is dispatched (unless trigger_order_refresh
is false or dry_run is true).
The push endpoint’s 422 response body includes a links.reconcile URL pointing directly here
when a push fails.
Supported integrations — currently TrackStar. Other OMS integrations return a 422 with
an app field naming the unsupported integration.
curl --request POST \
--url https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source_reference_identifier": "<string>",
"force": false,
"dry_run": false,
"trigger_order_refresh": true,
"debug": false
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference"
payload = {
"source_reference_identifier": "<string>",
"force": False,
"dry_run": False,
"trigger_order_refresh": True,
"debug": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
source_reference_identifier: '<string>',
force: false,
dry_run: false,
trigger_order_refresh: true,
debug: false
})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'source_reference_identifier' => '<string>',
'force' => false,
'dry_run' => false,
'trigger_order_refresh' => true,
'debug' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference"
payload := strings.NewReader("{\n \"source_reference_identifier\": \"<string>\",\n \"force\": false,\n \"dry_run\": false,\n \"trigger_order_refresh\": true,\n \"debug\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"source_reference_identifier\": \"<string>\",\n \"force\": false,\n \"dry_run\": false,\n \"trigger_order_refresh\": true,\n \"debug\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/fulfillment-orders/{id}/reconcile-source-reference")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"source_reference_identifier\": \"<string>\",\n \"force\": false,\n \"dry_run\": false,\n \"trigger_order_refresh\": true,\n \"debug\": false\n}"
response = http.request(request)
puts response.read_body{
"data": {
"success": true,
"message": "Fulfillment order reconciled with remote order.",
"data": {
"fulfillment_order_id": 123,
"source_reference_identifier": "<string>",
"mode": "auto",
"line_items_matched": true,
"forced": true,
"candidates_considered": 123,
"dry_run": true,
"already_reconciled": true
},
"debug": {}
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"data": {
"success": false,
"message": "<string>",
"data": {},
"debug": {}
}
}Authorizations
Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.
Path Parameters
ID of the fulfillment order
Body
The remote OMS order ID to bind. Omit or pass null for auto mode.
Provide a value for manual mode.
255Manual mode only. When true, skip line-item quantity/SKU validation and bind
the remote order regardless. Has no effect in auto mode and returns a 422 if
used without source_reference_identifier.
When true, validate and return what would happen without writing to the database
or dispatching a refresh job.
When true (default), dispatch a sales order refresh job after a successful bind.
Ignored when dry_run is true.
When true, capture and return outbound OMS HTTP traffic in data.debug.
Response
Reconciliation succeeded (or was already reconciled / dry run). Check data.data.mode to
distinguish: "auto", "manual", "noop" (already reconciled), or the dry_run flag.
Show child attributes
Show child attributes