Skip to main content

Query for the payment token of a binding

Query for the payment token of a binding

Request Body required

Agreement Query

  • app_id int64 required

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

  • app_trans_id string required

    Unique transaction ID of application, format: yyMMddxxxxxxxxx. Max length is 40. For example: 180208181007242

  • 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 + | + apps_trans_id + | + 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

    Return codes:

    1 - SUCCESS

    2 - FAILED

    3 - PENDING

  • return_message string
  • sub_return_code integer
  • sub_return_message string
  • data object
  • app_id int64

    The app id of the merchant.

  • app_trans_id string

    The merchant's unique id for the binding.

  • binding_id string

    The id of binding has been confirmed in the Zalopay system.

  • pay_token string

    The public token is used when doing auto-debit.

  • server_time int64

    Server timestamp in seconds.

  • merchant_user_id string

    The identifier field in bind request.

  • status integer

    1: Confirmed, 3: Cancelled, 4: Disabled

  • msg_type integer

    Type of message: 1: The user confirms an agreement 2: The user updates the agreement

  • zp_user_id string

    The identifier of Zalopay user per merchant app_id.

  • masked_user_phone string

    Masked user phone (Ex: masked_user_phone: "****6938")

Loading...