POST api/invoice/jewelry
صدور صورتحساب فروش طلا، جواهر و پلاتین ثبت اجرت ساخت، سود، و حقالعمل الزامی است
Request Information
URI Parameters
None.
Body Parameters
اطلاعات صورتحساب
InvoiceSalesJewelryData| Name | Description | Type | Additional information |
|---|---|---|---|
| items |
لیست اقلام فاکتور |
Collection of InvoiceItemJewelry |
Required |
| token |
توکن (فقط برای سرویس نمایندگی) |
||
| uuid |
یک GUID منحصر بفرد برای هر درخواست ارسالی |
Required |
|
| internalId |
کد داخلی صورتحساب |
Required |
|
| no |
شماره مسلسل |
Required |
|
| dateTime |
تاریخ و زمان صدور صورتحساب (شمسی یا میلادی) |
Required |
|
| invoiceNetPrice |
مجموع خالص فاکتور |
Required |
|
| items |
لیست اقلام فاکتور |
Collection of InvoicesItem |
Required |
| buyer |
خریدار |
BuyerData |
Required |
| settlement |
نحوه تسویه |
SettlementType |
Required |
| payment |
مبلغ پرداختی نقدی فقط در نحوه تسویه (نقد/نسیه) اجباری میباشد |
||
| description |
توضیحات فاکتور |
||
| invoiceIssue |
موضوع صورتحساب (پیش فرض: جدید) |
IInvoiceIssue | |
| sourceInternalId |
کد داخلی صورتحساب مرجع |
||
| send |
ارسال به سازمان امورمالیاتی |
Request Formats
application/json, text/json
{
"items": [
{
"no": 1,
"stuffId": "sample string 2",
"description": "sample string 3",
"qty": 4.0,
"carat": 1.0,
"unit": "sample string 5",
"unitPrice": 6.0,
"discount": 7.0,
"vatRate": 8,
"wage": 9.0,
"profit": 10.0,
"commission": 11.0,
"otherTaxDescription": "sample string 12",
"otherTaxRate": 13,
"govTaxDescription": "sample string 14",
"govTaxRate": 15
},
{
"no": 1,
"stuffId": "sample string 2",
"description": "sample string 3",
"qty": 4.0,
"carat": 1.0,
"unit": "sample string 5",
"unitPrice": 6.0,
"discount": 7.0,
"vatRate": 8,
"wage": 9.0,
"profit": 10.0,
"commission": 11.0,
"otherTaxDescription": "sample string 12",
"otherTaxRate": 13,
"govTaxDescription": "sample string 14",
"govTaxRate": 15
}
],
"token": "sample string 1",
"uuid": "sample string 2",
"internalId": "sample string 3",
"no": "sample string 4",
"dateTime": "sample string 5",
"invoiceNetPrice": 6.0,
"buyer": {
"type": 0,
"nationalCode": "sample string 1",
"economicCode": "sample string 2",
"zipCode": "sample string 3",
"name": "sample string 4",
"mobile": "sample string 5",
"address": "sample string 6",
"phone": "sample string 7",
"branchCode": 1
},
"settlement": 0,
"payment": 7.0,
"description": "sample string 8",
"invoiceIssue": 0,
"sourceInternalId": 1,
"send": true
}
application/xml
Sample not available.
text/xml
Sample not available.
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
InvoiceReturn| Name | Description | Type | Additional information |
|---|---|---|---|
| megaPayId |
کد پیگیری |
||
| taxId |
شماره منحصر به فرد مالیاتی |
||
| status |
وضعیت صورتحساب |
InvoicePhases | |
| error |
شرح خطا |
||
| latestTaxId |
آخرین شماره منحصر به فرد مالیاتی در صورتی که صورتحساب دارای "اصلاحی"، "ابطالی" یا "برگشت از فروش" باشد |
||
| mainTaxId |
شماره منحصر به فرد مالیاتی صورتحساب مرجع در صورتی که موضوع صورتحساب "اصلی" نباشد |
||
| issue |
موضوع صورتحساب |
InvoiceIssues | |
| internalId |
کد داخلی |
||
| uuid |
UUID |
||
| json |
داده ارسالی به سامانه مؤدیان |
Response Formats
application/json, text/json
{
"megaPayId": 1,
"taxId": "sample string 1",
"status": 0,
"error": [
"sample string 1",
"sample string 2"
],
"latestTaxId": "sample string 2",
"mainTaxId": "sample string 3",
"issue": 1,
"internalId": "sample string 4",
"uuid": "sample string 5",
"json": {}
}
application/xml, text/xml
<InvoiceReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MegaPayHub.Models.Invoice">
<error xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</error>
<internalId>sample string 4</internalId>
<issue>Main</issue>
<json />
<latestTaxId>sample string 2</latestTaxId>
<mainTaxId>sample string 3</mainTaxId>
<megaPayId>1</megaPayId>
<status>AwaitingSend</status>
<taxId>sample string 1</taxId>
<uuid>sample string 5</uuid>
</InvoiceReturn>