Comments (5)
@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.
@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.
@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.
@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.
Will the total_order_value
be supported in the future? Would be very helpful for us :)
from sendcloud.
Related Issues (18)
- Return value of JouwWeb\SendCloud\Model\Parcel::JouwWeb\SendCloud\Model\{closure}() must be of the type string, null returned HOT 3
- address_2 is not available for Address Model HOT 2
- Laravel 8 compatibility HOT 1
- Unable to create labels when shipping to Germany HOT 2
- 3.8 breaks the parcel create HOT 4
- ParcelItems do not support product_id and sku HOT 1
- createParcel() fails in v3.8.0. A valid number is required for weight. HOT 1
- Support for 'to_post_number' parcel parameter HOT 4
- Uncaught Error: Class 'JouwWeb\SendCloud\Client' not found in /var/www/html/shipping/sendcloud/index.php:11 HOT 2
- Support for canonicalized header names HOT 2
- Download the pdf ? HOT 2
- House number is not required HOT 3
- Creating parcel with custom sender address requires separate house number
- Fix distorted min_weigth and max_height
- Parcel documents endpoint HOT 2
- Suggestion : moving service point methods to new class
- Improve client methods taking a lot of optional parameters HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sendcloud.