Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 3.61 KB

File metadata and controls

61 lines (43 loc) · 3.61 KB

Refunds

Overview

Available Operations

  • get - Get refund

get

Fetch a refund.

Example Usage

from gr4vy import Gr4vy
import os


with Gr4vy(
    merchant_account_id="default",
    bearer_auth=os.getenv("GR4VY_BEARER_AUTH", ""),
) as g_client:

    res = g_client.refunds.get(refund_id="6a1d4e46-14ed-4fe1-a45f-eff4e025d211")

    # Handle response
    print(res)

Parameters

Parameter Type Required Description Example
refund_id str ✔️ The ID of the refund 6a1d4e46-14ed-4fe1-a45f-eff4e025d211
merchant_account_id Optional[str] The ID of the merchant account to use for this request. default
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.Refund

Errors

Error Type Status Code Content Type
errors.Error400 400 application/json
errors.Error401 401 application/json
errors.Error403 403 application/json
errors.Error404 404 application/json
errors.Error405 405 application/json
errors.Error409 409 application/json
errors.HTTPValidationError 422 application/json
errors.Error425 425 application/json
errors.Error429 429 application/json
errors.Error500 500 application/json
errors.Error502 502 application/json
errors.Error504 504 application/json
errors.APIError 4XX, 5XX */*