Environment
The following environments are available:
URL | |
Production | https://api.logisticprotrade.com:5000/v1/ |
Sandbox | https://dev.logisticprotrade.com/v1/ |
Getting Started
In order to use Trade API, the user will have to go through few simple steps:
- API keys
- Merchant ID
API key
To use API, users will need to obtain API Public Key and Secret Key, which are passed to API with every request. API keys can be generated in your merchant dashboard at pay.logisticprotrade.com under Settings > API Keys section.
Merchant ID
User Merchant ID can be found in user Logistic Pro Pay dashboard at pay.logisticprotrade.com or api.digitalpaydev.com under Settings > section Account Information section.
* For SANDBOX please use the following credentials:
URL: sandbox.digitalpaydev.com
Username: sandbox@logisticprotrade.
Password: $Sandbox100$
Receiving Payments
Create Payment Wallet Address
Post Create Wallet Address API
Production: https://api.logisticprotrade.com:5000/v1/payment
Sandbox: https://dev.logisticprotrade.com/v1/payment
RAW JSON BODY
{
“api_key”: “(respective api key value)”,
“public_key”: “(respective public key value)”,
“secret_key”: “(respective secret key value)”,
“merchant_id”: “(respective merchant id value)”,
“ref_id”: “(user unique reference/invoice id per client)”,
“currency”:”USD” (options USD,CAD or EUR),
“cryptoCurrency”:”BTC” (options BTC,BCH,ETH, LTC)
}
*All fields are required
Example Successful Response
{
“status”: “success”,
“data”:
{
“ref_id”: “cor121121”,
“price”: 8632.59,
“address”: “moep287CANJhZoyssrigoHtkMwBiz6uhDt”,
“coin”: “BTC”,
“expires”: “2020-05-04 14:32:46.480”
}
}
Example Failed Response
{
“status”: “error”,
“message”: “Access Invalid”
}
Or
{
“status”: “error”,
“message”: ” Could Not Create Address”
}
Get Transaction Status
Post Get Transaction Status API
Production: https://api.logisticprotrade.com:5000/v1/status
Sandbox: https://dev.logisticprotrade.com/v1/status
RAW JSON BODY
{
“api_key”: “(respective api key value)”,
“secret_key”: “(respective secret key value)”,
“merchant_id”: “(respective merchant id value)”,
“address”: “(respective address value returned on payment method)”
}
*All fields are required
Example Successful Response
{
“status”: “success”,
“data”:
{
“date_time”: “2020-07-31T22:10:21.000Z”,
“address”: “bchtest:qpggts6de95hnutg8wrxx55mh9z2dnxp2v64tuqn73”,
“status”: “Paid”, (Paid,Pending),
“payment_amount”: 0.01655245,
“total_payment”: 6.54,
“txid”: “0bd4d3c2ab491649bc5c7328aba8d46b2c2c856ca5cd8261d489a7e01c2a5f12”,
“price”: 395.23,
“currency”: “CAD”,
“coin”: “BCH”
}
}
Get Transaction Status by Tx
Post Get Transaction Status by Tx API
Production: https://api.logisticprotrade.com:5000/v1/statusByTx
Sandbox: https://dev.logisticprotrade.com/v1/statusByTx
RAW JSON BODY
{
“api_key”: “(respective api key value)”,
“secret_key”: “(respective secret key value)”,
“merchant_id”: “(respective merchant id value)”,
“txid”: “(respective transaction id value returned on payment method)”
}
*All fields are required
Example Successful Response
{
“status”: “success”,
“data”:
{
“date_time”: “2020-07-31T22:10:21.000Z”,
“address”: “bchtest:qpggts6de95hnutg8wrxx55mh9z2dnxp2v64tuqn73”,
“status”: “Paid”, (Paid,Pending),
“payment_amount”: 0.01655245,
“total_payment”: 6.54,
“txid”: “0bd4d3c2ab491649bc5c7328aba8d46b2c2c856ca5cd8261d489a7e01c2a5f12”,
“price”: 395.23,
“currency”: “CAD”,
“coin”: “BCH”
}
}
Current Price
Post Get Current Price API
Production: https://api.logisticprotrade.com:5000/v1/currentPrice
Sandbox: https://dev.logisticprotrade.com/v1/currentPrice
RAW JSON BODY
{
“api_key”: “(respective api key value)”,
“secret_key”: “(respective secret key value)”,
“merchant_id”: “(respective merchant id value)”,
“coin”: “(options BTC,BCH,ETH, LTC)”,
“currency”: “(options USD,CAD or EUR)”
}
*All fields are required
Example Successful Response
{
“status”: “success”,
“data”:
{
“price”: “11314.69”,
“coin”: “BTC”,
“date_time”: “2020-08-28 11:04:02:460”,
“currency”: “USD”
}
}
Get API Keys
Post Get API Keys
Production: https://api.logisticprotrade.com:5000/v1/getApiKey
Sandbox: https://dev.logisticprotrade.com/v1/getApiKey
RAW JSON BODY
{
“username”: “(respective clients username value)”,
“password”: “(respective clients password value)”
}
*All fields are required
Example Successful Response
{
“status”: “success”,
“data”:
{
“name”: (Merchant Name),
“merchant_id”: (Merchant ID),
“public_key”: “qw92332bb6f07da62f17fdec1f703e3214cf2d78vv6”,
“secret_key”: “3w0482d4f3ea4f1f12f8fe250605472989990c6bsc”
}
}
Example Error Responses
Invalid credentials
{
“status”: “error”,
“message”: “Invalid Credentials”
}
Account KYC Not Verified
{
“status”: “error”,
“message”: “Not Verified”
}