| 1 | # smbcloud-ascapi-pricing |
| 2 | |
| 3 | App Store Connect pricing: an app's price schedule, and the per-territory |
| 4 | prices and price points hanging off it. |
| 5 | |
| 6 | Reading a price takes a join across three resources, because an `appPrices` |
| 7 | row carries no money of its own. This crate does the join, so you get one |
| 8 | flat `TerritoryPrice` per territory with the amount and currency attached. |
| 9 | |
| 10 | ```toml |
| 11 | [dependencies] |
| 12 | smbcloud-ascapi-core = "0.1" |
| 13 | smbcloud-ascapi-pricing = "0.1" |
| 14 | ``` |
| 15 | |
| 16 | ```rust |
| 17 | use smbcloud_ascapi_core::{ApiKey, Client}; |
| 18 | use smbcloud_ascapi_pricing::app_price::PriceKind; |
| 19 | use smbcloud_ascapi_pricing::prelude::*; |
| 20 | |
| 21 | let client = Client::new(ApiKey::from_p8_file("KEY_ID", "ISSUER_ID", "AuthKey.p8")?); |
| 22 | let prices = client |
| 23 | .list_app_prices("APP_ID", PriceKind::Automatic, Some("IDN")) |
| 24 | .await?; |
| 25 | ``` |
| 26 | |
| 27 | See the [API docs](https://docs.rs/smbcloud-ascapi-pricing). |
| 28 | |
| 29 | ## Copyright |
| 30 | |
| 31 | © 2026 PT Sigit Mitra Bangun ([smbCloud](https://smbcloud.xyz)). |