Financials
List Cancellations
deprecated
POST
/
cancellation-payment-intents
List Cancellation Payment Intents
curl --request POST \
--url https://nestvet.com/api/1.1/wf/cancellation-payment-intents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organization": "<string>",
"limit": 123,
"offset": 123,
"id": "<string>",
"subscription_id": "<string>",
"pet_id": "<string>",
"created_at_since": "2023-11-07T05:31:56Z",
"updated_at_since": "2023-11-07T05:31:56Z",
"created_before": "2023-11-07T05:31:56Z",
"updated_before": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://nestvet.com/api/1.1/wf/cancellation-payment-intents"
payload = {
"organization": "<string>",
"limit": 123,
"offset": 123,
"id": "<string>",
"subscription_id": "<string>",
"pet_id": "<string>",
"created_at_since": "2023-11-07T05:31:56Z",
"updated_at_since": "2023-11-07T05:31:56Z",
"created_before": "2023-11-07T05:31:56Z",
"updated_before": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
organization: '<string>',
limit: 123,
offset: 123,
id: '<string>',
subscription_id: '<string>',
pet_id: '<string>',
created_at_since: '2023-11-07T05:31:56Z',
updated_at_since: '2023-11-07T05:31:56Z',
created_before: '2023-11-07T05:31:56Z',
updated_before: '2023-11-07T05:31:56Z'
})
};
fetch('https://nestvet.com/api/1.1/wf/cancellation-payment-intents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://nestvet.com/api/1.1/wf/cancellation-payment-intents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'organization' => '<string>',
'limit' => 123,
'offset' => 123,
'id' => '<string>',
'subscription_id' => '<string>',
'pet_id' => '<string>',
'created_at_since' => '2023-11-07T05:31:56Z',
'updated_at_since' => '2023-11-07T05:31:56Z',
'created_before' => '2023-11-07T05:31:56Z',
'updated_before' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://nestvet.com/api/1.1/wf/cancellation-payment-intents"
payload := strings.NewReader("{\n \"organization\": \"<string>\",\n \"limit\": 123,\n \"offset\": 123,\n \"id\": \"<string>\",\n \"subscription_id\": \"<string>\",\n \"pet_id\": \"<string>\",\n \"created_at_since\": \"2023-11-07T05:31:56Z\",\n \"updated_at_since\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"updated_before\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://nestvet.com/api/1.1/wf/cancellation-payment-intents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"organization\": \"<string>\",\n \"limit\": 123,\n \"offset\": 123,\n \"id\": \"<string>\",\n \"subscription_id\": \"<string>\",\n \"pet_id\": \"<string>\",\n \"created_at_since\": \"2023-11-07T05:31:56Z\",\n \"updated_at_since\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"updated_before\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nestvet.com/api/1.1/wf/cancellation-payment-intents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"organization\": \"<string>\",\n \"limit\": 123,\n \"offset\": 123,\n \"id\": \"<string>\",\n \"subscription_id\": \"<string>\",\n \"pet_id\": \"<string>\",\n \"created_at_since\": \"2023-11-07T05:31:56Z\",\n \"updated_at_since\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"updated_before\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"clinic_name": "<string>",
"clinic_id": "<string>",
"date": "2023-11-07T05:31:56Z",
"discounted": true,
"discounted_amount": 123,
"new_price": 123,
"percent_discount": 123,
"pet": "<string>",
"subscription": "<string>",
"wellnes_plan_name": "<string>",
"payments": 123,
"payment_amount": 123,
"payment_or_refund": "Payment to cancel",
"paymentIntent_or_refund_id": "<string>",
"total_benefits_consumed_at_retail_price": 123,
"total_benefits_consumed_at_discounted_price": 123,
"reason": "<string>",
"early_cancellation_fee": 123,
"refund_ids": [
"<string>"
],
"isSucceeded": true,
"IsTest": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
200 - application/json
A list of cancellation payment intents
Wellness plan name. Note: field is spelled with a single 's' (wellnes_plan_name) in the API response.
Example:
"Payment to cancel"
⌘I
List Cancellation Payment Intents
curl --request POST \
--url https://nestvet.com/api/1.1/wf/cancellation-payment-intents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organization": "<string>",
"limit": 123,
"offset": 123,
"id": "<string>",
"subscription_id": "<string>",
"pet_id": "<string>",
"created_at_since": "2023-11-07T05:31:56Z",
"updated_at_since": "2023-11-07T05:31:56Z",
"created_before": "2023-11-07T05:31:56Z",
"updated_before": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://nestvet.com/api/1.1/wf/cancellation-payment-intents"
payload = {
"organization": "<string>",
"limit": 123,
"offset": 123,
"id": "<string>",
"subscription_id": "<string>",
"pet_id": "<string>",
"created_at_since": "2023-11-07T05:31:56Z",
"updated_at_since": "2023-11-07T05:31:56Z",
"created_before": "2023-11-07T05:31:56Z",
"updated_before": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
organization: '<string>',
limit: 123,
offset: 123,
id: '<string>',
subscription_id: '<string>',
pet_id: '<string>',
created_at_since: '2023-11-07T05:31:56Z',
updated_at_since: '2023-11-07T05:31:56Z',
created_before: '2023-11-07T05:31:56Z',
updated_before: '2023-11-07T05:31:56Z'
})
};
fetch('https://nestvet.com/api/1.1/wf/cancellation-payment-intents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://nestvet.com/api/1.1/wf/cancellation-payment-intents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'organization' => '<string>',
'limit' => 123,
'offset' => 123,
'id' => '<string>',
'subscription_id' => '<string>',
'pet_id' => '<string>',
'created_at_since' => '2023-11-07T05:31:56Z',
'updated_at_since' => '2023-11-07T05:31:56Z',
'created_before' => '2023-11-07T05:31:56Z',
'updated_before' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://nestvet.com/api/1.1/wf/cancellation-payment-intents"
payload := strings.NewReader("{\n \"organization\": \"<string>\",\n \"limit\": 123,\n \"offset\": 123,\n \"id\": \"<string>\",\n \"subscription_id\": \"<string>\",\n \"pet_id\": \"<string>\",\n \"created_at_since\": \"2023-11-07T05:31:56Z\",\n \"updated_at_since\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"updated_before\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://nestvet.com/api/1.1/wf/cancellation-payment-intents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"organization\": \"<string>\",\n \"limit\": 123,\n \"offset\": 123,\n \"id\": \"<string>\",\n \"subscription_id\": \"<string>\",\n \"pet_id\": \"<string>\",\n \"created_at_since\": \"2023-11-07T05:31:56Z\",\n \"updated_at_since\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"updated_before\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nestvet.com/api/1.1/wf/cancellation-payment-intents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"organization\": \"<string>\",\n \"limit\": 123,\n \"offset\": 123,\n \"id\": \"<string>\",\n \"subscription_id\": \"<string>\",\n \"pet_id\": \"<string>\",\n \"created_at_since\": \"2023-11-07T05:31:56Z\",\n \"updated_at_since\": \"2023-11-07T05:31:56Z\",\n \"created_before\": \"2023-11-07T05:31:56Z\",\n \"updated_before\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"clinic_name": "<string>",
"clinic_id": "<string>",
"date": "2023-11-07T05:31:56Z",
"discounted": true,
"discounted_amount": 123,
"new_price": 123,
"percent_discount": 123,
"pet": "<string>",
"subscription": "<string>",
"wellnes_plan_name": "<string>",
"payments": 123,
"payment_amount": 123,
"payment_or_refund": "Payment to cancel",
"paymentIntent_or_refund_id": "<string>",
"total_benefits_consumed_at_retail_price": 123,
"total_benefits_consumed_at_discounted_price": 123,
"reason": "<string>",
"early_cancellation_fee": 123,
"refund_ids": [
"<string>"
],
"isSucceeded": true,
"IsTest": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]