pgService
Click here for a complete list of operations.
CreateInvoice
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 /pgService.asmx HTTP/1.1
Host: service.patagames.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://service.patagames.com/CreateInvoice"
<?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>
<CreateInvoice xmlns="http://service.patagames.com/">
<token>string</token>
<pcode>string</pcode>
<options>string</options>
<licenseName>string</licenseName>
<productName>string</productName>
<optionsName>string</optionsName>
<price>string</price>
<renewalPrice>string</renewalPrice>
<currency>RUB or USD or EUR or INR or CNY or UAH or AUD or TWD or KRW or ILS or MXN or HKD or ZAR or ARS or BYN or BRL or BGN or CAD or HRK or CZK or DKK or EGP or GEL or GBP or HUF or ALL or DZD or AOA or AMD or AZN or BHD or BBD or BMD or BOB or BAM or BWP or CVE or KHR or XAF or KYD or CLP or COP or CDF or CRC or DOP or FJD or GHS or GIP or GTQ or GYD or HNL or ISK or IDR or IQD or IMP or XOF or JMD or JPY or JOD or KZT or KES or KWD or KGS or LAK or LBP or LYD or CHF or MOP or MGA or MWK or MYR or MVR or MRU or MUR or MDL or MNT or MAD or MZN or MMK or NAD or NZD or NIO or NGN or MKD or NOK or OMR or PKR or PGK or PYG or PEN or PHP or PLN or QAR or RON or RWF or XCD or SAR or RSD or SGD or LKR or SZL or SEK or TJS or TZS or THB or TTD or TND or TRY or TMT or UGX or AED or UYU or UZS or VEF or VND or ZMW or ZWD</currency>
<isOrg>boolean</isOrg>
<isOnline>boolean</isOnline>
<firstName>string</firstName>
<lastName>string</lastName>
<companyName>string</companyName>
<email>string</email>
<phone>string</phone>
<addr1>string</addr1>
<addr2>string</addr2>
<country>string</country>
<licensed_to_email>string</licensed_to_email>
<licensed_to_name>string</licensed_to_name>
<message>string</message>
<param1>string</param1>
<param2>string</param2>
<id_bank>long</id_bank>
</CreateInvoice>
</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>
<CreateInvoiceResponse xmlns="http://service.patagames.com/">
<CreateInvoiceResult>Ok or Error or NotFound or LatestVersion or MaxKeyExceed</CreateInvoiceResult>
<siteId>string</siteId>
<invId>long</invId>
</CreateInvoiceResponse>
</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 /pgService.asmx HTTP/1.1
Host: service.patagames.com
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>
<CreateInvoice xmlns="http://service.patagames.com/">
<token>string</token>
<pcode>string</pcode>
<options>string</options>
<licenseName>string</licenseName>
<productName>string</productName>
<optionsName>string</optionsName>
<price>string</price>
<renewalPrice>string</renewalPrice>
<currency>RUB or USD or EUR or INR or CNY or UAH or AUD or TWD or KRW or ILS or MXN or HKD or ZAR or ARS or BYN or BRL or BGN or CAD or HRK or CZK or DKK or EGP or GEL or GBP or HUF or ALL or DZD or AOA or AMD or AZN or BHD or BBD or BMD or BOB or BAM or BWP or CVE or KHR or XAF or KYD or CLP or COP or CDF or CRC or DOP or FJD or GHS or GIP or GTQ or GYD or HNL or ISK or IDR or IQD or IMP or XOF or JMD or JPY or JOD or KZT or KES or KWD or KGS or LAK or LBP or LYD or CHF or MOP or MGA or MWK or MYR or MVR or MRU or MUR or MDL or MNT or MAD or MZN or MMK or NAD or NZD or NIO or NGN or MKD or NOK or OMR or PKR or PGK or PYG or PEN or PHP or PLN or QAR or RON or RWF or XCD or SAR or RSD or SGD or LKR or SZL or SEK or TJS or TZS or THB or TTD or TND or TRY or TMT or UGX or AED or UYU or UZS or VEF or VND or ZMW or ZWD</currency>
<isOrg>boolean</isOrg>
<isOnline>boolean</isOnline>
<firstName>string</firstName>
<lastName>string</lastName>
<companyName>string</companyName>
<email>string</email>
<phone>string</phone>
<addr1>string</addr1>
<addr2>string</addr2>
<country>string</country>
<licensed_to_email>string</licensed_to_email>
<licensed_to_name>string</licensed_to_name>
<message>string</message>
<param1>string</param1>
<param2>string</param2>
<id_bank>long</id_bank>
</CreateInvoice>
</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>
<CreateInvoiceResponse xmlns="http://service.patagames.com/">
<CreateInvoiceResult>Ok or Error or NotFound or LatestVersion or MaxKeyExceed</CreateInvoiceResult>
<siteId>string</siteId>
<invId>long</invId>
</CreateInvoiceResponse>
</soap12:Body>
</soap12:Envelope>