茂阳
  1. 订单-退货单
茂阳
  • 蔬东坡开放平台API文档
    • 什么是蔬东坡开放平台
    • 开发入门
      • API调用协议
      • 签名生成规则
    • 基础数据接口
      • 获得全部站点
      • 发货时间段列表
      • 用户类型列表
      • 商品分类列表
      • 获得全部仓库
      • 业务员新增
      • 获取采购员、供应商数据
      • 区域列表
      • 供应商新增
      • 商品单位列表
      • 业务员列表
    • 库房
      • 订单发货出库
      • 批次库存列表
    • 商品
      • 商品标签
      • 编辑商品分类
      • 新增商品分类
      • 删除商品分类
      • 新建商品
      • 搜索商品
      • 更新商品
    • 订单
      • 新增实收变更
      • 订单标签
      • 查询实收变更详情
      • 订单商品标签查询
      • 搜索订单
      • 批量创建订单
      • 新建订单
      • 完成订单
      • 订单关闭
      • 获取配送信息
    • 采购单
      • 新增采购单
      • 采购单收货
      • 采购单查询
      • 编辑采购单
    • 客户协议价
      • 客户类型列表
      • 协议价详情
      • 客户协议价列表
    • 客户
      • 获取下单商品信息
      • 获取线路列表
      • 新增客户
      • 获取集团列表
      • 搜索客户
    • 异步通知
      • 通知参数说明
    • 订单-退货单
      • 退货单列表
        GET
      • 退货单详情
        GET
      • 创建退货单
        POST
      • 审核拒绝退货单
        POST
    • 商品-溯源
      • 查询商品溯源
    • 出、入库单查询
      • 入库单查询
      • 出库单查询
    • 客户类型
      • 获得可下单商品列表
    • 现有库存查询
      • 现有库存查询
    • 库房-分拣
      • 分拣条形码获取订单明细
    • 采购-退货单
      • 搜索采购退货单
      • 保存采购退货单
    • 财务
      • 采购结算单列表
      • 客户结算单列表
  1. 订单-退货单

退货单详情

GET
/openApi/order/returnDetail

请求参数

Query 参数
appid
string 
必需
open_appid_api,由服务端分配唯一标示appid
timestamp
integer 
当前时间戳
必需
示例值:
{{timestamp}}
sign
string 
签名参数(32位)
必需
示例值:
{{sign}}
notice
string 
可选
site_id
string 
站点
可选
return_id
integer 
退货单ID
可选
return_no
string 
退货单号
可选

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://basesfpstest.sdongpo.com/openApi/order/returnDetail?appid&timestamp={{timestamp}}&sign={{sign}}'

返回响应

