Skip to content

Create Receipt

Description

開立發票。

Resource

GET /v1/receipt

Authorization

採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login

Query Parameters

Name Type Description
authkey string 公司認證碼
worder_id string 訂單編號
tax_ID_number string 客戶統編
start_month string 起始年月

Request

GET /v1/receipt?authkey=vbuf8b1blyrm7k7fbnrfpu59twhkuywg&worder_id=00003021090300001&tax_ID_number=&start_month=202109

Response Body Parameters

Name Type Description
invoice_rec Invoice 發票記錄檔

Response Body Parameters - Invoice

Name Type Description
company_id string 公司編號
shop_id string 門是編號
inv_no_b string 發票起始號碼
inv_no_e string 發票截止號碼
ticket_id string 關聯單據
input_date string 開立日期
cust_code string 客戶統編
amount string 開立金額
tax string 應稅金額
taxtype string 稅別
inv_status string 發票狀態
mod_date string 異動日期
mod_user string 異動人員
user_id string 開立人員
pos_id string 機號
inv_source string 開立來源
transfer_status string 傳輸狀態
last_update string 最後異動日
Split_id string 拆單單據
pkno string PK單號
Issend string 拋轉ERP
Issend2 string 拋轉ERP(鼎新)
random_no string 隨機碼
npoban string 捐贈碼
buyer_number string 買方載具號碼
inv_fmt string 發票聯式
batchnumber string 電子發票上傳中華票服平台的回應碼
invrec_namt string 免稅金額
invrec_uamt string 未稅金額
exchange string 被換開
change_lnk string 換開關連碼
printmark string 電子發票列印註記
buyer_type string 買方載具類別
creditcard_no string 信用卡號末4碼
void_date string 發票作廢日期
cancel_date string 發票註銷日期
ret_ticketid string 銷退單號
AESKey string AESKey
invoice_title string 發票抬頭
begin_ym string 發票起始年月
end_ym string 發票截止年月
GUI_number string 統一編號

Response

{
  "invoice_rec": {
    "company_id": "54036645",
    "shop_id": "000030",
    "inv_no_b": "VH10001576",
    "inv_no_e": "VH10001576",
    "ticket_id": "00003021090300001",
    "input_date": "2021-09-10 13:45:37.000",
    "cust_code": "",
    "amount": "20.0000",
    "tax": "20.0000",
    "taxtype": "1",
    "inv_status": "0",
    "mod_date": null,
    "mod_user": null,
    "user_id": null,
    "pos_id": "K1",
    "inv_source": "3",
    "transfer_status": "0",
    "last_update": "2021-09-10 13:45:37.000",
    "Split_id": null,
    "pkno": "000030K1-202109100001",
    "Issend": "0",
    "Issend2": "0",
    "random_no": "1526",
    "npoban": "",
    "buyer_number": "",
    "inv_fmt": "9",
    "batchnumber": null,
    "invrec_namt": ".0000",
    "invrec_uamt": "19.0000",
    "exchange": "0",
    "change_lnk": null,
    "printmark": "1",
    "buyer_type": "",
    "creditcard_no": "",
    "void_date": null,
    "cancel_date": null,
    "ret_ticketid": null,
    "AESKey": "DE92AE7B79AE53D56B32F89D8B57C587",
    "invoice_title": "梁社漢排骨",
    "begin_ym": "202109",
    "end_ym": "202110",
    "GUI_number": "24436074"
  }
}