WEB API - ARReceiptAndAdjustmentBatch

Hi there,

I'm tryin to create a receipt for an invoice through this API.

Testing in the Swagger interface - ARReceiptAndAdjustmentBatch

Entity I'm posting:

{
  "ReceiptsAdjustments": [
    {
      "BatchType": "CA",
      "CustomerNumber": "1001CRJ22031",
      "EntryDescription": "Test 1",
      "TotalCustomerAmountApplied": 1200,
      "PaymentCode": "CASH",
      "CustomerCurrencyCode": "LKR",
      "ReceiptTransactionType": "Receipt",
      "DocumentType": "None",
      "PaymentType": "Cash",
      "CustomerUnappliedAmount": -1200,
      "BankUnappliedAmount": -1200,
      "BankCode": "6302SFF",
      "BankCurrencyCode": "LKR",
      "CalculateTax": "Yes",
      "TaxGroup": "string",
      "FunctionalTotalCustomerAmountApplied": 1200,
      "FuncCustomerUnappliedAmount": -1200,
      "AccountSet": "MPHD",
      "AppliedReceiptsAdjustments": [
        {
          "BatchType": "CA",
          "CustomerNumber": "1001CRJ22031",
          "DocumentNumber": "IN00000000000000009625",
          "PaymentNumber": 1,
          "TransactionType": "ReceiptPosted",
          "CustomerReceiptAmount": 1200,
          "Description": "Test 1",
          "PPMatchingDocumentType": "None",
          "UnappliedJobPaymentAmount": 1200,
          "TRXTYPEID": "InvoiceSummaryIssued",
          "ReceiptTransactionType": "Receipt",
          "FunctionalReceiptAmount": 1200,
          "CustomerCurrencyCode": "LKR"
        }
      ]
    }
  ]
}

I'm getting thgis error when posted,

{
  "error": {
    "code": "RecordInvalid",
    "message": {
      "lang": "en-US",
      "value": "Batch payment type  is invalid.\n\nEnter 'CA' for receipt batch or 'AD' for adjustment batch. Bank code cannot be blank."

    }
  }
}

Kindly help. Thanks!