Logo
Adyen APIs API Documentation

Get gift card balance specifying amount of 100 EUR

POST {{baseUrl}}/paymentMethods/balance

Retrieves the balance remaining on a shopper's gift card. To check a gift card's balance, make a POST /paymentMethods/balance call and include the gift card's details inside a paymentMethod object.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string
Idempotency-Key
null A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).




RESPONSES

status OK

{ "pspReference": "FKSPNCQ8HXSKGK82", "resultCode": "NotEnoughBalance", "balance": { "currency": "EUR", "value": 5000 } }



Curl
curl -X POST 'https://checkout-test.adyen.com/v71/paymentMethods/balance' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Idempotency-Key: ' -d '{"paymentMethod":{"type":"givex","number":"4126491073027401","cvc":"737"},"amount":{"currency":"EUR","value":10000},"merchantAccount":""}'

ENDPOINTS