How to Process AR Receipt Batch via API

Am using this endpoint to post AR Receipt Batch

http://localhost/Sage300WebApi/v1.0/-/CUHDAT/AR/ARReceiptAndAdjustmentBatches

with this payload upon successfully request, response is returned BatchStatus as "Entered", meanwhile I want to be posted automatically

How can I do so without using a long procedure of entering it as above, using another api to update it as ready to post and finally using another api to process it?

Parents
  • 0

    Doh, my other post was flagged for abuse. Maybe this will pass:

    Assuming your batch number is 38.

    Set your batch to ReadyToPost:

    PATCH /AR/ARReceiptAndAdjustmentBatches(BatchRecordType='CA',BatchNumber=38)

    BODY:

    {
    "BatchNumber": 38,
    "BatchStatus": "ReadyToPost"
    }

    Then use the Process endpoint:

    POST: /AR/ARPostReceiptsAndAdjustments('$process')

    BODY:

    {
    "BatchType": "CA",
    "PostAllBatches": "Donotpostallbatches",
    "PostBatchFrom": 38,
    "PostBatchTo": 38,
    "ActionSelector": "",
    "UpdateOperation": "Unspecified"
    }

Reply
  • 0

    Doh, my other post was flagged for abuse. Maybe this will pass:

    Assuming your batch number is 38.

    Set your batch to ReadyToPost:

    PATCH /AR/ARReceiptAndAdjustmentBatches(BatchRecordType='CA',BatchNumber=38)

    BODY:

    {
    "BatchNumber": 38,
    "BatchStatus": "ReadyToPost"
    }

    Then use the Process endpoint:

    POST: /AR/ARPostReceiptsAndAdjustments('$process')

    BODY:

    {
    "BatchType": "CA",
    "PostAllBatches": "Donotpostallbatches",
    "PostBatchFrom": 38,
    "PostBatchTo": 38,
    "ActionSelector": "",
    "UpdateOperation": "Unspecified"
    }

Children