added
Checkout API changes
about 1 year ago by Rohan Ramchand
The standalone checkout API has now been updated:
- We now accept a price and a country, and decide on the currency based on what we support.
- We also accept an optional currency field, which is only used for validation. If the input currency doesn't match the supported currency for that country, we'll block the checkout creation.
- Account IDs are now a required field in the OpenAPI schema, matching their behavior in the application.
- All references to currency have been changed from "in the smallest currency unit" to "in 100x the base unit of the currency" to cover zero-decimal currencies like JPY or KRW.
- The checkout API now returns
id
instead ofcheckoutId
to better align the API with REST standards.