Create Recurring Invoice
curl --request POST \
--url https://app.dimepayments.com/api/recurring-invoice/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"sid": 12345
}
}
'import requests
url = "https://app.dimepayments.com/api/recurring-invoice/create"
payload = { "data": { "sid": 12345 } }
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({data: {sid: 12345}})
};
fetch('https://app.dimepayments.com/api/recurring-invoice/create', 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://app.dimepayments.com/api/recurring-invoice/create",
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([
'data' => [
'sid' => 12345
]
]),
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://app.dimepayments.com/api/recurring-invoice/create"
payload := strings.NewReader("{\n \"data\": {\n \"sid\": 12345\n }\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://app.dimepayments.com/api/recurring-invoice/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"sid\": 12345\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.dimepayments.com/api/recurring-invoice/create")
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 \"data\": {\n \"sid\": 12345\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": null,
"status": "Active",
"recurrence_schedule": "Monthly",
"payment_terms": "net_15",
"start_date": "2026-07-22",
"end_date": null,
"next_run_date": "2026-08-22",
"last_run_date": null,
"thank_you_note": null,
"customer": {
"id": 15133,
"name": "Pauline Runte",
"email": "alayna44@example.org"
},
"items": [],
"upcoming_run_dates": [
"2026-08-22",
"2026-09-22",
"2026-10-22"
],
"invoices": []
}
}{
"errors": {
"data.customer_id": [
"The data.customer id field is required."
]
}
}{
"data": {
"message": "Permission Denied."
}
}{
"data": {
"message": "No such Merchant"
}
}Invoice management
Create Recurring Invoice
Creates a recurring-invoice template. The template carries its own snapshot of the line items and requires a linked customer (used to resolve the email on every run). When the start date is today the first invoice is generated and sent immediately; a future start date just schedules the first run.
POST
/
api
/
recurring-invoice
/
create
Create Recurring Invoice
curl --request POST \
--url https://app.dimepayments.com/api/recurring-invoice/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"sid": 12345
}
}
'import requests
url = "https://app.dimepayments.com/api/recurring-invoice/create"
payload = { "data": { "sid": 12345 } }
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({data: {sid: 12345}})
};
fetch('https://app.dimepayments.com/api/recurring-invoice/create', 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://app.dimepayments.com/api/recurring-invoice/create",
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([
'data' => [
'sid' => 12345
]
]),
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://app.dimepayments.com/api/recurring-invoice/create"
payload := strings.NewReader("{\n \"data\": {\n \"sid\": 12345\n }\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://app.dimepayments.com/api/recurring-invoice/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"sid\": 12345\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.dimepayments.com/api/recurring-invoice/create")
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 \"data\": {\n \"sid\": 12345\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": null,
"status": "Active",
"recurrence_schedule": "Monthly",
"payment_terms": "net_15",
"start_date": "2026-07-22",
"end_date": null,
"next_run_date": "2026-08-22",
"last_run_date": null,
"thank_you_note": null,
"customer": {
"id": 15133,
"name": "Pauline Runte",
"email": "alayna44@example.org"
},
"items": [],
"upcoming_run_dates": [
"2026-08-22",
"2026-09-22",
"2026-10-22"
],
"invoices": []
}
}{
"errors": {
"data.customer_id": [
"The data.customer id field is required."
]
}
}{
"data": {
"message": "Permission Denied."
}
}{
"data": {
"message": "No such Merchant"
}
}⌘I

