Skip to main content

Relations Overview

RelationshipTypeDescription
PayoutAccount → OnboardingOne-to-OneA payout account has one onboarding record
PayoutAccount → PayoutOne-to-ManyA payout account has many payouts
Payout → PayoutReversalOne-to-ManyA payout can have many reversals

Data Models

PayoutAccount

This documentation provides a reference to the PayoutAccount data model. It belongs to the Payout Module.
FieldTypeDescription
idPrimaryKeyModifier<IdProperty>The ID of the payout account.
statusEnumProperty<["pending", "active", "disabled"]>The status of the payout account. Defaults to pending.
reference_idTextPropertyThe ID of the payout account in the external provider’s system (e.g., Stripe Connect account ID).
dataJSONPropertyThe data returned by the payout provider when the account is created.
contextJSONPropertyAdditional context data for the payout account.
onboardingHasOne<Onboarding>The associated Onboarding record.
payoutsHasMany<Payout>The associated Payout records.

Onboarding

This documentation provides a reference to the Onboarding data model. It belongs to the Payout Module.
FieldTypeDescription
idPrimaryKeyModifier<IdProperty>The ID of the onboarding.
dataJSONPropertyThe onboarding data returned by the payout provider.
contextJSONPropertyAdditional context data for the onboarding process.
payout_accountBelongsTo<PayoutAccount>The associated PayoutAccount.

Payout

This documentation provides a reference to the Payout data model. It belongs to the Payout Module.
FieldTypeDescription
idPrimaryKeyModifier<IdProperty>The ID of the payout.
currency_codeTextPropertyThe ISO 3 currency code of the payout. For example, usd.
amountBigNumberPropertyThe amount of the payout
dataJSONPropertyThe payout data returned by the payout provider (e.g., Stripe payout details).
payout_accountBelongsTo<PayoutAccount>The associated PayoutAccount.
reversalsHasMany<PayoutReversal>The associated PayoutReversal records.

PayoutReversal

This documentation provides a reference to the PayoutReversal data model. It belongs to the Payout Module.
FieldTypeDescription
idPrimaryKeyModifier<IdProperty>The ID of the payout reversal.
currency_codeTextPropertyThe ISO 3 currency code of the payout reversal. For example, usd.
amountBigNumberPropertyThe amount of the payout reversal
dataJSONPropertyThe reversal data returned by the payout provider.
payoutBelongsTo<Payout>The associated Payout.