calculateRemainingBalance
post
                    /ccstore/v1/payment/calculateRemainingBalance
Get remaining order amount for mixed currency orders.
                Request
Supported Media Types
                - application/json
Root Schema : calculateRemainingBalance_request
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            alternateCurrencyAmount: 
            number
            The ammount in alternate currency.
- 
            alternateCurrencyCode: 
            string
            The alternate currency code.
- 
            amount: 
            number
            The amount in the order currency.
- 
            orderId: 
            string
            The order ID.
- 
            profileId(optional): 
            string
            The profile ID.
Example:
    
    
{
    "amount":20,
    "orderId":"o410438",
    "alternateCurrencyAmount":19,
    "alternateCurrencyCode":"USD"
}Response
Supported Media Types
                - application/json
200 Response
Following model is returned when operation succeeds.
                
                
                    Root Schema : calculateRemainingBalance_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            alternateCurrencyAmount(optional): 
            number
            The input amount in alternate currency.
- 
            alternateCurrencyAmountRemaining(optional): 
            number
            The amount remaining that can be paid in alternate currency.
- 
            alternateCurrencyCode(optional): 
            string
            The alternate currency code.
- 
            amount(optional): 
            number
            The input amount in order currency.
- 
            amountRemaining(optional): 
            number
            The remaining order amount in order currency.
- 
            currencyCode(optional): 
            string
            The order currency.
- 
            minimumMonetaryCurrencyAmountRemaining(optional): 
            number
            The minimum monetary currency amount remaining to be paid.
- 
            orderId(optional): 
            string
            The order ID.
- 
            payments(optional): 
            array  payments
            
            The array of payment groups
- 
            payShippingInSecondaryCurrency(optional): 
            boolean
            A site level setting, when enabled, makes it mandatory for the shopper to pay shipping charges in monetary currency. Additionally, if the allowAlternateCurrency flag is enabled then shopper has to pay atleast shipping and tax total in monetary, rest of the amount can be paid in mix of points and monetary currency, or can be paid only in points or only in monetary.
- 
            payTaxInSecondaryCurrency(optional): 
            boolean
            A site level setting, when enabled, makes it mandatory for the shopper to pay tax in monetary currency. Additionally, if the allowAlternateCurrency flag is enabled then shopper has to pay atleast shipping and tax total in monetary, rest of the amount can be paid in mix of points and monetary currency, or can be paid only in points or only in monetary.
- 
            secondaryCurrencyShippingAmount(optional): 
            number
            This field represents the shipping amount, shipping discount and shipping surcharge in monetary Currency.\nPrerequisites for the value in this Attribute:\n1. PriceList configured for the site is in custom currency.\n2. payTaxInSecondaryCurrency and payShippingInSecondaryCurrency flags are enabled.
- 
            secondaryCurrencyTaxAmount(optional): 
            number
            This field represents the total tax(Item Tax and Shipping Tax) of the order in Monetary Currency. \nPrerequisites for the value in this Attribute: Prerequisites for the value in this Attribute:\n1. PriceList configured for the site is in custom currency.\n2. payTaxInSecondaryCurrency and payShippingInSecondaryCurrency flags are enabled.\n3. If the tax is included in the price of the item, then this value represents only shipping tax in monetary currency.
- 
            state(optional): 
            boolean
            The order state.
Example:
    
    
{
    "secondaryCurrencyTaxAmount":0,
    "alternateCurrencyAmountRemaining":"746.0",
    "secondaryCurrencyShippingAmount":425,
    "amount":20,
    "orderId":"o410440",
    "payments":[
        {
            "paymentGroupId":"pg530482",
            "amountAuthorized":20,
            "amount":20,
            "customPaymentProperties":{
                "1000addnl-property-key5":"1000payment-property-value5",
                "1000addnl-property-key2":"1000payment-property-value2"
            },
            "gatewayName":"demoLoyaltyPointsPaymentGateway",
            "uiIntervention":null,
            "paymentMethod":"customCurrencyPaymentGroup",
            "isAmountRemaining":false,
            "paymentState":"AUTHORIZED",
            "type":"loyaltyPoints",
            "currencyCode":"silverPts"
        }
    ],
    "alternateAmount":19,
    "alternateCurrencyCode":"USD",
    "payShippingInSecondaryCurrency":true,
    "payTaxInSecondaryCurrency":true,
    "amountRemaining":"20.0",
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccagentui/v1/payment/calculateRemainingBalance"
        }
    ],
    "state":"PENDING_PAYMENT",
    "minimumMonetaryCurrencyAmountRemaining":"406.0",
    "currencyCode":"silverPts"
}Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            accountId(optional): 
            string
            Account ID for PayU based on Billing Country
- 
            amount(optional): 
            number
            Amount authorized
- 
            balance(optional): 
            number
            Balance for GiftCard
- 
            confirmationUrl(optional): 
            string
            Confirmation URL
- 
            customPaymentProperties(optional): 
            object  customPaymentProperties
            
            Custom Payment Properties
- 
            gatewayName(optional): 
            string
            Name of the Gateway used to process the payment
- 
            giftCardNumber(optional): 
            string
            Gift Card Number
- 
            id(optional): 
            string
            Id for Paypal
- 
            intent(optional): 
            string
            Intent for Paypal
- 
            maskedCardNumber(optional): 
            string
            Masked Gift Card Number
- 
            merchantId(optional): 
            string
            Merchant ID for PayU
- 
            message(optional): 
            string
            Error message, if any
- 
            paymentGroupId(optional): 
            string
            Payment Group ID relevant to the PaymentMethodType
- 
            paymentId(optional): 
            string
            Payment ID for PayU
- 
            paymentMethod(optional): 
            string
            Payment Method Used
- 
            paymentState(optional): 
            string
            Payment State of the payment
- 
            REDIRECT(optional): 
            string
            Redirect URL for Paypal
- 
            responseUrl(optional): 
            string
            Response URL
- 
            savedCardId(optional): 
            string
            Id of the saved card associated with the payment group.
- 
            signature(optional): 
            string
            Signature for PayU
- 
            signatureAlgorithm(optional): 
            string
            Signature Algorithm used for PayU
- 
            sopUrl(optional): 
            string
            URL to be redirected
- 
            transaction_state(optional): 
            string
            Transaction State for Paypal
- 
            transactionStatusByQuery(optional): 
            string
            Status of tranaction for PayU
- 
            type(optional): 
            string
            PaymentMethodType
- 
            uiIntervention(optional): 
            string
            If UI Intervention required
Nested Schema : customPaymentProperties
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectCustom Payment Properties
    
    
    
    
    
    
    
    
    
    
Default Response
The error response
                
                
                    Root Schema : errorModel
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
- 
            errorCode(optional): 
            string
            The numerical code identifying the error
- 
            errors(optional): 
            array  errors
            
            An optional list of errors if multiple errors were encountered
- 
            message(optional): 
            string
            The localized message describing the error
- 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
- 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
- 
            status(optional): 
            string
            The HTTP status code
- 
            type(optional): 
            string
            The URI to the HTTP state code definition
Nested Schema : errors
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayAn optional list of errors if multiple errors were encountered
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
- 
            errorCode(optional): 
            string
            The numerical code identifying the error
- 
            message(optional): 
            string
            The localized message describing the error
- 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
- 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
- 
            status(optional): 
            string
            The HTTP status code