Order application for refund interface

Allow users to apply for a refund for completed or paid orders, wait for the administrator to review and process the refund application after submitting the refund application.

Points to note

  • The API uses the POST method and requires data to be submitted in application/ format
  • Provide the order ID as an identifier for the refund application.
  • Only logged-in users can call this interface
  • The order must be in a "completed" or "paid" status to apply for a refund
  • After applying for a refund, the order status will change to "refunding"}
  • The refund application requires the administrator to review and process

Request address

{ๅŸŸๅๅœฐๅ€}/api/order/refund

Description:{ๅŸŸๅๅœฐๅ€}Replace it with your domain name, such ashttps://en.anqicms.com/api/order/refund

Request Syntax

POST {ๅŸŸๅๅœฐๅ€}/api/order/refund
Content-Type: application/json

Request Headers

This interface requires user login authentication, please refer toCommon Request Headers (Common Request Headers).

Request parameters

Field name Type Required Description
order_id string Is Order ID

Response header

This interface only involves public response headers. For more information, please refer toCommon Request Headers (Common Request Headers).

Return parameters

Field name Type Description
code int Error code
msg string Error description

Usage Example

Request example

POST /api/order/refund HTTP/1.1
Host: www.anqicms.com
Content-Type: application/json

{
  "order_id": "202211232209080046"
}

Response Example

{
  "code": 0,
  "msg": "้€€ๆฌพ็”ณ่ฏทๅทฒๆไบค"
}

error code

Error code Description
0 OK
-1 Error, the reason is indicated in msg
1001 Not logged in
1002 Not authorized
200 API request OK
4001 Order does not exist
4002 The order status does not allow for a refund application
4003 The order is in the refund process
4004 The order has exceeded the refund deadline