Skip to content

BATCHCLOSE ​

BATCHCLOSE transactions request that a specific batch of payments be closed, making them available for clearing. These transactions are grouped by a BatchID provided by the merchant.

Successful requests will be indicated with a 2xx HTTP response code and the Approved attribute set to 'true'.

NOTE

It is possible to receive an HTTP 2xx response code indicating that the request was successfully received, understood, and processed at the HTTP protocol level, but still have the Approved attribute set to false. (A 2xx response code with an Approved attribute set to false means the server successfully handled the request itself; however the actual business or application logic determined that the request was not approved).

Available Functions ​

Perform a 'batchclose' transaction ​

POST, /v0/transaction/batchclose

REQUEST Object Attributes ​

View REQUEST Object Attributes
batchcloseTable
AttributeData TypeDescriptionRequired
Attributesobject

Transaction attributes

False
ProcessingSpecifiersobject

Description of the specific data used for processing the transaction.


ProcessingSpecifiers is aKey/Value of the "Attributes" Object View object structure example

False
TransactionEntryobject

See Transaction Entry Section

(Information about transaction entry)

False

REQUEST Example: Initial mail order on POS device with BatchID ​

Code Sample using CURL
sh
URL=https://api.qa.paynetworx.net/v0/transaction/batchclose
HTTPAUTHTOKEN=1fHfjpw86udrDQHRMKabypEmhY4:1fHfkJrOs7iVBnC07HDxCPZuPsK
curl -sS --user $HTTPAUTHTOKEN -H 'Content-Type: application/json' -H "Request-ID: $(ksuid)" $URL -d '
{
    "Amount": {
        "Total": 17.00,
        "Currency": "USD"
    },
    "PaymentMethod": {
        "Card": {
            "CardPresent": false,
            "CardHolderPresent": false,
            "CVC": {
                "CVC": "321"
            },
            "PAN": {
                "PAN": "5204910211482784",
                "ExpMonth": "12",
                "ExpYear": "31"
            },
            "BillingAddress": {
                "Name": "Test Cardholder",
                "Line1": "9876 Test Loooooooooooooong Lane",
                "Line2": "APT 11235",
                "City": "Testville",
                "State": "TX",
                "PostalCode": "75218",
                "Country": "US",
                "Email": "example@example.com"
            }
        }
    },
    "Attributes": {
        "EntryMode": "manual",
        "ProcessingSpecifiers": {
            "InitiatedByPOS": true,
            "MailOrder": true
        }
    },
    "TransactionEntry": {
        "Device": "Fake test JSON",
        "DeviceVersion": "0.0",
        "Application": "PNXTestApp",
        "ApplicationVersion": "0.0",
        "BatchID": "3MG5eg29Y9hL4FJOv9zdTLGnFio",
        "Timestamp": "2026-11-16T17:01:44"
    }
}'

REQUEST Example: Batch close request ​

Code Sample using CURL
sh
URL=https://api.qa.paynetworx.net/v0/transaction/batchclose
HTTPAUTHTOKEN=1fHfjpw86udrDQHRMKabypEmhY4:1fHfkJrOs7iVBnC07HDxCPZuPsK
curl -sS --user $HTTPAUTHTOKEN -H 'Content-Type: application/json' -H "Request-ID: $(ksuid)" $URL -d '
{
    "Attributes": {
        "ProcessingSpecifiers": {
            "InitiatedByPOS": true
        }
    },
    "TransactionEntry": {
        "Device": "Fake test JSON",
        "DeviceVersion": "0.0",
        "Application": "PNXTestApp",
        "ApplicationVersion": "0.0",
        "BatchID": "3MG5eg29Y9hL4FJOv9zdTLGnFio",
        "BatchTimestamp": "2026-11-16T17:01:43",
        "Timestamp": "2026-11-16T17:01:44"
    }
}'