Light Mode
Create Invoice
POST
/orders/invoicesLast modified: 19 days ago
This endpoint allows you to create an invoice to a specific order from your side.
:::tip[Note]
For the order
data type, you will need to specify the Invoice issuance to be from Salla.
However, for the other data types available, such as data
, url
, and file
, you will need to set it to custom from the Store Settings.
:::
Request
Body Params application/json
No schema defined
Example
Not configured
Request samples
Responses
Success(200)
Not Found(404)
Error Validation(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
Example | `Data` Data Type Response
{
"status": 200,
"success": true,
"data": {
"id": 1333835642,
"order_id": 1371877152,
"type": "Tax Invoice",
"invoice_number": "2sdfs435d",
"sub_total": {
"amount": 999,
"currency": "ر.س"
},
"shipping_cost": {
"amount": 78,
"currency": "ر.س"
},
"cod_cost": {
"amount": 789,
"currency": "ر.س"
},
"discount": {
"amount": 0,
"currency": "ر.س"
},
"tax": {
"percent": 10,
"amount": {
"amount": 35.3,
"currency": "ر.س"
}
},
"total": {
"amount": 7789,
"currency": "ر.س"
},
"date": "2022-03-23",
"items": [
{
"name": "فستان فراولة",
"quantity": 1,
"price": {
"amount": "90.50",
"currency": "SAR"
},
"discount": {
"amount": "0.00",
"currency": "SAR"
},
"tax": {
"percent": "15.00",
"amount": {
"amount": "13.58",
"currency": "SAR"
}
},
"total": {
"amount": 104.08,
"currency": "SAR"
}
}
]
}
}
Last modified: 19 days ago