POST v1/Midnight/CustomerPaymentInsert

Request Information

URI Parameters

None.

Body Parameters

Collection of CustomerPaymentInsert
NameDescriptionTypeAdditional information
CustomerPaymentDetailList

Collection of CustomerPaymentDetailInsert

None.

CustomerId

integer

None.

AmountBilled

decimal number

None.

RequestSource

string

None.

OrderNumber

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CustomerId": 3,
    "AmountBilled": 8.0,
    "CustomerPaymentDetailList": [
      {
        "OrderId": 1,
        "PaymentLabel": "sample string 3",
        "AmountBilled": 4.0
      },
      {
        "OrderId": 1,
        "PaymentLabel": "sample string 3",
        "AmountBilled": 4.0
      }
    ],
    "RequestSource": "sample string 26",
    "OrderNumber": "sample string 27"
  },
  {
    "CustomerId": 3,
    "AmountBilled": 8.0,
    "CustomerPaymentDetailList": [
      {
        "OrderId": 1,
        "PaymentLabel": "sample string 3",
        "AmountBilled": 4.0
      },
      {
        "OrderId": 1,
        "PaymentLabel": "sample string 3",
        "AmountBilled": 4.0
      }
    ],
    "RequestSource": "sample string 26",
    "OrderNumber": "sample string 27"
  }
]

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IList`1'.

Response Information

Resource Description

Collection of CustomerPaymentInsertResponse
NameDescriptionTypeAdditional information
CustomerPaymentId

integer

None.

CustomerPaymentNumber

string

None.

Error

MidnightErrorResponse

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CustomerPaymentId": 1,
    "CustomerPaymentNumber": "sample string 2",
    "Error": {
      "ErrorMessage": [
        {
          "Key": "sample string 1",
          "Message": "sample string 2"
        },
        {
          "Key": "sample string 1",
          "Message": "sample string 2"
        }
      ]
    }
  },
  {
    "CustomerPaymentId": 1,
    "CustomerPaymentNumber": "sample string 2",
    "Error": {
      "ErrorMessage": [
        {
          "Key": "sample string 1",
          "Message": "sample string 2"
        },
        {
          "Key": "sample string 1",
          "Message": "sample string 2"
        }
      ]
    }
  }
]