POST api/Payments

Request Information

URI Parameters

None.

Body Parameters

Collection of Payment
NameDescriptionTypeAdditional information
SalesForce_Id

string

None.

AccountId

string

None.

PaymentId

string

None.

EffectiveDate

date

None.

QueryId

string

None.

paymentLines

Collection of PaymentLines

None.

CustRefNo

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "SalesForce_Id": "sample string 1",
    "AccountId": "sample string 2",
    "PaymentId": "sample string 3",
    "EffectiveDate": "2025-01-22T19:49:33.7013024+00:00",
    "QueryId": "sample string 5",
    "paymentLines": [
      {
        "PaymentType": "sample string 1",
        "PaymentAccount": "sample string 2",
        "Amount": 3.1
      },
      {
        "PaymentType": "sample string 1",
        "PaymentAccount": "sample string 2",
        "Amount": 3.1
      }
    ],
    "CustRefNo": "sample string 6"
  },
  {
    "SalesForce_Id": "sample string 1",
    "AccountId": "sample string 2",
    "PaymentId": "sample string 3",
    "EffectiveDate": "2025-01-22T19:49:33.7013024+00:00",
    "QueryId": "sample string 5",
    "paymentLines": [
      {
        "PaymentType": "sample string 1",
        "PaymentAccount": "sample string 2",
        "Amount": 3.1
      },
      {
        "PaymentType": "sample string 1",
        "PaymentAccount": "sample string 2",
        "Amount": 3.1
      }
    ],
    "CustRefNo": "sample string 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPayment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SalesforceSAPAPI.Models">
  <Payment>
    <AccountId>sample string 2</AccountId>
    <CustRefNo>sample string 6</CustRefNo>
    <EffectiveDate>2025-01-22T19:49:33.7013024+00:00</EffectiveDate>
    <PaymentId>sample string 3</PaymentId>
    <QueryId>sample string 5</QueryId>
    <SalesForce_Id>sample string 1</SalesForce_Id>
    <paymentLines>
      <PaymentLines>
        <Amount>3.1</Amount>
        <PaymentAccount>sample string 2</PaymentAccount>
        <PaymentType>sample string 1</PaymentType>
      </PaymentLines>
      <PaymentLines>
        <Amount>3.1</Amount>
        <PaymentAccount>sample string 2</PaymentAccount>
        <PaymentType>sample string 1</PaymentType>
      </PaymentLines>
    </paymentLines>
  </Payment>
  <Payment>
    <AccountId>sample string 2</AccountId>
    <CustRefNo>sample string 6</CustRefNo>
    <EffectiveDate>2025-01-22T19:49:33.7013024+00:00</EffectiveDate>
    <PaymentId>sample string 3</PaymentId>
    <QueryId>sample string 5</QueryId>
    <SalesForce_Id>sample string 1</SalesForce_Id>
    <paymentLines>
      <PaymentLines>
        <Amount>3.1</Amount>
        <PaymentAccount>sample string 2</PaymentAccount>
        <PaymentType>sample string 1</PaymentType>
      </PaymentLines>
      <PaymentLines>
        <Amount>3.1</Amount>
        <PaymentAccount>sample string 2</PaymentAccount>
        <PaymentType>sample string 1</PaymentType>
      </PaymentLines>
    </paymentLines>
  </Payment>
</ArrayOfPayment>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Payment
NameDescriptionTypeAdditional information
SalesForce_Id

string

None.

AccountId

string

None.

PaymentId

string

None.

EffectiveDate

date

None.

QueryId

string

None.

paymentLines

Collection of PaymentLines

None.

CustRefNo

string

None.

Response Formats

application/json, text/json

Sample:
{
  "SalesForce_Id": "sample string 1",
  "AccountId": "sample string 2",
  "PaymentId": "sample string 3",
  "EffectiveDate": "2025-01-22T19:49:34.0450965+00:00",
  "QueryId": "sample string 5",
  "paymentLines": [
    {
      "PaymentType": "sample string 1",
      "PaymentAccount": "sample string 2",
      "Amount": 3.1
    },
    {
      "PaymentType": "sample string 1",
      "PaymentAccount": "sample string 2",
      "Amount": 3.1
    }
  ],
  "CustRefNo": "sample string 6"
}

application/xml, text/xml

Sample:
<Payment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SalesforceSAPAPI.Models">
  <AccountId>sample string 2</AccountId>
  <CustRefNo>sample string 6</CustRefNo>
  <EffectiveDate>2025-01-22T19:49:34.0450965+00:00</EffectiveDate>
  <PaymentId>sample string 3</PaymentId>
  <QueryId>sample string 5</QueryId>
  <SalesForce_Id>sample string 1</SalesForce_Id>
  <paymentLines>
    <PaymentLines>
      <Amount>3.1</Amount>
      <PaymentAccount>sample string 2</PaymentAccount>
      <PaymentType>sample string 1</PaymentType>
    </PaymentLines>
    <PaymentLines>
      <Amount>3.1</Amount>
      <PaymentAccount>sample string 2</PaymentAccount>
      <PaymentType>sample string 1</PaymentType>
    </PaymentLines>
  </paymentLines>
</Payment>