# Refresh payment link GET https://api-sandbox.payabli.com/api/PaymentLink/refresh/{payLinkId} Refresh a payment link's content after an update. Reference: https://docs.payabli.com/developers/api-reference/paymentlink/refresh-payment-link-content ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Refresh payment link content version: endpoint_paymentLink.refreshPayLinkFromId paths: /PaymentLink/refresh/{payLinkId}: get: operationId: refresh-pay-link-from-id summary: Refresh payment link content description: Refresh a payment link's content after an update. tags: - - subpackage_paymentLink parameters: - name: payLinkId in: path description: ID for the payment link. required: true schema: type: string - name: amountFixed in: query description: >- Indicates whether customer can modify the payment amount. A value of `true` means the amount isn't modifiable, a value `false` means the payor can modify the amount to pay. required: false schema: type: boolean default: true - name: requestToken in: header required: true schema: type: string responses: '200': description: Success content: application/json: schema: $ref: >- #/components/schemas/type_paymentLink:PayabliApiResponsePaymentLinks '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_:ResponseText: type: string type_paymentLink:PayabliApiResponsePaymentLinks: type: object properties: isSuccess: $ref: '#/components/schemas/type_:IsSuccess' responseData: type: string description: >- If `isSuccess` = true, this contains the payment link identifier. If `isSuccess` = false, this contains the reason of the error. responseText: $ref: '#/components/schemas/type_:ResponseText' required: - isSuccess - responseText ``` ## SDK Code Examples ```python from payabli import payabli client = payabli( api_key="YOUR_API_KEY", ) client.payment_link.refresh_pay_link_from_id( pay_link_id="payLinkId", ) ``` ```typescript import { PayabliClient } from "@payabli/sdk-node"; const client = new PayabliClient({ apiKey: "YOUR_API_KEY" }); await client.paymentLink.refreshPayLinkFromId("payLinkId"); ``` ```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.PaymentLink.RefreshPayLinkFromId( context.TODO(), "payLinkId", &sdkgo.RefreshPayLinkFromIdRequest{}, ) ``` ```csharp using PayabliApi; var client = new PayabliApiClient("API_KEY"); await client.PaymentLink.RefreshPayLinkFromIdAsync("payLinkId", new RefreshPayLinkFromIdRequest()); ``` ```ruby require 'uri' require 'net/http' url = URI("https://api-sandbox.payabli.com/api/PaymentLink/refresh/payLinkId") 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/PaymentLink/refresh/payLinkId") .header("requestToken", "") .asString(); ``` ```php request('GET', 'https://api-sandbox.payabli.com/api/PaymentLink/refresh/payLinkId', [ 'headers' => [ 'requestToken' => '', ], ]); echo $response->getBody(); ``` ```swift import Foundation let headers = ["requestToken": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/PaymentLink/refresh/payLinkId")! 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() ```