Price Locking Interface

Description

This interface is used for merchants to confirm the current price information, in which merchants can lock the price for ten minutes by calling it, and then send the price serialNumber returned by this interface to the "Order submission interface" to use the locked price.

Request Endpoint

https://apis.5upay.com/foreignExchange/listpriceLock

Name Type & Max Description Requirement
merchantId varchar(20) merchantId M
currency varchar(15) CNY, USD, JPY, EUR, CHF, GBP, CAD, AUD, HKD M
hmac varchar(500) The result of parameter signature,generated by the merchant.For the method of obtaining hmac,please refer to the section "Developers" M

Sample

{ "merchantId": "120140257", "currency": "USD", "hmac": null }

Synchronous Returned Field

Name Description
merchantId Merchant ID
serialNumber Serial number generated by PayEase; Can pass this parameter to the "Remittance Submission Interface" for price locking
listprice E.g. CNY to USD: "listprice":622.190000", which means 622.19CNY can be exchanged for 100 USD
validity Valid time
effective Time of effectiveness
status SUCCESS
hmac The result of parameter signature,generated by the merchant.For the method of obtaining hmac, please refer to the section "Developers"

Sample

{ "merchantId": "120141994", "serialNumber": "8a7df26c62b870cd0163de49e9222544", "listprice": "640.000000", "validity": "2018-06-08 15:36:15", "effective": "2018-06-08 15:26:15", "status": "SUCCESS", "hmac": "e9db3335729416762fae826c4574661a" }