getPaymentMethod

This query loads the information about the requested payment method.

General Pattern

query{
	field_1
  field_2{
    nested_field_1
    ...
    }
  }
}

Sample query

query{
  getPaymentMethod(paymentMethodID:"b2f5cdfd-3550-47ab-a5a2-e21731724ea7"){
    ... on CreditCardPaymentMethodOutput{
      id
      type
      status
      network
      last4Digit
      metadata{
        email
        phoneNumber
      }
      billingDetails{
        name
        address1
        address2
        country
        district
        city
        postalCode
      }
    }
  }
}

Sample response

{
  "data": {
    "getPaymentMethod": {
      "id": "b2f5cdfd-3550-47ab-a5a2-e21731724ea7",
      "type": "CreditCard",
      "status": "complete",
      "network": "VISA",
      "last4Digit": "0006",
      "metadata": {
        "email": "[email protected]",
        "phoneNumber": "+22980295837678"
      },
      "billingDetails": {
        "name": "Denis Avramenko",
        "address1": "bl",
        "address2": "",
        "country": "BJ",
        "district": "LI",
        "city": "Krichev",
        "postalCode": "213510"
      }
    }
  }
}

Arguments

NameTypeDescriptionRequired
paymentMethodIDUUIDThe ID of the payment methodYes

Fields

NameTypeDescription
PaymentMethodOutputunionThe payment method output consisting 3 objects (CreditCard Payment Output, Wire Payment Output, and ACH Payment Output).

Example

Load the requested payment method with basic information using payment method ID: