Radial Integration | 2016

Retail Order Management > Order Processing > Order Management API Tutorial > How to Build an Order Create API Request > StoredValueRedeemReply → OrderCreateRequest

StoredValueRedeemReply → OrderCreateRequest

An OrderCreateRequest can have StoredValueCard elements under Payments. Some of those fields map from the StoredValueRedeemReply. In addition, there must be a SuccessResponseCode in the reply.

Mapping

The StoredValueRedeemReply field mappings start at: /StoredValueRedeemReply
The OrderCreateRequest field mappings start at: /OrderCreateRequest/Payment/Payments/StoredValueCard

StoredValueRedeemReply Field OrderCreateRequest Field Transform Comment

//PaymentContext/OrderId

//PaymentContext/PaymentSessionId

copy as is

//PaymentContext/PaymentAccountUniqueId

//PaymentContext/PaymentAccountUniqueId

copy as is

//AmountRedeemed

//Amount

copy as is

Example

<?xml version="1.0" encoding="UTF-8"?>
<StoredValueRedeemReply 
  xmlns="http://api.gsicommerce.com/schema/checkout/1.0">
  <PaymentContext>
    <OrderId>123456</OrderId> (1)
    <PaymentAccountUniqueId 
       isToken="true">123abc</PaymentAccountUniqueId> (2)
  </PaymentContext>
  <ResponseCode>Success</ResponseCode>
  <AmountRedeemed 
     currencyCode="USD">12.34</AmountRedeemed> (3)
  <BalanceAmount 
     currencyCode="USD">56.78</BalanceAmount>
</StoredValueRedeemReply>
<OrderCreateRequest
    xmlns="http://api.gsicommerce.com/schema/checkout/1.0"
    requestId="123456789">
  <Order customerOrderId="12345">
    ...
    <Payment>
      ...
      <Payments>
        <StoredValueCard>
          <PaymentContext>
            <PaymentSessionId>123456</PaymentSessionId> (1)
            <TenderType>SP</TenderType>
            <PaymentAccountUniqueId 
              isToken="true">123abc</PaymentAccountUniqueId> (2)
          </PaymentContext>
          <PaymentRequestId>456xyz</PaymentRequestId>
          <CreateTimeStamp>2016-02-17T18:02:28+00:00</CreateTimeStamp>
          <Pin>1234</Pin>
          <Amount>12.34</Amount> (3)
        </StoredValueCard>
      </Payments>
    </Payment>
    ...
  </Order>
  ...
</OrderCreateRequest>

 

Copyright © 2017 Radial. All rights reserved.