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.
Request Body
{"paymentMethod"=>{"type"=>"givex", "number"=>"4126491073027401", "cvc"=>"737"}, "amount"=>{"currency"=>"EUR", "value"=>10000}, "merchantAccount"=>"{{YOUR_MERCHANT_ACCOUNT}}"}
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}}