本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
order data type, you will need to specify the Invoice issuance to be from Salla. data, url, and file, you will need to set it to custom from the Store Settings.orders.read_write - Orders Read & WriteAuthorization: Bearer ********************{
"order_id": 1818813486,
"type": "tax_invoice",
"data_type": "data",
"url": "https://i.ibb.co/jyqRQfQ/invoice.pdf",
"invoice_number": "2sdfs435d",
"sub_total": 999,
"total": 7789,
"shipping_cost": 78,
"cash_on_delivery_cost": 789,
"tax": 10,
"tax_value": 35.3
}curl --location --request POST 'https://echo.apifox.com/anything/orders/invoices' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_id": 1818813486,
"type": "tax_invoice",
"data_type": "data",
"url": "https://i.ibb.co/jyqRQfQ/invoice.pdf",
"invoice_number": "2sdfs435d",
"sub_total": 999,
"total": 7789,
"shipping_cost": 78,
"cash_on_delivery_cost": 789,
"tax": 10,
"tax_value": 35.3
}'{
"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"
}
}
]
}
}扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群