curl --request POST \
--url https://api.paygentic.io/v0/subscriptionProposals/{id}/decision \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"basedOnHash": "<string>",
"text": "<string>"
}
'import requests
url = "https://api.paygentic.io/v0/subscriptionProposals/{id}/decision"
payload = {
"basedOnHash": "<string>",
"text": "<string>"
}
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({basedOnHash: '<string>', text: '<string>'})
};
fetch('https://api.paygentic.io/v0/subscriptionProposals/{id}/decision', 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.paygentic.io/v0/subscriptionProposals/{id}/decision",
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([
'basedOnHash' => '<string>',
'text' => '<string>'
]),
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.paygentic.io/v0/subscriptionProposals/{id}/decision"
payload := strings.NewReader("{\n \"basedOnHash\": \"<string>\",\n \"text\": \"<string>\"\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.paygentic.io/v0/subscriptionProposals/{id}/decision")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"basedOnHash\": \"<string>\",\n \"text\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paygentic.io/v0/subscriptionProposals/{id}/decision")
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 \"basedOnHash\": \"<string>\",\n \"text\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "subscriptionProposal",
"merchantId": "<string>",
"status": "pending",
"customerId": "<string>",
"planId": "<string>",
"planVersionId": "<string>",
"resolvedPlanVersionId": "<string>",
"hash": "<string>",
"testClockId": "<string>",
"requested": {
"customerId": "<string>",
"name": "<string>",
"planId": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"autoCharge": true,
"taxExempt": true,
"endingAt": "2023-11-07T05:31:56Z",
"prefundAmount": "<string>",
"minimumAccountBalance": "<string>",
"redirectUrls": {
"onSuccess": "<string>",
"onFailure": "<string>"
},
"elapsedPeriodBilling": "none",
"billingAnchor": "2023-11-07T05:31:56Z",
"testClockId": "<string>",
"renewalReminderEnabled": true,
"renewalReminderDays": 15,
"paymentTermDays": 182,
"sessionExpiryMinutes": 2,
"versionPolicy": "floating",
"metadata": {},
"changeReason": "commercial",
"changeDescription": "<string>",
"changeMetadata": {},
"addPrices": [
{
"priceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>",
"total": "<string>",
"installments": 31,
"amounts": [
"<string>"
]
}
],
"overridePrices": [
{
"overridesPriceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>"
}
],
"removePrices": [
{
"priceId": "<string>"
}
],
"planVersionId": "<string>",
"adjustments": [
{
"type": "percentageDiscount",
"percentageDiscount": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"description": "<string>",
"idempotencyKey": "adj_fy26_growth_001"
}
]
},
"current": {
"customerId": "<string>",
"name": "<string>",
"planId": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"autoCharge": true,
"taxExempt": true,
"endingAt": "2023-11-07T05:31:56Z",
"prefundAmount": "<string>",
"minimumAccountBalance": "<string>",
"redirectUrls": {
"onSuccess": "<string>",
"onFailure": "<string>"
},
"elapsedPeriodBilling": "none",
"billingAnchor": "2023-11-07T05:31:56Z",
"testClockId": "<string>",
"renewalReminderEnabled": true,
"renewalReminderDays": 15,
"paymentTermDays": 182,
"sessionExpiryMinutes": 2,
"versionPolicy": "floating",
"metadata": {},
"changeReason": "commercial",
"changeDescription": "<string>",
"changeMetadata": {},
"addPrices": [
{
"priceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>",
"total": "<string>",
"installments": 31,
"amounts": [
"<string>"
]
}
],
"overridePrices": [
{
"overridesPriceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>"
}
],
"removePrices": [
{
"priceId": "<string>"
}
],
"planVersionId": "<string>",
"adjustments": [
{
"type": "percentageDiscount",
"percentageDiscount": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"description": "<string>",
"idempotencyKey": "adj_fy26_growth_001"
}
]
},
"amendedFields": [
"<string>"
],
"refusedResync": {
"receivedAt": "2023-11-07T05:31:56Z",
"code": "SUBSCRIPTION_PROPOSAL_RESYNC_CONFLICT",
"fields": [
"<string>"
],
"values": {
"customerId": "<string>",
"name": "<string>",
"planId": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"autoCharge": true,
"taxExempt": true,
"endingAt": "2023-11-07T05:31:56Z",
"prefundAmount": "<string>",
"minimumAccountBalance": "<string>",
"redirectUrls": {
"onSuccess": "<string>",
"onFailure": "<string>"
},
"elapsedPeriodBilling": "none",
"billingAnchor": "2023-11-07T05:31:56Z",
"testClockId": "<string>",
"renewalReminderEnabled": true,
"renewalReminderDays": 15,
"paymentTermDays": 182,
"sessionExpiryMinutes": 2,
"versionPolicy": "floating",
"metadata": {},
"changeReason": "commercial",
"changeDescription": "<string>",
"changeMetadata": {},
"addPrices": [
{
"priceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>",
"total": "<string>",
"installments": 31,
"amounts": [
"<string>"
]
}
],
"overridePrices": [
{
"overridesPriceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>"
}
],
"removePrices": [
{
"priceId": "<string>"
}
],
"planVersionId": "<string>",
"adjustments": [
{
"type": "percentageDiscount",
"percentageDiscount": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"description": "<string>",
"idempotencyKey": "adj_fy26_growth_001"
}
]
},
"credentialId": "<string>"
},
"lockVersion": 123,
"source": "<string>",
"externalReference": {
"provider": "<string>",
"externalId": "<string>"
},
"subscriptionId": "<string>",
"rejectionReason": "price_mismatch",
"rejectionText": "<string>",
"decidedAt": "2023-11-07T05:31:56Z",
"decidedByPrincipalId": "<string>",
"decidedBy": {
"type": "user",
"name": "<string>"
},
"strandedAt": "2023-11-07T05:31:56Z",
"createdByPrincipalId": "<string>",
"createdByCredentialId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"revisions": [
{
"id": "<string>",
"version": 2,
"values": {
"customerId": "<string>",
"name": "<string>",
"planId": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"autoCharge": true,
"taxExempt": true,
"endingAt": "2023-11-07T05:31:56Z",
"prefundAmount": "<string>",
"minimumAccountBalance": "<string>",
"redirectUrls": {
"onSuccess": "<string>",
"onFailure": "<string>"
},
"elapsedPeriodBilling": "none",
"billingAnchor": "2023-11-07T05:31:56Z",
"testClockId": "<string>",
"renewalReminderEnabled": true,
"renewalReminderDays": 15,
"paymentTermDays": 182,
"sessionExpiryMinutes": 2,
"versionPolicy": "floating",
"metadata": {},
"changeReason": "commercial",
"changeDescription": "<string>",
"changeMetadata": {},
"addPrices": [
{
"priceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>",
"total": "<string>",
"installments": 31,
"amounts": [
"<string>"
]
}
],
"overridePrices": [
{
"overridesPriceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>"
}
],
"removePrices": [
{
"priceId": "<string>"
}
],
"planVersionId": "<string>",
"adjustments": [
{
"type": "percentageDiscount",
"percentageDiscount": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"description": "<string>",
"idempotencyKey": "adj_fy26_growth_001"
}
]
},
"createdAt": "2023-11-07T05:31:56Z",
"createdByCredentialId": "<string>"
}
]
}{
"message": "The requested resource was not found",
"error": "not_found"
}{
"message": "The requested resource was not found",
"error": "not_found"
}{
"message": "The requested resource was not found",
"error": "not_found"
}{
"message": "The requested resource was not found",
"error": "not_found"
}{
"error": "conflict",
"message": "<string>",
"requestId": "105445aa7843bc8bf206b12000100000",
"code": "SUBSCRIPTION_PROPOSAL_RESYNC_CONFLICT",
"details": {
"code": "<string>",
"details": {},
"fields": [
"<string>"
],
"subscriptionId": "<string>",
"status": "<string>",
"field": "<string>",
"expected": 123,
"actual": 123,
"entityType": "<string>",
"entityId": "<string>"
}
}{
"message": "The requested resource was not found",
"error": "not_found"
}{
"message": "The requested resource was not found",
"error": "not_found"
}Approve or reject
Approves or rejects a pending subscription proposal. The body is flat like PATCH /v0/approvals/{id}’s, but takes the verbs approve and reject, a reason from a fixed list with optional text, and no cancelled. Needs the subscriptionProposals:approve permission, whoever created the proposal. Send the proposal’s hash as basedOnHash. approve creates the subscription that POST /v0/subscriptions would create from the proposal’s values at the moment of approval, read from the proposal’s test clock when it has one, on its pinned version or, for a floating proposal, on the plan’s default at that moment. The proposal becomes approved with the new subscriptionId in the same transaction. The answer comes once the first invoice is raised, as subscription create’s does; read the subscription, with its payment state, from GET /v0/subscriptions/{id}. An approval takes no reason or text. An approve of an approved proposal whose strandedAt is set resumes the subscription its approval left waiting for its first invoice, and answers SUBSCRIPTION_PROPOSAL_CHANGED when another approve claimed it after this one read it. reject records the reason, the text, who decided and when. The proposal becomes rejected, which is final. No subscription is created, and nothing is sent to the system the proposal came from. 409 carries a code: SUBSCRIPTION_PROPOSAL_NOT_PENDING for a proposal that is not pending; SUBSCRIPTION_PROPOSAL_CHANGED when its hash changed since it was read, by an amend or a new default of a floating proposal’s plan, or when it changed while the approval ran, with details { field: 'lockVersion', expected, actual }; SUBSCRIPTION_PROPOSAL_INVALID when approving finds the proposal fails a check subscription create makes, with details.code the failed check’s own code and details.details its details, each only when the check has one; SUBSCRIPTION_PROPOSAL_DUPLICATE when the customer already has a live subscription for the plan’s product; SUBSCRIPTION_PROPOSAL_ALREADY_APPROVED when that subscription is the one a concurrent approval of this proposal created. Both put the subscription’s id in details.subscriptionId. On any 409 the proposal is left as it is, except that an approve of a proposal whose strandedAt is set, when its subscription is no longer waiting for its first invoice, clears strandedAt and answers SUBSCRIPTION_PROPOSAL_NOT_PENDING. A plan, plan version or customer that no longer exists answers 404. A pending proposal blocks deleting its plan and its customer, so this happens only when a delete runs at the same time. A proposal of another merchant answers 404, as an unknown one does.
curl --request POST \
--url https://api.paygentic.io/v0/subscriptionProposals/{id}/decision \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"basedOnHash": "<string>",
"text": "<string>"
}
'import requests
url = "https://api.paygentic.io/v0/subscriptionProposals/{id}/decision"
payload = {
"basedOnHash": "<string>",
"text": "<string>"
}
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({basedOnHash: '<string>', text: '<string>'})
};
fetch('https://api.paygentic.io/v0/subscriptionProposals/{id}/decision', 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.paygentic.io/v0/subscriptionProposals/{id}/decision",
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([
'basedOnHash' => '<string>',
'text' => '<string>'
]),
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.paygentic.io/v0/subscriptionProposals/{id}/decision"
payload := strings.NewReader("{\n \"basedOnHash\": \"<string>\",\n \"text\": \"<string>\"\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.paygentic.io/v0/subscriptionProposals/{id}/decision")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"basedOnHash\": \"<string>\",\n \"text\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paygentic.io/v0/subscriptionProposals/{id}/decision")
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 \"basedOnHash\": \"<string>\",\n \"text\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "subscriptionProposal",
"merchantId": "<string>",
"status": "pending",
"customerId": "<string>",
"planId": "<string>",
"planVersionId": "<string>",
"resolvedPlanVersionId": "<string>",
"hash": "<string>",
"testClockId": "<string>",
"requested": {
"customerId": "<string>",
"name": "<string>",
"planId": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"autoCharge": true,
"taxExempt": true,
"endingAt": "2023-11-07T05:31:56Z",
"prefundAmount": "<string>",
"minimumAccountBalance": "<string>",
"redirectUrls": {
"onSuccess": "<string>",
"onFailure": "<string>"
},
"elapsedPeriodBilling": "none",
"billingAnchor": "2023-11-07T05:31:56Z",
"testClockId": "<string>",
"renewalReminderEnabled": true,
"renewalReminderDays": 15,
"paymentTermDays": 182,
"sessionExpiryMinutes": 2,
"versionPolicy": "floating",
"metadata": {},
"changeReason": "commercial",
"changeDescription": "<string>",
"changeMetadata": {},
"addPrices": [
{
"priceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>",
"total": "<string>",
"installments": 31,
"amounts": [
"<string>"
]
}
],
"overridePrices": [
{
"overridesPriceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>"
}
],
"removePrices": [
{
"priceId": "<string>"
}
],
"planVersionId": "<string>",
"adjustments": [
{
"type": "percentageDiscount",
"percentageDiscount": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"description": "<string>",
"idempotencyKey": "adj_fy26_growth_001"
}
]
},
"current": {
"customerId": "<string>",
"name": "<string>",
"planId": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"autoCharge": true,
"taxExempt": true,
"endingAt": "2023-11-07T05:31:56Z",
"prefundAmount": "<string>",
"minimumAccountBalance": "<string>",
"redirectUrls": {
"onSuccess": "<string>",
"onFailure": "<string>"
},
"elapsedPeriodBilling": "none",
"billingAnchor": "2023-11-07T05:31:56Z",
"testClockId": "<string>",
"renewalReminderEnabled": true,
"renewalReminderDays": 15,
"paymentTermDays": 182,
"sessionExpiryMinutes": 2,
"versionPolicy": "floating",
"metadata": {},
"changeReason": "commercial",
"changeDescription": "<string>",
"changeMetadata": {},
"addPrices": [
{
"priceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>",
"total": "<string>",
"installments": 31,
"amounts": [
"<string>"
]
}
],
"overridePrices": [
{
"overridesPriceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>"
}
],
"removePrices": [
{
"priceId": "<string>"
}
],
"planVersionId": "<string>",
"adjustments": [
{
"type": "percentageDiscount",
"percentageDiscount": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"description": "<string>",
"idempotencyKey": "adj_fy26_growth_001"
}
]
},
"amendedFields": [
"<string>"
],
"refusedResync": {
"receivedAt": "2023-11-07T05:31:56Z",
"code": "SUBSCRIPTION_PROPOSAL_RESYNC_CONFLICT",
"fields": [
"<string>"
],
"values": {
"customerId": "<string>",
"name": "<string>",
"planId": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"autoCharge": true,
"taxExempt": true,
"endingAt": "2023-11-07T05:31:56Z",
"prefundAmount": "<string>",
"minimumAccountBalance": "<string>",
"redirectUrls": {
"onSuccess": "<string>",
"onFailure": "<string>"
},
"elapsedPeriodBilling": "none",
"billingAnchor": "2023-11-07T05:31:56Z",
"testClockId": "<string>",
"renewalReminderEnabled": true,
"renewalReminderDays": 15,
"paymentTermDays": 182,
"sessionExpiryMinutes": 2,
"versionPolicy": "floating",
"metadata": {},
"changeReason": "commercial",
"changeDescription": "<string>",
"changeMetadata": {},
"addPrices": [
{
"priceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>",
"total": "<string>",
"installments": 31,
"amounts": [
"<string>"
]
}
],
"overridePrices": [
{
"overridesPriceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>"
}
],
"removePrices": [
{
"priceId": "<string>"
}
],
"planVersionId": "<string>",
"adjustments": [
{
"type": "percentageDiscount",
"percentageDiscount": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"description": "<string>",
"idempotencyKey": "adj_fy26_growth_001"
}
]
},
"credentialId": "<string>"
},
"lockVersion": 123,
"source": "<string>",
"externalReference": {
"provider": "<string>",
"externalId": "<string>"
},
"subscriptionId": "<string>",
"rejectionReason": "price_mismatch",
"rejectionText": "<string>",
"decidedAt": "2023-11-07T05:31:56Z",
"decidedByPrincipalId": "<string>",
"decidedBy": {
"type": "user",
"name": "<string>"
},
"strandedAt": "2023-11-07T05:31:56Z",
"createdByPrincipalId": "<string>",
"createdByCredentialId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"revisions": [
{
"id": "<string>",
"version": 2,
"values": {
"customerId": "<string>",
"name": "<string>",
"planId": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"autoCharge": true,
"taxExempt": true,
"endingAt": "2023-11-07T05:31:56Z",
"prefundAmount": "<string>",
"minimumAccountBalance": "<string>",
"redirectUrls": {
"onSuccess": "<string>",
"onFailure": "<string>"
},
"elapsedPeriodBilling": "none",
"billingAnchor": "2023-11-07T05:31:56Z",
"testClockId": "<string>",
"renewalReminderEnabled": true,
"renewalReminderDays": 15,
"paymentTermDays": 182,
"sessionExpiryMinutes": 2,
"versionPolicy": "floating",
"metadata": {},
"changeReason": "commercial",
"changeDescription": "<string>",
"changeMetadata": {},
"addPrices": [
{
"priceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>",
"total": "<string>",
"installments": 31,
"amounts": [
"<string>"
]
}
],
"overridePrices": [
{
"overridesPriceId": "<string>",
"unitPrice": "<string>",
"baseQuantity": "<string>"
}
],
"removePrices": [
{
"priceId": "<string>"
}
],
"planVersionId": "<string>",
"adjustments": [
{
"type": "percentageDiscount",
"percentageDiscount": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"description": "<string>",
"idempotencyKey": "adj_fy26_growth_001"
}
]
},
"createdAt": "2023-11-07T05:31:56Z",
"createdByCredentialId": "<string>"
}
]
}{
"message": "The requested resource was not found",
"error": "not_found"
}{
"message": "The requested resource was not found",
"error": "not_found"
}{
"message": "The requested resource was not found",
"error": "not_found"
}{
"message": "The requested resource was not found",
"error": "not_found"
}{
"error": "conflict",
"message": "<string>",
"requestId": "105445aa7843bc8bf206b12000100000",
"code": "SUBSCRIPTION_PROPOSAL_RESYNC_CONFLICT",
"details": {
"code": "<string>",
"details": {},
"fields": [
"<string>"
],
"subscriptionId": "<string>",
"status": "<string>",
"field": "<string>",
"expected": 123,
"actual": 123,
"entityType": "<string>",
"entityId": "<string>"
}
}{
"message": "The requested resource was not found",
"error": "not_found"
}{
"message": "The requested resource was not found",
"error": "not_found"
}Body
A decision on a pending proposal, and the hash of the proposal the person decided on. To reject, send reason, and text when the reason is other. An approval sends neither.
Why a person rejected the proposal. price_mismatch: a price or discount is not the one agreed. wrong_plan: the proposal names the wrong plan. wrong_start_date: the start date is wrong. wrong_customer: the proposal names the wrong customer. duplicate: the customer already has this subscription, or another proposal holds it. other: another reason, explained in text.
price_mismatch, wrong_plan, wrong_start_date, wrong_customer, duplicate, other Notes on the rejection, at most 2000 characters. Required when reason is other. Whitespace around it is trimmed, and a blank value is stored as null. An approval refuses it.
2000Response
The decided subscription proposal
A subscription a client proposed, held until a person approves or rejects it. No subscription exists until it is approved.
Was this page helpful?