Skip to main content

API Release news from July 02, 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​

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 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 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:​

  • 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
  • This endpoint will solve only the relationship between invoice.code and proofPayments.code

Bugfixes:​

  • 404 - mistakes not found – let’s celebrate 🙂 !