Skip to content

Latest commit

 

History

History
130 lines (74 loc) · 4.11 KB

AccountsApi.md

File metadata and controls

130 lines (74 loc) · 4.11 KB

\AccountsApi

All URIs are relative to https://cad.onshape.com

Method HTTP request Description
cancel_purchase_new Delete /api/accounts/{aid}/purchases/{pid} Cancel Recurring Subscription
consume_purchase Post /api/accounts/purchases/{pid}/consume Mark Purchase Consumed For User
get_plan_purchases Get /api/accounts/plans/{planId}/purchases Get Plan Purchases
get_purchases Get /api/accounts/purchases Get User's Appstore Purchases.

cancel_purchase_new

cancel_purchase_new(aid, pid, cancel_immediately) Cancel Recurring Subscription

Parameters

Name Type Description Required Notes
aid String [required]
pid String [required]
cancel_immediately Option<bool> [default to false]

Return type

(empty response body)

Authorization

OAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/json;charset=UTF-8; qs=0.09

[Back to top] [Back to API list] [Back to Model list] [Back to README]

consume_purchase

crate::models::BtPurchaseInfo consume_purchase(pid, bt_purchase_user_params) Mark Purchase Consumed For User

Parameters

Name Type Description Required Notes
pid String [required]
bt_purchase_user_params Option<BtPurchaseUserParams>

Return type

crate::models::BtPurchaseInfo

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json;charset=UTF-8; qs=0.09
  • Accept: application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/json;charset=UTF-8; qs=0.09

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_plan_purchases

crate::models::BtListResponseBtPurchaseInfo get_plan_purchases(plan_id, offset, limit) Get Plan Purchases

Parameters

Name Type Description Required Notes
plan_id String [required]
offset Option<i32> [default to 0]
limit Option<i32> [default to 20]

Return type

crate::models::BtListResponseBtPurchaseInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/json;charset=UTF-8; qs=0.09

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_purchases

Veccrate::models::BtPurchaseInfo get_purchases(all, own_purchase_only) Get User's Appstore Purchases.

Parameters

Name Type Description Required Notes
all Option<bool> [default to false]
own_purchase_only Option<bool> [default to false]

Return type

Veccrate::models::BtPurchaseInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.onshape.v1+json;charset=UTF-8;qs=0.1, application/json;charset=UTF-8; qs=0.09

[Back to top] [Back to API list] [Back to Model list] [Back to README]