Skip to content

Partner Platform API Types ​

This file is auto-generated from the GraphQL schema. Do not edit directly.

It lists only the platform API operations that card partners may call, and the types they reach. The AgioCard_* and partner webhook fields are in the Cards partner API reference and the Cards partner guides.

AddressSuggestion ​

Autocomplete suggestion from Google Places API

FieldTypeDescription
textString!Display text for the suggestion
placeIdString!Google Place ID (can be used for further lookups)
mainTextString!Main text (primary part of address)
secondaryTextString!Secondary text (locality, region, country)
types[String!]!Place types (e.g., "street_address", "locality")

AddressValidationResponse ​

Response from address validation API. Uses Google Address Validation API to verify addresses.

FieldTypeDescription
successBoolean!Whether the address is valid
isValidBooleanWhether the address passed validation
confidenceAddressValidationConfidenceConfidence level of the validation (if available)
formattedAddressStringFormatted address returned by Google
locationGeocodeLocationGeocode location (latitude/longitude)
errorStringError message if validation failed

AgreementsAcceptanceInput (Input) ​

Verifiable evidence that the end user accepted the current card agreement set. agreementVersion must match the currently published agreement set exactly — a stale version is rejected.

FieldTypeDescription
agreementVersionString!Must equal the currently published agreement set version exactly, or the mutation is rejected.
documentHashes[DocumentHashInput!]!SHA-256 hash of each agreement document presented to the end user, keyed by document identifier.
acceptedAttimestamptz!When the partner asserts the end user accepted, per the partner's own records. This is
relayed, unverified information from the partner — distinct from the server-stamped
acceptance timestamp recorded on the evidence row.
endUserIpAddressStringThe end user's IP address at acceptance time, as asserted by the partner. Never the
address of the request making this call (that is the partner's own server).
endUserAgentStringThe end user's browser/client user agent at acceptance time, as asserted by the partner.

AutocompleteAddressInput (Input) ​

Input for autocomplete address search

FieldTypeDescription
inputString!Search query (partial address or place name)
includedRegionCodes[String!]Limit results to specific country codes (e.g., ["US", "ID"])

AutocompleteAddressResponse ​

Response from address autocomplete API

FieldTypeDescription
successBoolean!Whether the request was successful
suggestions[AddressSuggestion!]List of address suggestions
errorStringError message if request failed

CancelCardInput (Input) ​

Input for canceling a Card (irreversible)

FieldTypeDescription
cardIdInt!Card ID (AgioCard_card.id - our internal card ID)
reasonStringOptional reason for cancellation

CardAddressInput (Input) ​

Address input for the card issuer API applications

FieldTypeDescription
line1String!-
line2String-
cityString!-
regionString!-
postalCodeString!-
countryCodeString!-
countryString-

CardApplicationCompletionLinkResult ​

A freshly issued verification link, valid for 24 hours. Fetch a new one each time the cardholder acts.

FieldTypeDescription
successBoolean!-
completionUrlStringSigned verification URL. Open it exactly as returned.
expiresAtStringISO 8601 time after which the URL no longer works.
continueUrlStringStable link that opens a fresh verification page each time, for 14 days. Safe to store and send to the cardholder.
errorString-

CardApplicationResponse ​

FieldTypeDescription
successBoolean!-
applicantIdString-
cardApplicationIdIntInternal numeric application id (AgioCard_card_application.id). Pass this to createCard.
cardApplicationExternalIdString-
applicationStatusString-
applicationCompletionUrlStringSigned URL for the hosted verification page, returned when the application needs the cardholder
to act. Open it exactly as returned: the page rejects a request with the signature stripped, and
a URL rebuilt from a card user id carries no signature. Later in the lifecycle the same composed
link is on AgioCard_card_application.application_completion_link as completionUrl.
continueUrlStringStable link that opens a fresh verification page each time, for 14 days. Safe to store and send to the cardholder.
Present whenever applicationCompletionUrl is.
shareTokenString-
walletAddressStringEVM wallet address on the application. Echoes back the input walletAddress,
or the provisioned smart wallet address when createWallet: true was used.
errorString-
errorCodeStringMachine-readable error code if the application failed (e.g. CARD_INSUFFICIENT_FUNDS).
kycStatusPartnerCardUserKycStatusValueSet with KYC_IN_PROGRESS or KYC_NOT_APPROVED: the cardholder's Agio verification status.
kycVerificationUrlStringSet with KYC_IN_PROGRESS: a fresh hosted verification link. Omitted when the status is REJECTED.

CardBalance ​

User balance information from the card issuer API. All monetary values are in USD (converted from cents).

FieldTypeDescription
creditLimitFloat!Credit limit of the user, in USD
pendingChargesFloat!Pending charges (authorized but not settled), in USD
postedChargesFloat!Posted charges (settled transactions), in USD
balanceDueFloat!Balance due (amount owed), in USD
spendingPowerFloat!Available spending power (creditLimit - pendingCharges - postedCharges), in USD

CardBalanceResponse ​

Response from fetching card balance

FieldTypeDescription
successBoolean!-
idIntOur internal card ID (AgioCard_card.id)
balanceCardBalance-
errorString-

CardFundSubClientFromTreasuryInput (Input) ​

Input for funding a cardholder's collateral from your treasury wallet.

FieldTypeDescription
externalUserIdString!The issuer cardholder UUID: the application's card_user_id, returned as cardApplicationExternalId. Not the provisioned cardUserId.
amountCentsInt!Funding amount in integer cents.
idempotencyKeyStringOptional key, 8 to 128 letters, digits, dashes or underscores, scoped to your organization.
Sending again with the same key returns the first job and creates none. The same key with
another cardholder or amount fails with IDEMPOTENCY_KEY_REUSED.

CardFundSubClientFromTreasuryResponse ​

Response to a funding request.

FieldTypeDescription
successBoolean!-
jobIdStringJob id for status polling.
errorCodeStringSet when the request is refused: INVALID_AMOUNT, SUBCLIENT_NOT_FOUND, TREASURY_NOT_CONFIGURED,
INVALID_IDEMPOTENCY_KEY or IDEMPOTENCY_KEY_REUSED. Failures after the job starts appear in
cardFundSubClientStatus.
errorString-

CardFundSubClientStatusResponse ​

FieldTypeDescription
successBoolean!-
jobIdString!-
statusStringpending or running: in progress, wait. completed: final, txHash holds the transaction hash.
failed: nothing was sent, so it is safe to send again. submitted: the outcome is unknown, do not
send again, Agio resolves it. cancelled: final, only after you cancel a failed job.
txHashString-
failedReasonStringReadable failure reason. Do not branch on its text.
failedCodeStringFailure code, for example COLLATERAL_CONTRACT_NOT_READY, FUNDING_EXPIRED or FUNDING_NOT_SENT on a
failed job, or FUNDING_SEND_INDETERMINATE on a submitted job.
attemptsInt-
errorCodeStringRequest error: FORBIDDEN, NOT_FOUND, NOT_CANCELLABLE (cancel on a job that is not failed),
or INTERNAL_ERROR.
errorMessageString-

CardLimitInput (Input) ​

Spending limit configuration

FieldTypeDescription
amountInt!Amount in cents
frequencyCardLimitFrequency!Limit frequency period

CardLimitResponse ​

Response from updating card limit

FieldTypeDescription
successBoolean!-
idIntOur internal card ID (AgioCard_card.id)
cardIdStringcard ID
limitAmountInt-
limitFrequencyString-
errorString-

CardOperationResponse ​

Response from the card issuer API card operations (freeze, unfreeze, cancel)

FieldTypeDescription
successBoolean!-
idIntOur internal card ID (AgioCard_card.id)
cardIdStringcard ID
statusString-
errorString-
errorCodeStringMachine-readable error code if the operation failed (e.g. CARD_INSUFFICIENT_FUNDS).

CardPinResponse ​

Response from PIN operations (set/get)

FieldTypeDescription
successBoolean!-
idIntOur internal card ID (AgioCard_card.id)
encryptedPinStringEncrypted PIN. Decrypt with decryptWithSessionKey from agio-utils.
errorString-

CardReplacedCard ​

Details of a replaced card from the card issuer API

FieldTypeDescription
idString!New card ID from the card issuer
typeString!Card type (always "virtual" for replacements)
statusString!Card status after replacement
last4String!Last 4 digits of new card number
expirationMonthString!Expiration month (MM format)
expirationYearString!Expiration year (YYYY format)

CardReplacementResponse ​

Response from replacing a virtual card

FieldTypeDescription
successBoolean!-
idIntOur internal card ID (AgioCard_card.id)
newCardCardReplacedCardDetails of the new replacement card
oldCardIdStringID of the old card that was canceled
errorString-

CardSecretsResponse ​

Response from revealing card secrets

FieldTypeDescription
successBoolean!-
idIntOur internal card ID (AgioCard_card.id)
encryptedSecretsStringEncrypted card secrets JSON. Decrypt with decryptWithSessionKey from agio-utils.
Format: { pan: string, cvc: string, expiry: { month: string, year: string } }
errorString-

CardShippingInput (Input) ​

Shipping address input for physical cards

FieldTypeDescription
line1String!-
line2String-
cityString!-
regionString!-
postalCodeString!-
countryCodeString!-
phoneNumberString!Phone number (required by the card issuer API for shipping)
firstNameString-
lastNameString-
methodCardShippingMethodShipping method (standard or express)

CardTransferForPartnerInput (Input) ​

FieldTypeDescription
sourceString!The sending cardholder: an Agio user ID, a cardholder UUID, a card UUID or the full card number.
A card UUID or card number refers to the cardholder's shared balance, not to a separate card balance.
recipientString!The receiving cardholder, in any of the forms accepted by source.
amountCentsInt!-
chainIdIntDefaults to the chain in the partner treasury configuration.
tokenAddressStringDefaults to the collateral token in the partner treasury configuration. Both cardholders' contracts must accept it.
idempotencyKeyString!One key per transfer: a retry with the same key and the same payload returns the existing transfer and never moves funds twice.
16 to 64 characters of letters, digits, dash or underscore.

CardTransferForPartnerResponse ​

FieldTypeDescription
successBoolean!-
transferIdStringThe durable business ID of the transfer.
statusStringprocessing (submitted or waiting for on-chain finality), in_transit (funds left the source but the recipient credit is not recorded yet), complete or error
transactionHashString-
chainIdInt-
amountCentsInt-
feeMillicentsString-
errorCodeString-
errorString-
retryAfterSecIntSeconds until the active card issuer signature expires, on a signature conflict

CardUserContactAddressInput (Input) ​

FieldTypeDescription
line1String!-
line2String-
cityString!-
regionString!-
postalCodeString!-
countryCodeString!-

CardWithdrawForPartnerInput (Input) ​

Input for a partner-scoped collateral withdrawal routed to the partner Treasury wallet.

FieldTypeDescription
externalUserIdString!The issuer cardholder UUID: the application's card_user_id, returned as cardApplicationExternalId. Not the provisioned cardUserId.
amountCentsInt!Withdrawal amount in integer cents (e.g., 12345 = $123.45).
chainIdIntChain to withdraw from. Defaults to the partner treasury config chain_id when omitted.
dryRunBooleanWhen true, validates and prices the withdrawal without submitting an on-chain transaction.
vaspPartnerVaspInputCard Partner API Travel Rule opt-in seam (issue 3157): supply the receiving VASP to opt this
withdrawal into hosted-counterparty Travel Rule evaluation. Omit — as every partner integration
does today — and behaviour is byte-identical to before this field existed; absence means "not
participating", never "failed to comply". PERMANENTLY optional: this field must never become
required, even after a future enforcement flip.

CardWithdrawForPartnerResponse ​

Response from a partner-scoped collateral withdrawal.

FieldTypeDescription
successBoolean!-
transactionHashString-
errorCodeStringINVALID_AMOUNT
INSUFFICIENT_SPENDING_POWERCARD_SIGNING_IN_FLIGHTINTERNAL_ERROR
errorString-
spendingPowerCentsIntPopulated on INSUFFICIENT_SPENDING_POWER: available spending power in integer cents.
requestedCentsIntPopulated on INSUFFICIENT_SPENDING_POWER: the requested amount echoed back, in cents.
retryAfterSecIntPopulated on CARD_SIGNING_IN_FLIGHT: seconds to wait before retrying.

CreateCardInput (Input) ​

Input for creating a new Card (virtual or physical) Unified mutation that handles both card types via cardType discriminator.

FieldTypeDescription
cardApplicationIdInt!Card application ID (AgioCard_card_application.id) - the approved application to create card under
cardTypeCardType!Card type - determines whether shipping is required
sessionIdStringSession ID from generateEncryptionKeys mutation (required if encryptedPin provided)
encryptedPinStringEncrypted PIN (use encryptPassphraseForTransfer from agio-utils).
For virtual cards, PIN is set immediately. For physical cards, PIN is staged and set when card is activated.
limitCardLimitInputOptional spending limit
displayNameStringDisplay name on card (max 26 chars: alphanumeric, space, period, hyphen)
Can only be set at creation - immutable after.
shippingCardShippingInputShipping address - REQUIRED for physical cards, ignored for virtual
billingCardAddressInputBilling address - defaults to shipping address if omitted

CreateCardResponse ​

Response from creating a new card

FieldTypeDescription
successBoolean!-
idIntOur internal card ID (AgioCard_card.id)
cardIdStringNew card ID from the card issuer
cardTypeStringCard type (virtual or physical)
statusStringCard status after creation
last4StringLast 4 digits of card number
expirationMonthStringExpiration month
expirationYearStringExpiration year
errorString-
warnings[String!]Changes made to the request so the card could be created, e.g. a displayName cut to the 26-character issuer limit

CreatePartnerCardApplicationInput (Input) ​

FieldTypeDescription
cardUserIduuid!UUID of the card user the partner has already provisioned.
The card user's company must belong to a partner-managed organization.
walletAddressStringEthereum wallet address for the card (0x... format).
Either provide walletAddress OR set createWallet: true — exactly one is required.
createWalletBooleanWhen true, Agio provisions an org-scoped smart wallet on Base mainnet and
uses its deterministic address. Mutually exclusive with walletAddress.
autoIssueCardBooleanWhen true, the card issuer's approval creates a card automatically. Set false to create no card
at approval, then call createCard at the point your flow needs it. A createCard call on a
cardholder that already has a card adds a second card.
occupationString!SOC occupation description (e.g., "Software Developers", "Chief Executives").
annualSalaryString!Estimated annual salary in USD (string to preserve the card issuer API compatibility).
accountPurposeString!Purpose of the account (e.g., "Savings", "Business").
expectedMonthlyVolumeString!Expected monthly transaction volume in USD.
isTermsOfServiceAcceptedBoolean!The partner is responsible for collecting end-user ToS acceptance before
submitting this application. MUST be true; the card issuer rejects the application otherwise.
This is a bare assertion with no supporting evidence — prefer agreementsAcceptance,
which records verifiable acceptance evidence (document hashes, agreement version).
agreementsAcceptanceAgreementsAcceptanceInputVerifiable evidence of the end user's acceptance of the current card agreement set —
the agreement version, the SHA-256 hashes of the documents presented, and when the
partner asserts the end user accepted. Optional: when omitted, isTermsOfServiceAccepted
alone still satisfies this mutation, but no acceptance evidence is recorded for that
sign-up. When both are supplied, agreementsAcceptance is recorded as the evidence and
isTermsOfServiceAccepted must still be true.
cardNicknameStringUser-defined card nickname (optional, max 26 chars: alphanumeric, spaces, periods, hyphens).
requestedLimitAmountIntDesired credit limit amount in dollars (e.g., 25000).
requestedLimitFrequencyStringLimit frequency (e.g., "30 day", "7 day"). See CardLimitFrequency for canonical values.
sessionIdStringSession ID from the generateEncryptionKeys mutation (required if encryptedPin provided).
encryptedPinStringEncrypted PIN (use encryptPassphraseForTransfer from agio-utils).
PIN (4-6 digits) is staged during application and set automatically when the card is activated.
Must meet security requirements: no repeated digits, no sequential patterns.
partnerKycShareTokenStringOptional opaque share-token from your KYC provider workspace.
When present, Agio uses it to derive applicant data instead of requiring an
out-of-band KYC packet handover. Contact Agio onboarding to register your
workspace before using this field. Tokens are short-lived (minutes-to-hours)
and single-use — expired or replayed tokens return KYC_TOKEN_EXPIRED.

CreatePartnerCardUserInput (Input) ​

Input for partner-side cardholder provisioning. All identity fields are forwarded to the card processor when an application is created against this cardUserId. nationalId is KMS-encrypted at rest; the resolver wraps before INSERT and only unwraps when forwarding to the card processor.

FieldTypeDescription
customerOrganizationIduuid!UUID of the customer organization this cardholder belongs to. Must be a
partner-managed customer org from createPartnerCustomerOrganization.
firstNameString!First name on the cardholder's ID.
lastNameString!Last name on the cardholder's ID.
emailString!Cardholder email. Used as the idempotency key within customerOrganizationId.
addressCountryCodeString!ISO-3166 alpha-2 country code (e.g., "US") for the cardholder's address.
addressLine1String!Cardholder's street address line 1.
addressLine2StringOptional street address line 2.
addressCityString!City.
addressRegionString!State / province / region (e.g., "CA", "NSW").
addressPostalCodeString!Postal / ZIP code.
phoneCountryCodeString!Phone country dialing code, digits only (e.g., "1" for US, "44" for UK).
phoneNumberString!National phone number, digits only.
birthDateString!Date of birth in YYYY-MM-DD format.
nationalIdString!Tax / national identifier (SSN, passport number, etc). Plaintext at the API
boundary; KMS-encrypted at rest. The card processor uses this for compliance
checks during application processing.

CreatePartnerCardUserResponse ​

Response from createPartnerCardUser. The returned cardUserId is the UUID you pass to subsequent createCardApplicationForPartnerUser calls for this cardholder.

FieldTypeDescription
successBoolean!True if the cardholder was created (or already existed and was idempotently returned).
cardUserIduuidUUID of the cardholder. Stable across all future operations — store it on
your side. Pass this as cardUserId in createCardApplicationForPartnerUser.
reusedBooleanTrue when an existing cardUser was returned instead of creating a new one (see createPartnerCardUser).
customerOrganizationIduuidCustomer organization that holds the returned cardholder. Differs from the input
customerOrganizationId when reused is true and the cardholder lives under another of your orgs.
errorCodeStringMachine-readable error code if creation failed.
errorMessageStringHuman-readable error message if creation failed.
warningStringSet when creation succeeded but something about the input should be corrected before
it reaches the card processor (for example a phoneCountryCode/phoneNumber pair that isn't
valid together, or a nationalId, length or postal code advisory). It never blocks the call.
Null when there is nothing to flag.

CreatePartnerCustomerOrganizationInput (Input) ​

FieldTypeDescription
nameString!Legal name of the customer organization as registered with the partner.
Used as the default organization_name on the new AgioAuth.organization row.

CreatePartnerCustomerOrganizationResponse ​

Response from provisioning a partner-managed customer organization. The returned organizationId can be passed to createCardCorporateApplication and other partner mutations that require org-scoped context.

FieldTypeDescription
successBoolean!Whether the organization and its partner_managed_organization join row were created.
organizationIduuidUUID of the newly created AgioAuth.organization row.
errorStringError message if creation failed (e.g. duplicate name, database error).

DocumentHashInput (Input) ​

One document's identifier and the SHA-256 hash of its content, as presented to the end user.

FieldTypeDescription
keyString!Identifier of the agreement document (e.g. "card-terms-us").
sha256String!Lowercase hex-encoded SHA-256 hash of the document content.

EncryptionKeys ​

FieldTypeDescription
sessionIdString!-
keyString!-
ivString!-

GeocodeLocation ​

Geocode location from Google Address Validation

FieldTypeDescription
latitudeFloat!-
longitudeFloat!-

MultiSendFromWalletInput (Input) ​

FieldTypeDescription
sourceWalletIdInt!-
transfers[MultiSendTransferInput!]!-
idempotencyKeyString-

MultiSendFromWalletResponse ​

FieldTypeDescription
successBoolean!-
jobIdString-
alreadyEnqueuedBoolean-
errorCodeString-
errorMessageString-
retryAfterSecInt-

MultiSendJobStatusResponse ​

FieldTypeDescription
successBoolean!-
jobIdString!-
statusString-
txHashString-
failedReasonString-
attemptsInt-
errorCodeString-
errorMessageString-

MultiSendTransferInput (Input) ​

FieldTypeDescription
tokenChainIdInt!-
destinationString!-
amountString!-

Mutation ​

FieldTypeDescription
generateEncryptionKeysEncryptionKeys!-
createPartnerCardUserKycSessionPartnerCardUserKycSessionResult!Start or refresh a verification session for a cardholder. Errors: KYC_ALREADY_APPROVED, KYC_REJECTED.
importPartnerCardUserKycPartnerCardUserKycStatusResult!Reuse a Sumsub verification for a cardholder from a share token, without a card application. Agio checks it against its own verification level, so the status can need more steps. Agio must enable it for your organization. Errors: KYC_WORKSPACE_NOT_AUTHORIZED, KYC_PROVIDER_NOT_SUPPORTED, KYC_ALREADY_LINKED, KYC_TOKEN_EXPIRED, KYC_NOT_REUSABLE, KYC_SHARE_UNAVAILABLE.
disableTreasuryAutoConsolidateTreasuryAutoConsolidateResult!Switches the setting off. An admin, a user with partner_api:manage_treasury in that organization, or the partner API for its own organization. Clears the setting on the organization's treasury config, also when that config is disabled. Works whatever the flag says and while a consolidation run holds the wallet lock.
refreshCardApplicationCompletionLinkCardApplicationCompletionLinkResult!Fetch a fresh verification link for an application that needs the cardholder to act.
Links last 24 hours: call this when the cardholder is about to open one rather than reusing a stored or webhook link.
Requires the caller to own the application.
freezeCardCardOperationResponse!Freeze a Card. Calls the card issuer API and returns immediate response.
Card status will be updated via webhook.
Requires the user to own the card.
unfreezeCardCardOperationResponse!Unfreeze a Card. Calls the card issuer API and returns immediate response.
Card status will be updated via webhook.
Requires the user to own the card.
revealCardSecretsCardSecretsResponse!Reveal sensitive card details (PAN, CVC, expiry).
Requires the user to own the card.
Returns encryptedSecrets - use decryptWithSessionKey from agio-utils to decrypt JSON.
replaceVirtualCardCardReplacementResponse!Replace a virtual Card with a new one.
The old card is canceled and a new card is created with new PAN, token, and expiration.
The new card inherits spending limits from the old card.
Only virtual cards can be replaced - physical cards will return an error.
Requires the user to own the card.
setCardPinCardPinResponse!Set or update a Card's PIN.
PIN must be 4-12 digits and meet security requirements.
Requires the user to own the card.
getCardPinCardPinResponse!Retrieve a Card's PIN.
Returns encryptedPin - use decryptWithSessionKey from agio-utils to decrypt.
Requires the user to own the card.
validateAddressAddressValidationResponse!Validate an address using Google Address Validation API.
Returns validation result with confidence level (HIGH, MEDIUM, or LOW).
Useful for validating user addresses before creating cards, shipping groups, or billing operations.
Cached for 30 days per Google's recommendations.
validateCardShippingAddressAddressValidationResponse!Validate a shipping address via the card issuer's address validation endpoint.
Determines whether the card issuer can ship a physical card to this address.
Uses Google Address Validation with geocoding fallback — broader country coverage than validateAddress.
autocompleteAddressAutocompleteAddressResponse!Autocomplete address search using Google Places API.
Returns address suggestions based on partial input.
Useful for address entry forms with typeahead functionality.
Results cached for 24 hours.
resolvePlaceAddressResolvePlaceAddressResponse!Resolve a Google Place ID to a structured address object.
Use the placeId returned by autocompleteAddress to fetch precise address fields.
updateCardNicknameCardOperationResponse!Update a Card's nickname (display name).
Validates: max 26 chars, alphanumeric + spaces + periods + hyphens only.
Updates local database. Requires the user to own the card.
updateCardUserProfileCardOperationResponse!Update the card issuer user profile (address and/or phone).
Syncs to both the card issuer API and local database.
Requires the user to own the card application.
updateCardCompanyAddressCardOperationResponse!Update the card company billing address. Synced to the card processor and persisted locally.
Scoped to the customer organization on the partner key (or admin role for internal use).
updateCardLimitCardLimitResponse!Update a Card's spending limit.
Updates both the card issuer API and local database.
Requires the user to own the card application.
lockCardCardOperationResponse!Lock a Card (alias for freeze). Card cannot be used for transactions.
Use unlockCard to restore card functionality.
Requires the user to own the card.
unlockCardCardOperationResponse!Unlock a Card (alias for unfreeze). Restores card functionality.
Requires the user to own the card.
cancelCardCardOperationResponse!Cancel a Card permanently (irreversible).
Card cannot be reactivated after cancellation.
Requires the user to own the card.
createCardCreateCardResponse!Create a new Card for an approved application.
Supports both virtual and physical cards via cardType discriminator.
  • Virtual cards: PIN set immediately, card active after creation
  • Physical cards: PIN staged, shipping required, activated when received Requires an approved card application. | | replaceCard | CardReplacementResponse! | Replace an existing Card (for lost/stolen/damaged cards). Creates a new card with new PAN and credentials. The old card is canceled automatically.
  • Virtual cards: New card created immediately
  • Physical cards: Requires shipping address Requires the user to own the card. | | createPartnerCustomerOrganization | CreatePartnerCustomerOrganizationResponse! | Partner-only: Create a customer organization managed by the calling partner. Returns an organization_id that can be used with createCardCorporateApplication. | | createCardApplicationForPartnerUser | CardApplicationResponse! | Partner-only: Create a card application for a partner-provisioned card user. Skips Agio-user KYC — the partner is responsible for verifying their end-user's identity. | | createPartnerCardUser | CreatePartnerCardUserResponse! | Partner-only: Provision a cardholder (cardUser) under one of your partner-managed customer organizations. Returns the cardUserId you'll pass to createCardApplicationForPartnerUser. nationalId is KMS-encrypted at rest. Idempotent on email (case-insensitive, trimmed): the same email under the same org, or the same email, last name and birth date under another org your key manages, returns the existing cardUserId with reused: true and that cardholder's customerOrganizationId. | | patchPartnerCardUser | PatchPartnerCardUserResponse! | Partner-only: Patch PII fields on a cardholder (cardUser) previously provisioned via createPartnerCardUser. Use this to correct empty/incorrect address or contact fields before calling createCardApplicationForPartnerUser — the card issuer requires a complete address on the direct-PII path and rejects applications otherwise. Blocked once the card user's application has been submitted (non-null application status) — patching the local row after that would silently diverge from the issuer. | | updatePartnerCardUserContact | UpdatePartnerCardUserContactResponse! | Partner-only: Change the phone number and/or billing address of a cardholder you provisioned, at any application status. Unlike patchPartnerCardUser it is not blocked after an application is submitted, and the change reaches the card processor first. email is not accepted (it is the idempotency key of createPartnerCardUser). At least one of the phone pair or the address is required; the address is replaced as a whole. Limited to 1 call per minute per cardholder. | | cardWithdrawForPartner | CardWithdrawForPartnerResponse! | Partner-only: Withdraw USDC collateral from a partner-managed sub-client's collateral contract into the partner's configured Treasury wallet. The recipient is hard-locked to the treasury_wallet_address in the partner's treasury config — callers cannot supply a destination. Routes through the same owner-EOA signing + session-key UserOp path as cardWithdraw, but the recipient is the Treasury wallet, not the sub-client smart wallet. (Admin-curated recipient allowlist is deferred — see plan.md.) | | cardFundSubClientFromTreasury | CardFundSubClientFromTreasuryResponse! | Partner-only: fund a cardholder's collateral contract from your treasury wallet with an ERC-20 transfer. Returns a job id at once. Read the outcome with cardFundSubClientStatus(jobId). | | cardFundSubClientCancel | CardFundSubClientStatusResponse! | Partner-only: cancel a failed funding job. The job becomes cancelled, which is final. Any other status returns NOT_CANCELLABLE and changes nothing. | | multiSendFromWallet | MultiSendFromWalletResponse! | Partner-only: send tokens from a smart wallet to multiple destinations atomically. All transfers must resolve to the same chain. Enqueues immediately; poll multiSendJobStatus. | | cardTransferForPartner | CardTransferForPartnerResponse! | Partner-only: move collateral from one of your cardholders to another of your cardholders. The withdrawal goes from the source cardholder's collateral contract straight to the recipient's verified deposit address; callers cannot supply a destination. | | subscribePartnerWebhook | SubscribePartnerWebhookResult! | Register a new webhook subscription for the calling organization. The signingSecret in the result is returned only once — capture it immediately. | | unsubscribePartnerWebhook | UnsubscribePartnerWebhookResult! | Remove a webhook subscription. Subsequent events will not be delivered to its URL. | | rotatePartnerWebhookSecret | RotatePartnerWebhookSecretResult! | Generate a new signing secret for an existing subscription. The previous secret continues to be accepted for 24 hours. | | resendPartnerWebhookDelivery | ReplayPartnerWebhookDeliveryResult! | Re-send one of your own past deliveries with its original eventId and payload. Returns NOT_FOUND for any delivery outside your organization. Rate-limited 10/min per organization. newDeliveryId is the queue job id. It is sent as the x-agio-delivery-id header, because the delivery row for the new attempt does not exist until the send finishes. |

PartnerCardUserKycSessionResult ​

FieldTypeDescription
successBoolean!-
kindPartnerKycSessionKind-
urlStringSet for HOSTED_LINK.
tokenStringSet for SDK_TOKEN. Never log it.
errorCodeString-
errorMessageString-

PartnerCardUserKycStatusResult ​

FieldTypeDescription
successBoolean!-
statusPartnerCardUserKycStatusValue-
nextStepStringThe first step that still needs the cardholder, or null.
reasonString-
steps[PartnerCardUserKycStep!]-
errorCodeString-
errorMessageString-

PartnerCardUserKycStep ​

FieldTypeDescription
stepString!The verification step, for example IDENTITY, SELFIE or PROOF_OF_RESIDENCE.
statusString!GREEN, RED, RECEIVED (a document is held and has no review result yet) or NOT_SUBMITTED.
reasonString-

PartnerVaspInput (Input) ​

A Virtual Asset Service Provider (VASP) counterparty for a Travel Rule opt-in transfer, keyed by the Sumsub VASP directory id. Modeled on the Sumsub VASP directory entry shape (id, name).

FieldTypeDescription
idString!Sumsub VASP directory id of the receiving VASP.
nameStringDisplay name of the VASP, for logging/audit only — id is authoritative.

PatchPartnerCardUserInput (Input) ​

Input for patching PII fields on a partner-provisioned cardholder. All fields except cardUserId are optional — only the fields you provide are updated, untouched fields keep their stored value. email is deliberately excluded (it's the idempotency key for createPartnerCardUser) and customerOrganizationId is derived from the existing row, not accepted here.

FieldTypeDescription
cardUserIdString!UUID of the cardholder to patch (returned by createPartnerCardUser).
firstNameStringFirst name on the cardholder's ID.
lastNameStringLast name on the cardholder's ID.
addressLine1StringCardholder's street address line 1.
addressLine2StringOptional street address line 2.
addressCityStringCity.
addressRegionStringState / province / region (e.g., "CA", "NSW").
addressPostalCodeStringPostal / ZIP code.
addressCountryCodeStringISO-3166 alpha-2 country code (e.g., "US") for the cardholder's address.
phoneCountryCodeStringPhone country dialing code, digits only (e.g., "1" for US, "44" for UK).
phoneNumberStringNational phone number, digits only.
birthDateStringDate of birth in YYYY-MM-DD format.
nationalIdStringTax / national identifier (SSN, passport number, etc). Plaintext at the API
boundary; KMS-encrypted at rest.

PatchPartnerCardUserResponse ​

Response from patchPartnerCardUser.

FieldTypeDescription
successBoolean!True if the cardholder row was updated.
errorCodeStringMachine-readable error code if the patch failed.
errorMessageStringHuman-readable error message if the patch failed.
warningStringSet when the patch succeeded but something about the input should be corrected before
it reaches the card processor (for example a phoneCountryCode/phoneNumber pair that isn't
valid together, or a nationalId, length or postal code advisory). It never blocks the call.
Null when there is nothing to flag.

Query ​

FieldTypeDescription
partnerCardUserKycStatusPartnerCardUserKycStatusResult!Read-only verification status for a cardholder.
cardBalanceCardBalanceResponse!Get balance for a Card.
Returns credit limit, pending charges, posted charges, balance due, and spending power.
Requires the user to own the card.
multiSendJobStatusMultiSendJobStatusResponse!Partner-only: poll the status of a multisend job (scoped to the caller's partner org).
cardFundSubClientStatusCardFundSubClientStatusResponse!Partner-only: read the outcome of a cardFundSubClientFromTreasury job of your organization.
Returns the status, the transaction hash when completed, and failedCode and failedReason on failure.

ReplaceCardInput (Input) ​

Input for replacing an existing card (lost/stolen/damaged)

FieldTypeDescription
cardIdInt!Card ID (AgioCard_card.id - our internal card ID)
reasonCardReplacementReason!Reason for replacement
shippingAddressCardShippingInputShipping address for physical card replacement (required for physical cards)

ReplayPartnerWebhookDeliveryResult ​

FieldTypeDescription
successBoolean!-
newDeliveryIdStringThe id of the newly enqueued delivery — distinct from the original deliveryId.
errorCodeString-
errorMessageString-

ResolvedPlaceAddress ​

Structured address resolved from a Google Place ID

FieldTypeDescription
line1String!-
cityString!-
regionString!-
postalCodeString!-
countryCodeString!-
countryString-
formattedAddressString-

ResolvePlaceAddressResponse ​

Response from resolving a place ID to a structured address

FieldTypeDescription
successBoolean!-
addressResolvedPlaceAddress-
errorString-

RotatePartnerWebhookSecretResult ​

FieldTypeDescription
successBoolean!-
signingSecretStringReturned ONCE on rotate. Capture immediately — never readable again.
The previous secret continues to be accepted for 24 hours after rotation to allow
zero-downtime handover on the receiving side.
previousSecretValidUntilString-
errorCodeString-
errorMessageString-

SetCardPinInput (Input) ​

Input for setting a card PIN

FieldTypeDescription
cardIdInt!Card ID (AgioCard_card.id - our internal card ID)
sessionIdString!Session ID from generateEncryptionKeys mutation
encryptedPinString!Encrypted PIN (use encryptPassphraseForTransfer from agio-utils).
PIN must be 4-12 digits and meet security requirements:
  • No repeated digits (1111, 0000)
  • No sequential ascending (1234, 2345)
  • No sequential descending (4321, 9876) |

SubscribePartnerWebhookInput (Input) ​

FieldTypeDescription
organizationIdIDThe partner organization to subscribe for. Required for a logged-in user, who needs partner_api:manage_webhooks
in it; ignored for a partner API token, which always acts on its own organization.
urlString!HTTPS URL that will receive signed event POSTs. Private / loopback / cloud-metadata IPs are rejected.
events[PartnerWebhookEvent!]!Events to subscribe to. At least one required.

SubscribePartnerWebhookResult ​

FieldTypeDescription
successBoolean!-
subscriptionIdID-
signingSecretStringReturned ONCE on create. Capture it immediately — it is never readable again.
Use it to verify HMAC-SHA256 signatures on incoming event POSTs (x-agio-signature header).
errorCodeString-
errorMessageString-

TreasuryAutoConsolidateResult ​

FieldTypeDescription
successBoolean!-
autoConsolidateBooleanThe setting after the call. Null when the call failed.
errorCodeString-
errorMessageString-

UnsubscribePartnerWebhookResult ​

FieldTypeDescription
successBoolean!-
errorCodeString-
errorMessageString-

UpdateCardCompanyAddressInput (Input) ​

Input for updating the card issuer company address

FieldTypeDescription
cardApplicationIdInt!Card application ID to identify the the card issuer company
addressCardAddressInput!Updated company address

UpdateCardLimitInput (Input) ​

Input for updating a Card's spending limit

FieldTypeDescription
cardIdInt!Card ID (AgioCard_card.id - our internal card ID)
limitAmountIntLimit amount in cents (e.g., 50000 = $500.00). Required unless removeLimit is true.
limitFrequencyCardLimitFrequencyLimit frequency period. Required unless removeLimit is true.
removeLimitBooleanTrue sets the largest per-transaction limit the card issuer accepts (2147483647 cents), so the card can spend its full available balance. Send no limitAmount or limitFrequency with it.

UpdateCardUserProfileInput (Input) ​

Input for updating the card issuer user billing address

FieldTypeDescription
cardApplicationIdInt!Card application ID to identify the the card issuer user
addressCardAddressInput!Updated billing address

UpdatePartnerCardUserContactInput (Input) ​

Contact fields to change on a partner-provisioned cardholder. Send phoneCountryCode and phoneNumber together, the full address, or both. A phone pair that does not validate is rejected with VALIDATION_ERROR.

FieldTypeDescription
cardUserIdString!UUID of the cardholder (returned by createPartnerCardUser).
phoneCountryCodeStringPhone country dialing code, digits only (e.g., "1" for US, "44" for UK).
phoneNumberStringNational phone number, digits only.
addressCardUserContactAddressInputNew billing address; every field except line2 is required.

UpdatePartnerCardUserContactResponse ​

Response from updatePartnerCardUserContact.

FieldTypeDescription
successBoolean!-
errorCodeStringVALIDATION_ERROR
errorMessageString-
warningString-
cardUserIdString!-
updatedFields[String!]!Contact fields that were changed: phone, address

ValidateAddressInput (Input) ​

Input for validating an address

FieldTypeDescription
addressCardAddressInput!Address to validate before creating cards, shipping groups, or billing operations