Skip to content

invoice.created ​

Triggered when an order's status becomes completed or restored.

يُرسل عندما تصبح حالة الطلب `completed` أو `restored`.

PlatformSalla
GroupInvoice
Payload modelInvoice Created Webhook Event Model
JSON Schemaschemas/salla/invoice.created.schema.json
Official docsdocs.salla.dev/webhook-events/invoice

Example payload ​

json
{
  "event": "invoice.created",
  "merchant": 1601633483,
  "created_at": "Mon Feb 20 2023 15:58:00 GMT+0300",
  "data": {
    "id": 952648521,
    "uuid": "a2bffe40-adf7-4bfe-8782-c34ca567ec98",
    "invoice_reference_id": "1772",
    "order_id": 315606782,
    "type": "Credit Note",
    "date": "2023-02-20 15:58:00",
    "invoice_number": 13,
    "payment_method": "bank",
    "sub_total": {
      "amount": 50,
      "currency": "SAR"
    },
    "shipping_cost": {
      "amount": 33,
      "taxable": true,
      "currency": "SAR"
    },
    "cod_cost": {
      "amount": 0,
      "taxable": true,
      "currency": "SAR"
    },
    "discount": {
      "amount": 0,
      "currency": "SAR"
    },
    "tax": {
      "percent": 50,
      "amount": {
        "amount": 41.5,
        "currency": "SAR"
      }
    },
    "total": {
      "amount": 124.5,
      "currency": "SAR"
    },
    "shipping_cost_discount": {
      "amount": 0,
      "currency": "SAR"
    },
    "items": [
      {
        "id": 710619710,
        "item_id": 409661958,
        "name": "User Product Demo",
        "quantity": 1,
        "type": "product",
        "price": {
          "amount": 50,
          "currency": "SAR"
        },
        "discount": {
          "amount": 0,
          "currency": "SAR"
        },
        "tax": {
          "percent": 50,
          "amount": {
            "amount": 25,
            "currency": "SAR"
          }
        },
        "total": {
          "amount": 75,
          "currency": "SAR"
        }
      },
      {
        "name": "رسوم الشحن",
        "quantity": 1,
        "type": "service",
        "price": {
          "amount": 33,
          "currency": "SAR"
        },
        "discount": {
          "amount": 0,
          "currency": "SAR"
        },
        "tax": {
          "percent": 50,
          "amount": {
            "amount": 16.5,
            "currency": "SAR"
          }
        },
        "total": {
          "amount": 49.5,
          "currency": "SAR"
        }
      }
    ],
    "customer": {
      "id": 166343388,
      "first_name": "Username",
      "last_name": "Demo",
      "mobile": 555555555,
      "mobile_code": "+966",
      "email": "username@salla.sa",
      "avatar": "https://logo.com/logo.png",
      "gender": "female",
      "birthday": {
        "date": "1997-03-06 00:00:00.000000",
        "timezone_type": 3,
        "timezone": "Asia/Riyadh"
      },
      "city": "جدة",
      "country": "السعودية",
      "country_code": "SA",
      "currency": "SAR",
      "location": "31.221365",
      "updated_at": {
        "date": "2023-02-20 15:44:35.000000",
        "timezone_type": 3,
        "timezone": "Asia/Riyadh"
      },
      "order_address": {
        "description": "Lorem Ipsum",
        "street_name": "abu umayyah ad damri",
        "additional_number": null,
        "building_number": null,
        "district": null
      }
    }
  }
}

Fields ​

Fields marked * are required in the official schema.

FieldTypeDescription
eventstringEvent Name One of: invoice.created.
merchantnumberMerchant ID who installed the application on their store. Get details on the Merchant via the ID using the endpoint here
created_atstringCreated At Timestamp
dataobject

data ​

FieldTypeDescription
idnumberInvoice ID
uuidstringUniversally Unique Identifier for the Invoice
invoice_reference_idstringInvoice Reference ID
order_idnumberOrder ID
typestringInvoice Type
datestringInvoice Date
invoice_numberintegerInvoice Number
payment_methodstringInvoice Payment Method
sub_totalobject
shipping_costobject
cod_costobject
discountobject
taxobject
totalobject
shipping_cost_discountobject
itemsarray of object
customerobject
companyobject | null
sluginteger | nullSlug
qr_codestringQR Code

Source ​

Generated from Salla's official documentation, fetched 2026-10-26. Found a difference from what Salla actually sends? Open an issue.

Not affiliated with Salla or Zid. Payloads and schemas come from their official documentation. | غير تابع لسلة أو زد