curl --request POST \
--url https://api.meow.com/v1/billing/invoices \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_items": [
{
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 50000000.0005,
"price": 50000000.005,
"description": "<string>",
"discount_percentage": 50,
"discount_description": "<string>"
}
],
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"payment_method_types": [],
"send_email_on_creation": true,
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recurring_schedule": "<string>",
"additional_recipient_emails": [
"jsmith@example.com"
],
"note": "<string>",
"name": "<string>",
"show_contact_address": false
}
'import requests
url = "https://api.meow.com/v1/billing/invoices"
payload = {
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_items": [
{
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 50000000.0005,
"price": 50000000.005,
"description": "<string>",
"discount_percentage": 50,
"discount_description": "<string>"
}
],
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"payment_method_types": [],
"send_email_on_creation": True,
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recurring_schedule": "<string>",
"additional_recipient_emails": ["jsmith@example.com"],
"note": "<string>",
"name": "<string>",
"show_contact_address": False
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customer_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
line_items: [
{
product_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
quantity: 50000000.0005,
price: 50000000.005,
description: '<string>',
discount_percentage: 50,
discount_description: '<string>'
}
],
invoice_date: '2023-12-25',
due_date: '2023-12-25',
payment_method_types: [],
send_email_on_creation: true,
collection_account_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
recurring_schedule: '<string>',
additional_recipient_emails: ['jsmith@example.com'],
note: '<string>',
name: '<string>',
show_contact_address: false
})
};
fetch('https://api.meow.com/v1/billing/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.meow.com/v1/billing/invoices"
payload := strings.NewReader("{\n \"customer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"line_items\": [\n {\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 50000000.0005,\n \"price\": 50000000.005,\n \"description\": \"<string>\",\n \"discount_percentage\": 50,\n \"discount_description\": \"<string>\"\n }\n ],\n \"invoice_date\": \"2023-12-25\",\n \"due_date\": \"2023-12-25\",\n \"payment_method_types\": [],\n \"send_email_on_creation\": true,\n \"collection_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"recurring_schedule\": \"<string>\",\n \"additional_recipient_emails\": [\n \"jsmith@example.com\"\n ],\n \"note\": \"<string>\",\n \"name\": \"<string>\",\n \"show_contact_address\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://api.meow.com/v1/billing/invoices")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"line_items\": [\n {\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 50000000.0005,\n \"price\": 50000000.005,\n \"description\": \"<string>\",\n \"discount_percentage\": 50,\n \"discount_description\": \"<string>\"\n }\n ],\n \"invoice_date\": \"2023-12-25\",\n \"due_date\": \"2023-12-25\",\n \"payment_method_types\": [],\n \"send_email_on_creation\": true,\n \"collection_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"recurring_schedule\": \"<string>\",\n \"additional_recipient_emails\": [\n \"jsmith@example.com\"\n ],\n \"note\": \"<string>\",\n \"name\": \"<string>\",\n \"show_contact_address\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meow.com/v1/billing/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"line_items\": [\n {\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 50000000.0005,\n \"price\": 50000000.005,\n \"description\": \"<string>\",\n \"discount_percentage\": 50,\n \"discount_description\": \"<string>\"\n }\n ],\n \"invoice_date\": \"2023-12-25\",\n \"due_date\": \"2023-12-25\",\n \"payment_method_types\": [],\n \"send_email_on_creation\": true,\n \"collection_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"recurring_schedule\": \"<string>\",\n \"additional_recipient_emails\": [\n \"jsmith@example.com\"\n ],\n \"note\": \"<string>\",\n \"name\": \"<string>\",\n \"show_contact_address\": false\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meow.com/v1/billing/invoices",
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([
'customer_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'line_items' => [
[
'product_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'quantity' => 50000000.0005,
'price' => 50000000.005,
'description' => '<string>',
'discount_percentage' => 50,
'discount_description' => '<string>'
]
],
'invoice_date' => '2023-12-25',
'due_date' => '2023-12-25',
'payment_method_types' => [
],
'send_email_on_creation' => true,
'collection_account_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'recurring_schedule' => '<string>',
'additional_recipient_emails' => [
'jsmith@example.com'
],
'note' => '<string>',
'name' => '<string>',
'show_contact_address' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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/billing/invoices';
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customer_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
line_items: [
{
product_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
quantity: 50000000.0005,
price: 50000000.005,
description: '<string>',
discount_percentage: 50,
discount_description: '<string>'
}
],
invoice_date: '2023-12-25',
due_date: '2023-12-25',
payment_method_types: [],
send_email_on_creation: true,
collection_account_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
recurring_schedule: '<string>',
additional_recipient_emails: ['jsmith@example.com'],
note: '<string>',
name: '<string>',
show_contact_address: false
})
};
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/billing/invoices");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-api-key", "<api-key>");
request.AddJsonBody("{\n \"customer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"line_items\": [\n {\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 50000000.0005,\n \"price\": 50000000.005,\n \"description\": \"<string>\",\n \"discount_percentage\": 50,\n \"discount_description\": \"<string>\"\n }\n ],\n \"invoice_date\": \"2023-12-25\",\n \"due_date\": \"2023-12-25\",\n \"payment_method_types\": [],\n \"send_email_on_creation\": true,\n \"collection_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"recurring_schedule\": \"<string>\",\n \"additional_recipient_emails\": [\n \"jsmith@example.com\"\n ],\n \"note\": \"<string>\",\n \"name\": \"<string>\",\n \"show_contact_address\": false\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"customer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"line_items\": [\n {\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 50000000.0005,\n \"price\": 50000000.005,\n \"description\": \"<string>\",\n \"discount_percentage\": 50,\n \"discount_description\": \"<string>\"\n }\n ],\n \"invoice_date\": \"2023-12-25\",\n \"due_date\": \"2023-12-25\",\n \"payment_method_types\": [],\n \"send_email_on_creation\": true,\n \"collection_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"recurring_schedule\": \"<string>\",\n \"additional_recipient_emails\": [\n \"jsmith@example.com\"\n ],\n \"note\": \"<string>\",\n \"name\": \"<string>\",\n \"show_contact_address\": false\n}")
val request = Request.Builder()
.url("https://api.meow.com/v1/billing/invoices")
.post(body)
.addHeader("x-api-key", "<api-key>")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute()import Foundation
let parameters = [
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_items": [
[
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 50000000.0005,
"price": 50000000.005,
"description": "<string>",
"discount_percentage": 50,
"discount_description": "<string>"
]
],
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"payment_method_types": [],
"send_email_on_creation": true,
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recurring_schedule": "<string>",
"additional_recipient_emails": ["jsmith@example.com"],
"note": "<string>",
"name": "<string>",
"show_contact_address": false
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.meow.com/v1/billing/invoices")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"x-api-key": "<api-key>",
"Content-Type": "application/json"
]
request.httpBody = postData
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>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api.meow.com/v1/billing/invoices' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_items": [
{
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 50000000.0005,
"price": 50000000.005,
"description": "<string>",
"discount_percentage": 50,
"discount_description": "<string>"
}
],
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"payment_method_types": [],
"send_email_on_creation": true,
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recurring_schedule": "<string>",
"additional_recipient_emails": [
"jsmith@example.com"
],
"note": "<string>",
"name": "<string>",
"show_contact_address": false
}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"amount_paid": "<string>",
"amount_due": "<string>",
"line_item_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"payment_method_types": [],
"send_email_on_creation": true,
"additional_recipient_emails": [
"<string>"
],
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"invoice_number": "<string>",
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"note": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"paid_at": "2023-11-07T05:31:56Z",
"canceled_at": "2023-11-07T05:31:56Z",
"sent_at": "2023-11-07T05:31:56Z",
"expired_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Create Invoice
Creates a new invoice.
curl --request POST \
--url https://api.meow.com/v1/billing/invoices \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_items": [
{
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 50000000.0005,
"price": 50000000.005,
"description": "<string>",
"discount_percentage": 50,
"discount_description": "<string>"
}
],
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"payment_method_types": [],
"send_email_on_creation": true,
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recurring_schedule": "<string>",
"additional_recipient_emails": [
"jsmith@example.com"
],
"note": "<string>",
"name": "<string>",
"show_contact_address": false
}
'import requests
url = "https://api.meow.com/v1/billing/invoices"
payload = {
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_items": [
{
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 50000000.0005,
"price": 50000000.005,
"description": "<string>",
"discount_percentage": 50,
"discount_description": "<string>"
}
],
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"payment_method_types": [],
"send_email_on_creation": True,
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recurring_schedule": "<string>",
"additional_recipient_emails": ["jsmith@example.com"],
"note": "<string>",
"name": "<string>",
"show_contact_address": False
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customer_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
line_items: [
{
product_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
quantity: 50000000.0005,
price: 50000000.005,
description: '<string>',
discount_percentage: 50,
discount_description: '<string>'
}
],
invoice_date: '2023-12-25',
due_date: '2023-12-25',
payment_method_types: [],
send_email_on_creation: true,
collection_account_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
recurring_schedule: '<string>',
additional_recipient_emails: ['jsmith@example.com'],
note: '<string>',
name: '<string>',
show_contact_address: false
})
};
fetch('https://api.meow.com/v1/billing/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.meow.com/v1/billing/invoices"
payload := strings.NewReader("{\n \"customer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"line_items\": [\n {\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 50000000.0005,\n \"price\": 50000000.005,\n \"description\": \"<string>\",\n \"discount_percentage\": 50,\n \"discount_description\": \"<string>\"\n }\n ],\n \"invoice_date\": \"2023-12-25\",\n \"due_date\": \"2023-12-25\",\n \"payment_method_types\": [],\n \"send_email_on_creation\": true,\n \"collection_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"recurring_schedule\": \"<string>\",\n \"additional_recipient_emails\": [\n \"jsmith@example.com\"\n ],\n \"note\": \"<string>\",\n \"name\": \"<string>\",\n \"show_contact_address\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://api.meow.com/v1/billing/invoices")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"line_items\": [\n {\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 50000000.0005,\n \"price\": 50000000.005,\n \"description\": \"<string>\",\n \"discount_percentage\": 50,\n \"discount_description\": \"<string>\"\n }\n ],\n \"invoice_date\": \"2023-12-25\",\n \"due_date\": \"2023-12-25\",\n \"payment_method_types\": [],\n \"send_email_on_creation\": true,\n \"collection_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"recurring_schedule\": \"<string>\",\n \"additional_recipient_emails\": [\n \"jsmith@example.com\"\n ],\n \"note\": \"<string>\",\n \"name\": \"<string>\",\n \"show_contact_address\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meow.com/v1/billing/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"line_items\": [\n {\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 50000000.0005,\n \"price\": 50000000.005,\n \"description\": \"<string>\",\n \"discount_percentage\": 50,\n \"discount_description\": \"<string>\"\n }\n ],\n \"invoice_date\": \"2023-12-25\",\n \"due_date\": \"2023-12-25\",\n \"payment_method_types\": [],\n \"send_email_on_creation\": true,\n \"collection_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"recurring_schedule\": \"<string>\",\n \"additional_recipient_emails\": [\n \"jsmith@example.com\"\n ],\n \"note\": \"<string>\",\n \"name\": \"<string>\",\n \"show_contact_address\": false\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.meow.com/v1/billing/invoices",
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([
'customer_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'line_items' => [
[
'product_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'quantity' => 50000000.0005,
'price' => 50000000.005,
'description' => '<string>',
'discount_percentage' => 50,
'discount_description' => '<string>'
]
],
'invoice_date' => '2023-12-25',
'due_date' => '2023-12-25',
'payment_method_types' => [
],
'send_email_on_creation' => true,
'collection_account_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'recurring_schedule' => '<string>',
'additional_recipient_emails' => [
'jsmith@example.com'
],
'note' => '<string>',
'name' => '<string>',
'show_contact_address' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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/billing/invoices';
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customer_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
line_items: [
{
product_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
quantity: 50000000.0005,
price: 50000000.005,
description: '<string>',
discount_percentage: 50,
discount_description: '<string>'
}
],
invoice_date: '2023-12-25',
due_date: '2023-12-25',
payment_method_types: [],
send_email_on_creation: true,
collection_account_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
recurring_schedule: '<string>',
additional_recipient_emails: ['jsmith@example.com'],
note: '<string>',
name: '<string>',
show_contact_address: false
})
};
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/billing/invoices");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-api-key", "<api-key>");
request.AddJsonBody("{\n \"customer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"line_items\": [\n {\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 50000000.0005,\n \"price\": 50000000.005,\n \"description\": \"<string>\",\n \"discount_percentage\": 50,\n \"discount_description\": \"<string>\"\n }\n ],\n \"invoice_date\": \"2023-12-25\",\n \"due_date\": \"2023-12-25\",\n \"payment_method_types\": [],\n \"send_email_on_creation\": true,\n \"collection_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"recurring_schedule\": \"<string>\",\n \"additional_recipient_emails\": [\n \"jsmith@example.com\"\n ],\n \"note\": \"<string>\",\n \"name\": \"<string>\",\n \"show_contact_address\": false\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"customer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"line_items\": [\n {\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 50000000.0005,\n \"price\": 50000000.005,\n \"description\": \"<string>\",\n \"discount_percentage\": 50,\n \"discount_description\": \"<string>\"\n }\n ],\n \"invoice_date\": \"2023-12-25\",\n \"due_date\": \"2023-12-25\",\n \"payment_method_types\": [],\n \"send_email_on_creation\": true,\n \"collection_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"recurring_schedule\": \"<string>\",\n \"additional_recipient_emails\": [\n \"jsmith@example.com\"\n ],\n \"note\": \"<string>\",\n \"name\": \"<string>\",\n \"show_contact_address\": false\n}")
val request = Request.Builder()
.url("https://api.meow.com/v1/billing/invoices")
.post(body)
.addHeader("x-api-key", "<api-key>")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute()import Foundation
let parameters = [
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_items": [
[
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 50000000.0005,
"price": 50000000.005,
"description": "<string>",
"discount_percentage": 50,
"discount_description": "<string>"
]
],
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"payment_method_types": [],
"send_email_on_creation": true,
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recurring_schedule": "<string>",
"additional_recipient_emails": ["jsmith@example.com"],
"note": "<string>",
"name": "<string>",
"show_contact_address": false
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.meow.com/v1/billing/invoices")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"x-api-key": "<api-key>",
"Content-Type": "application/json"
]
request.httpBody = postData
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>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api.meow.com/v1/billing/invoices' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_items": [
{
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 50000000.0005,
"price": 50000000.005,
"description": "<string>",
"discount_percentage": 50,
"discount_description": "<string>"
}
],
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"payment_method_types": [],
"send_email_on_creation": true,
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recurring_schedule": "<string>",
"additional_recipient_emails": [
"jsmith@example.com"
],
"note": "<string>",
"name": "<string>",
"show_contact_address": false
}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"amount_paid": "<string>",
"amount_due": "<string>",
"line_item_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"payment_method_types": [],
"send_email_on_creation": true,
"additional_recipient_emails": [
"<string>"
],
"collection_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"invoice_number": "<string>",
"invoice_date": "2023-12-25",
"due_date": "2023-12-25",
"note": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"paid_at": "2023-11-07T05:31:56Z",
"canceled_at": "2023-11-07T05:31:56Z",
"sent_at": "2023-11-07T05:31:56Z",
"expired_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your Meow API key, sent in the x-api-key header for authentication.
Headers
Optional entity_id to scope requests to a specific entity.
Body
Invoicing customer to bill. Use list_invoicing_customers to find one.
Line items to bill, as a list. At least one is required.
Show child attributes
Show child attributes
Date the invoice is scheduled to be sent.
Date the invoice is due.
Payment method types to enable on the invoice. BANK_TRANSFER is always enabled.
BANK_TRANSFER, CARD, ACH_DIRECT_DEBIT, INTERNATIONAL_WIRE, USDC_ETHEREUM, USDC_SOLANA, USDC_BASE, USDC_XDC, USDT_ETHEREUM, USDT_SOLANA, CASH_SOLANA If true, sends an email to the customer (and any additional recipients) on the invoice_date.
The collection account ID where payments on this invoice will be deposited.
RFC 5545 RRULE string. Required: DTSTART, RRULE. Allowed frequencies: WEEKLY, MONTHLY.
1 - 120Additional recipient emails to send the invoice and any reminders to.
20Note to include on the invoice.
300Name of the invoice.
32Whether to show the customer's address on the invoice, if it exists.
Response
Successful Response
The unique identifier for the invoice.
The unique identifier for the customer.
The current status of the invoice.
Draft, Open, Pending, Scheduled, Partially Paid, Paid, Canceled, Expired, Overdue The total amount of the invoice.
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$The amount that has been paid on the invoice.
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$The remaining amount due on the invoice.
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$List of line item IDs associated with the invoice.
List of allowed payment method types for the invoice.
BANK_TRANSFER, CARD, ACH_DIRECT_DEBIT, INTERNATIONAL_WIRE, USDC_ETHEREUM, USDC_SOLANA, USDC_BASE, USDC_XDC, USDT_ETHEREUM, USDT_SOLANA, CASH_SOLANA Whether to send an email upon invoice creation.
List of additional email addresses to receive the invoice.
The collection account ID where funds will be collected.
The timestamp when the invoice was created.
The name of the invoice.
The public-facing invoice number.
The date the invoice is scheduled to be sent.
The date the invoice payment is due.
A note associated with the invoice.
The timestamp when the invoice was last updated.
The timestamp when the invoice was fully paid.
The timestamp when the invoice was canceled.
The timestamp when the invoice was sent.
The timestamp when the invoice expired.