Proposals
Approve or decline a purchase of a billing plan
This API let’s you to approve or decline a proposal of a billing plan for an account
POST
/
purchase_proposals
/
{purchase_proposal_id}
/
update_status
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
purchase_proposal_id
string
requiredMaximum length:
512
Body
application/json
Approve or decline a proposal of a billing plan for an account
status
enum<string>
requiredAvailable options:
APPROVE
, DECLINE
Response
200 - application/json
Represents a Purchase
id
string
requiredaccountId
string
requiredMinimum length:
1
createdAt
string
requiredstatus
enum<string>
requiredStatus of the purchase
Available options:
SUCCESS
, FAILURE
, PENDING
, IN_PROGRESS
, PROPOSAL_ACTIVE
, PROPOSAL_APPROVED
, PROPOSAL_DECLINED
, PROPOSAL_EXPIRED
type
enum<string>
requiredSpecifies whether this purchase is for granting entitlements or for an association or for wallet topup or prepaid purchase. If left null, ENTITLEMENT_GRANT is taken as default
Available options:
ENTITLEMENT_GRANT
, ASSOCIATION
, WALLET_TOPUP
, PREPAID
paymentMode
enum<string>
requiredAvailable options:
PREPAID
, POSTPAID
pricePlanId
string
Id of the price plan, Required for ENTITLEMENT_GRANT, ASSOCIATION purchase
Minimum length:
1
quantity
integer
rateCardQuantities
object
idempotencyKey
string
pricePlanVersion
integer
purchasePlanOverride
object
associationOverride
object
walletTopupDetails
object
Information related to wallet topup purchase
updatedAt
string
effectiveFrom
string
effectiveUntil
string
expiryDate
string
price
number
invoiceId
string
invoiceCurrency
string
comment
string
proposalResponseDate
string