How to Settle a Batch
Usually, by the end of business day, you would want to close your batch to transfer funds to your account. Closing an open batch will settle all the transactions within it.
- Do a GET /batch?status=open to get a list of open batches. Make a note on the batchId that you would like to close.
- Close the open batch by using PUT /batch/{id}
- Do a GET /batch/{id} to make sure it's closed.
PUT https://sandbox.api.mxmerchant.com/checkout/v3/batch/10000000138044 HTTP/1.1
Authorization: Basic c2FuZGJveHBvcxxxxxx1NTE1NTE1NQ==
RESPONSE:
HTTP 201 Created
Any transaction made will automatically get put into an open batch. If no batches are open, a new batch will automatically be opened for you.
Updated over 3 years ago