63.销货收款单查询(gy.erp.customerpayment.get)

马浩栋发表于:2019年01月28日 18:03:47更新于:2019年02月14日 10:56:42

1.1    业务简述

1.2    请求参数

字段名

类型

描述

必填

备注

page_no

int

页码

默认为1

page_size

int

每页大小

默认为10

start_date

datetime

修改时间开始段


end_date

datetime

修改时间结束段


approve_status

int

审核状态

0:未审核

1:已审核

code

string

单据编号


Json请求示例:

{
    "appkey": "112194",
    "sessionkey": "754a424bb6874a1fb8a7371f05e83974",
    "method": "gy.erp.customerpayment.get",
    "page_no": "1",
    "page_size": "10",
    "sign": "6D7097FDF1FD5216AF4FF833CD349A5B"
}

1.3    响应参数

字段名

类型

描述

必填

备注

success

boolean

成功与否



errorDesc

string

错误信息



subErrorCode

string




errorDesc

string




subErrorDesc

string




requestMethod

string




customerPayments

customerPayment[]

销货收款单列表



total

int

总记录数



customerPayment:

字段名

类型

描述

必填

备注

create_date

datetime

创建时间



modify_date

datetime

修改时间



note

string

备注



amount

double

结算金额



approve_date

datetime

审核时间



account

string

收款账户账号



account_name

string

收款账户名称



account_code

string

收款账户代码



detailInfos

customerPaymentDetail[]

收款明细



code

string

单据编号



vip_code

string

会员代码



paytype_name

string

结算方式



approve_status

int

审核状态

0:未审核

1:已审核

account_id

string

收款账户ID



customerPaymentDetail:

字段名

类型

描述

必填

备注

payment

double

总金额



note

string

备注



order_code

string

订单单据编号



platform_code

string

订单平台单号



payment_current

double

本次结算金额



payment_left

double

未结算金额



shop_code

string

店铺代码



Json返回示例:

{
    "success": true,
    "errorCode": "",
    "subErrorCode": "",
    "errorDesc": "",
    "subErrorDesc": "",
    "requestMethod": "gy.erp.customerpayment.get",
    "total": 2,
    "customerpayments": [{
        "create_date": "2017-07-25 16:38:20",
        "modify_date": "2017-07-25 16:38:20",
        "note": null,
        "amount": 500.0,
        "approve_date": null,
        "account": null,
        "account_name": null,
        "account_code": null,
        "detailInfos": [{
            "payment": 0.0,
            "note": null,
            "order_code": "SO51368914314",
            "platform_code": "201707251636029628",
            "payment_current": 500.0,
            "payment_left": 0.0,
            "shop_code": "qytest"
        }],
        "code": 51369096026,
        "vip_code": "qy-13701874183",
        "paytype_name": "支付宝",
        "approve_status": 0,
        "account_id": null
    }, {
        "create_date": "2016-07-19 16:08:30",
        "modify_date": "2016-07-19 16:08:35",
        "note": "",
        "amount": 5.0,
        "approve_date": "2016-07-19 16:08:35",
        "account": null,
        "account_name": null,
        "account_code": null,
        "detailInfos": [{
            "payment": 8.0,
            "note": null,
            "order_code": "SO21039560825",
            "platform_code": "1468912004671",
            "payment_current": 5.0,
            "payment_left": 3.0,
            "shop_code": null
        }],
        "code": 21045353381,
        "vip_code": "百车劝说",
        "paytype_name": "支付宝",
        "approve_status": 1,
        "account_id": null
    }]
}