1. Request a Quote

POST Request to {Endpoint}/pay/getQuote

Calling getQuote only requires two body parameters in the JSON format. MerchantID is associated with the storefront that is the merchant.

Parameter
Type
Details

merchantID

String

Merchant Username for given merchant

orderAmount

String

Order Amount in USD

JSON Body Request Example:

{
   "": "1234567890",
   "orderAmount": "100.00"
}

JSON Success Response (Status Code 200)

{
    "success": true,
    "subTotal": 11.11,
    "fee": 0.5,
    "orderTotal": 11.61,
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjaGFudElEIjoidHN0LTEiLCJvcmRlckFtb3VudCI6IjExLjExIiwiaWF0IjoxNjg5MjQ4NDM4LCJleHAiOjE2ODkyNDkwMzh9.y8KAMW23mXFgWpxOvLsqhFoUuBP5osafp4-cV2ZDmRw",
    "tokenExpire": "600"
}

JSON Response Body:

Parameter
Type
Details

success

Boolean

True if request is successful

subTotal

Number

The requested order amount

fee

Number

The fee amount for the given merchant

total

Number

The summation of the subtotal and fee. Amount to be charged by the card when authorized

token

String

Quote token, used as a parameter when authorizing a payment

tokenExpire

String

The expire time for the quote

Information regarding tokens:

Tokens are active for 10 minutes following the time they’ve been created (600 seconds). Merchants should consider this and make repetitive requests to getQuote, if needed, to ensure that when a payment is authorized, there is an active quote that is associated with that order. Request to authorize a transaction with an expired quote will revert.

Last updated