Skip to main content
POST
/
payment-links
/
{payment_link_id}
/
expire
Expire payment link
using RestSharp;


var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/payment-links/{payment_link_id}/expire");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.PostAsync(request);

Console.WriteLine("{0}", response.Content);
{
  "type": "error",
  "code": "unauthorized",
  "status": 401,
  "message": "No valid API authentication found",
  "details": []
}
This endpoint requires the payment-links.write scope.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

The ID for the payment link to get the information for.

Example:

"1b2e1e3d-ec3e-4884-9553-f7356683f7f9"

Response

Returns an empty response if the payment link was successfully expired.