question

leftylabs avatar image
leftylabs asked ·

Create an order with preauth through the API?

I know I can easily create an order through the API using something like this:
https://apisandbox.dev.clover.com/v3/merchants/ME... and the body just contains { state: 'open' }

My issue is that I would like to preAuth those orders by using the `preAuths` attribute that is defined in the V3 API defined here: https://www.clover.com/api_docs/#!/orders/CreateOr...

However when I enter any preAuth details....something like:
"preauths": [{"cardTransaction": { "last4": "1111", "first6": "411111", "cardholderName": "Doe, John", "currency": "USD", "cardType": "visa"}}]

I don't see any authorizations or pre-authorizations in the sandbox web portal to show that it went through. Am I doing something wrong? Do I need to add more fields?
OrdersREST APISandbox
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.

1 Answer

zgreathouse avatar image
zgreathouse answered ·
To do something like this through our API would require you to utilize our Developer API. However, our Developer API does not currently support creating preAuths.
Share
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.

Welcome to the
Clover Developer Community