Introduction
APIs
- Authentication
- Customers
- Accounts
- GETList accounts of customer
- POSTCreate an account
- GETGet an account
- DELDelete an account
- PATCHUpdate an account
- Account Aliases
- (Deprecated) Plan Associations
- (Deprecated) Purchases
- (Deprecated) Proposals
- Schedules
- GET
- Aliases
- Event Schemas
- Usage Meters
- AddOns
- Licenses
- Feature
- (Deprecated) Price Plans
- Price Plan V2
- Settings
- Price Experimentation
- Jobs
- Event Ingestion
- Entitlements
- Event Management
- Metrics
- Credits
- Invoices
- Payments
- Wallet
- InvoiceGroups
- Alerts
- Reports
(Deprecated) Proposals
(DEPRECATED) Get proposal information
Get proposal information
GET
/
purchase_proposals
/
{purchase_proposal_id}
curl --request GET \
--url https://api.togai.com/purchase_proposals/{purchase_proposal_id} \
--header 'Authorization: Bearer <token>'
{
"id": "purchase.1zYnCiM9Bpg.lv25y",
"accountId": "G234DZZKBKACATFFGVGEMERFI",
"pricePlanId": "pp.1zYnCiM9Bpg.lv25y",
"quantity": 1,
"idempotencyKey": "AAAAAABBBEEEDDSS23",
"pricePlanVersion": 1,
"type": "ENTITLEMENT_GRANT",
"status": "PROPOSAL_ACTIVE",
"paymentMode": "PREPAID",
"purchasePlanOverride": {
"billingEntitlementRateCards": [
{
"featureId": "feature.20jxa18BdUW.d4XQw",
"featureConfigs": [
{
"featureCreditLimit": 100,
"effectiveUntil": "P20D"
}
],
"invoiceTiming": "IN_ADVANCE",
"ratePlan": {
"pricingModel": "TIERED",
"slabs": [
{
"order": 1,
"startAfter": 0,
"priceType": "PER_UNIT",
"slabConfig": {}
}
]
},
"rateValues": [
{
"currency": "USD",
"slabRates": [
{
"order": 1,
"rate": 1
}
]
}
],
"displayName": "feature1"
}
]
},
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-01T00:00:00Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Maximum length:
512
Example:
"purchase.20rqjgFJf2O.ejl25"
Response
200
application/json
Response for getting a specific proposal
Represents a Purchase
curl --request GET \
--url https://api.togai.com/purchase_proposals/{purchase_proposal_id} \
--header 'Authorization: Bearer <token>'
{
"id": "purchase.1zYnCiM9Bpg.lv25y",
"accountId": "G234DZZKBKACATFFGVGEMERFI",
"pricePlanId": "pp.1zYnCiM9Bpg.lv25y",
"quantity": 1,
"idempotencyKey": "AAAAAABBBEEEDDSS23",
"pricePlanVersion": 1,
"type": "ENTITLEMENT_GRANT",
"status": "PROPOSAL_ACTIVE",
"paymentMode": "PREPAID",
"purchasePlanOverride": {
"billingEntitlementRateCards": [
{
"featureId": "feature.20jxa18BdUW.d4XQw",
"featureConfigs": [
{
"featureCreditLimit": 100,
"effectiveUntil": "P20D"
}
],
"invoiceTiming": "IN_ADVANCE",
"ratePlan": {
"pricingModel": "TIERED",
"slabs": [
{
"order": 1,
"startAfter": 0,
"priceType": "PER_UNIT",
"slabConfig": {}
}
]
},
"rateValues": [
{
"currency": "USD",
"slabRates": [
{
"order": 1,
"rate": 1
}
]
}
],
"displayName": "feature1"
}
]
},
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2020-01-01T00:00:00Z"
}
Assistant
Responses are generated using AI and may contain mistakes.