cURL
curl --request POST \
--url https://us.api.flexprice.io/v1/marketplace/agreements \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "<string>",
"plan_id": "<string>",
"subscription_id": "<string>"
}
'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.marketplace.post_marketplace_agreements(customer_id="<id>", plan_id="<id>", provider="tabs", subscription_id="<id>")
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.marketplace.postMarketplaceAgreements({
customerId: "<id>",
planId: "<id>",
provider: "tabs",
subscriptionId: "<id>",
});
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"github.com/flexprice/go-sdk/v2/models/types"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Marketplace.PostMarketplaceAgreements(ctx, types.RegisterMarketplaceAgreementRequest{
CustomerID: "<id>",
PlanID: "<id>",
Provider: types.SecretProviderTabs,
SubscriptionID: "<id>",
})
if err != nil {
log.Fatal(err)
}
if res.RegisterMarketplaceAgreementResponse != nil {
// handle response
}
}{
"customer_mapping_id": "<string>",
"plan_mapping_id": "<string>",
"status": "<string>",
"subscription_mapping_id": "<string>"
}Marketplace
Register an AWS Marketplace agreement
Registers an AWS Marketplace buyer agreement against an existing Flexprice subscription, upserting plan/subscription/customer integration mappings in one call.
POST
/
marketplace
/
agreements
cURL
curl --request POST \
--url https://us.api.flexprice.io/v1/marketplace/agreements \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "<string>",
"plan_id": "<string>",
"subscription_id": "<string>"
}
'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.marketplace.post_marketplace_agreements(customer_id="<id>", plan_id="<id>", provider="tabs", subscription_id="<id>")
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.marketplace.postMarketplaceAgreements({
customerId: "<id>",
planId: "<id>",
provider: "tabs",
subscriptionId: "<id>",
});
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"github.com/flexprice/go-sdk/v2/models/types"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Marketplace.PostMarketplaceAgreements(ctx, types.RegisterMarketplaceAgreementRequest{
CustomerID: "<id>",
PlanID: "<id>",
Provider: types.SecretProviderTabs,
SubscriptionID: "<id>",
})
if err != nil {
log.Fatal(err)
}
if res.RegisterMarketplaceAgreementResponse != nil {
// handle response
}
}{
"customer_mapping_id": "<string>",
"plan_mapping_id": "<string>",
"status": "<string>",
"subscription_mapping_id": "<string>"
}Body
application/json
Agreement registration request
Available options:
flexprice, stripe, s3, gcs, hubspot, razorpay, chargebee, quickbooks, zoho_books, nomod, moyasar, paddle, whop, tabs, aws_marketplace, gcp_marketplace, azure_marketplace Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes

