swifood-ph
Languages
Languages
  • English
  • 简体中文
Languages
Languages
  • English
  • 简体中文
  1. Orders
  • 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. Orders

Query Order Invoice

POST
/open-api/order/invoice
Returns a payment or refund receipt without increasing the print count or marking it as a reprint. A successful response directly returns PDF, TXT, or JSON according to format.

请求参数

Body 参数application/json必填

示例
{
    "appId": "OpenTestAppId",
    "storeKey": "OpenTestStoreKey",
    "sign": "OpenTestSign",
    "param": "{\"orderNo\":\"TB0000000431\",\"printType\":2,\"format\":1}"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
cURL
curl --location '/open-api/order/invoice' \
--header 'Content-Type: application/json' \
--data '{
    "appId": "OpenTestAppId",
    "storeKey": "OpenTestStoreKey",
    "sign": "OpenTestSign",
    "param": "{\"orderNo\":\"TB0000000431\",\"printType\":2,\"format\":1}"
}'

返回响应

🟢200
application/json
Invoice content. The actual media type is determined by param.format.
Headers

Body

示例
{
    "orderContent": [
        "SWIFOOD RESTAURANT",
        "Invoice No: 000000000001",
        "Order No: TB0000000431"
    ]
}
修改于 2026-10-26 02:24:06
上一页
Query Restaurant Orders
下一页
List Restaurants
Built with