# Reverse microdeposit GET https://api-sandbox.payabli.com/api/MoneyIn/reverseCredit/{transId} Reverse microdeposits that are used to verify customer account ownership and access. The `transId` value is returned in the success response for the original credit transaction made with `api/MoneyIn/makecredit`. Reference: https://docs.payabli.com/developers/api-reference/moneyin/reverse-an-ach-credit-transaction ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Reverse an ACH credit transaction version: endpoint_moneyIn.ReverseCredit paths: /MoneyIn/reverseCredit/{transId}: get: operationId: reverse-credit summary: Reverse an ACH credit transaction description: >- Reverse microdeposits that are used to verify customer account ownership and access. The `transId` value is returned in the success response for the original credit transaction made with `api/MoneyIn/makecredit`. 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: Success content: application/json: schema: $ref: '#/components/schemas/type_:PayabliApiResponse' '400': description: Bad request/ invalid data content: {} '401': description: Unauthorized request. content: {} '500': description: Internal API Error content: {} '503': description: Database connection error content: {} components: schemas: type_:IsSuccess: type: boolean type_:Responsedata: type: object additionalProperties: description: Any type type_:ResponseText: type: string type_:PayabliApiResponse: type: object properties: isSuccess: $ref: '#/components/schemas/type_:IsSuccess' responseData: $ref: '#/components/schemas/type_:Responsedata' responseText: $ref: '#/components/schemas/type_:ResponseText' required: - responseText ``` ## SDK Code Examples ```python Reverse from payabli import payabli client = payabli( api_key="YOUR_API_KEY", ) client.money_in.reverse_credit( trans_id="45-as456777hhhhhhhhhh77777777-324", ) ``` ```typescript Reverse import { PayabliClient } from "@payabli/sdk-node"; const client = new PayabliClient({ apiKey: "YOUR_API_KEY" }); await client.moneyIn.reverseCredit("45-as456777hhhhhhhhhh77777777-324"); ``` ```go Reverse import ( context "context" option "github.com/payabli/sdk-go/option" sdkgoclient "github.com/payabli/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "", ), ) response, err := client.MoneyIn.ReverseCredit( context.TODO(), "45-as456777hhhhhhhhhh77777777-324", ) ``` ```csharp Reverse using PayabliApi; var client = new PayabliApiClient("API_KEY"); await client.MoneyIn.ReverseCreditAsync("45-as456777hhhhhhhhhh77777777-324"); ``` ```ruby Reverse require 'uri' require 'net/http' url = URI("https://api-sandbox.payabli.com/api/MoneyIn/reverseCredit/45-as456777hhhhhhhhhh77777777-324") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["requestToken"] = '' response = http.request(request) puts response.read_body ``` ```java Reverse HttpResponse response = Unirest.get("https://api-sandbox.payabli.com/api/MoneyIn/reverseCredit/45-as456777hhhhhhhhhh77777777-324") .header("requestToken", "") .asString(); ``` ```php Reverse request('GET', 'https://api-sandbox.payabli.com/api/MoneyIn/reverseCredit/45-as456777hhhhhhhhhh77777777-324', [ 'headers' => [ 'requestToken' => '', ], ]); echo $response->getBody(); ``` ```swift Reverse import Foundation let headers = ["requestToken": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/MoneyIn/reverseCredit/45-as456777hhhhhhhhhh77777777-324")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" 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() ```