question

progmcb avatar image
progmcb asked acastaneda edited

error 500 https://scl-sandbox.dev.clover.com/v1/charges/{chargeId}/capture

i got a error 500 when i want to capture a charge i create with capture=false
i add all the rights in my app uninstall and reinstall it / regenerate oauth2 token

{
"message": "500 Internal Server Error",
"error": {
"type": "api_error",
"code": "processing_error",
"message": "Internal Server Error."
}
}

ecommerce
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

·
acastaneda avatar image
acastaneda answered acastaneda edited

@ Please double check that you're not missing any of the following fields:

Your OAuth token is app specific, by the way.
This is what the entire request should look like:

curl --location 'https://scl-sandbox.dev.clover.com/v1/charges/{chargeId}/capture' \
--header 'X-Clover-Merchant-Id: {
                 {mId}}' \
--header 'X-Clover-Device-Id;' \
--header 'X-POS-ID: {
                 {clientId}}' \
--header 'Idempotency-Key: {your key}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {OAuth token}' \
--data '{
"amount": 500
}'

1. https://docs.clover.com/reference/getapikey
2. https://docs.clover.com/reference/createtoken

3. https://scl-sandbox.dev.clover.com/v1/charges --> produces your chargeId

4. https://scl-sandbox.dev.clover.com/v1/charges/{chargeId}/capture

10 |2000

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

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