question

belleza avatar image
belleza asked belleza commented

Supporting Exchanges through API endpoints

How does clover supports exchanges through API endpoints?

LineItems
10 |2000

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

1 Answer

Mark Mullan avatar image
Mark Mullan Deactivated answered belleza commented

Hi Belleza,

The API endpoint you're looking for is:

https://www.clover.com/v3/merchants/{MID}/orders/{orderID}/line_items/{oldLineItemID}/exchange/{lineItemId}

Thanks,

Mark

1 comment
10 |2000

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

belleza avatar image belleza commented ·

This doesn't seem to work. https://www.clover.com/apidocs#orders...

I am getting the following response.

HTTP/1.1 400 Bad Request content-length: 46 content-type: application/json; charset=utf-8 X-Frame-Options: SAMEORIGIN

{"message":"Request must contain a line item"}

Command: curl -i -X POST -H "Content-Type: application/json" --header "Authorization: Bearer XXXXXXXXXXXXXXXXX" https://api.clover.com:443/v3/merchan...

Response: HTTP/1.1 400 Bad Request content-length: 46 content-type: application/json; charset=utf-8 X-Frame-Options: SAMEORIGIN

{"message":"Request must contain a lin

0 Likes 0 ·

Welcome to the
Clover Developer Community