Jinantha Perera Posted August 21 Share Posted August 21 Hi there, I'm trying to create a receipt for an invoice through this API. Testing in the Swagger interface - ARReceiptAndAdjustmentBatch The 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." } } } If anyone could kindly help. Thanks! Link to comment Share on other sites More sharing options...
Steel, Mark Posted August 22 Share Posted August 22 Hi Jinantha, Thank you for your question. You don't state which Sage product this API is being used with and have posted in the General forum. If you can provide the product and country this product is being developed for we'll be able to guide you to the best resource. Thanks Mark Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now