Chuyển tới nội dung chính

Giả lập thanh toán

API cho phép Merchant Server giả lập việc thanh toán đơn hàng trong môi trường sandbox.

  • URL: https://api-transfer.zaloplatforms.com/sandbox/v1/simulate/pay
  • Method: POST
  • Response Type: application/json

Parameters

TrườngKiểu dữ liệuBắt buộcMô tảYêu cầu
orderIdStringtrueID của đơn hàng cần thành toán
app_idStringtrueID ứng dụng merchant đăng ký với Transfer ServicePhải là app_id đã đăng ký với Transfer Service
timestampLongtrueThời điểm tạo request (timestamp)Dùng để validate request
signatureStringtrueThông tin xác thực requestChữ ký dùng để xác thực request. Xem tài liệu

Sample request

{
"orderId": "30e634401005f95ba014",
"app_id": "0752a0528b1762493b06",
"timestamp": 1764039951659,
"signature": "xxxx"
}

Sample response

{
"error_code": 0,
"error_message": "Thành công",
"data": {}
}

Error codes

Error codeError messageGhi chú
-105Invalid signatureLỗi chữ ký xác thực request
-501Invalid application idApplication id không hợp lệ
-506Invalid application envMôi trường application không hợp lệ
-510Application not existApplication không tồn tại
-512Invalid application statusTrạng thái application không hợp lệ
-101ExceptionLỗi ngoại lệ không xác định
-1FailedThanh toán thất bại