🟢200成功
application/json
Body
status
integer 
必需
data
object 
必需
id
string 
退货单ID
必需
user_id
string 
客户ID
必需
order_id
string 
订单ID
必需
delivery_date
string 
发货日期
必需
return_no
string 
退货单号
必需
type
string 
必需
退货单类型(0:退货退款,1:仅退款)
status
string 
必需
退货单状态(100:待审核,1:已审核, 2:待入库,3:待退款, 4:已完成, 5:已关闭, 101包含待审核、待入库、待退款
price
string 
申请退款总金额
必需
actual_price
string 
实际退款总金额
必需
store_id
string 
仓库ID
必需
store_in_id
string 
入库单ID
必需
remark
string 
退货原因
必需
audit_opinion
string 
退货审核意见
必需
create_time
string 
创建时间
必需
op_id
string 
操作人ID
必需
site_id
string 
站点ID
必需
source
string 
必需
updated_time
string 
更新时间
必需
return_date
string 
退货日期
必需
print_times
string 
必需
audit_time
string 
审核时间
必需
audit_pay_price
string 
审核时的已付金额
必需
is_return_service_charge
string 
是否退服务费
必需
return_service_charge
string 
退款服务费金额
必需
author
string 
必需
user
object 
必需
store_in_no
string 
入库单号
必需
store_in
array [object {19}] 
必需
order_no
string 
订单编号
必需
order_create_time
string 
订单创建时间
必需
is_pay_desc
string 
必需
pay_discount
string 
必需
user_name
string 
必需
apply_price
string 
必需
audit_price
string 
必需
driver_name
string 
必需
driver_tel
string 
必需
line_name
string 
必需
isCanExport
boolean 
必需
isCanPrint
boolean 
必需
refer_name
string 
必需
refer_tel
string 
必需
store_name
string 
必需
status_desc
string 
必需
true_actual_price
string 
必需
status_list
array [object {2}] 
必需
return_refund_type
string 
必需
actual_pay_price
string 
必需
log
array [object {4}] 
必需
detail
array [object {56}] 
必需
return_id
string 
必需
commodity_list
array [object {43}] 
必需
order_detail
array[string]
必需
pic_list
array[string]
必需
source_txt
string 
必需
return_type
string 
必需
message
string  | null 
必需
示例
{
    "status": 1,
    "data": {
        "id": "1",
        "user_id": "52",
        "order_id": "32",
        "delivery_date": "2024-10-12",
        "return_no": "RT24101111163800",
        "type": "0",
        "status": "4",
        "price": "13.7000",
        "actual_price": "13.70",
        "store_id": "1001",
        "store_in_id": "6",
        "remark": "货物变质、损坏",
        "audit_opinion": "",
        "create_time": "2024-10-11 11:20:08",
        "op_id": "1",
        "site_id": "6",
        "source": "1",
        "updated_time": "2024-10-16 15:32:27",
        "return_date": "2024-10-12",
        "print_times": "0",
        "audit_time": "2024-10-11 11:20:18",
        "audit_pay_price": "0.00",
        "is_return_service_charge": "0",
        "return_service_charge": "0.00",
        "author": "movee",
        "user": {
            "id": "52",
            "name": "王涛",
            "tel": "13018989896",
            "email": "婺城二批客户测试客户客户A",
            "address_detail": "婺城区西街道",
            "account_tel": "13018989896",
            "group_id": "0",
            "return_order_tpl_id": "621",
            "user_code": "30"
        },
        "store_in_no": "RK2410111120183302",
        "store_in": [
            {
                "id": "6",
                "in_no": "RK2410111120183302",
                "create_time": "2024-10-11 11:20:18",
                "purchase_time": "0000-00-00 00:00:00",
                "in_type": "4",
                "in_num": "1",
                "total_price": "9.00",
                "in_status": "2",
                "store_id": "1001",
                "about_id": "1",
                "memo": "",
                "operator": "movee",
                "op_id": "1",
                "in_time": "2024-10-11 11:20:18",
                "about_no": "RT24101111163800",
                "print_num": "0",
                "modify_in_time": null,
                "audit_user_id": "1",
                "in_reason": "0"
            }
        ],
        "order_no": "DD241011111805333755",
        "order_create_time": "2024-10-11 11:18:05",
        "is_pay_desc": "已付款",
        "pay_discount": "0",
        "user_name": "婺城二批客户测试客户客户A",
        "apply_price": "13.70",
        "audit_price": "13.70",
        "driver_name": "司机刘",
        "driver_tel": "18967001388",
        "line_name": "测试路线雨花区A线路",
        "isCanExport": true,
        "isCanPrint": true,
        "refer_name": "王涛",
        "refer_tel": "13018989894",
        "store_name": "默认库房岳麓区中电软件园",
        "status_desc": "已完成",
        "true_actual_price": "13.70",
        "status_list": [
            {
                "id": 0,
                "name": "提交"
            },
            {
                "id": 100,
                "name": "待审核"
            },
            {
                "id": 2,
                "name": "待入库"
            },
            {
                "id": 3,
                "name": "待退款"
            },
            {
                "id": 4,
                "name": "已完成"
            },
            {
                "id": 5,
                "name": "已关闭"
            }
        ],
        "return_refund_type": "0",
        "actual_pay_price": "0.00",
        "log": [
            {
                "user_name": "movee",
                "create_time": "2024-10-11 11:20:08",
                "type": "新建",
                "content": "生成退货单成功"
            },
            {
                "user_name": "movee",
                "create_time": "2024-10-11 11:20:18",
                "type": "完成",
                "content": "审核退货单成功"
            }
        ],
        "detail": [
            {
                "order_id": "32",
                "tax_rate": "0",
                "service_charge": "0.00",
                "id": "1",
                "return_id": "1",
                "commodity_id": "397",
                "commodity_name": "鸡枞菌1斤",
                "unit_sell": "包",
                "order_commodity_id": "59",
                "apply_amount": "1.00",
                "apply_price": "13.70",
                "audit_amount": "1.00",
                "audit_price": "13.70",
                "unit_price": "13.70",
                "in_price": "9.00",
                "recv_amount": "1.00",
                "return_amount": "0.00",
                "remark": "",
                "loss_num": "0.00",
                "expired_date": "0000-00-00",
                "production_date": "0000-00-00",
                "pp_detail_id": "0",
                "return_provider": "0",
                "updated_time": "2024-10-11 11:20:17",
                "inner_remark": "",
                "return_service_charge": "0.00",
                "price": "13.70",
                "parent_id": "396",
                "name": "鸡枞菌1斤",
                "summary": "净重1斤 浮动±0.1",
                "unit": "包",
                "unit_convert": "N",
                "commodity_code": "JJJ1683",
                "is_rough": "N",
                "unit_num": "1.00",
                "is_batch": "0",
                "shelf_life": "0",
                "provider_type": "1",
                "pool_provider_id": "1",
                "purchase_record_id": "0",
                "provider_supervisor": "5",
                "unit_show": "包",
                "total_price": "13.70",
                "tax_money": "0.00",
                "none_tax_total_price": "13.70",
                "none_tax_unit_price": "13.70",
                "sorting_amount": "1.00",
                "sorting_actual_diff_amount": "-1.00",
                "delivery_unit_price": "13.70",
                "raw_commodity_name": "鸡枞菌1斤",
                "bar_code": "",
                "user_commodity_alias_id": "",
                "user_commodity_alias_name": "",
                "user_commodity_alias_code": "",
                "provider_supervisor_name": "采购liu",
                "provider_supervisor_code": "caigou_liu_01"
            }
        ],
        "return_id": "1",
        "commodity_list": [
            {
                "index": 1,
                "parent_id": "396",
                "commodity_name": "鸡枞菌1斤",
                "commodity_code": "JJJ1683",
                "unit": "包",
                "delivery_amount": "1.00",
                "delivery_unit_price": "13.70",
                "return_amount": "1.00",
                "apply_amount": "1.00",
                "apply_price": "13.70",
                "apply_total_price": "13.70",
                "audit_amount": "1.00",
                "audit_price": "13.70",
                "audit_total_price": "13.70",
                "loss_num": "0.00",
                "remark": "",
                "inner_remark": "",
                "shelf_life": "0",
                "is_batch": "0",
                "id": "1",
                "order_commodity_id": "59",
                "unit_convert": "N",
                "unit_num": "1.00",
                "pp_detail_id": "0",
                "commodity_id": "397",
                "tax_money": "0.00",
                "tax_rate": "0",
                "none_tax_unit_price": "13.70",
                "none_tax_total_price": "13.70",
                "service_charge": "0.00",
                "return_service_charge": "0.00",
                "provider_supervisor": "5",
                "logo": "http://base-image.sdongpo.com/base_1530/upload_pic/909_com_thumb_20240903133803002bcfb766d6a0bbceb86.png",
                "is_pool_provider": 0,
                "pool_provider_name": "测试供应商-1",
                "return_provider": "未通过采购任务生成采购单,不可生成采购退回单",
                "user_id": "52",
                "account_provider_id": 0,
                "account_ratio": "0.00",
                "unit_convert_text": "1包=1.00斤",
                "purchase_order_info": "未通过采购任务生成采购单,不可生成采购退回单",
                "is_pool_provider_return": 0,
                "account_provider_name": ""
            }
        ],
        "order_detail": [],
        "pic_list": [],
        "source_txt": "后台",
        "return_type": "order"
    },
    "message": null
}
上一页
退货单列表
下一页
创建退货单
Built with