RPOWER.Gift Order Specification

From RPOWERWiki

Jump to: navigation, search

Contents

Overview

The RPOWER.Gift website provides restaurants the ability to take online gift card orders. When an order is placed through the website, that order is sent to RPOWER to be processed, and the credit card is charged automatically. Once the order is complete, the website generates a confirmation email which is sent to the customer as well as the restaurant so they can fulfill the order.

Example Request

<?xml version="1.0" encoding="utf-8"?>
<XyzzyTalk>
  <XyzzyHeader xyzzy_version="0.1.1.0" api_id="POSCNX" api_version="0.9.0.0"
   api_command="ORDER" />
  <PCX_ORDER>
    <Customer n="Joe Blow">
      <Addr co="" l1="123 Test St." l2="" c="TestCity" s="AZ" z="55555" />
      <Ctct ph="333-333-3333" eml="joe.blow@rpower.com" />
    </Customer>
    <Ticket ref="2006-12-14T14:16:50" dt="2006-12-14T14:16:50" dlvt="DELIVERY">
      <Item n="Web Gift Card" qty="1" p="$US3.00" note="Joe Blow">
        <CRMCard num="926612111202969" />
        <ShipTo n="Joe Blow">
          <Addr l1="123 Test St." c="TestCity" s="AZ" z="55555">
          </Addr>
          <Ctct ph="333-333-3333" eml="ted.fischer@rpower.com" />
        </ShipTo>
      </Item>
      <Item n="Standard US Mail" qty="1" p="$US1.20" note="Joe Blow">
      </Item>
      <Payment amt="$US4.20">
        <CrCard num="4003010123456780" exp="2007-2" nam="Joe Blow" cvc="345" />
      </Payment>
    </Ticket>
  </PCX_ORDER>
</XyzzyTalk>

Example Successful Response

<?xml version="1.0"?>
<XyzzyTalk>
  <XyzzyHeader xyzzy_version='6.10.29.3' api_id='POSCNX' api_version='6.10.20.2'
     api_command='ORDER' app_version='6.077' date_time='2006-12-18T08:57:05-07:00'
     int1='531' dbl1='5.2' str1='06400410531'/>
</XyzzyTalk>

Example Failed Response

<?xml version="1.0"?>
<XyzzyTalk>
  <XyzzyHeader xyzzy_version='6.10.29.3' api_id='POSCNX' api_version='6.10.20.2'
     api_command='ORDER' app_version='6.077' date_time='2006-12-18T08:57:05-07:00'
     err_num="7" err_flags="svr,Log" err_desc="Payment declined" />
</XyzzyTalk>
Views
Personal tools