Delete Bill
curl --request DELETE \
--url https://api.meow.com/v1/bills/{bill_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.meow.com/v1/bills/{bill_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.meow.com/v1/bills/{bill_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meow.com/v1/bills/{bill_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.meow.com/v1/bills/{bill_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meow.com/v1/bills/{bill_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meow.com/v1/bills/{bill_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const url = 'https://api.meow.com/v1/bills/{bill_id}';
const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));using RestSharp;
var options = new RestClientOptions("https://api.meow.com/v1/bills/{bill_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-api-key", "<api-key>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
val client = OkHttpClient()
val request = Request.Builder()
.url("https://api.meow.com/v1/bills/{bill_id}")
.delete(null)
.addHeader("x-api-key", "<api-key>")
.build()
val response = client.newCall(request).execute()import Foundation
let url = URL(string: "https://api.meow.com/v1/bills/{bill_id}")!
var request = URLRequest(url: url)
request.httpMethod = "DELETE"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["x-api-key": "<api-key>"]
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))falsefalse$headers=@{}
$headers.Add("x-api-key", "<api-key>")
$response = Invoke-WebRequest -Uri 'https://api.meow.com/v1/bills/{bill_id}' -Method DELETE -Headers $headers{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "CANCELED",
"vendor_name": "<string>",
"creation_source": "USER",
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"invoice_number": "<string>",
"description": "<string>",
"memo": "<string>",
"bill_date": "2023-12-25",
"bill_due_date": "2023-12-25",
"bill_total": "<string>",
"currency": "AED",
"payment_type": "ACH",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category_name": "<string>",
"department_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"department_name": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"submitted_at": "2023-11-07T05:31:56Z",
"submitted_by": "<string>",
"paid_at": "2023-11-07T05:31:56Z",
"paid_by": "<string>",
"scheduled_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"canceled_at": "2023-11-07T05:31:56Z",
"canceled_by": "<string>",
"bill_schedule_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ordinal": 123,
"line_items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"description": "<string>",
"type": "EXPENSE",
"amount_total": "<string>",
"quantity": "<string>",
"split_group": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expense_account_external_id": "<string>",
"class_external_id": "<string>"
}
],
"bill_payment_details": {
"account_id": "<string>",
"payment_type": "ACH",
"currency": "AED",
"scheduled_payment_date": "2023-12-25",
"crypto_destination": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"destination_address": "<string>",
"destination_payment_rail": "arbitrum",
"destination_currency": "usdb",
"currency": "usdc",
"network": "ethereum",
"destination_tag": "<string>"
},
"ach_transfer_id": "<string>",
"wire_transfer_id": "<string>",
"crypto_transaction_hash": "<string>"
},
"additional_documents": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"img_url": "<string>",
"rrule": "<string>",
"auto_approval_enabled": true,
"bill_sync_status": "synced",
"payment_sync_status": "synced",
"accounting_vendor": "QuickBooks",
"accounting_bill_id": "<string>",
"is_excluded_from_accounting": false
}{
"code": 123,
"message": "<string>",
"debug_message": "<string>"
}{
"error_code": "<string>",
"message": "<string>"
}{
"error_code": "<string>",
"message": "<string>"
}{
"error_code": "<string>",
"message": "<string>"
}Billpay
Delete Bill
Cancels a bill that is still a draft. Once it has been submitted for approval it can no longer be canceled here, whether or not anyone has approved it yet.
DELETE
/
bills
/
{bill_id}
Delete Bill
curl --request DELETE \
--url https://api.meow.com/v1/bills/{bill_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.meow.com/v1/bills/{bill_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.meow.com/v1/bills/{bill_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meow.com/v1/bills/{bill_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.meow.com/v1/bills/{bill_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meow.com/v1/bills/{bill_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meow.com/v1/bills/{bill_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const url = 'https://api.meow.com/v1/bills/{bill_id}';
const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));using RestSharp;
var options = new RestClientOptions("https://api.meow.com/v1/bills/{bill_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-api-key", "<api-key>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
val client = OkHttpClient()
val request = Request.Builder()
.url("https://api.meow.com/v1/bills/{bill_id}")
.delete(null)
.addHeader("x-api-key", "<api-key>")
.build()
val response = client.newCall(request).execute()import Foundation
let url = URL(string: "https://api.meow.com/v1/bills/{bill_id}")!
var request = URLRequest(url: url)
request.httpMethod = "DELETE"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["x-api-key": "<api-key>"]
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))falsefalse$headers=@{}
$headers.Add("x-api-key", "<api-key>")
$response = Invoke-WebRequest -Uri 'https://api.meow.com/v1/bills/{bill_id}' -Method DELETE -Headers $headers{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "CANCELED",
"vendor_name": "<string>",
"creation_source": "USER",
"created_by": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"invoice_number": "<string>",
"description": "<string>",
"memo": "<string>",
"bill_date": "2023-12-25",
"bill_due_date": "2023-12-25",
"bill_total": "<string>",
"currency": "AED",
"payment_type": "ACH",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category_name": "<string>",
"department_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"department_name": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"submitted_at": "2023-11-07T05:31:56Z",
"submitted_by": "<string>",
"paid_at": "2023-11-07T05:31:56Z",
"paid_by": "<string>",
"scheduled_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"canceled_at": "2023-11-07T05:31:56Z",
"canceled_by": "<string>",
"bill_schedule_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ordinal": 123,
"line_items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"description": "<string>",
"type": "EXPENSE",
"amount_total": "<string>",
"quantity": "<string>",
"split_group": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expense_account_external_id": "<string>",
"class_external_id": "<string>"
}
],
"bill_payment_details": {
"account_id": "<string>",
"payment_type": "ACH",
"currency": "AED",
"scheduled_payment_date": "2023-12-25",
"crypto_destination": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"destination_address": "<string>",
"destination_payment_rail": "arbitrum",
"destination_currency": "usdb",
"currency": "usdc",
"network": "ethereum",
"destination_tag": "<string>"
},
"ach_transfer_id": "<string>",
"wire_transfer_id": "<string>",
"crypto_transaction_hash": "<string>"
},
"additional_documents": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"img_url": "<string>",
"rrule": "<string>",
"auto_approval_enabled": true,
"bill_sync_status": "synced",
"payment_sync_status": "synced",
"accounting_vendor": "QuickBooks",
"accounting_bill_id": "<string>",
"is_excluded_from_accounting": false
}{
"code": 123,
"message": "<string>",
"debug_message": "<string>"
}{
"error_code": "<string>",
"message": "<string>"
}{
"error_code": "<string>",
"message": "<string>"
}{
"error_code": "<string>",
"message": "<string>"
}Authorizations
Response
Successful Response
The bill's currency.
Available options:
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SLE, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, USN, UYI, UYU, UYW, UZS, VED, VES, VND, VUV, WST, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XDR, XOF, XPD, XPF, XPT, XSU, XTS, XUA, XXX, YER, ZAR, ZMW, ZWG, ZWL