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用以提取保存处理
a06b668878ce4951bee4d8871b304f8c.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_freight_youhui商户商家配送费补贴
└ shop_vip_youhui商户商家VIP全店优惠(即将废弃)
└ shop_buyfree_youhui商户买M赠N
└ shop_buysave_youhui商户N件立省
D:platform_subsidy_amount平台平台承担补贴
└ first_roof平台首单优惠
└ roof_manjian_youhui平台满减优惠
└ roof_hongbao_amount平台红包抵扣
└ roof_peicard_youhui平台配送卡抵扣
G:user_pay_amount平台客人实际支付=A-B-C1-D-E+F
H:platform_expenses平台平台费用(平台支出)
└ platform_delivery_amount平台配送费扣除
└ platform_hongbao_amount平台购买红包套餐扣除
I:platform_commission_ratio平台平台抽佣=(A-B-E)*商家抽佣比例
L:shop_revenue_amount商家商家应得=A-B-E-F
staff_amount平台骑手佣金(骑手未接单/商家自配送/自提不显示金额)
J:platform_fee_amount平台平台实际服务费=I-D-E
N:shop_real_revenue_amount平台商家实际应得=L-C2
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":"5208510"}' \
--data-urlencode 'CLIENT_API=BIZ' \
--data-urlencode 'openid={{openid}}'

Responses

🟢200
application/json
Success
Bodyapplication/json

Example
{
    "data": {
        "items": [
            {
                "index": "A",
                "title": "订单总金额",
                "amount": "48",
                "items": [
                    {
                        "title": "商品原价+包装费",
                        "amount": "24",
                        "fields": "products_total_price"
                    },
                    {
                        "title": "收用户配送费(原价)",
                        "amount": "24",
                        "fields": "user_delivery_fee"
                    }
                ],
                "gongshi": "",
                "fields": "order_total_amount"
            },
            {
                "index": "B",
                "title": "商家承担补贴",
                "amount": "2",
                "items": [
                    {
                        "title": "满减优惠",
                        "fields": "shop_manjian_youhui",
                        "amount": "2.00"
                    }
                ],
                "gongshi": "",
                "fields": "shop_subsidy_amount"
            },
            {
                "index": "C1",
                "title": "商家承担配送补贴",
                "amount": "10.00",
                "items": [],
                "gongshi": "",
                "fields": "shop_reduce_freight"
            },
            {
                "index": "D",
                "title": "平台承担补贴",
                "amount": "1",
                "items": [
                    {
                        "title": "满减优惠",
                        "fields": "roof_manjian_youhui",
                        "amount": "1.00"
                    }
                ],
                "gongshi": "",
                "fields": "platform_subsidy_amount"
            },
            {
                "index": "E",
                "title": "平台承担配送补贴",
                "amount": "0.00",
                "items": [],
                "gongshi": "",
                "fields": "platform_reduce_freight"
            },
            {
                "index": "F",
                "title": "订单VAT",
                "amount": "0.00",
                "items": [],
                "gongshi": "=(商品原价+包装费-B)*0.00%(商家税率)",
                "fields": "sst_amount"
            },
            {
                "index": "G",
                "title": "客人实际支付",
                "amount": "35",
                "items": [],
                "gongshi": "=A-B-C1-D-E+F",
                "fields": "user_pay_amount"
            },
            {
                "index": "H",
                "title": "平台费用",
                "amount": "14",
                "items": [
                    {
                        "title": "配送费扣除",
                        "amount": "14",
                        "fields": "platform_delivery_amount"
                    }
                ],
                "gongshi": "",
                "fields": "platform_expenses"
            },
            {
                "index": "I",
                "title": "平台抽佣",
                "amount": "4.40",
                "items": [],
                "gongshi": "=(A-B-C1-H)*20.00%(商家抽佣比例)",
                "fields": "platform_commission_ratio"
            },
            {
                "index": "J",
                "title": "平台实际服务费(不含税)",
                "amount": "3.4",
                "items": [],
                "gongshi": "=I-D-E",
                "fields": "platform_fee_amount"
            },
            {
                "index": "K",
                "title": "平台实际服务费(含平台VAT)",
                "amount": "3.4",
                "items": [
                    {
                        "title": "平台VAT 0%",
                        "amount": "0"
                    }
                ],
                "gongshi": "=(I-D-E)*100%",
                "fields": "platform_fee_amount_with_sst"
            },
            {
                "index": "L",
                "title": "商家应得",
                "amount": "17.6",
                "items": [],
                "gongshi": "=G-H-K",
                "fields": "shop_revenue_amount"
            },
            {
                "index": "C2",
                "title": "商家实际承担配送成本",
                "amount": "10.00",
                "items": [],
                "gongshi": "C2=C1(商家承担给用户减免配送费对应成本)",
                "fields": "shop_revenue_amount_real"
            },
            {
                "index": "M",
                "title": "骑手佣金",
                "amount": "0.00",
                "items": [],
                "gongshi": "骑手未接单\/商家自配送\/自提不显示金额",
                "fields": "staff_amount"
            },
            {
                "index": "N",
                "title": "商家实际应得",
                "amount": "7.6",
                "items": [],
                "gongshi": "=L-C2",
                "fields": "shop_real_revenue_amount"
            },
            {
                "index": "O",
                "title": "配送费",
                "amount": "24",
                "items": [
                    {
                        "title": "基础配送费",
                        "fields": "base_freight",
                        "amount": "12"
                    },
                    {
                        "title": "时段补贴",
                        "fields": "time_subsidy",
                        "amount": "12.00"
                    }
                ],
                "gongshi": "=实收用户配送费+C+E",
                "fields": "delivery_amount"
            }
        ],
        "currency": "฿"
    },
    "error": "0",
    "message": "success"
}
Modified at 2026-07-08 09:51:10
Previous
订单详情
Next
订单财务明细-马来西亚
Built with