Payments - Check Balance and Apply PM Data
POST /v2/payments/{id}/eligibility/check-balance-and-apply-pm-data
Try it (cURL):
curl --request POST \
--url https://sandbox.hyperswitch.io/v2/payments/{id}/eligibility/check-balance-and-apply-pm-data \
--header 'Content-Type: application/json' \
--header 'X-Profile-Id: <x-profile-id>' \
--header 'api-key: <api-key>' \
--data '
{
"payment_methods": [
{
"gift_card": {
"givex": {
"number": "<string>",
"cvc": "<string>"
}
}
}
]
}
'Response (200):
Authorizations
api-key (string, header) — required Publishable keys are a type of keys that can be public and have limited scope of usage.
Headers
X-Profile-Id (string) — required Profile ID associated to the payment intent
Path Parameters
id (string) — required The global payment id
Body
Content-Type: application/json
payment_methods (object[]) — required
Response (200 — application/json)
balances (object[]) — required Apply the Payment Method Data
remaining_amount (integer) — required This Unit struct represents MinorUnit in which core amount works
currency (enum) — required The three-letter ISO 4217 currency code (e.g., "USD", "EUR") for the payment amount. This field is mandatory for creating a payment.
requires_additional_pm_data (boolean) — required Whether the applied payment method balance is enough for the order amount or additional PM is required
surcharge_details (object[] | null) — Show child attributes in response
Notes / Actions
Apply the provided payment method data to check balances and eligibility for the payment intent.
The response includes remaining_amount, applied balances, whether additional payment method data is required, and any surcharge details.
Suggest edits: https://github.com/juspay/hyperswitch/edit/main/api-reference/v2/payments/payments--check-balance-and-apply-pm-data.mdx Raise issue: https://github.com/juspay/hyperswitch/issues/new?title=Issue%20on%20docs&body=Path:%20/v2/payments/payments--check-balance-and-apply-pm-data