Nhảy tới nội dung

getRefundStatus

API cho phép đối tác gọi để truy vấn tình trạng hoàn tiền của 1 giao dịch hoàn tiền.

API specification​

MethodHeadersEndpoint
GEThttps://payment-mini.zalo.me/api/refund

Parameters​

Object object​

PropertyTypeRequiredDescription
appIdstringtrueId định danh của mini app
refundIdstringtrueId của yêu cầu hoàn tiền
macstringtrueThông tin chứng thực, xem cách tạo thông tin chứng thực ở dưới

Tạo thông tin chứng thực​

data = "appId={appId}&refundId={refundId}&privateKey={privateKey}";
mac = HMAC("HmacSHA256", privateKey, data);

Return Values​

Promise <Object data>​

PropertyTypeDescription
returnCodeint
  • 1 : Hoàn tiền giao dịch thành công
  • != 1 : Hoàn tiền không thành công
returnMessagestringMô tả thông tin returnCode