question

ben-m avatar image
ben-m asked ·

Sandbox Ecommerce shipping fee not showing up in order

Hi again,

I've been following your advice for partial refunds in https://community.clover.com/questions/26686/sandbox-ecommerce-partial-refunds-returns-http-500.html by using this endpoint to get ids of items being charged.


https://sandbox.dev.clover.com/v3/merchants/{
                 {merchant_id}}/orders/{
                 {order_id}}?expand=lineItems,serviceCharge,discounts,credits,payments,customers,refunds


However, it seems to have the same problem as the clover receipt, that is, not showing up "shipping" type items.


Additionally, if I were to specify a type and amount, it will not go through, and returns a HTTP 500 like in the previous thread.

Full example in the moderated comment.




Refunde-commerce api
10 comments
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I experimented with this (refunding a shipping type) a bit and I don't think it is possible now. That being said, I really not certain what the importance of the "type" attribute is. I think it may have more to do with compatability with Stripe's old API than anything else. Is there a good reason why you need to set the type? Can you just use a regular line item here?

FYI - I am trying to get some more details from the ecomm team as well.


1 Like 1 ·
ben-m avatar image ben-m David Marginian ♦♦ ·

There's no reason for me to stick with it if you say I can do it as a line item without an issue down the road.

I just happened to set things the way they are to be as precise as possible with what the API documentation gives us so the orders can have all the right types for any edge case that would need it.

0 Likes 0 ·

I am not 100% on the validity of the approach I recommended. I haven't received a response from he ecomm team yet, I will update this thread when I do.

1 Like 1 ·
Show more comments

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community