Revoke an API key
curl --request DELETE \
--url https://api.staging.paywire.xyz/payments/merchants/me/api-keys/{keyId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.staging.paywire.xyz/payments/merchants/me/api-keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.staging.paywire.xyz/payments/merchants/me/api-keys/{keyId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.staging.paywire.xyz/payments/merchants/me/api-keys/{keyId}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
{
"title": "Merchant.KeyNotFound",
"status": 404,
"detail": "No API key with this id for this merchant."
}Account
Revoke an API key
The key stops working immediately.
DELETE
/
payments
/
merchants
/
me
/
api-keys
/
{keyId}
Revoke an API key
curl --request DELETE \
--url https://api.staging.paywire.xyz/payments/merchants/me/api-keys/{keyId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.staging.paywire.xyz/payments/merchants/me/api-keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.staging.paywire.xyz/payments/merchants/me/api-keys/{keyId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.staging.paywire.xyz/payments/merchants/me/api-keys/{keyId}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
{
"title": "Merchant.KeyNotFound",
"status": 404,
"detail": "No API key with this id for this merchant."
}