PayPerLink


Click here for a complete list of operations.

GenerateLink

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /Payments/WebServices/Payperlink.asmx HTTP/1.1
Host: test.paycloud.it
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "PaycloudWebServices.WebServices.PayPerLink/GenerateLink"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GenerateLink xmlns="PaycloudWebServices.WebServices.PayPerLink">
      <ApiKey>string</ApiKey>
      <Req>
        <Type>None or D or PA or P3F or SDD or SDDR or MD or MPA or MMB or WD or WMB or WPA</Type>
        <ProductName>string</ProductName>
        <Amount>double</Amount>
        <Language>None or IT or EN</Language>
        <Debitor>
          <ID>int</ID>
          <FatherID>int</FatherID>
          <ChildID>int</ChildID>
          <Code>string</Code>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
          <Email>string</Email>
          <Address>string</Address>
          <City>string</City>
          <Province>string</Province>
          <ZipCode>string</ZipCode>
          <Country>string</Country>
          <FiscalCode>string</FiscalCode>
          <TaxNumber>string</TaxNumber>
          <Phone>string</Phone>
          <IBAN>string</IBAN>
          <CreationDate>dateTime</CreationDate>
        </Debitor>
        <OriginUrl>string</OriginUrl>
        <Date>string</Date>
        <LinkValidityFrom>string</LinkValidityFrom>
        <LinkValidityTo>string</LinkValidityTo>
        <Reason>string</Reason>
      </Req>
      <Params>
        <OptionalParameters>
          <Name>string</Name>
          <Value />
        </OptionalParameters>
        <OptionalParameters>
          <Name>string</Name>
          <Value />
        </OptionalParameters>
      </Params>
    </GenerateLink>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GenerateLinkResponse xmlns="PaycloudWebServices.WebServices.PayPerLink">
      <GenerateLinkResult>
        <TransactionCode>string</TransactionCode>
        <Link>string</Link>
        <QrCode>base64Binary</QrCode>
      </GenerateLinkResult>
    </GenerateLinkResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /Payments/WebServices/Payperlink.asmx HTTP/1.1
Host: test.paycloud.it
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?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>
    <GenerateLink xmlns="PaycloudWebServices.WebServices.PayPerLink">
      <ApiKey>string</ApiKey>
      <Req>
        <Type>None or D or PA or P3F or SDD or SDDR or MD or MPA or MMB or WD or WMB or WPA</Type>
        <ProductName>string</ProductName>
        <Amount>double</Amount>
        <Language>None or IT or EN</Language>
        <Debitor>
          <ID>int</ID>
          <FatherID>int</FatherID>
          <ChildID>int</ChildID>
          <Code>string</Code>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
          <Email>string</Email>
          <Address>string</Address>
          <City>string</City>
          <Province>string</Province>
          <ZipCode>string</ZipCode>
          <Country>string</Country>
          <FiscalCode>string</FiscalCode>
          <TaxNumber>string</TaxNumber>
          <Phone>string</Phone>
          <IBAN>string</IBAN>
          <CreationDate>dateTime</CreationDate>
        </Debitor>
        <OriginUrl>string</OriginUrl>
        <Date>string</Date>
        <LinkValidityFrom>string</LinkValidityFrom>
        <LinkValidityTo>string</LinkValidityTo>
        <Reason>string</Reason>
      </Req>
      <Params>
        <OptionalParameters>
          <Name>string</Name>
          <Value />
        </OptionalParameters>
        <OptionalParameters>
          <Name>string</Name>
          <Value />
        </OptionalParameters>
      </Params>
    </GenerateLink>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?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>
    <GenerateLinkResponse xmlns="PaycloudWebServices.WebServices.PayPerLink">
      <GenerateLinkResult>
        <TransactionCode>string</TransactionCode>
        <Link>string</Link>
        <QrCode>base64Binary</QrCode>
      </GenerateLinkResult>
    </GenerateLinkResponse>
  </soap12:Body>
</soap12:Envelope>