API Reference
⌘
K
Docs & Guides
API Reference
Introduction
Getting started
Language Specific SDKs
Authorization
Metering Cloud
Meter Definition
Ingest Meters
Custom Ingest Schema
Filtering Out Reported Meters
Querying Reported Usage
Querying Raw Events
Periodic Usage Reports
Customers
Billing Cloud
Account
Product Items
Product Item Price Templates
Queries
Pricing Plans
Invoices
Prepaid Orders
Prepaid Cards
Prepaid Wallet
Customer Promotions
Defining Promotions
Customer Commitment
Billing Analysis
Tax Calculation
Alerts and Webhooks
Notifications (Alerts)
Webhooks
Event Logs
Account Settings
Company Logo
Customer Portal
Session
Usage
Cost
Billing
Prepaid
Notifications
Meters
Usage Events
Pricing Plan
Setup Intent
Payment Method
Settings
Company Logo
Customer Details
Credits Ledger
Rewards History
Docs powered by
Archbee
Billing Cloud
Defining Promotions
Create or update a Relative Product Automatic Promotion
1min
POST
https://app.amberflo.io/payments/pricing/amberflo/account-pricing/promotions/relative_product_automatic_promotion
Try it
An automatic promotion, that based on customer tags, automatically applies a relative promotion.
Authentication
X-API-KEY
apiKey
Body Parameters
body
payment.pricing.promotions.pre_created.RelativeProductAutomaticPromotion.in
id
string
*
type
string
promotionName
string
*
description
string
lockingStatus
payment.in_relations.LockingStatus.in
dimensionConstraintMap
map<string, string>
customerTags
map<string, string>
isHidden
boolean
discountRatio
number
totalMaxDiscount
number
cycleMaxDiscount
number
targetProductId
string
Responses
200
Successful request
payment.pricing.promotions.pre_created.RelativeProductAutomaticPromotion.out
id
string
*
type
string
promotionName
string
*
description
string
lockingStatus
payment.in_relations.LockingStatus.out
lastUpdateTimeInMillis
integer<int64>
dimensionConstraintMap
map<string, string>
customerTags
map<string, string>
isHidden
boolean
discountRatio
number
totalMaxDiscount
number
cycleMaxDiscount
number
targetProductId
string
PREVIOUS
Create or update a Generic Product Promotion
NEXT
Create or update a Relative Product Item Automatic Promotion
Docs powered by
Archbee