学分

这是我们崭新的REST API的文档页面-并不是要找到它。此API尚未准备好供公众使用。随着我们的成长,我们正在砍伐和改变很多。因此,如果您构建使用它的东西,那么很可能在以后的更新中中断。 不要说您没有被警告!

网址:

//api.meituohu.com/v2/internal/invoices/{invoiceid}/credits

方法):

得到,发布

回应格式:

JSON,XML

描述:

允许检索信用清单并应用付款,以便客户’s credit can be used

参量

名称 类型 描述
ID 数字 如果type为AdvancePayment,则Id是唯一的银行标识符。
如果type为Id,则为唯一七星彩预测标识符。
如果type是OverPayment,则Id是唯一的七星彩预测付款标识符。
数字 可以贷记的金额。
日期 日期 如果类型为AdvancePayment,则日期为付款日期。
如果类型为,则日期为七星彩预测日期。
如果type是OverPayment,则Date是交易日期。
类型 信用类型。此参数的可接受值为:
1. 超额付款
2. 预付款
3. 信用票据
评论 此记录的注释

GET操作

返回积分列表。

网址: / internal / invoices / {invoiceid} /学分

获取信用清单的示例响应


[{
    " 量 ": 46.0000,
    " 评论 ": "Advance Payment on Invoice Test #1111111435",
    " 日期 ": "2013-06-07 12:00:00",
    " ID ": 23438824,
    " 类型 ": "预付款"
}, {
    " 量 ": 46.0000,
    " 评论 ": "Credit Note #1111111435",
    " 日期 ": "2013-06-07 12:00:00",
    " ID ": 23081430,
    " 类型 ": "信用票据 "
}, {
    " 量 ": 100.0000,
    " 评论 ": "Advance Payment on Invoice Test #1111111462",
    " 日期 ": "2013-06-10 12:00:00",
    " ID ": 23438895,
    " 类型 ": "预付款"
}, {
    " 量 ": 100.0000,
    " 评论 ": "Advance Payment on Invoice Test #1111111465",
    " 日期 ": "2013-06-10 12:00:00",
    " ID ": 23438896,
    " 类型 ": "预付款"
}, {
    " 量 ": 468.0000,
    " 评论 ": "Advance Payment on Invoice Test #1111111461",
    " 日期 ": "2013-06-10 12:00:00",
    " ID ": 23438898,
    " 类型 ": "预付款"
}]

开机自检操作

将多个信用分配给七星彩预测。 API将返回更新的七星彩预测作为响应(HTTP状态200)。

网址: / internal / invoices / {invoiceid} /学分

信用POST的示例请求


[{
    " 量 ": 100.0000,
    " 评论 ": "Advance Payment on Invoice Test #1111111462",
    " 日期 ": "2013-06-10 12:00:00",
    " ID ": 23438895,
    " 类型 ": "预付款"
},
{
    " 量 ": 150.0000,
    " 评论 ": "Overpayment on Invoice Test #1111111462",
    " 日期 ": "2013-06-15 12:00:00",
    " ID ": 6745454,
    " 类型 ": "超额付款"
}]

信用POST的示例响应


{
  "Address": {
    "AddressLine1": 123 Tooley Street,
    "AddressLine2": null,
    "AddressLine3": null,
    "AddressLine4": null,
    "PostalCode": null
  },
  "Currency": {
    "Code": "GBP",
    "ExchangeRate": 1.0000,
    " ID ": 0,
    " 名称 ": "British Pounds",
    "Symbol": "£",
    "DisplaySymbolOnRight": false
  },
  "AutomaticCreditControlEnabled": true,
  "CustomerDiscount": 0,
  "CustomerId": 0,
  "CustomerName": null,
  "CustomerReference": null,
  "DeliveryAddress": null,
  "DueDate": "2012-10-09 12:00:00 +05:30",
  " 电子邮件 Count": 0,
  "GrossAmount": 117.5000,
  " 家 CurrencyGrossAmount: 117.5000, 
  " ID ": 196172,
  "InvoiceInECMemberState": false,
  "InvoiceOutsideECMemberState": true,
  "IssuedDate": "2012-10-09 12:00:00 +05:30",
  "LineItems": [{
    "ApplyTax1": false,
    "ApplyTax2": false,
    "ApplyTax3": false,
    "ApplyTax4": false,
    "ApplyTax5": false,
    "NominalCode": 2341,
    "描述": "",
    "Number": 1,
    "ProductCode": "510",
    "ProductName": "Mobile",
    "Quantity": 10.0000,
    "Rate": 10.0000,
    "Tax1Amount": 0.0000,
    "Tax2Amount": 0.0000,
    "Tax3Amount": 0.0000,
    "Tax4Amount": 0.0000,
    "Tax5Amount": 0.0000,
    "VATAmount": 17.5000,
    "VATExempt": 0,
    "VATLevel": 17.5000,
    "ProjectNumber": 0
  }],
  "LastPaymentDate": "2012-10-09 12:00:00 +05:30",
  "NetAmount": 100.0000,
  "Number": 2,
  "OverdueDays": 0,
  "PaidDate": null,
  "PaymentLines": [{
    "AccountId": 55166,
    " 量 ": 110.5000,
    " ID ": 2,
    "InvoiceNumber": 0,
    " 日期 ": "2012-10-09 12:00:00 +05:30",
    "Method": 409844,
    "Note": "Test Payment",
    "Permalink": "/v2/documents/invoice/payment/3a22b041-8d45-496a-946d-bd2252a0d28c"
  }, {
    "AccountId": 55166,
    " 量 ": 7.0000,
    " ID ": 53,
    "InvoiceNumber": 0,
    " 日期 ": "2012-10-09 12:00:00 +05:30",
    "Method": 409844,
    "Note": "",
    "Permalink": "/v2/documents/invoice/payment/3a22b041-8d45-496a-946d-bd2252a0d546"
  }],
  "Status": "Paid",
  "SuppressNumber": 0,
  "TotalPaidAmount": 117.5000,
  "UpdateCustomerAddress": false,
  "UpdateCustomerDeliveryAddress": false,
  "UseCustomDeliveryAddress": false,
  "VATAmount": 17.5000,
  "VATNumber": "",
  "PreviousNumber" : 1,
  "NextNumber" : 3,
  "Permalink": "/v2/documents/invoice/3a22b041-8d45-496a-946d-bd2252a0d28c",
  "PackingSlipPermalink": "v2/documents/packingslip/3a22b041-8d45-496a-946d-bd2252a0d28c"
  "ReminderLetters": [{
    "IsSent": true,
    "Number": 3,
    "SentDate": "2012-07-30 12:00:00"
  }, {
    "IsSent": true,
    "Number": 1,
    "SentDate": "2008-01-02 12:00:00"
  }, {
    "IsSent": true,
    "Number": 2,
    "SentDate": "2008-01-02 12:00:00"
  }],
  "IsWhtDeductionToBeApplied": true
}

了解KashFlow如何与您的业务和书籍一起使用