{"_id":"5632a5eb49e16d0d001224af","category":{"_id":"5632a5e749e16d0d0012244c","project":"55b933b3146ef121002158d3","version":"5632a5e549e16d0d00122443","__v":1,"pages":["5632a5eb49e16d0d001224a9","5632a5eb49e16d0d001224aa","5632a5eb49e16d0d001224ab","5632a5eb49e16d0d001224ac","5632a5eb49e16d0d001224ad","5632a5eb49e16d0d001224ae","5632a5eb49e16d0d001224af","5632a5eb49e16d0d001224b0","5632a5eb49e16d0d001224b1","5632a5eb49e16d0d001224b2"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-04T17:33:48.347Z","from_sync":false,"order":11,"slug":"general-merchant-methods","title":"General Merchant Methods"},"githubsync":"","project":"55b933b3146ef121002158d3","user":"55b932ba8fd1a02b00f496c8","__v":0,"version":{"_id":"5632a5e549e16d0d00122443","__v":6,"project":"55b933b3146ef121002158d3","createdAt":"2015-10-29T23:04:05.701Z","releaseDate":"2015-10-29T23:04:05.701Z","categories":["5632a5e749e16d0d00122444","5632a5e749e16d0d00122445","5632a5e749e16d0d00122446","5632a5e749e16d0d00122447","5632a5e749e16d0d00122448","5632a5e749e16d0d00122449","5632a5e749e16d0d0012244a","5632a5e749e16d0d0012244b","5632a5e749e16d0d0012244c","5632a5e749e16d0d0012244d","5632a5e749e16d0d0012244e","5632a5e749e16d0d0012244f","5632a5e749e16d0d00122450","5632b179df556c0d00cd095b","564e13053b2b4a19000cd69b","59caa9df65accc001a489c95","59cab50965accc001a489d28","59cadd464ab7b70024378e74"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-04T17:48:19.524Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"Pull a built-in or custom report from the merchant console.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Description\"\n}\n[/block]\nThis method retrieves a report from the merchant console. Any reports, including custom reports, may be retrieved. The returned data is base 64 encoded. The format of the returned data can be HTML, comma separated (cvs), or tab separated (tab).\nNames of built-in reports are prefaced with “CreditCard:”, “Check:” or “Customer:”. For example, to pull “Sales by Date” for credit cards, the “Report” parameter would be set to “CreditCard:Sales by Date.”\nTo pull a custom credit card or check report, prefix the name with “Custom:” or “CustomCheck:” For example, to pull a custom report titled “Recurring Declines” set the “Report” parameter to “Custom:Recurring Declines.” Customer reports can only be created from within the merchant console. If none of the built-in or custom reports provide data required, see the custom search methods (ie searchTransactionsCustom) for more flexibility.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Syntax\"\n}\n[/block]\nstring **getReport** ( [ueSecurityToken](/docs/uesecuritytoken) Token, string Report, [FieldValue](/docs/fieldvalue) Options, string Format )\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Arguments\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Type\",\n    \"h-1\": \"Name\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"[ueSecurityToken](/docs/uesecuritytoken)\",\n    \"0-1\": \"Token\",\n    \"0-2\": \"Merchant security token: used to identify merchant and validate transaction.\",\n    \"1-0\": \"string\",\n    \"1-1\": \"Report\",\n    \"1-2\": \"Name of report to retrieve.\",\n    \"2-0\": \"[FieldValue](/docs/fieldvalue)\",\n    \"2-1\": \"Options\",\n    \"2-2\": \"Array of FieldValue objects specifying report options such as (StartDate and EndDate)\",\n    \"3-0\": \"string\",\n    \"3-1\": \"Format\",\n    \"3-2\": \"Format of returned report data. Possible values are: html, csv, or tab.\"\n  },\n  \"cols\": 3,\n  \"rows\": 4\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Return Value\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"string\",\n    \"0-1\": \"Returns specified report data according to parameters set in search.\"\n  },\n  \"cols\": 2,\n  \"rows\": 1\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Exceptions\"\n}\n[/block]\nThe following exceptions (errors) are applicable to this method.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Code\",\n    \"h-1\": \"Message\",\n    \"h-2\": \"Advice\",\n    \"0-0\": \"20014\",\n    \"0-1\": \"Unsupported file format\",\n    \"0-2\": \"Valid file formats are html, csv or tab.\",\n    \"1-0\": \"20028\",\n    \"1-1\": \"Requested Report not found\",\n    \"1-2\": \"Double check the name of the report.\",\n    \"2-0\": \"20029\",\n    \"2-1\": \"Unable to retrieve requested report\",\n    \"2-2\": \"An account configuration issue was encountered while generating the report. Contact support for assistance.\"\n  },\n  \"cols\": 3,\n  \"rows\": 3\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Available Reports\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Credit Card Reports\",\n    \"h-1\": \"Credit Card Reports\",\n    \"0-0\": \"creditcard:errors by date\",\n    \"0-1\": \"Credit card transactions resulting in errors, sorted by date\",\n    \"1-0\": \"creditcard:errors by source\",\n    \"1-1\": \"Credit card transactions resulting in errors, sorted by source key\",\n    \"2-0\": \"creditcard:errors by reason\",\n    \"2-1\": \"Credit card transactions resulting in errors, sorted by reason\",\n    \"3-0\": \"creditcard:errors by user\",\n    \"3-1\": \"Credit card transactions resulting in errors, sorted by user\",\n    \"4-0\": \"creditcard:declines by date\",\n    \"4-1\": \"Credit card transactions resulting in declines, sorted by date\",\n    \"5-0\": \"creditcard:declines by source\",\n    \"5-1\": \"Credit card transactions resulting in declines, sorted by source key\",\n    \"6-0\": \"creditcard:declines by reason\",\n    \"6-1\": \"Credit card transactions resulting in declines, sorted by reason\",\n    \"7-0\": \"creditcard:declines by user\",\n    \"7-1\": \"Credit card transactions resulting in declines, sorted by user\",\n    \"8-0\": \"creditcard:sales by date\",\n    \"8-1\": \"Credit card transactions resulting in approval, sorted by date\",\n    \"9-0\": \"creditcard:sales by source\",\n    \"9-1\": \"Credit card transactions resulting in approval, sorted by source key\",\n    \"10-0\": \"creditcard:sales by reason\",\n    \"10-1\": \"Credit card transactions resulting in approval, sorted by reason\",\n    \"11-0\": \"creditcard:sales by user\",\n    \"11-1\": \"Credit card transactions resulting in approval, sorted by user\"\n  },\n  \"cols\": 2,\n  \"rows\": 12\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Check Reports\",\n    \"h-1\": \"Check Reports\",\n    \"0-0\": \"check:Deposit Report\",\n    \"0-1\": \"Check transactions sorted by estimated deposit date\",\n    \"1-0\": \"check:All Transactions by Date\",\n    \"1-1\": \"All Check transactions sorted by date (does not include errors)\",\n    \"2-0\": \"check:settled by date\",\n    \"2-1\": \"Check transactions that have been marked as settled, sorted by date\",\n    \"3-0\": \"check:settled by source\",\n    \"3-1\": \"Check transactions that have been marked as settled, sorted by source\",\n    \"4-0\": \"check:settled by users\",\n    \"4-1\": \"Check transactions that have been marked as settled, sorted by user\",\n    \"5-0\": \"check:returns by date\",\n    \"5-1\": \"Check transactions that have been marked as returned, sorted by date\",\n    \"6-0\": \"check:returns by source\",\n    \"6-1\": \"Check transactions that have been marked as returned, sorted by source\",\n    \"7-0\": \"check:returns by reason\",\n    \"7-1\": \"Check transactions that have been marked as returned, sorted by reason\",\n    \"8-0\": \"check:returns by user\",\n    \"8-1\": \"Check transactions that have been marked as returned, sorted by user\",\n    \"9-0\": \"check:declines by date\",\n    \"9-1\": \"Check transactions were rejected by check processor, sorted by date\",\n    \"10-0\": \"check:declines by source\",\n    \"10-1\": \"Check transactions were rejected by check processor, sorted by sourcekey\",\n    \"11-0\": \"check:declines by reason\",\n    \"11-1\": \"Check transactions were rejected by check processor, sorted by reason\",\n    \"12-0\": \"check:declines by user\",\n    \"12-1\": \"Check transactions were rejected by check processor, sorted by user\"\n  },\n  \"cols\": 2,\n  \"rows\": 13\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Customer Reports\",\n    \"h-1\": \"Customer Reports\",\n    \"0-0\": \"customer:Pending Billing by Date\",\n    \"0-1\": \"Customers that are pending for recurring billing, sorted by next bill date\",\n    \"1-0\": \"customer:Pending Billing by Source\",\n    \"1-1\": \"Customers that are pending for recurring billing, sorted by Source\",\n    \"2-0\": \"customer:Billing History by Date\",\n    \"2-1\": \"Transactions results for recurring billing, sorted by billing date\",\n    \"3-0\": \"customer:Billing History by Source\",\n    \"3-1\": \"Transactions results for recurring billing, sorted by Source\",\n    \"4-0\": \"customer:Expired Cards\",\n    \"4-1\": \"Customers who have an expired credit card on file\",\n    \"5-0\": \"customer:Expiring before Next Billing\",\n    \"5-1\": \"Customers that have a credit card that will expire before the next payment is scheduled to run\",\n    \"6-0\": \"customer:Expiring by Date Range\",\n    \"6-1\": \"Customers that have a credit card expiring in the future\"\n  },\n  \"cols\": 2,\n  \"rows\": 7\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Examples\"\n}\n[/block]\n## PHP \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?php\\ntry {\\n $Options = array(\\n   array('Field'=>'StartDate', 'Value'=>'2007/01/01'),\\n   array('Field'=>'EndDate', 'Value'=>'2007/04/01')\\n );\\n $Format='csv';\\n $Report='CreditCard:Errors By Date';\\n $res=$client->getTransactionReport($token, $Report, $Options, $Format);  \\n $data=base64_decode($res);\\n print_r($data);\\n}\\ncatch (SoapFault $e) {\\n die(\\\"Get Transaction failed :\\\" .$e->getMessage());\\n }\\n?>\",\n      \"language\": \"php\"\n    }\n  ]\n}\n[/block]\n## Visual Basic (.Net) \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"Dim report As String\\n       report = \\\"creditcard:errors by date\\\"\\n       Dim options(0 To 1) As eBizCharge.FieldValue\\n       options(0) = New eBizCharge.FieldValue\\n       options(1) = New eBizCharge.FieldValue\\n       options(0).Field = \\\"Start date\\\"\\n       options(0).Value = \\\"2010-08-01\\\"\\n       options(1).Field = \\\"End date\\\"\\n       options(1).Value = \\\"2010-08-16\\\"\\n       Dim format As String\\n       format = \\\"csv\\\"\\n       Dim response As String\\n       response = client.getReport(token, report, options, format)\\n       Dim binary_data As Byte() = Convert.FromBase64String(response)\\n       MsgBox(System.Text.Encoding.UTF8.GetString(binary_data))\",\n      \"language\": \"c\"\n    }\n  ]\n}\n[/block]\n## C Sharp (.Net)\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"string report = \\\"creditcard:errors by date \\\";\\n           eBizCharge.FieldValue[] options = new eBizCharge.FieldValue[2];\\n           for (int i = 0; i < 2; i++)\\n           {\\n               options[i] = new eBizCharge.FieldValue();\\n           }\\n           options[0].Field = \\\"StartDate\\\"; options[0].Value = \\\"2010-08-01\\\";\\n           options[1].Field = \\\"EndDate\\\";   options[1].Value = \\\"2010-08-16\\\";\\n           string format = \\\"csv\\\";\\n           string response;\\n           try\\n               {\\n                  response = client.getReport(token, report, options, format);\\n                  Byte[] binaryData = new Byte[3];\\n                  binaryData = Convert.FromBase64String(response);\\n                  MessageBox.Show(Encoding.UTF8.GetString(binaryData));\\n               }\\n               catch (Exception err)\\n               {\\n                   MessageBox.Show(err.Message);\\n               }\",\n      \"language\": \"csharp\"\n    }\n  ]\n}\n[/block]\n## XML \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\"\\nxmlns:ns1=\\\"urn:eBizCharge\\\" xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\"\\nxmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\"\\nxmlns:SOAP-ENC=\\\"http://schemas.xmlsoap.org/soap/encoding/\\\"\\nSOAP-ENV:encodingStyle=\\\"http://schemas.xmlsoap.org/soap/encoding/\\\">\\n<SOAP-ENV:Body>\\n<ns1:getReport>\\n<Token xsi:type=\\\"ns1:ueSecurityToken\\\">\\n<ClientIP xsi:type=\\\"xsd:string\\\">192.168.0.1</ClientIP>\\n<PinHash xsi:type=\\\"ns1:ueHash\\\">\\n<HashValue xsi:type=\\\"xsd:string\\\">cb451c1c7cd0c9928933c074d6e4b239</HashValue>\\n<Seed xsi:type=\\\"xsd:string\\\">1234</Seed>\\n<Type xsi:type=\\\"xsd:string\\\">md5</Type>\\n</PinHash>\\n<SourceKey xsi:type=\\\"xsd:string\\\">_0409i1S8XvmVj3ndoBG0HlBu32kYD3t</SourceKey>\\n</Token>\\n<Report xsi:type=\\\"xsd:string\\\">creditcard:declines by user</Report>\\n<Format xsi:type=\\\"xsd:string\\\">csv</Format>\\n<Options SOAP-ENC:arrayType=\\\"ns1:FieldValue[2]\\\" xsi:type=\\\"ns1:FieldValueArray\\\">\\n<item xsi:type=\\\"ns1:FieldValue\\\">\\n<Field xsi:type=\\\"xsd:string\\\">StartDate</Field>\\n<Value xsi:type=\\\"xsd:string\\\">2013/01/01</Value>\\n</item>\\n<item xsi:type=\\\"ns1:FieldValue\\\">\\n<Field xsi:type=\\\"xsd:string\\\">EndDate</Field>\\n<Value xsi:type=\\\"xsd:string\\\">2013/12/12</Value>\\n</item>\\n</Options>\\n</ns1:getReport>\\n</SOAP-ENV:Body>\\n</SOAP-ENV:Envelope>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"getreport","type":"basic","title":"getReport"}
Pull a built-in or custom report from the merchant console. [block:api-header] { "type": "basic", "title": "Description" } [/block] This method retrieves a report from the merchant console. Any reports, including custom reports, may be retrieved. The returned data is base 64 encoded. The format of the returned data can be HTML, comma separated (cvs), or tab separated (tab). Names of built-in reports are prefaced with “CreditCard:”, “Check:” or “Customer:”. For example, to pull “Sales by Date” for credit cards, the “Report” parameter would be set to “CreditCard:Sales by Date.” To pull a custom credit card or check report, prefix the name with “Custom:” or “CustomCheck:” For example, to pull a custom report titled “Recurring Declines” set the “Report” parameter to “Custom:Recurring Declines.” Customer reports can only be created from within the merchant console. If none of the built-in or custom reports provide data required, see the custom search methods (ie searchTransactionsCustom) for more flexibility. [block:api-header] { "type": "basic", "title": "Syntax" } [/block] string **getReport** ( [ueSecurityToken](/docs/uesecuritytoken) Token, string Report, [FieldValue](/docs/fieldvalue) Options, string Format ) [block:api-header] { "type": "basic", "title": "Arguments" } [/block] [block:parameters] { "data": { "h-0": "Type", "h-1": "Name", "h-2": "Description", "0-0": "[ueSecurityToken](/docs/uesecuritytoken)", "0-1": "Token", "0-2": "Merchant security token: used to identify merchant and validate transaction.", "1-0": "string", "1-1": "Report", "1-2": "Name of report to retrieve.", "2-0": "[FieldValue](/docs/fieldvalue)", "2-1": "Options", "2-2": "Array of FieldValue objects specifying report options such as (StartDate and EndDate)", "3-0": "string", "3-1": "Format", "3-2": "Format of returned report data. Possible values are: html, csv, or tab." }, "cols": 3, "rows": 4 } [/block] [block:api-header] { "type": "basic", "title": "Return Value" } [/block] [block:parameters] { "data": { "0-0": "string", "0-1": "Returns specified report data according to parameters set in search." }, "cols": 2, "rows": 1 } [/block] [block:api-header] { "type": "basic", "title": "Exceptions" } [/block] The following exceptions (errors) are applicable to this method. [block:parameters] { "data": { "h-0": "Code", "h-1": "Message", "h-2": "Advice", "0-0": "20014", "0-1": "Unsupported file format", "0-2": "Valid file formats are html, csv or tab.", "1-0": "20028", "1-1": "Requested Report not found", "1-2": "Double check the name of the report.", "2-0": "20029", "2-1": "Unable to retrieve requested report", "2-2": "An account configuration issue was encountered while generating the report. Contact support for assistance." }, "cols": 3, "rows": 3 } [/block] [block:api-header] { "type": "basic", "title": "Available Reports" } [/block] [block:parameters] { "data": { "h-0": "Credit Card Reports", "h-1": "Credit Card Reports", "0-0": "creditcard:errors by date", "0-1": "Credit card transactions resulting in errors, sorted by date", "1-0": "creditcard:errors by source", "1-1": "Credit card transactions resulting in errors, sorted by source key", "2-0": "creditcard:errors by reason", "2-1": "Credit card transactions resulting in errors, sorted by reason", "3-0": "creditcard:errors by user", "3-1": "Credit card transactions resulting in errors, sorted by user", "4-0": "creditcard:declines by date", "4-1": "Credit card transactions resulting in declines, sorted by date", "5-0": "creditcard:declines by source", "5-1": "Credit card transactions resulting in declines, sorted by source key", "6-0": "creditcard:declines by reason", "6-1": "Credit card transactions resulting in declines, sorted by reason", "7-0": "creditcard:declines by user", "7-1": "Credit card transactions resulting in declines, sorted by user", "8-0": "creditcard:sales by date", "8-1": "Credit card transactions resulting in approval, sorted by date", "9-0": "creditcard:sales by source", "9-1": "Credit card transactions resulting in approval, sorted by source key", "10-0": "creditcard:sales by reason", "10-1": "Credit card transactions resulting in approval, sorted by reason", "11-0": "creditcard:sales by user", "11-1": "Credit card transactions resulting in approval, sorted by user" }, "cols": 2, "rows": 12 } [/block] [block:parameters] { "data": { "h-0": "Check Reports", "h-1": "Check Reports", "0-0": "check:Deposit Report", "0-1": "Check transactions sorted by estimated deposit date", "1-0": "check:All Transactions by Date", "1-1": "All Check transactions sorted by date (does not include errors)", "2-0": "check:settled by date", "2-1": "Check transactions that have been marked as settled, sorted by date", "3-0": "check:settled by source", "3-1": "Check transactions that have been marked as settled, sorted by source", "4-0": "check:settled by users", "4-1": "Check transactions that have been marked as settled, sorted by user", "5-0": "check:returns by date", "5-1": "Check transactions that have been marked as returned, sorted by date", "6-0": "check:returns by source", "6-1": "Check transactions that have been marked as returned, sorted by source", "7-0": "check:returns by reason", "7-1": "Check transactions that have been marked as returned, sorted by reason", "8-0": "check:returns by user", "8-1": "Check transactions that have been marked as returned, sorted by user", "9-0": "check:declines by date", "9-1": "Check transactions were rejected by check processor, sorted by date", "10-0": "check:declines by source", "10-1": "Check transactions were rejected by check processor, sorted by sourcekey", "11-0": "check:declines by reason", "11-1": "Check transactions were rejected by check processor, sorted by reason", "12-0": "check:declines by user", "12-1": "Check transactions were rejected by check processor, sorted by user" }, "cols": 2, "rows": 13 } [/block] [block:parameters] { "data": { "h-0": "Customer Reports", "h-1": "Customer Reports", "0-0": "customer:Pending Billing by Date", "0-1": "Customers that are pending for recurring billing, sorted by next bill date", "1-0": "customer:Pending Billing by Source", "1-1": "Customers that are pending for recurring billing, sorted by Source", "2-0": "customer:Billing History by Date", "2-1": "Transactions results for recurring billing, sorted by billing date", "3-0": "customer:Billing History by Source", "3-1": "Transactions results for recurring billing, sorted by Source", "4-0": "customer:Expired Cards", "4-1": "Customers who have an expired credit card on file", "5-0": "customer:Expiring before Next Billing", "5-1": "Customers that have a credit card that will expire before the next payment is scheduled to run", "6-0": "customer:Expiring by Date Range", "6-1": "Customers that have a credit card expiring in the future" }, "cols": 2, "rows": 7 } [/block] [block:api-header] { "type": "basic", "title": "Examples" } [/block] ## PHP [block:code] { "codes": [ { "code": "<?php\ntry {\n $Options = array(\n array('Field'=>'StartDate', 'Value'=>'2007/01/01'),\n array('Field'=>'EndDate', 'Value'=>'2007/04/01')\n );\n $Format='csv';\n $Report='CreditCard:Errors By Date';\n $res=$client->getTransactionReport($token, $Report, $Options, $Format); \n $data=base64_decode($res);\n print_r($data);\n}\ncatch (SoapFault $e) {\n die(\"Get Transaction failed :\" .$e->getMessage());\n }\n?>", "language": "php" } ] } [/block] ## Visual Basic (.Net) [block:code] { "codes": [ { "code": "Dim report As String\n report = \"creditcard:errors by date\"\n Dim options(0 To 1) As eBizCharge.FieldValue\n options(0) = New eBizCharge.FieldValue\n options(1) = New eBizCharge.FieldValue\n options(0).Field = \"Start date\"\n options(0).Value = \"2010-08-01\"\n options(1).Field = \"End date\"\n options(1).Value = \"2010-08-16\"\n Dim format As String\n format = \"csv\"\n Dim response As String\n response = client.getReport(token, report, options, format)\n Dim binary_data As Byte() = Convert.FromBase64String(response)\n MsgBox(System.Text.Encoding.UTF8.GetString(binary_data))", "language": "c" } ] } [/block] ## C Sharp (.Net) [block:code] { "codes": [ { "code": "string report = \"creditcard:errors by date \";\n eBizCharge.FieldValue[] options = new eBizCharge.FieldValue[2];\n for (int i = 0; i < 2; i++)\n {\n options[i] = new eBizCharge.FieldValue();\n }\n options[0].Field = \"StartDate\"; options[0].Value = \"2010-08-01\";\n options[1].Field = \"EndDate\"; options[1].Value = \"2010-08-16\";\n string format = \"csv\";\n string response;\n try\n {\n response = client.getReport(token, report, options, format);\n Byte[] binaryData = new Byte[3];\n binaryData = Convert.FromBase64String(response);\n MessageBox.Show(Encoding.UTF8.GetString(binaryData));\n }\n catch (Exception err)\n {\n MessageBox.Show(err.Message);\n }", "language": "csharp" } ] } [/block] ## XML [block:code] { "codes": [ { "code": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"\nxmlns:ns1=\"urn:eBizCharge\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\nxmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\nxmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\"\nSOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n<SOAP-ENV:Body>\n<ns1:getReport>\n<Token xsi:type=\"ns1:ueSecurityToken\">\n<ClientIP xsi:type=\"xsd:string\">192.168.0.1</ClientIP>\n<PinHash xsi:type=\"ns1:ueHash\">\n<HashValue xsi:type=\"xsd:string\">cb451c1c7cd0c9928933c074d6e4b239</HashValue>\n<Seed xsi:type=\"xsd:string\">1234</Seed>\n<Type xsi:type=\"xsd:string\">md5</Type>\n</PinHash>\n<SourceKey xsi:type=\"xsd:string\">_0409i1S8XvmVj3ndoBG0HlBu32kYD3t</SourceKey>\n</Token>\n<Report xsi:type=\"xsd:string\">creditcard:declines by user</Report>\n<Format xsi:type=\"xsd:string\">csv</Format>\n<Options SOAP-ENC:arrayType=\"ns1:FieldValue[2]\" xsi:type=\"ns1:FieldValueArray\">\n<item xsi:type=\"ns1:FieldValue\">\n<Field xsi:type=\"xsd:string\">StartDate</Field>\n<Value xsi:type=\"xsd:string\">2013/01/01</Value>\n</item>\n<item xsi:type=\"ns1:FieldValue\">\n<Field xsi:type=\"xsd:string\">EndDate</Field>\n<Value xsi:type=\"xsd:string\">2013/12/12</Value>\n</item>\n</Options>\n</ns1:getReport>\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>", "language": "xml" } ] } [/block]