POST Product/payment

Request Information

URI Parameters

None.

Body Parameters

PaymentFinalModel
NameDescriptionTypeAdditional information
paymentModel

PaymentModel

None.

newOrderViewModel

NewOrderViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "paymentModel": {
    "Isrefund": "sample string 1",
    "profileid": "sample string 2",
    "Phone": "sample string 3",
    "company_sy": "sample string 4",
    "customer": "sample string 5",
    "order_ext": "sample string 6",
    "ApiLoginID": "sample string 7",
    "ApiTransactionKey": "sample string 8",
    "Amount": 9.0,
    "CardNumber": "sample string 10",
    "ExpirationDate": "sample string 11",
    "CardCode": "sample string 12",
    "FirstName": "sample string 13",
    "LastName": "sample string 14",
    "Address": "sample string 15",
    "Address2": "sample string 16",
    "City": "sample string 17",
    "zip": "sample string 18",
    "country": "sample string 19",
    "email": "sample string 20",
    "State": "sample string 21",
    "ExpirationMonth": 22,
    "ExpirationYear": 23,
    "CardType": "sample string 24",
    "ShippingCharge": "sample string 25",
    "SubTotal": "sample string 26",
    "TAX": "sample string 27",
    "Total": "sample string 28",
    "Description": "sample string 29",
    "InvoiceNumber": "sample string 30",
    "PaymentItems": [
      {
        "ItemId": "sample string 1",
        "Name": "sample string 2",
        "descr": "sample string 3",
        "Quantity": 4,
        "UnitPrice": 5.0
      },
      {
        "ItemId": "sample string 1",
        "Name": "sample string 2",
        "descr": "sample string 3",
        "Quantity": 4,
        "UnitPrice": 5.0
      }
    ]
  },
  "newOrderViewModel": {
    "company_sy": "sample string 1",
    "Misc_8": "sample string 2",
    "Misc_9": "sample string 3",
    "Misc_60": "sample string 4",
    "residential": true,
    "free_form_shipto": true,
    "Pay_code_sec": "sample string 7",
    "Pay_code_exp": "sample string 8",
    "ExpirationMonth": "sample string 9",
    "ExpirationYear": "sample string 10",
    "Pay_code_card": "sample string 11",
    "Pay_code_card_length": "sample string 12",
    "ship_via_acct": "sample string 13",
    "orderby": "sample string 14",
    "order_ext": "sample string 15",
    "customer": "sample string 16",
    "warehouse": "sample string 17",
    "s_adr1": "sample string 18",
    "s_adr2": "sample string 19",
    "s_adr3": "sample string 20",
    "s_adr4": "sample string 21",
    "s_adr5": "sample string 22",
    "s_adr6": "sample string 23",
    "stat": "sample string 24",
    "state": "sample string 25",
    "rec_type": "sample string 26",
    "ship_id": "sample string 27",
    "country": "sample string 28",
    "phone": "sample string 29",
    "fax": "sample string 30",
    "auth_amount": "sample string 31",
    "source_code": "sample string 32",
    "pay_amount": "sample string 33",
    "tot_code": "sample string 34",
    "tot_code_amt": "sample string 35",
    "pay_code": "sample string 36",
    "pay_cd": "sample string 37",
    "pay_code_ref": "sample string 38",
    "pay_code_amount": "sample string 39",
    "blind_ship": "sample string 40",
    "tax_amount": "sample string 41",
    "disp_where": "sample string 42",
    "disp_method": "sample string 43",
    "print_where": "sample string 44",
    "s_st": "sample string 45",
    "s_postal_code": "sample string 46",
    "s_country_code": "sample string 47",
    "tax_code": "sample string 48",
    "s_name": "sample string 49",
    "order_by": "sample string 50",
    "cu_po": "sample string 51",
    "email_address": "sample string 52",
    "s_phone": "sample string 53",
    "ship_atn": "sample string 54",
    "ord_class": "sample string 55",
    "s_phone_ext": "sample string 56",
    "ship_via_code": "sample string 57",
    "terms_code": "sample string 58",
    "salesman1": "sample string 59",
    "disc_amount": "sample string 60",
    "Cred_card": "sample string 61",
    "Cred_card_exp": "sample string 62",
    "Cred_card_type": "sample string 63",
    "Auth_type": "sample string 64",
    "Auth_asv": "sample string 65",
    "Auth_amount": "sample string 66",
    "Auth_date": "sample string 67",
    "Auth_time": "sample string 68",
    "Auth_memo": "sample string 69",
    "Auth_number": "sample string 70",
    "Auth_trans_number": "sample string 71",
    "atn": "sample string 72",
    "table": "sample string 73",
    "triggers": "sample string 74",
    "notes": "sample string 75",
    "wanted_date": "sample string 76",
    "cancel_date": "sample string 77",
    "job_rel": "sample string 78",
    "cell_phone": "sample string 79",
    "ship_cmpl": "sample string 80",
    "enter_by": "sample string 81",
    "name": "sample string 82",
    "postal_code": "sample string 83",
    "adr1": "sample string 84",
    "adr2": "sample string 85",
    "adr3": "sample string 86",
    "adr4": "sample string 87",
    "adr5": "sample string 88",
    "adr6": "sample string 89",
    "order": 90,
    "NewOrderlines": {
      "table": "sample string 1",
      "triggers": "sample string 2",
      "Lines": [
        {
          "order_ext": "sample string 1",
          "customer": "sample string 2",
          "descr": "sample string 3",
          "notes": "sample string 4",
          "warehouse": "sample string 5",
          "line": 6,
          "item": "sample string 7",
          "qty_ord": "sample string 8",
          "unit_price": "sample string 9",
          "um_o": "sample string 10",
          "childitem": "sample string 11"
        },
        {
          "order_ext": "sample string 1",
          "customer": "sample string 2",
          "descr": "sample string 3",
          "notes": "sample string 4",
          "warehouse": "sample string 5",
          "line": 6,
          "item": "sample string 7",
          "qty_ord": "sample string 8",
          "unit_price": "sample string 9",
          "um_o": "sample string 10",
          "childitem": "sample string 11"
        }
      ]
    }
  }
}

