Skip to main content

Request for agreement pay

Request for agreement pay

Request Body required

Agreement Pay

  • app_id int64 required

    The unique ID of the application will be provided after the merchant registered successfully with Zalopay.

  • identifier string required

    user's identifier on the merchant system, it can be a merchant user's id, phone number, email...

  • zp_trans_token string required

    The token is generated by API create_order.

  • pay_token string required

    The public token of the payer.

  • req_date int64 required

    Current timestamp in milliseconds.

  • mac string required

    It is signature of request. It's calculated by following input: hmacinput = app_id + | + identifier + | + zp_trans_token + | + pay_token + | + req_date; and use sha256 with app's hmac key as sign key.

    Please refer to secure data transmission for detailed information.

Responses

OK


Schema
  • return_code integer

    1: Success, 2: Failed, 3: Processing

  • return_message string

    Description of return code

  • sub_return_code integer

    Detail error code

  • sub_return_message string

    Detail error message

  • app_trans_id string

    TXID of order transaction

  • zp_trans_id integer

    The Zalopay's transaction code

Loading...