Transaction Void APIs

Void API

Void

Cancels a Reload, Package Sale, or Barcode Payment transaction that is within its funding delay window. The void request must be submitted before the fundingDelaySeconds value returned by the original transaction elapses.

Supported transaction types:

  • ReloadaccountNumber is required; externId and barcode are not required.
  • Sale (Package Sale) — externId is required; accountNumber is not required.
  • BarcodePaymentbarcode is required; accountNumber is not required.

If transactionType is not provided, it defaults to Reload.

Note: Every request must include a unique X-GD-RequestId header value.

Syntax:

POST {baseUrl}/transaction/void

Request

Example — Void a Reload

POST {baseUrl}/transaction/void
Authorization: Bearer {access_token}
Content-Type: application/json
X-GD-RequestId: req-20260115-vd002

{
  "originalTransactionId": "req-20260115-rld001",
  "accountNumber": "4111111111111234",
  "externId": "",
  "barcode": "",
  "transactionType": "Reload",
  "metadata": {
    "storeId": "STORE-0042",
    "merchantId": "MRC-20001",
    "registerId": "REG-01",
    "userId": "[email protected]",
    "requestDateTime": "2026-01-15T12:05:00Z"
  }
}

Example — Void a Package Sale

POST {baseUrl}/transaction/void
Authorization: Bearer {access_token}
Content-Type: application/json
X-GD-RequestId: req-20260115-vd003

{
  "originalTransactionId": "req-20260115-pks001",
  "externId": "7392048156302",
  "transactionType": "Sale",
  "metadata": {
    "storeId": "STORE-0042",
    "merchantId": "MRC-20001",
    "registerId": "REG-01",
    "userId": "[email protected]",
    "requestDateTime": "2026-01-15T12:05:00Z"
  }
}

Request Parameters

ParameterRequiredTypePatternDescription
X-GD-RequestIdYesStringMax: 50Unique transaction identifier generated by the retailer. Passed as HTTP header.
requestDateTimeYesDateTimeYYYY-MM-DDTHH:MM:SSZUTC timestamp of the void request.
storeIdYesStringMax: 20Store number for the location where the original transaction occurred.
merchantIdYesStringMax: 20Unique merchant ID assigned by Green Dot.
registerIdNoStringMax: 20Register identifier at the store.
userIdNoStringMax: 50Unique ID of the user performing the void.
originalTransactionIdYesStringMax: 50The X-GD-RequestId value from the original transaction to be voided.
accountNumberConditionalString16-digit PANCard account number (PAN). Required when transactionType is Reload.
externIdConditionalStringMax: 30Last 19 digits of the package barcode. Required when transactionType is Sale.
barcodeConditionalStringMax: 30Full 30-digit barcode or last 19 digits. Required when transactionType is BarcodePayment.
transactionTypeNoEnumReload, Sale, BarcodePaymentType of the original transaction being voided. Defaults to Reload if not provided.

Response

Successful Response

HTTP/1.1 200 OK
X-GD-ResponseId: d5e6f7a8-b9c0-1234-defa-bc9876543210

{
  "requestId": "req-20260115-vd002",
  "responseId": "d5e6f7a8-b9c0-1234-defa-bc9876543210",
  "responseCode": 0,
  "responseDescription": "Success",
  "responseDateTime": "2026-01-15T12:05:00.8192011Z"
}

Response Parameters

ParameterRequiredTypePatternDescription
requestIdYesStringMax: 50Echo of the X-GD-RequestId from the request header.
responseIdYesStringUUIDUnique response identifier generated by Green Dot.
responseCodeYesNumeric0–1000Success/failure code. See Response Codes.
responseDescriptionYesStringMax: 255Human-readable description of the response code.
responseDateTimeYesDateTimeYYYY-MM-DDTHH:mm:ss.fffffffZUTC timestamp of the response.

Response Codes

CodeCode TextResponse DescriptionExplanation
0SuccessVoid processed successfully.
100InvalidParameter(See description)Invalid parameter in the request. Examples: MerchantId not supplied, StoreId not supplied.
130InvalidMerchantInvalid MerchantMerchantId not found or not enabled.
600UnableToProcessRequest(See description)Unable to process. Includes duplicate void detection and other downstream errors.
800InvalidStoreStore was not foundStore not found, not associated with this partner, or does not support this operation.
840TransactionNotFound(See description)No matching transaction found for the provided originalTransactionId, or the original transaction belongs to a different store or partner.
841NotVoidableTransactionTypeUnload can not be voidedTransaction type cannot be voided. Only Reload and Sale transactions are voidable.
842TransactionAlreadyVoidedTransaction was already voidedThe transaction has already been voided.
843TransactionAlreadyPostedTransaction was already committedThe transaction has been posted and cannot be voided.
848TransactionAlreadyReturnedTransaction was already returnedThe transaction has been returned and cannot be voided.
999RequestTimeoutRequest TimeoutRequest expired or no downstream response received.
1000GeneralFailureGeneralFailureService failure.

Did this page help you?