# Get payout check image GET https://api-sandbox.payabli.com/api/MoneyOut/checkimage/{assetName} Retrieve the image of a check associated with a processed transaction. The check image is returned in the response body as a base64-encoded string. The check image is only available for payouts that have been processed. Reference: https://docs.payabli.com/developers/api-reference/moneyout/get-payout-check-image ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Get check image version: endpoint_moneyOut.GetCheckImage paths: /MoneyOut/checkimage/{assetName}: get: operationId: get-check-image summary: Get check image description: >- Retrieve the image of a check associated with a processed transaction. The check image is returned in the response body as a base64-encoded string. The check image is only available for payouts that have been processed. tags: - - subpackage_moneyOut parameters: - name: assetName in: path description: >- Name of the check asset to retrieve. This is returned as `filename` in the `CheckData` object in the response when you make a GET request to `/MoneyOut/details/{transId}`. ``` "CheckData": { "ftype": "PDF", "filename": "check133832686289732320_01JKBNZ5P32JPTZY8XXXX000000.pdf", "furl": "", "fContent": "" } ``` required: true schema: type: string - name: requestToken in: header required: true schema: type: string responses: '200': description: A base64-encoded string of the check image. content: application/json: schema: type: string '400': description: Bad request/ invalid data content: {} '401': description: Unauthorized request. content: {} '500': description: Internal API Error content: {} '503': description: Database connection error content: {} ``` ## SDK Code Examples ```python GetCheckImage from payabli import payabli client = payabli( api_key="YOUR_API_KEY", ) client.money_out.get_check_image( asset_name="check133832686289732320_01JKBNZ5P32JPTZY8XXXX000000.pdf", ) ``` ```typescript GetCheckImage import { PayabliClient } from "@payabli/sdk-node"; const client = new PayabliClient({ apiKey: "YOUR_API_KEY" }); await client.moneyOut.getCheckImage("check133832686289732320_01JKBNZ5P32JPTZY8XXXX000000.pdf"); ``` ```go GetCheckImage 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.MoneyOut.GetCheckImage( context.TODO(), "check133832686289732320_01JKBNZ5P32JPTZY8XXXX000000.pdf", ) ``` ```csharp GetCheckImage using PayabliApi; var client = new PayabliApiClient("API_KEY"); await client.MoneyOut.GetCheckImageAsync("check133832686289732320_01JKBNZ5P32JPTZY8XXXX000000.pdf"); ``` ```ruby GetCheckImage require 'uri' require 'net/http' url = URI("https://api-sandbox.payabli.com/api/MoneyOut/checkimage/check133832686289732320_01JKBNZ5P32JPTZY8XXXX000000.pdf") 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 GetCheckImage HttpResponse response = Unirest.get("https://api-sandbox.payabli.com/api/MoneyOut/checkimage/check133832686289732320_01JKBNZ5P32JPTZY8XXXX000000.pdf") .header("requestToken", "") .asString(); ``` ```php GetCheckImage request('GET', 'https://api-sandbox.payabli.com/api/MoneyOut/checkimage/check133832686289732320_01JKBNZ5P32JPTZY8XXXX000000.pdf', [ 'headers' => [ 'requestToken' => '', ], ]); echo $response->getBody(); ``` ```swift GetCheckImage import Foundation let headers = ["requestToken": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/MoneyOut/checkimage/check133832686289732320_01JKBNZ5P32JPTZY8XXXX000000.pdf")! 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() ```