Lamha
Api Home
Home
Api Home
Home
  1. Order
  • lamha
    • Welcome 👋
    • Status Order
    • Payment Method
    • Webhook Order
    • Rate Limit
    • API
      • Order
        • Orders List
          GET
        • Order Create
          POST
        • Order Show
          GET
        • Order Edit
          PUT
        • Delete Order
          DELETE
        • Cancel Order
          POST
        • Return Order
          POST
      • Country
        • Countries
        • City
      • Carrier
        • Carriers
        • Create Shippment
        • Cancel Shippment
        • Label Shipment
        • Carrier City Coverage
        • Carrier Coverage
      • Warehouses
        • All Warehouses
  • Schemas
    • Payload Webhook Order Update
Api Home
Home
Api Home
Home
  1. Order

Order Edit

Developing
PUT
https://app.lamha.sa/api/v2/order/{order_id}

Request

Path Params

Header Params

Body Params application/json

Example
{
    "sub_total": 100,
    "discount": "10",
    "shopping_cost": 15,
    "total": 90,
    "payment_method": "stripe",
    "date": "2024-07-01 22:05:00",
    "customer": {
        "name": "Lamha Customer",
        "phone1": "+966512345678",
        "phone2": "+966512345678",
        "Country": "SA",
        "District": "البوادي",
        "City": "Jeddah",
        "AddressLine1": "جدة , البوادي ,  بجوار مخبز الحمد",
        "AddressLine2": "",
        "email": "",
        "national_address": ""
    },
    "items": [
        {
            "name": "شنطة جلد",
            "quantity": 1,
            "Sku": "123",
            "amount": "10",
            "weight": "0.5"
        },
        {
            "name": "ساعة يد منقوشة",
            "quantity": 3,
            "Sku": "123456",
            "amount": "25",
            "weight": "1"
        }
    ],
    "callback_url": "https://webhook.site/66c8e131-72a0-4adc-9ba1-3861c6e5e817",
    "callback_pdf_url": "https://webhook.site/66c8e131-72a0-4adc-9ba1-3861c6e5e817"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://app.lamha.sa/api/v2/order/79311' \
--header 'X-LAMHA-TOKEN: Lamha_rPAHG9wey1xjYJErCz9678EuBkyExIzOksbHygh0' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sub_total": 100,
    "discount": "10",
    "shopping_cost": 15,
    "total": 90,
    "payment_method": "stripe",
    "date": "2024-07-01 22:05:00",
    "customer": {
        "name": "Lamha Customer",
        "phone1": "+966512345678",
        "phone2": "+966512345678",
        "Country": "SA",
        "District": "البوادي",
        "City": "Jeddah",
        "AddressLine1": "جدة , البوادي ,  بجوار مخبز الحمد",
        "AddressLine2": "",
        "email": "",
        "national_address": ""
    },
    "items": [
        {
            "name": "شنطة جلد",
            "quantity": 1,
            "Sku": "123",
            "amount": "10",
            "weight": "0.5"
        },
        {
            "name": "ساعة يد منقوشة",
            "quantity": 3,
            "Sku": "123456",
            "amount": "25",
            "weight": "1"
        }
    ],
    "callback_url": "https://webhook.site/66c8e131-72a0-4adc-9ba1-3861c6e5e817",
    "callback_pdf_url": "https://webhook.site/66c8e131-72a0-4adc-9ba1-3861c6e5e817"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "success": true,
    "msg": "The Order has been Update",
    "order_id": 79311
}
Modified at 2025-12-03 10:18:41
Previous
Order Show
Next
Delete Order
Built with