Skip to content

Instantly share code, notes, and snippets.

@johnnyoshika
Last active December 18, 2016 07:17
Show Gist options
  • Save johnnyoshika/224451a3ff64ba4ddfe11fa916c557d3 to your computer and use it in GitHub Desktop.
Save johnnyoshika/224451a3ff64ba4ddfe11fa916c557d3 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<Payments xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <Payment>
        <Account>
            <Code>100</Code>
        </Account>
        <Amount>100.00</Amount>
        <Date>2016-12-16T21:57:56</Date>
        <Invoice>
            <InvoiceNumber>IB-12345</InvoiceNumber>
            <LineAmountTypes>Exclusive</LineAmountTypes>
            <Status>DRAFT</Status>
            <Type>ACCPAY</Type>
        </Invoice>
        <Reference>IB-12345</Reference>
    </Payment>
</Payments>
{
  "Id": "8287c0ae-a357-47f6-940a-df8a39d7985b",
  "Status": "OK",
  "ProviderName": "Demo Application",
  "DateTimeUTC": "\/Date(1481954635798)\/",
  "Payments": [
    {
      "PaymentID": "b7314b72-442d-4a18-a5d4-dbdc142fa7f4",
      "Date": "\/Date(1481846400000+0000)\/",
      "Invoice": {
        "Type": "ACCREC",
        "InvoiceID": "3f11dd76-8b73-4173-b026-4287271dcc5a",
        "InvoiceNumber": "IB-12345",
        "DateString": "2016-12-16T00:00:00",
        "Date": "\/Date(1481846400000+0000)\/"
      },
      "HasValidationErrors": false
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment