1. 外卖订单
Gokoo Third-Party Integration API
  • En
    • Start Readme Channel API Guide
    • Authentication
      • Channel Partner Authorization Login
      • Get Channel Partner AccessToken
      • Get Merchant OpenID
    • Product Management - Categories
      • Create Category
      • Edit Category
      • Delete Category
      • Get Category Detail
      • List Categories (Management)
      • List All Categories (For Product List)
      • Sort Categories
    • Merchant Management
      • Set delivery time
      • Business hours-set by day
      • Business hours setting
      • Modify business status
      • Set appointment days
      • Business hours management
    • Product Management - Products
      • Create Product
      • Edit Product
      • Delete Product
      • Get Product Detail
      • List Products
      • Search Products
      • Upload Product Image
      • Set Product On/Off Shelf (Batch)
      • Batch Update Product Stock
      • Batch Sold Out (Clear Stock)
      • Sort Products
    • Delivery Orders
      • Accept Order
      • Cancel Order (Merchant Reject)
      • Mark Food Ready (Prepared)
      • Apply for Delivery / Merchant Start Self-Delivery
      • Merchant Self-Delivery Completed
      • Query Order by Pickup Code
      • Verify Pickup Order (Scan Code)
      • List Orders (By Status)
      • Get Order Detail
      • Get Order Financial Details
      • Reprint Receipt
      • Order financial details-for Thailand
      • Order financial details-for Malaysia
    • Webhooks
      • Order Status Change Callback
  • 中文
    • 接口说明 v1.0
    • 商品管理
      • 商品排序
      • 全部分类(商品列表用)
      • 添加分类
      • 分类管理列表
      • 删除分类
      • 商品图片上传
      • 商品上下架(含批量)
      • 分类详情
      • 添加商品
      • 商品列表(搜索)
      • 商品批量改库存
      • 删除商品
      • 商品详情
      • 修改商品
      • 商品批量沽清
      • 分类排序
      • 商品列表
      • 修改分类
    • 商户管理
      • 营业时间——按天设置
      • 设置配送时间
      • 营业时间设置
      • 修改营业状态
      • 营业时间管理
      • 设置预约天数
    • 账户部分
      • 渠道商授权获取AccessToken
      • 渠道商授权获取商户openid
      • 渠道商授权登录
    • 外卖订单
      • 重新打印小票
        POST
      • 订单状态变更回调
        POST
      • 扫码核销订单
        POST
      • 取消订单(商家拒单)
        POST
      • 自提码查询订单
        POST
      • 订单账目
        POST
      • 订单列表(各种状态的)
        POST
      • 订单详情
        POST
      • 订单财务明细-泰国
        POST
      • 订单财务明细-马来西亚
        POST
      • 沙箱-创建订单
        POST
      • 接单
        POST
      • 出餐
        POST
      • 申请配送_商家自己开始配送
        POST
      • 商家自配送完成
        POST
      • 沙箱-发送订单状态变更回调
        POST
  • Schemas
    • CommonBodyParams
    • CommonResponse
    • SuccessResponse
    • ErrorResponse
    • TimeSlot
    • TimeSlotWithSeconds
    • CategoryItem
    • ProductItem
    • NormSpec
    • NormGroup
    • OrderProduct
    • ShowButtons
    • StaffInfo
  1. 外卖订单

订单财务明细-马来西亚

Testing
POST
/api.php
订单财务详情,主体结构类似下图,有主项目和子项目组成,所有的条目均包含一个fields用以提取保存处理
image.png
返回参数说明
参数名归属类型说明
A:order_total_amount平台订单总金额
└ products_total_price平台商品原价+包装费
└ hongbao_package_amount平台购买红包套餐
└ user_delivery_fee平台收用户配送费(原价)
B:shop_subsidy_amount商户商家承担补贴
└ first_shop商户商家首单优惠
└ shop_manjian_youhui商户商家满减优惠
└ shop_coupon_youhui商户商家优惠券优惠
└ shop_discount_youhui商户商家折扣优惠
└ shop_vip_discount_youhui商户商家VIP折扣优惠
└ shop_huangou_youhui商户换购优惠
└ shop_vip_youhui商户商家VIP全店优惠(即将废弃)
C:shop_reduce_freight商户商家配送费补贴
D:platform_subsidy_amount平台平台承担补贴
└ first_roof平台首单优惠
└ roof_manjian_youhui平台满减优惠
└ roof_hongbao_amount平台红包抵扣
E:platform_reduce_freight平台平台配送费补贴
F:sst_amount平台订单SST
G:user_pay_amount平台客人实际支付=A-B-C-D-E+F
H:platform_expenses平台平台费用(平台支出)
└ platform_delivery_amount平台配送费扣除
└ platform_hongbao_amount平台购买红包套餐扣除
I:platform_commission_ratio平台平台抽佣=(A-B-C-H)*商家抽佣比例
J:platform_fee_amount平台平台实际服务费(不含税)=I-D-E
K:platform_fee_amount_with_sst平台平台实际服务费(含SST)=(I-D-E)*108%
L:shop_revenue_amount商家商家应得=G-H-K
M:staff_amount平台骑手佣金(骑手未接单/商家自配送/自提不显示金额)
N:shop_real_revenue_amount平台商家实际应得=L-C
O:delivery_amount平台配送费=实收用户配送费+C+E
└ base_freight平台基础配送费
└ special_shop_subsidy平台特殊商家补贴
└ time_subsidy平台时段补贴
└ time_freight_discount平台时段配送费折扣
└ capacity_control平台运力管控补贴

