creditors
Query
Fetch Creditors.
Query Signature
query { creditors(where: CreditorWhereInput, skip: Int, search: String, after: String, first: Int, before: String, last: Int): CreditorResponse}Example Request
query Creditors($where: CreditorWhereInput, $skip: Int, $search: String, $after: String, $first: Int, $before: String, $last: Int) { creditors(where: $where, skip: $skip, search: $search, after: $after, first: $first, before: $before, last: $last) { # Add fields you want to retrieve }}Example Variables:
{ "first": 10, "search": "Capital"}Open in Apollo Studio Explorer →
Click the link above to open this query in Apollo Studio Explorer with the query pre-filled. You’ll need to authenticate with your sandbox credentials.
Example Response
{ "data": { "creditors": { "data": { "totalCount": 3, "pageInfo": { "hasNextPage": false, "hasPreviousPage": false, "startCursor": "cursor-1", "endCursor": "cursor-3" }, "edges": [ { "cursor": "cursor-1", "node": { "creditorId": "cred-001", "creditorName": "Capital One", "createdAt": "2024-01-15T10:00:00.000Z" } }, { "cursor": "cursor-2", "node": { "creditorId": "cred-002", "creditorName": "Capital One Auto Finance", "createdAt": "2024-02-20T14:30:00.000Z" } }, { "cursor": "cursor-3", "node": { "creditorId": "cred-003", "creditorName": "Capital One Bank", "createdAt": "2024-03-10T09:15:00.000Z" } } ] }, "errors": null } }}Arguments
| Argument | Type | Description |
|---|---|---|
where | CreditorWhereInput | Filter conditions for creditors |
Input Types
CreditorWhereInput
Where conditions for filtering Creditorslist.
Optional Fields:
| Field | Type | Description |
|---|---|---|
updatedAfter | String | ISO time format with optional time offset. Valid examples:- 2025-01-01T00:00:00.233Z | 2025-01-01T00:00:00.233 | 2025-01-01T00:00:00.233-0000 | 2025-01-01T00:00:00.233-00:00 | 2025-01-01T00:00:… |
Response Type
Returns: CreditorResponse
CreditorResponse
CreditorResponse
| Field | Type | Description |
|---|---|---|
data | CreditorConnection | Creditor Connection. |
errors | [CreditorResponseError] | Error(s) mesage list |
CreditorConnection
Pagination connection for Creditors.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination information |
edges | [CreditorEdge]! | List of creditor edges |
totalCount | Int! | Total number of creditors matching the query |
PageInfo
Page information for navigating collections.
| Field | Type | Description |
|---|---|---|
hasNextPage | Boolean! | Whether there are more results after the current page |
startCursor | String | Cursor pointing to the first item in the current page |
endCursor | String | Cursor pointing to the last item in the current page |
CreditorEdge
Edge type for Creditor.
| Field | Type | Description |
|---|---|---|
node | CreditorNode | The creditor data |
cursor | String! | Cursor for pagination |
CreditorNode
Creditor Node
| Field | Type | Description |
|---|---|---|
creditorId | ID! | Creditor ID |
creditorName | String! | Creditor Name |
createdAt | String | Creditor created at date ISO format |
CreditorResponseError
CreditorResponse Error
| Field | Type | Description |
|---|---|---|
message | String | Error message |
Error Types
The response may include the following error types:
CreditorResponseError
CreditorResponse Error
| Field | Type | Description |
|---|---|---|
message | String | Error message |
Common Errors
| Error Code | Description | Resolution |
|---|---|---|
VALIDATION_ERROR | Input validation failed | Check required fields and formats |
UNAUTHORIZED | Invalid or expired token | Re-authenticate and retry |
NOT_FOUND | Resource not found | Verify the ID or reference |