Void Credit Card Transaction

Voids a credit card transaction. You can void a transaction that has not been settled yet. If the transaction is settled, you must call the Process Credit Card Refund API.

Headers
  • x-applicationSource
    Type: string
    required

    A custom HTTP header that accepts a free-form string value. It is used to identify the application making the API request. For example, if Punchh invokes the API, the value could be "punchh".

  • X-LocationId
    Type: string
    required

    The unique location identifier for the store or business location processing the transaction.

  • Content-Type
    Type: string
    required

    The media type of the request body. Must be set to application/json.

  • Authorization
    Type: string
    required

    Bearer token for API authorization. Send in the format: Bearer ACCESS_TOKEN_GOES_HERE.

Body·
application/json

Request details for void transaction

  • parPayTransactionId
    Type: string
    min length:  
    1
    required

    A unique identifier for the transaction being cancelled.

  • transactionDateTimeUTC
    Type: string Format: date-time
    required

    The transaction date and time in UTC format.

  • transactionDateTimeLocal
    Type: string | null Format: date-time

    The transaction date and time in local format.

Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/creditcard/v1/void
curl https://SERVER_NAME_GOES_HERE.partech.com/creditcard/v1/void \
  --request POST \
  --header 'x-applicationSource: ' \
  --header 'X-LocationId: ' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
  --data '{
  "parPayTransactionId": "TRANSACTION_ID_GOES_HERE",
  "transactionDateTimeUTC": "2026-03-06T11:28:29.7106984Z",
  "transactionDateTimeLocal": "2026-03-06T11:28:29.71"
}'
{
  "transactionAmount": "1000.00",
  "cardNumber": "XXXX-XXXX-XXXX-1111",
  "parPayTransactionId": "TRANSACTION_ID_GOES_HERE",
  "statusMessage": "Succeeded!",
  "transactionDateTimeUTC": "2026-03-06T11:28:29.7107605Z",
  "status": "Success"
}