# Send receipt GET https://api-sandbox.payabli.com/api/MoneyIn/sendreceipt/{transId} Send a payment receipt for a transaction. Reference: https://docs.payabli.com/developers/api-reference/moneyin/send-receipt-for-transaction ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Send receipt for transaction version: endpoint_moneyIn.SendReceipt2Trans paths: /MoneyIn/sendreceipt/{transId}: get: operationId: send-receipt-2-trans summary: Send receipt for transaction description: Send a payment receipt for a transaction. tags: - - subpackage_moneyIn parameters: - name: transId in: path description: ReferenceId for the transaction (PaymentId). required: true schema: type: string - name: email in: query description: >- Email address where the payment receipt should be sent. If not provided, the email address on file for the user owner of the transaction is used. required: false schema: type: string - name: requestToken in: header required: true schema: type: string responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/type_moneyIn:ReceiptResponse' '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_:PageIdentifier: type: string type_:ResponseText: type: string type_moneyIn:ReceiptResponse: type: object properties: isSuccess: $ref: '#/components/schemas/type_:IsSuccess' pageIdentifier: $ref: '#/components/schemas/type_:PageIdentifier' responseText: $ref: '#/components/schemas/type_:ResponseText' required: - responseText ``` ## SDK Code Examples ```python from payabli import payabli client = payabli( api_key="YOUR_API_KEY", ) client.money_in.send_receipt_2_trans( trans_id="45-as456777hhhhhhhhhh77777777-324", email="example@email.com", ) ``` ```typescript import { PayabliClient } from "@payabli/sdk-node"; const client = new PayabliClient({ apiKey: "YOUR_API_KEY" }); await client.moneyIn.sendReceipt2Trans("45-as456777hhhhhhhhhh77777777-324", { email: "example@email.com" }); ``` ```go import ( context "context" option "github.com/payabli/sdk-go/option" sdkgo "github.com/payabli/sdk-go" sdkgoclient "github.com/payabli/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "", ), ) response, err := client.MoneyIn.SendReceipt2Trans( context.TODO(), "45-as456777hhhhhhhhhh77777777-324", &sdkgo.SendReceipt2TransRequest{ Email: sdkgo.String( "example@email.com", ), }, ) ``` ```csharp using PayabliApi; var client = new PayabliApiClient("API_KEY"); await client.MoneyIn.SendReceipt2TransAsync( "45-as456777hhhhhhhhhh77777777-324", new SendReceipt2TransRequest { Email = "example@email.com" } ); ``` ```ruby require 'uri' require 'net/http' url = URI("https://api-sandbox.payabli.com/api/MoneyIn/sendreceipt/45-as456777hhhhhhhhhh77777777-324?email=example%40email.com") 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 HttpResponse response = Unirest.get("https://api-sandbox.payabli.com/api/MoneyIn/sendreceipt/45-as456777hhhhhhhhhh77777777-324?email=example%40email.com") .header("requestToken", "") .asString(); ``` ```php request('GET', 'https://api-sandbox.payabli.com/api/MoneyIn/sendreceipt/45-as456777hhhhhhhhhh77777777-324?email=example%40email.com', [ 'headers' => [ 'requestToken' => '', ], ]); echo $response->getBody(); ``` ```swift import Foundation let headers = ["requestToken": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/MoneyIn/sendreceipt/45-as456777hhhhhhhhhh77777777-324?email=example%40email.com")! 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() ```