销售单据api
| 接口地址 | http://host:port/pospal-api2/openapi/v1/ticketopenapi/queryallpaymethod | ||
|---|---|---|---|
| 请求头 |
|
||
| 请求方式 | post | ||
| 请求体 |
|
||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | string | pospal配置的访问凭证 |
| 返回结果 |
|
||
| 字段名 | 类型 | 说明 | |
| status | string | 是否正确处理请求,返回success或error,不区分大小写 | |
| messages | string[] | 处理结果的消息 | |
| errorcode | int | 业务处理的错误代码,参见错误代码表 | |
| data | list | 实体信息 | |
| code | string | 九游会棋牌的支付方式代码 | |
| name | string | 九游会棋牌的支付方式名称 | |
| 接口地址 | http://host:port/pospal-api2/openapi/v1/ticketopenapi/queryticketbysn | ||
|---|---|---|---|
| 请求头 |
|
||
| 请求方式 | post | ||
| 请求体 |
|
||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | string | pospal配置的访问凭证 |
| sn | 是 | string | 单据序列号 |
| 返回结果 |
|
||
| 字段名 | 类型 | 说明 | |
| status | string | 是否正确处理请求,返回success或error,不区分大小写 | |
| messages | string[] | 处理结果的消息 | |
| errorcode | int | 业务处理的错误代码,参见错误代码表 | |
| data | json | 单据实体信息 | |
| cashieruid | long | 收银员唯一标识 | |
| customeruid | long |
会员唯一标识 为0表示收银时没选择会员 | |
| sn | string | 单据序列号 | |
| datetime | string | 单据产生的时间,格式为yyyy-mm-dd hh:mm:ss | |
| totalamount | bigdecima | 单据实收总额 | |
| totalprofit | bigdecima | 单据总利润 | |
| discount | bigdecima | 单据折扣 | |
| externalorderno | string | 第三方平台支付单号 | |
| remark | string | 备注 | |
| rounding | bigdecima | 抹零数额,比如3.1元收别人3元,0.1就是被抹零数额 | |
| tickettype | string | 单据类型:sell销售单据, sell_return退货单据。不区分大小写 | |
| invalid | int | 值为1时表示单据已作废(反结账) | |
| weborderno | string | 网单号(直接在pos端收银,不会有值。只有通过外卖平台,小程序,或者订单推送接口 的网单才有) | |
| payments | list | 多种九游会棋牌的支付方式 | |
| code | string | 九游会棋牌的支付方式代码 | |
| amount | bigdecimal | 支付金额 | |
| pointusage | json | 积分使用明细 上面的demo表示 80积分抵现8元 | |
| customeruid | long | 会员uid | |
| point | bigdecimal | 积分 | |
| money | bigdecimal | 金额 | |
| exchangetype | int | 积分使用类型 1:积分抵现 2:积分兑换 | |
| items | list | 单据条目实体 | |
| name | string | 单据条目商品名称 | |
| buyprice | bigdecimal | 单据条目商品进货价 | |
| sellprice | bigdecimal | 单据条目商品销售价 | |
| customerprice | bigdecimal | 单据条目商品会员价 | |
| quantity | bigdecimal | 单据条目销售的商品数量,如3.5箱 | |
| discount | bigdecimal | 单据条目所打的折扣 | |
| customerdiscount | bigdecimal | 单据条目所打的会员折扣 | |
| totalamount | bigdecimal | 单据条目总价 | |
| totalprofit | bigdecimal | 单据条目总利润 | |
| iscustomerdiscount | int | 数据为1时表求享受了会员折扣 | |
| productuid | long |
单据条目所对应的商品唯一标识 | |
| ticketitemattributes | list | 单据条目属性、备注实体 | |
| attributename | string | 属性名称,即口味选项,如加糖、加水、加冰 | |
| attributevalue | string | 属性值,即口味价格 | |
| saleguiderlist | list | 导购员信息 | |
| guideruid | long | 导购员uid | |
| guiderjobnumber | string | 导购员工号 | |
| guidername | string | 导购员名字 | |
| ticketstoreappidoraccount | string | 会员所在消费门店的appid或账号 |
|
| 接口地址 | http://host:port/pospal-api2/openapi/v1/ticketopenapi/queryticketbyuid | ||
|---|---|---|---|
| 请求头 |
|
||
| 请求方式 | post | ||
| 请求体 |
|
||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | string | pospal配置的访问凭证 |
| uid | 是 | long | 单据uid |
| 返回结果 |
| ||
| 字段名 | 类型 | 说明 | |
|
| |||
| 接口地址 | http://host:port/pospal-api2/openapi/v1/ticketopenapi/queryticketpages | ||
|---|---|---|---|
| 请求头 |
|
||
| 请求方式 | post | ||
| 请求体 |
|
||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | string | pospal配置的访问凭证 |
| starttime | 是 | string | 格式为yyyy-mm-dd hh:mm:ss |
| endtime | 是 | string | 格式为yyyy-mm-dd hh:mm:ss endtime - starttime<=1天 |
| postbackparameter | 否 | json | 查询ag九游会ag九游会官网首页时可以不传,之后的内容从返回结果中取出 |
| parametertype | 是 | string | 从返回结果中取出 |
| parametervalue | 是 | string | 从返回结果中取出 |
| 返回结果 |
|
||
| 字段名 | 类型 | 说明 | |
| status | string | 是否正确处理请求,返回success或error,不区分大小写 | |
| messages | string[] | 处理结果的消息 | |
| errorcode | int | 业务处理的错误代码,参见错误代码表 | |
| pagesize | int | 本次查询预期从库存取出记录数,如果结果集的长度小于pagesize,不需要进行下一页查询 | |
| postbackparameter | json | 分页查询回传到服务器的参数结构从第二页开始必须回传,如果没传,每次查询都是第一页 | |
| parametertype | string | 从返回结果中直接取出用于回传,不能变其值 | |
| parametervalue | string | 从返回结果中直接取出用于回传,不能变其值 | |
| result | list | 单据实体信息,字段信息参照2. 根据单据序列号查询 | |
| 接口地址 | http://host:port/pospal-api2/openapi/v1/ticketopenapi/querycustomerhistoryticketsbyuid | ||
|---|---|---|---|
| 请求头 |
|
||
| 请求方式 | post | ||
| 请求体 |
|
||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | string | pospal配置的访问凭证 |
| starttime | 否 | string | 格式为yyyy-mm-dd hh:mm:ss |
| endtime | 否 | string | 格式为yyyy-mm-dd hh:mm:ss |
| customeruid | 是 | string | 会员在银豹系统的唯一标识 |
| queryallstoreconsume | 否 | int | 是否查询会员在所有门店的消费记录 1:是,0:否,默认0 |
| postbackparameter | 否 | json | 查询ag九游会ag九游会官网首页时可以不传,之后的内容从返回结果中取出 |
| parametertype | 是 | string | 从返回结果中取出 |
| parametervalue | 是 | string | 从返回结果中取出 |
| 返回结果 |
|
||
| 字段名 | 类型 | 说明 | |
| status | string | 是否正确处理请求,返回success或error,不区分大小写 | |
| messages | string[] | 处理结果的消息 | |
| errorcode | int | 业务处理的错误代码,参见错误代码表 | |
| pagesize | int | 本次查询预期从库存取出记录数,如果结果集的长度小于pagesize,不需要进行下一页查询 | |
| postbackparameter | json | 分页查询回传到服务器的参数结构从第二页开始必须回传,如果没传,每次查询都是第一页 | |
| parametertype | string | 从返回结果中直接取出用于回传,不能变其值 | |
| parametervalue | string | 从返回结果中直接取出用于回传,不能变其值 | |
| result | list | 单据实体信息,字段信息参照2. 根据单据序列号查询 | |
| 接口地址 | http://host:port/pospal-api2/openapi/v1/ticketopenapi/queryrefunticketbysellticketuid | ||
|---|---|---|---|
| 请求头 |
|
||
| 请求方式 | post | ||
| 请求体 |
|
||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | string | pospal配置的访问凭证 |
| selltcketuid | 是 | long | 销售单据uid |
| 返回结果 |
| ||
| 接口地址 | http://host:port/pospal-api2/openapi/v1/ticketopenapi/queryrefunticketbysellticketsn | ||
|---|---|---|---|
| 请求头 |
|
||
| 请求方式 | post | ||
| 请求体 |
|
||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | string | pospal配置的访问凭证 |
| selltcketsn | 是 | string | 销售单据sn |
| 返回结果 |
| ||
| 接口地址 | http://host:port/pospal-api2/openapi/v1/ticketopenapi/querysellticketbyrefunticketuid | ||
|---|---|---|---|
| 请求头 |
|
||
| 请求方式 | post | ||
| 请求体 |
|
||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | string | pospal配置的访问凭证 |
| refuntcketuid | 是 | long | 退贷单据uid |
| 返回结果 |
| ||
| 接口地址 | http://host:port/pospal-api2/openapi/v1/ticketopenapi/querysellticketbyrefunticketsn | ||
|---|---|---|---|
| 请求头 |
|
||
| 请求方式 | post | ||
| 请求体 |
|
||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | string | pospal配置的访问凭证 |
| refuntcketsn | 是 | string | 退贷单据sn |
| 返回结果 |
| ||
| 接口地址 | http://host:port/pospal-api2/openapi/v1/ticketopenapi/queryticketbyorderno | ||
|---|---|---|---|
| 请求头 |
|
||
| 请求方式 | post | ||
| 请求体 |
|
||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | string | pospal配置的访问凭证 |
| orderno | 是 | string | 网单号 |
| 返回结果 |
| ||
| 接口地址 | http://host:port/pospal-api2/openapi/v1/ticketopenapi/querymypaymethod | ||
|---|---|---|---|
| 请求头 |
|
||
| 请求方式 | post | ||
| 请求体 |
|
||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | string | pospal配置的访问凭证 |
| 返回结果 |
|
||
| 字段名 | 类型 | 说明 | |
| status | string | 是否正确处理请求,返回success或error,不区分大小写 | |
| messages | string[] | 处理结果的消息 | |
| errorcode | int | 业务处理的错误代码,参见错误代码表 | |
| data | list | 实体信息 | |
| code | string | 九游会棋牌的支付方式代码 | |
| name | string | 九游会棋牌的支付方式名称 | |