cancel
Showing results for 
Search instead for 
Did you mean: 

Recurring Billing: Create a Subscription

Hi,

 

How do I get the response to include the profile information like in the example?

 

<profile>
        <customerProfileId>247150</customerProfileId>
        <customerPaymentProfileId>215472</customerPaymentProfileId>
        <customerAddressId>189691</customerAddressId>
</profile>

 

Are there specific fields that are required for it to return the profile info? In my response back I am only getting the SubscriptionID back.

seeraig
Contributor
1 ACCEPTED SOLUTION

Accepted Solutions

@seeraig

 

I was able to speak with our product team who confirmed that we did not update our SOAP interface to support this method.  We strongly suggest moving to XML or JSON as we plan to deprecate SOAP support.  We'll post an announcement once deprecation plans are firm.

 

Richard

View solution in original post

6 REPLIES 6

Hello,

 

Can you please provide a sample request for your subscription?

 

Richard

RichardH
Administrator Administrator
Administrator

<?xml version="1.0" encoding="utf-8"?>
        <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
          <soap12:Body>
            <ARBCreateSubscription xmlns="https://api.authorize.net/soap/v1/">
              <merchantAuthentication>
                <name>2e5644dafs32</name>
                <transactionKey>**</transactionKey>
              </merchantAuthentication>
              <subscription>
                <name>Monthly Subscription</name>
                <paymentSchedule>
                  <interval>
                    <length>1</length>
                    <unit>months</unit>
                  </interval>
                  <startDate>2016-09-26</startDate>
                  <totalOccurrences>9999</totalOccurrences>                  
                </paymentSchedule>
                <amount>12.95</amount>                
                <payment>
                  <creditCard>
                    <cardNumber>4111111111111111</cardNumber>
                    <expirationDate>2020-12</expirationDate>
                    <cardCode>645</cardCode>
                  </creditCard>
                </payment>
                <order>
                  <invoiceNumber>12345</invoiceNumber>
                  <description></description>
                </order>
                <customer>                
                  <id>1000</id>
                  <email>abc@xyz.com</email>                  
                </customer>
                <billTo>
                  <firstName>John</firstName>
                  <lastName>Smith</lastName>
                  <company></company>
                  <address></address>
                  <city></city>
                  <state></state>
                  <zip>90210</zip>
                  <country></country>
                </billTo>
                <shipTo>
                  <firstName>John</firstName>
                  <lastName>Smith</lastName>
                  <company></company>
                  <address>123 Oak St</address>
                  <city>Anywhere</city>
                  <state>CA</state>
                  <zip>90210</zip>
                  <country>US</country>
                </shipTo>
              </subscription>      
            </ARBCreateSubscription>
          </soap12:Body>
        </soap12:Envelope>

seeraig
Contributor

I should have asked for the response as well.  Could you include that as well?

Here is the raw response:

 

OkI00001Successful.4269517

@seeraig

 

I was able to speak with our product team who confirmed that we did not update our SOAP interface to support this method.  We strongly suggest moving to XML or JSON as we plan to deprecate SOAP support.  We'll post an announcement once deprecation plans are firm.

 

Richard

Thanks for the update, that was the issue. I switched to XML and it works.