Request

Query Params

Header Params

Body Params application/x-www-form-urlencoded

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api.php?API=biz%2Fshop%2Ffinance%2Forder_balance' \
--header 'Authorization: {{bearerToken}}' \
--data-urlencode 'data={"order_id":"8000510"}' \
--data-urlencode 'CLIENT_API=BIZ' \
--data-urlencode 'openid={{openid}}'

Responses

🟢200
application/json
Success
Bodyapplication/json

Example
{
    "data": {
        "items": [
            {
                "index": "A",
                "title": "订单总金额",
                "amount": "946",
                "items": [
                    {
                        "title": "商品原价+包装费",
                        "amount": "938",
                        "fields": "products_total_price"
                    },
                    {
                        "title": "收用户配送费(原价)",
                        "amount": "8",
                        "fields": "user_delivery_fee"
                    }
                ],
                "gongshi": "",
                "fields": "order_total_amount"
            },
            {
                "index": "B",
                "title": "商家承担补贴",
                "amount": "0",
                "items": [],
                "gongshi": "",
                "fields": "shop_subsidy_amount"
            },
            {
                "index": "C",
                "title": "平台承担补贴",
                "amount": "0",
                "items": [],
                "gongshi": "",
                "fields": "platform_subsidy_amount"
            },
            {
                "index": "D",
                "title": "客人实际支付",
                "amount": "946",
                "items": [],
                "gongshi": "=A-B-C",
                "fields": "user_pay_amount"
            },
            {
                "index": "E",
                "title": "平台费用",
                "amount": "8",
                "items": [
                    {
                        "title": "配送费扣除",
                        "amount": "8",
                        "fields": "platform_delivery_amount"
                    }
                ],
                "gongshi": "",
                "fields": "platform_expenses"
            },
            {
                "index": "F",
                "title": "平台抽佣",
                "amount": "187.60",
                "items": [],
                "gongshi": "=(A-B-C-H)*20.00%(商家抽佣比例)",
                "fields": "platform_commission_ratio"
            },
            {
                "index": "G",
                "title": "商家应得",
                "amount": "750.4",
                "items": [],
                "gongshi": "=A-B-E-F",
                "fields": "shop_revenue_amount"
            },
            {
                "index": "H",
                "title": "骑手佣金",
                "amount": "143.00",
                "items": [],
                "gongshi": "骑手未接单\/商家自配送\/自提不显示金额",
                "fields": "staff_amount"
            },
            {
                "index": "I",
                "title": "平台实际服务费",
                "amount": "187.6",
                "items": [],
                "gongshi": "=F-C",
                "fields": "platform_fee_amount"
            },
            {
                "index": "J",
                "title": "商家实际应得",
                "amount": "750.4",
                "items": [],
                "gongshi": "=G-商家减免配送费",
                "fields": "shop_real_revenue_amount"
            },
            {
                "index": "K",
                "title": "配送费",
                "amount": "8",
                "items": [
                    {
                        "title": "基础配送费",
                        "amount": "8"
                    }
                ],
                "gongshi": "=实收用户配送费+商家减免配送费+配送卡",
                "fields": "delivery_amount"
            }
        ],
        "currency": "฿"
    },
    "error": "0",
    "message": "success"
}
Modified at 2026-06-09 09:45:20
Previous
订单财务明细-泰国
Next
沙箱-创建订单
Built with