Update Order
curl --request PATCH \
--url https://api.launchmystore.io/orders/update-signle-order/:orderId \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "<string>",
"courierName": "<string>",
"trackingNumber": "<string>",
"digitaldata": "<string>",
"deliveryDate": "<string>",
"restock": true,
"staffId": "<string>",
"notes": "<string>",
"clientName": "<string>",
"email": "<string>",
"mobileNumber": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"pinCode": "<string>"
}
'import requests
url = "https://api.launchmystore.io/orders/update-signle-order/:orderId"
payload = {
"status": "<string>",
"courierName": "<string>",
"trackingNumber": "<string>",
"digitaldata": "<string>",
"deliveryDate": "<string>",
"restock": True,
"staffId": "<string>",
"notes": "<string>",
"clientName": "<string>",
"email": "<string>",
"mobileNumber": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"pinCode": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
status: '<string>',
courierName: '<string>',
trackingNumber: '<string>',
digitaldata: '<string>',
deliveryDate: '<string>',
restock: true,
staffId: '<string>',
notes: '<string>',
clientName: '<string>',
email: '<string>',
mobileNumber: '<string>',
address: '<string>',
city: '<string>',
state: '<string>',
country: '<string>',
pinCode: '<string>'
})
};
fetch('https://api.launchmystore.io/orders/update-signle-order/:orderId', 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://api.launchmystore.io/orders/update-signle-order/:orderId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'status' => '<string>',
'courierName' => '<string>',
'trackingNumber' => '<string>',
'digitaldata' => '<string>',
'deliveryDate' => '<string>',
'restock' => true,
'staffId' => '<string>',
'notes' => '<string>',
'clientName' => '<string>',
'email' => '<string>',
'mobileNumber' => '<string>',
'address' => '<string>',
'city' => '<string>',
'state' => '<string>',
'country' => '<string>',
'pinCode' => '<string>'
]),
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://api.launchmystore.io/orders/update-signle-order/:orderId"
payload := strings.NewReader("{\n \"status\": \"<string>\",\n \"courierName\": \"<string>\",\n \"trackingNumber\": \"<string>\",\n \"digitaldata\": \"<string>\",\n \"deliveryDate\": \"<string>\",\n \"restock\": true,\n \"staffId\": \"<string>\",\n \"notes\": \"<string>\",\n \"clientName\": \"<string>\",\n \"email\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"pinCode\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.launchmystore.io/orders/update-signle-order/:orderId")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"<string>\",\n \"courierName\": \"<string>\",\n \"trackingNumber\": \"<string>\",\n \"digitaldata\": \"<string>\",\n \"deliveryDate\": \"<string>\",\n \"restock\": true,\n \"staffId\": \"<string>\",\n \"notes\": \"<string>\",\n \"clientName\": \"<string>\",\n \"email\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"pinCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/orders/update-signle-order/:orderId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"<string>\",\n \"courierName\": \"<string>\",\n \"trackingNumber\": \"<string>\",\n \"digitaldata\": \"<string>\",\n \"deliveryDate\": \"<string>\",\n \"restock\": true,\n \"staffId\": \"<string>\",\n \"notes\": \"<string>\",\n \"clientName\": \"<string>\",\n \"email\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"pinCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": 123,
"state": "<string>",
"message": "<string>",
"data": {}
}Orders
Update Order
Update an existing order
PATCH
/
orders
/
update-signle-order
/
:orderId
Update Order
curl --request PATCH \
--url https://api.launchmystore.io/orders/update-signle-order/:orderId \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "<string>",
"courierName": "<string>",
"trackingNumber": "<string>",
"digitaldata": "<string>",
"deliveryDate": "<string>",
"restock": true,
"staffId": "<string>",
"notes": "<string>",
"clientName": "<string>",
"email": "<string>",
"mobileNumber": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"pinCode": "<string>"
}
'import requests
url = "https://api.launchmystore.io/orders/update-signle-order/:orderId"
payload = {
"status": "<string>",
"courierName": "<string>",
"trackingNumber": "<string>",
"digitaldata": "<string>",
"deliveryDate": "<string>",
"restock": True,
"staffId": "<string>",
"notes": "<string>",
"clientName": "<string>",
"email": "<string>",
"mobileNumber": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"pinCode": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
status: '<string>',
courierName: '<string>',
trackingNumber: '<string>',
digitaldata: '<string>',
deliveryDate: '<string>',
restock: true,
staffId: '<string>',
notes: '<string>',
clientName: '<string>',
email: '<string>',
mobileNumber: '<string>',
address: '<string>',
city: '<string>',
state: '<string>',
country: '<string>',
pinCode: '<string>'
})
};
fetch('https://api.launchmystore.io/orders/update-signle-order/:orderId', 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://api.launchmystore.io/orders/update-signle-order/:orderId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'status' => '<string>',
'courierName' => '<string>',
'trackingNumber' => '<string>',
'digitaldata' => '<string>',
'deliveryDate' => '<string>',
'restock' => true,
'staffId' => '<string>',
'notes' => '<string>',
'clientName' => '<string>',
'email' => '<string>',
'mobileNumber' => '<string>',
'address' => '<string>',
'city' => '<string>',
'state' => '<string>',
'country' => '<string>',
'pinCode' => '<string>'
]),
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://api.launchmystore.io/orders/update-signle-order/:orderId"
payload := strings.NewReader("{\n \"status\": \"<string>\",\n \"courierName\": \"<string>\",\n \"trackingNumber\": \"<string>\",\n \"digitaldata\": \"<string>\",\n \"deliveryDate\": \"<string>\",\n \"restock\": true,\n \"staffId\": \"<string>\",\n \"notes\": \"<string>\",\n \"clientName\": \"<string>\",\n \"email\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"pinCode\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.launchmystore.io/orders/update-signle-order/:orderId")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"<string>\",\n \"courierName\": \"<string>\",\n \"trackingNumber\": \"<string>\",\n \"digitaldata\": \"<string>\",\n \"deliveryDate\": \"<string>\",\n \"restock\": true,\n \"staffId\": \"<string>\",\n \"notes\": \"<string>\",\n \"clientName\": \"<string>\",\n \"email\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"pinCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/orders/update-signle-order/:orderId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"<string>\",\n \"courierName\": \"<string>\",\n \"trackingNumber\": \"<string>\",\n \"digitaldata\": \"<string>\",\n \"deliveryDate\": \"<string>\",\n \"restock\": true,\n \"staffId\": \"<string>\",\n \"notes\": \"<string>\",\n \"clientName\": \"<string>\",\n \"email\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"pinCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": 123,
"state": "<string>",
"message": "<string>",
"data": {}
}Update Order
Updates an existing order. This is a merchant-scoped endpoint authenticated with a merchant session (JWT) — the one the admin’s order page and theupdate_order MCP tool use. Apps use the App API instead:
fulfillments to ship,
refunds to refund, and order metafields for
their own data.
Request
curl -X PATCH "https://api.launchmystore.io/orders/update-signle-order/ORDER_ID" \
-H "Authorization: Bearer YOUR_MERCHANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "shipped",
"courierName": "BlueDart",
"trackingNumber": "TRK123456789",
"notes": "Updated shipping instructions"
}'
const response = await fetch('https://api.launchmystore.io/orders/update-signle-order/ORDER_ID', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_MERCHANT_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
status: 'shipped',
courierName: 'BlueDart',
trackingNumber: 'TRK123456789',
notes: 'Updated shipping instructions'
})
});
The route is
PATCH /orders/update-signle-order/:orderId (the path is
spelled that way). The orderId path segment is the order’s ID.Path Parameters
Body Parameters
The body is a partial order — every field is optional and only the supplied fields are changed; each is written to the order as sent. Line items can’t be changed on this endpoint. Key fields:Order status. One of
pending, confirmed, paid, partial, shipped,
delivered, delivery_failed, canceled, abandoned, payment_failed,
returned, exchange.paid, partial, abandoned and payment_failed were previously written
by the platform but rejected by this endpoint’s validation; they are now
accepted. Omitting status leaves the order’s status untouched.delivery_failed records an attempted delivery that did not arrive (RTO,
refused, undeliverable address). It is not a cancellation: nothing is
refunded, nothing is restocked, no cancellation email is sent and
orders/cancelled is not fired. Those remain separate merchant decisions,
and the order can still move on to delivered, canceled, or a fresh
fulfillment. It is only accepted from partial or shipped.When
true on a return/cancel update, stock is incremented back for every
non-custom line item that had stock deducted (idempotent).Response
The platform returns the standard response envelope.data is the updated
order object.
Example Response
{
"status": 200,
"state": "success",
"message": null,
"data": {
"orderId": "b8b0f1a2-3c4d-4e5f-9a0b-1c2d3e4f5a6b",
"status": "shipped",
"courierName": "BlueDart",
"trackingNumber": "TRK123456789",
"notes": "Updated shipping instructions",
"shippedDate": "2024-01-25T16:00:00.000Z",
"updatedAt": "2024-01-25T16:00:00.000Z"
}
}
Notes
- There is no terminal-state guard here: the merchant can move an order to
any status. Side effects fire on the transition only:
confirmed/shipped/deliveredstamp the matching date;shippedalso emails the shopper their tracking (non-digital orders).canceledstampscancelled_at, releases the order’s stock (unlessrestockhandles it), sends the cancellation email and firesorders/cancelled— once; re-sendingcanceledis a no-op. The financial state becomesvoidedwhen nothing was ever captured (COD and other pay-on-delivery methods) and stayspaidwhen money was captured — cancelling does not refund on its own.delivery_failedis only accepted frompartialorshipped(otherwise400); it is not a cancellation — nothing is refunded or restocked.paidsends the order-confirmation emails.
restock: truereturns every line’s stock (idempotent).- Every update fires
orders/updated, plusorders/fulfilled/orders/cancelledon those transitions.
Error Codes
| Status | State | Description |
|---|---|---|
401 | error | Invalid or missing authentication |
404 | error | Order with the specified ID does not exist |
400 | error | Invalid request body, or delivery_failed on an order that has not shipped |