# Void transaction POST https://api-sandbox.payabli.com/api/v2/MoneyIn/void/{transId} Cancel a transaction that hasn't been settled yet. Voiding non-captured authorizations prevents future captures. This is the v2 version of the `api/MoneyIn/void/{transId}` endpoint, and returns the unified response format. See [Pay In unified response codes reference](/guides/pay-in-unified-response-codes-reference) for more information. Reference: https://docs.payabli.com/developers/api-reference/moneyinV2/void-a-transaction ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Void a transaction (v2) version: endpoint_moneyIn.voidv2 paths: /v2/MoneyIn/void/{transId}: post: operationId: voidv-2 summary: Void a transaction (v2) description: >- Cancel a transaction that hasn't been settled yet. Voiding non-captured authorizations prevents future captures. This is the v2 version of the `api/MoneyIn/void/{transId}` endpoint, and returns the unified response format. See [Pay In unified response codes reference](/guides/pay-in-unified-response-codes-reference) for more information. tags: - - subpackage_moneyIn parameters: - name: transId in: path description: ReferenceId for the transaction (PaymentId). required: true schema: type: string - name: requestToken in: header required: true schema: type: string responses: '200': description: Ok content: application/json: schema: $ref: >- #/components/schemas/type___v2moneyInTypes__:V2TransactionResponseWrapper '400': description: >- Bad request error for v2 Money In void endpoint (HTTP 400). Returned when request validation fails. Follows RFC 7807 Problem Details format with Payabli-specific unified response codes. See the [Pay In unified response codes reference](/guides/pay-in-unified-response-codes-reference) for the complete list of codes. content: {} '401': description: Unauthorized request. content: {} '402': description: >- Void decline error for v2 Money In endpoints (HTTP 402). Returned when a void operation is declined for a transaction. Uses unified response codes starting with 'D'. See the [Pay In unified response codes reference](/guides/pay-in-unified-response-codes-reference) for the complete list of codes. content: {} '500': description: >- Internal server error for v2 Money In endpoints (HTTP 500). Returned when an unexpected error occurs. Follows RFC 7807 Problem Details format. content: {} components: schemas: type___v2moneyInTypes__:V2ResponseCode: type: string type___v2moneyInTypes__:V2ResponseReason: type: string type___v2moneyInTypes__:V2ResponseExplanation: type: string type___v2moneyInTypes__:V2ResponseAction: type: string type_:OrgParentName: type: string type_:Dbaname: type: string type_:Legalname: type: string type_:Entrypointfield: type: string type_:ExternalProcessorInformation: type: string type_:OrderId: type: string type_:BatchNumber: type: string type_:PayorId: type: integer format: int64 type_:Maskedaccount: type: string type_:Accounttype: type: string type_:Accountexp: type: string type_:Holdername: type: string type_:Storedmethodid: type: string type_:Initiator: type: string type_:StoredMethodUsageType: type: string type_:Sequence: type: string type_:Orderdescription: type: string type_:Accountid: type: string type_:Signaturedata: type: string type_:BinData: type: object properties: binMatchedLength: type: string description: |- The number of characters from the beginning of the card number that were matched against a Bank Identification Number (BIN) or the Card Range table. binCardBrand: type: string description: |- The card brand. For example, Visa, Mastercard, American Express, Discover. binCardType: type: string description: 'The type of card: Credit or Debit.' binCardCategory: type: string description: >- The category of the card, which indicates the card product. For example: Standard, Gold, Platinum, etc. The binCardCategory for prepaid cards is marked `PREPAID`. binCardIssuer: type: string description: The name of the financial institution that issued the card. binCardIssuerCountry: type: string description: The issuing financial institution's country name. binCardIssuerCountryCodeA2: type: string description: >- The issuing financial institution's two-character ISO country code. See [this resource](https://www.iso.org/obp/ui/#search) for a list of codes. binCardIssuerCountryNumber: type: string description: >- The issuing financial institution's ISO standard numeric country code. See [this resource](https://www.iso.org/obp/ui/#search) for a list of codes. binCardIsRegulated: type: string description: Indicates whether the card is regulated. binCardUseCategory: type: string description: The use category classification for the card. binCardIssuerCountryCodeA3: type: string description: >- The issuing financial institution's three-character ISO country code. See [this resource](https://www.iso.org/obp/ui/#search) for a list of codes. type_:Source: type: string type_moneyIn:TransactionDetailPaymentDetails: type: object properties: totalAmount: type: number format: double serviceFee: type: number format: double checkNumber: type: - string - 'null' checkImage: oneOf: - description: Any type - type: 'null' checkUniqueId: type: string currency: type: string orderDescription: oneOf: - $ref: '#/components/schemas/type_:Orderdescription' - type: 'null' orderId: oneOf: - $ref: '#/components/schemas/type_:OrderId' - type: 'null' orderIdAlternative: type: - string - 'null' paymentDescription: type: - string - 'null' groupNumber: type: - string - 'null' source: oneOf: - $ref: '#/components/schemas/type_:Source' - type: 'null' payabliTransId: type: - string - 'null' unbundled: oneOf: - description: Any type - type: 'null' categories: type: array items: description: Any type splitFunding: type: array items: description: Any type required: - totalAmount - serviceFee - checkNumber - checkImage - checkUniqueId - currency - orderDescription - orderId - orderIdAlternative - paymentDescription - groupNumber - source - payabliTransId - unbundled - categories - splitFunding type_moneyIn:TransactionDetailPaymentData: type: object properties: maskedAccount: $ref: '#/components/schemas/type_:Maskedaccount' accountType: $ref: '#/components/schemas/type_:Accounttype' accountExp: oneOf: - $ref: '#/components/schemas/type_:Accountexp' - type: 'null' holderName: $ref: '#/components/schemas/type_:Holdername' storedId: oneOf: - $ref: '#/components/schemas/type_:Storedmethodid' - type: 'null' initiator: oneOf: - $ref: '#/components/schemas/type_:Initiator' - type: 'null' storedMethodUsageType: oneOf: - $ref: '#/components/schemas/type_:StoredMethodUsageType' - type: 'null' sequence: oneOf: - $ref: '#/components/schemas/type_:Sequence' - type: 'null' orderDescription: $ref: '#/components/schemas/type_:Orderdescription' accountId: oneOf: - $ref: '#/components/schemas/type_:Accountid' - type: 'null' signatureData: oneOf: - $ref: '#/components/schemas/type_:Signaturedata' - type: 'null' binData: oneOf: - $ref: '#/components/schemas/type_:BinData' - type: 'null' paymentDetails: $ref: '#/components/schemas/type_moneyIn:TransactionDetailPaymentDetails' required: - maskedAccount - accountType - accountExp - holderName - storedId - initiator - storedMethodUsageType - sequence - orderDescription - accountId - signatureData - binData - paymentDetails type_:TransStatus: type: integer type_:PaypointId: type: integer format: int64 type_:FeeAmount: type: number format: double type_:SettlementStatus: type: integer type_:Operation: type: string type_:ResultCodev2: type: string type_:ResultCodeText: type: string type_:Resulttext: type: string type_:Authcode: type: string type_:AvsResponse: type: string type_:AvsResponseText: type: string type_:CvvResponse: type: string type_:CvvResponseText: type: string type_:CustomerVaultId: type: string type_:EmvAuthResponseData: type: string type___v2moneyInTypes__:V2TransactionDetailResponseData: type: object properties: resultCode: $ref: '#/components/schemas/type_:ResultCodev2' resultCodeText: $ref: '#/components/schemas/type_:ResultCodeText' response: type: - string - 'null' responsetext: $ref: '#/components/schemas/type_:Resulttext' authcode: oneOf: - $ref: '#/components/schemas/type_:Authcode' - type: 'null' transactionid: type: string description: >- Unique identifier for the transaction assigned by the payment processor. avsresponse: oneOf: - $ref: '#/components/schemas/type_:AvsResponse' - type: 'null' avsresponse_text: oneOf: - $ref: '#/components/schemas/type_:AvsResponseText' - type: 'null' cvvresponse: oneOf: - $ref: '#/components/schemas/type_:CvvResponse' - type: 'null' cvvresponse_text: oneOf: - $ref: '#/components/schemas/type_:CvvResponseText' - type: 'null' orderid: oneOf: - $ref: '#/components/schemas/type_:OrderId' - type: 'null' type: type: - string - 'null' response_code: type: string description: Processor-specific response code. response_code_text: type: string description: Description of the response code. customer_vault_id: oneOf: - $ref: '#/components/schemas/type_:CustomerVaultId' - type: 'null' emv_auth_response_data: oneOf: - $ref: '#/components/schemas/type_:EmvAuthResponseData' - type: 'null' required: - resultCode - resultCodeText - response - responsetext - authcode - transactionid - avsresponse - avsresponse_text - cvvresponse - cvvresponse_text - orderid - type - response_code - response_code_text - customer_vault_id - emv_auth_response_data type_:Orgid: type: integer format: int64 type_:RefundId: type: integer format: int64 type_:ReturnedId: type: integer format: int64 type_:ChargebackId: type: integer format: int64 type_:RetrievalId: type: integer format: int64 type_:InvoiceNumber: type: string type_:Datenullable: type: string format: date type_:Invoicestatus: type: integer type_:InvoiceType: type: integer type_:Frequency: type: string enum: - value: onetime - value: weekly - value: every2weeks - value: every6months - value: monthly - value: every3months - value: annually type_:TermsConditions: type: string type_:Tax: type: number format: double type_:Discount: type: number format: double type_:InvoiceAmount: type: number format: double type_:FreightAmount: type: number format: double type_:DutyAmount: type: number format: double type_:PurchaseOrder: type: string type_:Shippingaddress: type: string type_:Shippingaddressadditional: type: string type_:Shippingcity: type: string type_:Shippingstate: type: string type_:Shippingzip: type: string type_:Shippingcountry: type: string type_:Email: type: string format: email type_:ShippingFromZip: type: string type_:SummaryCommodityCode: type: string type_:ItemCommodityCode: type: string type_:ItemDescription: type: string type_:ItemProductCode: type: string type_:ItemProductName: type: string type_:ItemUnitofMeasure: type: string type_:BillItem: type: object properties: itemCategories: type: array items: type: string description: Array of tags classifying item or product. itemCommodityCode: $ref: '#/components/schemas/type_:ItemCommodityCode' itemCost: type: number format: double description: Item or product price per unit. itemDescription: $ref: '#/components/schemas/type_:ItemDescription' itemMode: type: integer description: >- Internal class of item or product: value '0' is only for invoices , '1' for bills and, '2' common for both. itemProductCode: $ref: '#/components/schemas/type_:ItemProductCode' itemProductName: $ref: '#/components/schemas/type_:ItemProductName' itemQty: type: integer description: Quantity of item or product. itemTaxAmount: type: number format: double description: Tax amount applied to item or product. itemTaxRate: type: number format: double description: Tax rate applied to item or product. itemTotalAmount: type: number format: double description: Total amount in item or product. itemUnitOfMeasure: $ref: '#/components/schemas/type_:ItemUnitofMeasure' required: - itemCost type_:FileContentFtype: type: string enum: - value: pdf - value: doc - value: docx - value: jpg - value: jpeg - value: png - value: gif - value: txt type_:FileContent: type: object properties: fContent: type: string description: >- Content of file, Base64-encoded. Ignored if furl is specified. Max upload size is 30 MB. filename: type: string description: The name of the attached file. ftype: $ref: '#/components/schemas/type_:FileContentFtype' description: The MIME type of the file (if content is provided) furl: type: string description: Optional URL provided to show or download the file remotely type_:Attachments: type: array items: $ref: '#/components/schemas/type_:FileContent' type_:AdditionalDataString: type: string type_moneyIn:TransactionDetailInvoiceData: type: object properties: invoiceNumber: oneOf: - $ref: '#/components/schemas/type_:InvoiceNumber' - type: 'null' invoiceDate: oneOf: - $ref: '#/components/schemas/type_:Datenullable' - type: 'null' invoiceDueDate: oneOf: - $ref: '#/components/schemas/type_:Datenullable' - type: 'null' invoiceEndDate: oneOf: - $ref: '#/components/schemas/type_:Datenullable' - type: 'null' invoiceStatus: oneOf: - $ref: '#/components/schemas/type_:Invoicestatus' - type: 'null' invoiceType: oneOf: - $ref: '#/components/schemas/type_:InvoiceType' - type: 'null' frequency: oneOf: - $ref: '#/components/schemas/type_:Frequency' - type: 'null' paymentTerms: type: - string - 'null' termsConditions: oneOf: - $ref: '#/components/schemas/type_:TermsConditions' - type: 'null' notes: type: - string - 'null' tax: oneOf: - $ref: '#/components/schemas/type_:Tax' - type: 'null' discount: oneOf: - $ref: '#/components/schemas/type_:Discount' - type: 'null' invoiceAmount: oneOf: - $ref: '#/components/schemas/type_:InvoiceAmount' - type: 'null' freightAmount: oneOf: - $ref: '#/components/schemas/type_:FreightAmount' - type: 'null' dutyAmount: oneOf: - $ref: '#/components/schemas/type_:DutyAmount' - type: 'null' purchaseOrder: oneOf: - $ref: '#/components/schemas/type_:PurchaseOrder' - type: 'null' firstName: type: - string - 'null' lastName: type: - string - 'null' company: type: - string - 'null' shippingAddress1: oneOf: - $ref: '#/components/schemas/type_:Shippingaddress' - type: 'null' shippingAddress2: oneOf: - $ref: '#/components/schemas/type_:Shippingaddressadditional' - type: 'null' shippingCity: oneOf: - $ref: '#/components/schemas/type_:Shippingcity' - type: 'null' shippingState: oneOf: - $ref: '#/components/schemas/type_:Shippingstate' - type: 'null' shippingZip: oneOf: - $ref: '#/components/schemas/type_:Shippingzip' - type: 'null' shippingCountry: oneOf: - $ref: '#/components/schemas/type_:Shippingcountry' - type: 'null' shippingEmail: oneOf: - $ref: '#/components/schemas/type_:Email' - type: 'null' shippingPhone: type: - string - 'null' shippingFromZip: oneOf: - $ref: '#/components/schemas/type_:ShippingFromZip' - type: 'null' summaryCommodityCode: oneOf: - $ref: '#/components/schemas/type_:SummaryCommodityCode' - type: 'null' items: type: - array - 'null' items: $ref: '#/components/schemas/type_:BillItem' attachments: oneOf: - $ref: '#/components/schemas/type_:Attachments' - type: 'null' additionalData: oneOf: - $ref: '#/components/schemas/type_:AdditionalDataString' - type: 'null' required: - invoiceNumber - invoiceDate - invoiceDueDate - invoiceEndDate - invoiceStatus - invoiceType - frequency - paymentTerms - termsConditions - notes - tax - discount - invoiceAmount - freightAmount - dutyAmount - purchaseOrder - firstName - lastName - company - shippingAddress1 - shippingAddress2 - shippingCity - shippingState - shippingZip - shippingCountry - shippingEmail - shippingPhone - shippingFromZip - summaryCommodityCode - items - attachments - additionalData type_:EntrypageId: type: integer format: int64 type_:ExternalPaypointId: type: string type_:Identifierfields: type: array items: type: string type_:BillingAddressNullable: type: string type_:BillingAddressAddtlNullable: type: string type_:BillingCityNullable: type: string type_:BillingStateNullable: type: string type_:BillingZip: type: string type_:BillingCountryNullable: type: string type_:PhoneNumber: type: string type_:CustomerNumberNullable: type: string type_:CustomerId: type: integer format: int64 type_:CustomerStatus: type: integer type_moneyIn:TransactionDetailCustomer: type: object properties: identifiers: oneOf: - $ref: '#/components/schemas/type_:Identifierfields' - type: 'null' firstName: type: string lastName: type: string companyName: type: string billingAddress1: $ref: '#/components/schemas/type_:BillingAddressNullable' billingAddress2: $ref: '#/components/schemas/type_:BillingAddressAddtlNullable' billingCity: $ref: '#/components/schemas/type_:BillingCityNullable' billingState: $ref: '#/components/schemas/type_:BillingStateNullable' billingZip: $ref: '#/components/schemas/type_:BillingZip' billingCountry: $ref: '#/components/schemas/type_:BillingCountryNullable' billingPhone: $ref: '#/components/schemas/type_:PhoneNumber' billingEmail: $ref: '#/components/schemas/type_:Email' customerNumber: $ref: '#/components/schemas/type_:CustomerNumberNullable' shippingAddress1: $ref: '#/components/schemas/type_:Shippingaddress' shippingAddress2: $ref: '#/components/schemas/type_:Shippingaddressadditional' shippingCity: $ref: '#/components/schemas/type_:Shippingcity' shippingState: $ref: '#/components/schemas/type_:Shippingstate' shippingZip: $ref: '#/components/schemas/type_:Shippingzip' shippingCountry: $ref: '#/components/schemas/type_:Shippingcountry' customerId: $ref: '#/components/schemas/type_:CustomerId' customerStatus: $ref: '#/components/schemas/type_:CustomerStatus' additionalData: oneOf: - $ref: '#/components/schemas/type_:AdditionalDataString' - type: 'null' required: - identifiers - firstName - lastName - companyName - billingAddress1 - billingAddress2 - billingCity - billingState - billingZip - billingCountry - billingPhone - billingEmail - customerNumber - shippingAddress1 - shippingAddress2 - shippingCity - shippingState - shippingZip - shippingCountry - customerId - customerStatus - additionalData type_:SplitFundingContent: type: object properties: accountId: type: string description: The accountId for the account the split should be sent to. amount: type: number format: double description: Amount from the transaction to sent to this recipient. description: type: string description: A description for the split. recipientEntryPoint: type: string description: The entrypoint the split should be sent to. type_:SplitFunding: type: array items: $ref: '#/components/schemas/type_:SplitFundingContent' type_:TransactionTime: type: string format: date-time type_:QueryCFeeTransaction: type: object properties: cFeeTransid: type: string feeAmount: type: number format: double operation: type: string refundId: type: integer format: int64 responseData: type: object additionalProperties: description: Any type settlementStatus: type: integer transactionTime: $ref: '#/components/schemas/type_:TransactionTime' transStatus: type: integer type_moneyIn:TransactionDetailEvent: type: object properties: transEvent: type: string eventData: type: string eventTime: type: string required: - transEvent - eventData - eventTime type_:PendingFeeAmount: type: number format: double type_:RiskFlagged: type: boolean type_:RiskFlaggedOn: type: string format: date-time type_:RiskStatus: type: string type_:RiskReason: type: string type_:RiskAction: type: string type_:RiskActionCode: type: integer type_:Device: type: string type_:AchSecCode: type: string type_:AchHolderType: type: string enum: - value: personal - value: business default: personal type_:IpAddress: type: string type___v2moneyInTypes__:V2TransactionDetails: type: object properties: parentOrgName: $ref: '#/components/schemas/type_:OrgParentName' paypointDbaname: $ref: '#/components/schemas/type_:Dbaname' paypointLegalname: $ref: '#/components/schemas/type_:Legalname' paypointEntryname: $ref: '#/components/schemas/type_:Entrypointfield' paymentTransId: type: string description: Unique transaction identifier. connectorName: type: string description: Name of the payment connector used. externalProcessorInformation: $ref: '#/components/schemas/type_:ExternalProcessorInformation' gatewayTransId: type: string description: Gateway transaction identifier. orderId: oneOf: - $ref: '#/components/schemas/type_:OrderId' - type: 'null' method: type: string description: Payment method used for the transaction. batchNumber: $ref: '#/components/schemas/type_:BatchNumber' batchAmount: type: number format: double description: Total amount in the batch. payorId: $ref: '#/components/schemas/type_:PayorId' paymentData: $ref: '#/components/schemas/type_moneyIn:TransactionDetailPaymentData' transStatus: $ref: '#/components/schemas/type_:TransStatus' paypointId: $ref: '#/components/schemas/type_:PaypointId' totalAmount: type: number format: double description: Total transaction amount including fees. netAmount: type: number format: double description: Net transaction amount excluding fees. feeAmount: $ref: '#/components/schemas/type_:FeeAmount' settlementStatus: $ref: '#/components/schemas/type_:SettlementStatus' operation: $ref: '#/components/schemas/type_:Operation' responseData: $ref: >- #/components/schemas/type___v2moneyInTypes__:V2TransactionDetailResponseData source: $ref: '#/components/schemas/type_:Source' scheduleReference: type: integer format: int64 description: Reference to associated payment schedule if applicable. orgId: $ref: '#/components/schemas/type_:Orgid' refundId: $ref: '#/components/schemas/type_:RefundId' returnedId: $ref: '#/components/schemas/type_:ReturnedId' chargebackId: $ref: '#/components/schemas/type_:ChargebackId' retrievalId: $ref: '#/components/schemas/type_:RetrievalId' transAdditionalData: oneOf: - description: Any type - type: 'null' invoiceData: $ref: '#/components/schemas/type_moneyIn:TransactionDetailInvoiceData' entrypageId: $ref: '#/components/schemas/type_:EntrypageId' externalPaypointID: $ref: '#/components/schemas/type_:ExternalPaypointId' isValidatedACH: type: boolean description: Indicates if ACH account was validated in real-time. transactionTime: type: string description: Timestamp when transaction was created. customer: $ref: '#/components/schemas/type_moneyIn:TransactionDetailCustomer' splitFundingInstructions: oneOf: - $ref: '#/components/schemas/type_:SplitFunding' - type: 'null' cfeeTransactions: type: array items: $ref: '#/components/schemas/type_:QueryCFeeTransaction' transactionEvents: type: array items: $ref: '#/components/schemas/type_moneyIn:TransactionDetailEvent' pendingFeeAmount: $ref: '#/components/schemas/type_:PendingFeeAmount' riskFlagged: $ref: '#/components/schemas/type_:RiskFlagged' riskFlaggedOn: $ref: '#/components/schemas/type_:RiskFlaggedOn' riskStatus: $ref: '#/components/schemas/type_:RiskStatus' riskReason: $ref: '#/components/schemas/type_:RiskReason' riskAction: $ref: '#/components/schemas/type_:RiskAction' riskActionCode: $ref: '#/components/schemas/type_:RiskActionCode' deviceId: $ref: '#/components/schemas/type_:Device' achSecCode: $ref: '#/components/schemas/type_:AchSecCode' achHolderType: $ref: '#/components/schemas/type_:AchHolderType' ipAddress: $ref: '#/components/schemas/type_:IpAddress' isSameDayACH: type: boolean description: Indicates if ACH transaction uses same-day processing. walletType: type: - string - 'null' description: Digital wallet type if applicable. required: - parentOrgName - paypointDbaname - paypointLegalname - paypointEntryname - paymentTransId - connectorName - externalProcessorInformation - gatewayTransId - orderId - method - batchNumber - batchAmount - payorId - paymentData - transStatus - paypointId - totalAmount - netAmount - feeAmount - settlementStatus - operation - responseData - source - scheduleReference - orgId - refundId - returnedId - chargebackId - retrievalId - transAdditionalData - invoiceData - entrypageId - externalPaypointID - isValidatedACH - transactionTime - customer - splitFundingInstructions - cfeeTransactions - transactionEvents - pendingFeeAmount - riskFlagged - riskFlaggedOn - riskStatus - riskReason - riskAction - riskActionCode - deviceId - achSecCode - achHolderType - ipAddress - isSameDayACH - walletType type___v2moneyInTypes__:V2TransactionResponseWrapper: type: object properties: code: $ref: '#/components/schemas/type___v2moneyInTypes__:V2ResponseCode' reason: $ref: '#/components/schemas/type___v2moneyInTypes__:V2ResponseReason' explanation: $ref: '#/components/schemas/type___v2moneyInTypes__:V2ResponseExplanation' action: $ref: '#/components/schemas/type___v2moneyInTypes__:V2ResponseAction' data: $ref: '#/components/schemas/type___v2moneyInTypes__:V2TransactionDetails' token: type: - string - 'null' description: >- Pagination token (equivalent to `pageIdentifier` in v1 APIs). Returns `null` when pagination is not applicable. required: - code - reason - explanation - action - data - token ``` ## SDK Code Examples ```typescript VoidTransaction import { PayabliClient, PayabliEnvironment } from "@payabli/sdk-node"; async function main() { const client = new PayabliClient({ environment: PayabliEnvironment.Sandbox, apiKey: "YOUR_API_KEY_HERE", }); await client.moneyIn.voidv2("10-3ffa27df-b171-44e0-b251-e95fbfc7a723"); } main(); ``` ```python VoidTransaction from payabli import payabli from payabli.environment import payabliEnvironment client = payabli( environment=payabliEnvironment.SANDBOX, api_key="YOUR_API_KEY_HERE" ) client.money_in.voidv_2( trans_id="10-3ffa27df-b171-44e0-b251-e95fbfc7a723" ) ``` ```csharp VoidTransaction using PayabliPayabliApi; using System.Threading.Tasks; namespace Usage; public class Example { public async Task Do() { var client = new PayabliPayabliApiClient( apiKey: "YOUR_API_KEY_HERE", clientOptions: new ClientOptions { BaseUrl = PayabliPayabliApiEnvironment.Sandbox } ); await client.MoneyIn.Voidv2Async( "10-3ffa27df-b171-44e0-b251-e95fbfc7a723" ); } } ``` ```go VoidTransaction package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api-sandbox.payabli.com/api/v2/MoneyIn/void/10-3ffa27df-b171-44e0-b251-e95fbfc7a723" req, _ := http.NewRequest("POST", url, nil) req.Header.Add("requestToken", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby VoidTransaction require 'uri' require 'net/http' url = URI("https://api-sandbox.payabli.com/api/v2/MoneyIn/void/10-3ffa27df-b171-44e0-b251-e95fbfc7a723") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["requestToken"] = '' response = http.request(request) puts response.read_body ``` ```java VoidTransaction import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api-sandbox.payabli.com/api/v2/MoneyIn/void/10-3ffa27df-b171-44e0-b251-e95fbfc7a723") .header("requestToken", "") .asString(); ``` ```php VoidTransaction request('POST', 'https://api-sandbox.payabli.com/api/v2/MoneyIn/void/10-3ffa27df-b171-44e0-b251-e95fbfc7a723', [ 'headers' => [ 'requestToken' => '', ], ]); echo $response->getBody(); ``` ```swift VoidTransaction import Foundation let headers = ["requestToken": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/v2/MoneyIn/void/10-3ffa27df-b171-44e0-b251-e95fbfc7a723")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```