# API Release news from July 02, 2024

URL: https://shoptet.dev/news/api/api-release-news-from-july-02-2024

July 1, 2024 · 3 min read
Marko Chytka

Here's what's news in API Release that's been in production since July 02, 2024!

## Breaking Changes:

#### *Preparation of stronger oAuth tokens*

- We have laid the groundwork for more secure client secrets
- The new secrets will be in the format of prefix + secret, for example: `shoasecret_123`
- The new token length will be at least 75 characters instead of 32 (but this can be extended in the future)
- The new secrets will have a limited TTL
- This change will be gradual, with multiple steps and improvements to the current UX regarding token handling/generation in the administration section of your partner shop – **You will be informed about the upcoming changes in advance**
**`Please note:`** Existing secrets will continue to work without any changes in the meantime, but they will be eventually scheduled for removal.

## Improvements:

#### *Proof payment documents enriched by vatMode*

- Some of you have pointed out the absence of the `vatMode` attribute in Proof payments documents, it is also possible to use the OSS mode
- We've enriched the documents with vatMode, as we already provide for invoices, credit notes and proforma invoices
- The vatMode is NULLable and so if it is set to `NULL` , the value will default to `Normal` by Shoptet
- attribute si now available on following endpoints:
- [List of proof payments](https://api.docs.shoptet.com/shoptet-api/openapi/proof-payments/getlistofproofpayments)
- [Proof payment detail](https://api.docs.shoptet.com/shoptet-api/openapi/proof-payments/getproofpaymentdetail)
- [Proof payment detail by order code](https://api.docs.shoptet.com/shoptet-api/openapi/proof-payments/getproofpaymentdetailbyordercode)
- [Proof payment detail by proforma invoice code](https://api.docs.shoptet.com/shoptet-api/openapi/proof-payments/getproofpaymentdetailbyproformainvoicecode)

#### *Enriched product insertion with currency*

- for those clients who use foreign currencies, we have prepared the possibility to control currencies when creating a product through [Product insertion](https://api.docs.shoptet.com/shoptet-api/openapi/products/createproduct) endpoint, by adding new optional parameters ( `currency` and `price` ) to the body of the product insertion request
- attributes cannot be NULL, you can send one, both or none of the attributes in the request body
- otherwise we will use default admin currency

#### *Enriched price list update with currency*

- if you [update the price list](https://api.docs.shoptet.com/shoptet-api/openapi/price-lists/updatepricelist) of a specific item, you can also update the currency of its price since the last release
**`Attention`** : this operation is only an update of the currency identifier and there is no currency conversion!

## New Features:

#### *PATCH Invoice link with Proof payment*

- We have identified your need for a specific endpoint to help solve the use case where an API user wants to reconnect an invoice and proof of payment received to a payment.
- Out of several options, we decided to address this through a isolated [PATCH Invoice link proof payment](https://api.docs.shoptet.com/shoptet-api/openapi/invoices/invoicelinkproofpayments%22)
- This endpoint will solve only the relationship between `invoice.code` and `proofPayments.code`

## Bugfixes:

- `404 - mistakes not found` – let's celebrate 🙂 !

**Tags:**
- [API](/news/tags/api/)
