Create a reusable contribution or fixed-price offer
curl --request POST \
--url https://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"currency": "usd",
"description": "<string>",
"unit_amount_minor": 5000000,
"minimum_amount_minor": 5000500,
"maximum_amount_minor": 5000500,
"suggested_amounts_minor": [
5000500
],
"quantity_enabled": false,
"minimum_quantity": 1,
"maximum_quantity": 1,
"checkout_fields": {},
"confirmation": {}
}
'import requests
url = "https://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers"
payload = {
"name": "<string>",
"currency": "usd",
"description": "<string>",
"unit_amount_minor": 5000000,
"minimum_amount_minor": 5000500,
"maximum_amount_minor": 5000500,
"suggested_amounts_minor": [5000500],
"quantity_enabled": False,
"minimum_quantity": 1,
"maximum_quantity": 1,
"checkout_fields": {},
"confirmation": {}
}
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({
name: '<string>',
currency: 'usd',
description: '<string>',
unit_amount_minor: 5000000,
minimum_amount_minor: 5000500,
maximum_amount_minor: 5000500,
suggested_amounts_minor: [5000500],
quantity_enabled: false,
minimum_quantity: 1,
maximum_quantity: 1,
checkout_fields: {},
confirmation: {}
})
};
fetch('https://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers', 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://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers",
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([
'name' => '<string>',
'currency' => 'usd',
'description' => '<string>',
'unit_amount_minor' => 5000000,
'minimum_amount_minor' => 5000500,
'maximum_amount_minor' => 5000500,
'suggested_amounts_minor' => [
5000500
],
'quantity_enabled' => false,
'minimum_quantity' => 1,
'maximum_quantity' => 1,
'checkout_fields' => [
],
'confirmation' => [
]
]),
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://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"currency\": \"usd\",\n \"description\": \"<string>\",\n \"unit_amount_minor\": 5000000,\n \"minimum_amount_minor\": 5000500,\n \"maximum_amount_minor\": 5000500,\n \"suggested_amounts_minor\": [\n 5000500\n ],\n \"quantity_enabled\": false,\n \"minimum_quantity\": 1,\n \"maximum_quantity\": 1,\n \"checkout_fields\": {},\n \"confirmation\": {}\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://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"currency\": \"usd\",\n \"description\": \"<string>\",\n \"unit_amount_minor\": 5000000,\n \"minimum_amount_minor\": 5000500,\n \"maximum_amount_minor\": 5000500,\n \"suggested_amounts_minor\": [\n 5000500\n ],\n \"quantity_enabled\": false,\n \"minimum_quantity\": 1,\n \"maximum_quantity\": 1,\n \"checkout_fields\": {},\n \"confirmation\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers")
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 \"name\": \"<string>\",\n \"currency\": \"usd\",\n \"description\": \"<string>\",\n \"unit_amount_minor\": 5000000,\n \"minimum_amount_minor\": 5000500,\n \"maximum_amount_minor\": 5000500,\n \"suggested_amounts_minor\": [\n 5000500\n ],\n \"quantity_enabled\": false,\n \"minimum_quantity\": 1,\n \"maximum_quantity\": 1,\n \"checkout_fields\": {},\n \"confirmation\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": "<unknown>",
"meta": {
"request_id": "<string>",
"next_cursor": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"resolution": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"resolution": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"resolution": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": {}
}Create a reusable contribution or fixed-price offer
Creates version 1 of an immutable offer definition. Activating an offer requires a ready Stripe Connect account.
POST
/
workspaces
/
{workspace}
/
commerce
/
offers
Create a reusable contribution or fixed-price offer
curl --request POST \
--url https://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"currency": "usd",
"description": "<string>",
"unit_amount_minor": 5000000,
"minimum_amount_minor": 5000500,
"maximum_amount_minor": 5000500,
"suggested_amounts_minor": [
5000500
],
"quantity_enabled": false,
"minimum_quantity": 1,
"maximum_quantity": 1,
"checkout_fields": {},
"confirmation": {}
}
'import requests
url = "https://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers"
payload = {
"name": "<string>",
"currency": "usd",
"description": "<string>",
"unit_amount_minor": 5000000,
"minimum_amount_minor": 5000500,
"maximum_amount_minor": 5000500,
"suggested_amounts_minor": [5000500],
"quantity_enabled": False,
"minimum_quantity": 1,
"maximum_quantity": 1,
"checkout_fields": {},
"confirmation": {}
}
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({
name: '<string>',
currency: 'usd',
description: '<string>',
unit_amount_minor: 5000000,
minimum_amount_minor: 5000500,
maximum_amount_minor: 5000500,
suggested_amounts_minor: [5000500],
quantity_enabled: false,
minimum_quantity: 1,
maximum_quantity: 1,
checkout_fields: {},
confirmation: {}
})
};
fetch('https://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers', 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://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers",
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([
'name' => '<string>',
'currency' => 'usd',
'description' => '<string>',
'unit_amount_minor' => 5000000,
'minimum_amount_minor' => 5000500,
'maximum_amount_minor' => 5000500,
'suggested_amounts_minor' => [
5000500
],
'quantity_enabled' => false,
'minimum_quantity' => 1,
'maximum_quantity' => 1,
'checkout_fields' => [
],
'confirmation' => [
]
]),
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://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"currency\": \"usd\",\n \"description\": \"<string>\",\n \"unit_amount_minor\": 5000000,\n \"minimum_amount_minor\": 5000500,\n \"maximum_amount_minor\": 5000500,\n \"suggested_amounts_minor\": [\n 5000500\n ],\n \"quantity_enabled\": false,\n \"minimum_quantity\": 1,\n \"maximum_quantity\": 1,\n \"checkout_fields\": {},\n \"confirmation\": {}\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://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"currency\": \"usd\",\n \"description\": \"<string>\",\n \"unit_amount_minor\": 5000000,\n \"minimum_amount_minor\": 5000500,\n \"maximum_amount_minor\": 5000500,\n \"suggested_amounts_minor\": [\n 5000500\n ],\n \"quantity_enabled\": false,\n \"minimum_quantity\": 1,\n \"maximum_quantity\": 1,\n \"checkout_fields\": {},\n \"confirmation\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contactbutton.com/v1/workspaces/{workspace}/commerce/offers")
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 \"name\": \"<string>\",\n \"currency\": \"usd\",\n \"description\": \"<string>\",\n \"unit_amount_minor\": 5000000,\n \"minimum_amount_minor\": 5000500,\n \"maximum_amount_minor\": 5000500,\n \"suggested_amounts_minor\": [\n 5000500\n ],\n \"quantity_enabled\": false,\n \"minimum_quantity\": 1,\n \"maximum_quantity\": 1,\n \"checkout_fields\": {},\n \"confirmation\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": "<unknown>",
"meta": {
"request_id": "<string>",
"next_cursor": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"resolution": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"resolution": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"resolution": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": {}
}Authorizations
A Contact Button scoped bearer key. Send Authorization: Bearer <token>.
Token abilities are enforced independently of workspace membership; both checks must pass.
Interactive MCP clients use registered OAuth applications, Authorization Code + PKCE,
audience-bound tokens, and explicit workspace grants. Personal Sanctum tokens remain supported.
Headers
Stable 8–120 character key for safe mutation retries.
Required string length:
8 - 120Path Parameters
Body
application/json
Available options:
contribution, fixed Maximum string length:
255Available options:
usd Available options:
draft, active, paused, archived Maximum string length:
5000Required for fixed-price offers. The final transaction must still total at least 1000.
Required range:
1 <= x <= 10000000Required for contribution offers.
Required range:
1000 <= x <= 10000000Required range:
1000 <= x <= 10000000Maximum array length:
12Required range:
1000 <= x <= 10000000Required range:
1 <= x <= 100Required range:
1 <= x <= 100Was this page helpful?