Git Product home page Git Product logo

Comments (5)

villermen avatar villermen commented on August 17, 2024 1

@Web10-Joris I've added options for total_order_value and total_order_value_currency to the createParcel() method in #39. Note that the client does not perform any validation on these values whatsoever so please make sure to send the value as a decimal string ("99.99"). Improved validation will probably come as part of #38.

from sendcloud.

villermen avatar villermen commented on August 17, 2024

@Web10-Joris The documentation you're referring to is of the integrations API. This client supports the shipping and service points APIs right now. I've checked and there is no option to work with these properties there. It's unlikely I will be available to implement a full new API anytime soon without a PR by someone else.

I'm happy to think with you about an alternative solution for your use case though.

from sendcloud.

Web10-Joris avatar Web10-Joris commented on August 17, 2024

@villermen Thanks for your response! I see that the Shipments API also provides order_status & total_order_value as possible input options. https://api.sendcloud.dev/docs/sendcloud-public-api/parcels/operations/create-a-parcel

This is part of the Shipping API right? Then only the payment_status wouldn't be possible, but adding the other two will significantly improve the usage, since it is then possible to set insurances based on the order value and to sync the shipments with the webshop based on their order_status.

from sendcloud.

villermen avatar villermen commented on August 17, 2024

@Web10-Joris For parcel creation it appears only total_order_value+total_order_value_currency are possible because they are linked to delivery (cash on delivery). I'm not seeing the other properties in these calls/the parcel model.

An alternative route could be to send insured_value with the request (currently also not possible) and update it when the order status changes.

from sendcloud.

Web10-Joris avatar Web10-Joris commented on August 17, 2024

Will the total_order_value be supported in the future? Would be very helpful for us :)

from sendcloud.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.