swifood-ph
Languages
Languages
  • English
  • 简体中文
Languages
Languages
  • English
  • 简体中文
  1. Order Callback
  • Open API Code prompt code list
  • Interface parameter signature process
  • Orders
    • Create Order (General)
      POST
    • Refund Order (General)
      POST
    • Reprint Order Receipt
      POST
    • Calculate Tax
      POST
    • Query Restaurant Orders
      POST
    • Query Order Invoice
      POST
  • Restaurants
    • List Restaurants
      POST
  • Order Callback
    • Restaurant Order Push Callback
      POST
  • 数据模型
    • SignedAppRequest
    • SignedStoreRequest
    • ApiError
    • BooleanResponse
    • ProductInput
    • CreateOrderParam
    • CreateOrderData
    • CreateOrderResponse
    • RefundParam
    • PrintParam
    • TaxCalculateParam
    • TaxItem
    • TaxResponse
    • OrderListParam
    • OptionItem
    • OrderOption
    • OrderSku
    • OrderData
    • OrderListResponse
    • OrderPushParam
    • InvoiceParam
    • InvoiceJson
    • Restaurant
    • RestaurantListResponse
  1. Order Callback

Restaurant Order Push Callback

POST
/order/push
Invoked by Swifood after a successful payment or refund. This path is only an Apifox placeholder; replace it with the actual callback URL configured in Swifood. The merchant must respond within five seconds and handle requests idempotently.

请求参数

Body 参数application/json必填

示例
{
    "appId": "OpenTestAppId",
    "storeKey": "OpenTestStoreKey",
    "sign": "SwifoodGeneratedSign",
    "param": "{\"orderInnerNo\":\"CCP20220428011068111\",\"restaurantNo\":\"REST123456\",\"branchIdentifier\":\"BRANCH001\",\"orderSerialNumber\":1001,\"realAmount\":10000,\"orderStatus\":3,\"paymentStatus\":2,\"createTime\":\"2024-01-01 12:00:00\",\"paymentTime\":\"2024-01-01 12:05:00\",\"receiptNo\":\"INV202401010001\",\"skuList\":[]}"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/order/push' \
--header 'Content-Type: application/json' \
--data '{
    "appId": "OpenTestAppId",
    "storeKey": "OpenTestStoreKey",
    "sign": "SwifoodGeneratedSign",
    "param": "{\"orderInnerNo\":\"CCP20220428011068111\",\"restaurantNo\":\"REST123456\",\"branchIdentifier\":\"BRANCH001\",\"orderSerialNumber\":1001,\"realAmount\":10000,\"orderStatus\":3,\"paymentStatus\":2,\"createTime\":\"2024-01-01 12:00:00\",\"paymentTime\":\"2024-01-01 12:05:00\",\"receiptNo\":\"INV202401010001\",\"skuList\":[]}"
}'

返回响应

🟢200BooleanResult
application/json
Business result
Bodyapplication/json

示例
{"code":10000,"message":"success","data":true}
修改于 2026-10-26 02:24:06
上一页
List Restaurants
下一页
SignedAppRequest
Built with