text/xml

Sample:
<PaymentFinalModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DistOneWebAPI.ViewModels">
  <newOrderViewModel>
    <Auth_amount>sample string 66</Auth_amount>
    <Auth_asv>sample string 65</Auth_asv>
    <Auth_date>sample string 67</Auth_date>
    <Auth_memo>sample string 69</Auth_memo>
    <Auth_number>sample string 70</Auth_number>
    <Auth_time>sample string 68</Auth_time>
    <Auth_trans_number>sample string 71</Auth_trans_number>
    <Auth_type>sample string 64</Auth_type>
    <Cred_card>sample string 61</Cred_card>
    <Cred_card_exp>sample string 62</Cred_card_exp>
    <Cred_card_type>sample string 63</Cred_card_type>
    <ExpirationMonth>sample string 9</ExpirationMonth>
    <ExpirationYear>sample string 10</ExpirationYear>
    <Misc_60>sample string 4</Misc_60>
    <Misc_8>sample string 2</Misc_8>
    <Misc_9>sample string 3</Misc_9>
    <NewOrderlines>
      <Lines>
        <NlinesviewModel>
          <childitem>sample string 11</childitem>
          <customer>sample string 2</customer>
          <descr>sample string 3</descr>
          <item>sample string 7</item>
          <line>6</line>
          <notes>sample string 4</notes>
          <order_ext>sample string 1</order_ext>
          <qty_ord>sample string 8</qty_ord>
          <um_o>sample string 10</um_o>
          <unit_price>sample string 9</unit_price>
          <warehouse>sample string 5</warehouse>
        </NlinesviewModel>
        <NlinesviewModel>
          <childitem>sample string 11</childitem>
          <customer>sample string 2</customer>
          <descr>sample string 3</descr>
          <item>sample string 7</item>
          <line>6</line>
          <notes>sample string 4</notes>
          <order_ext>sample string 1</order_ext>
          <qty_ord>sample string 8</qty_ord>
          <um_o>sample string 10</um_o>
          <unit_price>sample string 9</unit_price>
          <warehouse>sample string 5</warehouse>
        </NlinesviewModel>
      </Lines>
      <table>sample string 1</table>
      <triggers>sample string 2</triggers>
    </NewOrderlines>
    <Pay_code_card>sample string 11</Pay_code_card>
    <Pay_code_card_length>sample string 12</Pay_code_card_length>
    <Pay_code_exp>sample string 8</Pay_code_exp>
    <Pay_code_sec>sample string 7</Pay_code_sec>
    <adr1>sample string 84</adr1>
    <adr2>sample string 85</adr2>
    <adr3>sample string 86</adr3>
    <adr4>sample string 87</adr4>
    <adr5>sample string 88</adr5>
    <adr6>sample string 89</adr6>
    <atn>sample string 72</atn>
    <auth_amount>sample string 31</auth_amount>
    <blind_ship>sample string 40</blind_ship>
    <cancel_date>sample string 77</cancel_date>
    <cell_phone>sample string 79</cell_phone>
    <company_sy>sample string 1</company_sy>
    <country>sample string 28</country>
    <cu_po>sample string 51</cu_po>
    <customer>sample string 16</customer>
    <disc_amount>sample string 60</disc_amount>
    <disp_method>sample string 43</disp_method>
    <disp_where>sample string 42</disp_where>
    <email_address>sample string 52</email_address>
    <enter_by>sample string 81</enter_by>
    <fax>sample string 30</fax>
    <free_form_shipto>true</free_form_shipto>
    <job_rel>sample string 78</job_rel>
    <name>sample string 82</name>
    <notes>sample string 75</notes>
    <ord_class>sample string 55</ord_class>
    <order>90</order>
    <order_by>sample string 50</order_by>
    <order_ext>sample string 15</order_ext>
    <orderby>sample string 14</orderby>
    <pay_amount>sample string 33</pay_amount>
    <pay_cd>sample string 37</pay_cd>
    <pay_code>sample string 36</pay_code>
    <pay_code_amount>sample string 39</pay_code_amount>
    <pay_code_ref>sample string 38</pay_code_ref>
    <phone>sample string 29</phone>
    <postal_code>sample string 83</postal_code>
    <print_where>sample string 44</print_where>
    <rec_type>sample string 26</rec_type>
    <residential>true</residential>
    <s_adr1>sample string 18</s_adr1>
    <s_adr2>sample string 19</s_adr2>
    <s_adr3>sample string 20</s_adr3>
    <s_adr4>sample string 21</s_adr4>
    <s_adr5>sample string 22</s_adr5>
    <s_adr6>sample string 23</s_adr6>
    <s_country_code>sample string 47</s_country_code>
    <s_name>sample string 49</s_name>
    <s_phone>sample string 53</s_phone>
    <s_phone_ext>sample string 56</s_phone_ext>
    <s_postal_code>sample string 46</s_postal_code>
    <s_st>sample string 45</s_st>
    <salesman1>sample string 59</salesman1>
    <ship_atn>sample string 54</ship_atn>
    <ship_cmpl>sample string 80</ship_cmpl>
    <ship_id>sample string 27</ship_id>
    <ship_via_acct>sample string 13</ship_via_acct>
    <ship_via_code>sample string 57</ship_via_code>
    <source_code>sample string 32</source_code>
    <stat>sample string 24</stat>
    <state>sample string 25</state>
    <table>sample string 73</table>
    <tax_amount>sample string 41</tax_amount>
    <tax_code>sample string 48</tax_code>
    <terms_code>sample string 58</terms_code>
    <tot_code>sample string 34</tot_code>
    <tot_code_amt>sample string 35</tot_code_amt>
    <triggers>sample string 74</triggers>
    <wanted_date>sample string 76</wanted_date>
    <warehouse>sample string 17</warehouse>
  </newOrderViewModel>
  <paymentModel>
    <Address>sample string 15</Address>
    <Address2>sample string 16</Address2>
    <Amount>9</Amount>
    <ApiLoginID>sample string 7</ApiLoginID>
    <ApiTransactionKey>sample string 8</ApiTransactionKey>
    <CardCode>sample string 12</CardCode>
    <CardNumber>sample string 10</CardNumber>
    <CardType>sample string 24</CardType>
    <City>sample string 17</City>
    <Description>sample string 29</Description>
    <ExpirationDate>sample string 11</ExpirationDate>
    <ExpirationMonth>22</ExpirationMonth>
    <ExpirationYear>23</ExpirationYear>
    <FirstName>sample string 13</FirstName>
    <InvoiceNumber>sample string 30</InvoiceNumber>
    <Isrefund>sample string 1</Isrefund>
    <LastName>sample string 14</LastName>
    <PaymentItems>
      <PaymentItems>
        <ItemId>sample string 1</ItemId>
        <Name>sample string 2</Name>
        <Quantity>4</Quantity>
        <UnitPrice>5</UnitPrice>
        <descr>sample string 3</descr>
      </PaymentItems>
      <PaymentItems>
        <ItemId>sample string 1</ItemId>
        <Name>sample string 2</Name>
        <Quantity>4</Quantity>
        <UnitPrice>5</UnitPrice>
        <descr>sample string 3</descr>
      </PaymentItems>
    </PaymentItems>
    <Phone>sample string 3</Phone>
    <ShippingCharge>sample string 25</ShippingCharge>
    <State>sample string 21</State>
    <SubTotal>sample string 26</SubTotal>
    <TAX>sample string 27</TAX>
    <Total>sample string 28</Total>
    <company_sy>sample string 4</company_sy>
    <country>sample string 19</country>
    <customer>sample string 5</customer>
    <email>sample string 20</email>
    <order_ext>sample string 6</order_ext>
    <profileid>sample string 2</profileid>
    <zip>sample string 18</zip>
  </paymentModel>
</PaymentFinalModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

returnmsg
NameDescriptionTypeAdditional information
Success

string

None.

TransactionId

string

None.

TransactionErrors

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": "sample string 1",
  "TransactionId": "sample string 2",
  "TransactionErrors": "sample string 3"
}

text/xml

Sample:
<returnmsg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DistOneWebAPI.DistOneClasses">
  <Success>sample string 1</Success>
  <TransactionErrors>sample string 3</TransactionErrors>
  <TransactionId>sample string 2</TransactionId>
</returnmsg>