Loading…

Apply for invoice

```javascript WXAPI.invoiceApply({ token: '000' }) ``` + token current user login credentials + orderId associated order ID + account bank and account number + address company address + consumption charges + remark note + comName company name + email Invoice delivery email address + extJsonStr extended attribute JSON format data, JSON format string, save the additional information you need the user to fill in here + invoiceType p is an ordinary electronic invoice; b is a value-added tax electronic special invoice + mobile Invoice delivery mobile number + tel company phone number + tfn tax number [Please click to view the interface request parameters](##/%E5%89%8D%E7%AB%AFapi%E6%8E%A5%E5 %8F%A3%E6%96%87%E6%A1%A3/%E8%B4%A2%E5%8A%A1%E7%AE%A1%E7%90%86/applyUsingPOST_1) ```json { "code": 0, "data": { "extJson": { "apifm account": "1", "Address and Phone": "1", "Account opening bank and account number": "1" }, "info": { "amount": 111, "comName": "1", "consumption": "service fee", "dateAdd": "2022-01-10 20:26:47", "id": 651, "remark": "1", "status": 0, "statusStr": "Pending", "tfn": "1", "uid": 1351478, "userId": 951 } }, "msg": "success" } ``` + info Basic information for this application for invoicing - comName header - tfn tax number - consumption invoicing content - amount invoicing amount - id billing record id - remark remarks + extJson Extended attributes submitted for this application for invoicing # How to specify order application invoice ## How to determine whether an order has applied for an invoice For the order list or details, you can judge whether you have applied for it by judging `invoiceId`. If you have applied for it, the id of the application for invoicing record is stored here. The invoice information can be read through the invoice details interface. ## Apply for invoice To apply for the `orderId` parameter in the invoicing interface, just pass the order id (the order id is the 6-digit number, not the order number, don’t make a mistake~) Only one invoice can be applied for an order, and an invoice can only be applied after the transaction is successful (receipt is confirmed).