getPaymentsByUserID

This query loads payment information based on the user ID.

General Pattern

query{
	getPaymentsByUserID(orgID: "UUID1", userID: "UUID1"){
  	field_1
    field_2 {
       nested_field_1
       ...
    }
  }
}

Sample Query

query{
  getPaymentsByUserID(orgID: "a1dc174d-abf4-47d3-be3c-9281c6eba456", userID: "32d036c3-642b-488b-ba10-e82580d66bd7"){
    id
    userID
    invoiceID
    paymentMethodID
    status
  }
}

Sample Response

{
  "data": {
    "getPaymentsByUserID": []
  }
}

Arguments

Name

Type

Description

Required

orgID

UUID1

The organization ID.

Yes

userID

UUID1

The user ID.

Yes

Fields

Name

Type

Description

Payment

Object

Contains all the information from Payment such as the payment ID, the user ID, the invoice ID, the circle Payment ID, the payment Method ID and the status.

Example

Load the payment data based on a user ID: