curl --request PATCH \
--url https://api.starkfi.io/order/clxxxxxxxxxxxxxxxxxxxxxxxx \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{"amount_from": "150.00"}'
const orderId = "clxxxxxxxxxxxxxxxxxxxxxxxx";
const response = await fetch(
`https://api.starkfi.io/order/${orderId}`,
{
method: "PATCH",
headers: {
"Content-Type": "application/json",
"x-api-key": "<api_key>",
},
body: JSON.stringify({ amount_from: "150.00" }),
}
);
const data = await response.json();
import requests
order_id = "clxxxxxxxxxxxxxxxxxxxxxxxx"
response = requests.patch(
f"https://api.starkfi.io/order/{order_id}",
headers={"Content-Type": "application/json", "x-api-key": "<api_key>"},
json={"amount_from": "150.00"},
)
data = response.json()
{
"statusCode": 200,
"success": true,
"status": "order_updated",
"message": "Order updated successfully.",
"data": {
"id": "clxxxxxxxxxxxxxxxxxxxxxxxx",
"amount_from": "150.00"
}
}
{
"statusCode": 400,
"success": false,
"status": "no_fields_to_update",
"message": "No fields provided to update."
}
{
"statusCode": 404,
"success": false,
"status": "order_not_found",
"message": "Order not found."
}
Orders
Update order
Partially update a payment order. Arrays merge by index; subscription_payment_config shallow-merges with the stored object.
PATCH
/
order
/
{order_id}
curl --request PATCH \
--url https://api.starkfi.io/order/clxxxxxxxxxxxxxxxxxxxxxxxx \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{"amount_from": "150.00"}'
const orderId = "clxxxxxxxxxxxxxxxxxxxxxxxx";
const response = await fetch(
`https://api.starkfi.io/order/${orderId}`,
{
method: "PATCH",
headers: {
"Content-Type": "application/json",
"x-api-key": "<api_key>",
},
body: JSON.stringify({ amount_from: "150.00" }),
}
);
const data = await response.json();
import requests
order_id = "clxxxxxxxxxxxxxxxxxxxxxxxx"
response = requests.patch(
f"https://api.starkfi.io/order/{order_id}",
headers={"Content-Type": "application/json", "x-api-key": "<api_key>"},
json={"amount_from": "150.00"},
)
data = response.json()
{
"statusCode": 200,
"success": true,
"status": "order_updated",
"message": "Order updated successfully.",
"data": {
"id": "clxxxxxxxxxxxxxxxxxxxxxxxx",
"amount_from": "150.00"
}
}
{
"statusCode": 400,
"success": false,
"status": "no_fields_to_update",
"message": "No fields provided to update."
}
{
"statusCode": 404,
"success": false,
"status": "order_not_found",
"message": "Order not found."
}
string
required
Order CUID to update.
string
When present, must pass enabled-fiat validation.
string
string
boolean
enum<string>
direct or subs.string
object
Same shape as create order; at least one
true when the object is sent.array
Partial items merged by index with existing
order_items.array
Merged by index with existing split config.
object
Shallow-merged with the stored subscription object.
curl --request PATCH \
--url https://api.starkfi.io/order/clxxxxxxxxxxxxxxxxxxxxxxxx \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{"amount_from": "150.00"}'
const orderId = "clxxxxxxxxxxxxxxxxxxxxxxxx";
const response = await fetch(
`https://api.starkfi.io/order/${orderId}`,
{
method: "PATCH",
headers: {
"Content-Type": "application/json",
"x-api-key": "<api_key>",
},
body: JSON.stringify({ amount_from: "150.00" }),
}
);
const data = await response.json();
import requests
order_id = "clxxxxxxxxxxxxxxxxxxxxxxxx"
response = requests.patch(
f"https://api.starkfi.io/order/{order_id}",
headers={"Content-Type": "application/json", "x-api-key": "<api_key>"},
json={"amount_from": "150.00"},
)
data = response.json()
{
"statusCode": 200,
"success": true,
"status": "order_updated",
"message": "Order updated successfully.",
"data": {
"id": "clxxxxxxxxxxxxxxxxxxxxxxxx",
"amount_from": "150.00"
}
}
{
"statusCode": 400,
"success": false,
"status": "no_fields_to_update",
"message": "No fields provided to update."
}
{
"statusCode": 404,
"success": false,
"status": "order_not_found",
"message": "Order not found."
}
Response
object
required
Full updated
payment_orders row..png?fit=max&auto=format&n=I_v6ul4JDafNKFQP&q=85&s=f0ad25536f8a3ca42331fcff88ab2b26)