curl --request PATCH \
--url https://api.wellapp.ai/v1/transactions/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "transaction",
"attributes": {
"status": "completed",
"executed_at": "2024-01-15T14:35:00Z",
"booking_date": "2024-01-15",
"value_date": "2024-01-15",
"settlement_amount": {
"currency": "USD",
"amount": 1355.25
},
"foreign_exchange": {
"currency_rate": "1.0842",
"currency_rate_source": "ECB",
"currency_rate_at": "2024-01-15T14:35:00Z"
},
"remittance_information": {
"unstructured": "Salary payment January 2024 - Updated",
"structured_reference": "RF18539007547034",
"reference_type": "SCOR"
},
"fees": [
{
"type": "transfer_fee",
"amount": 2.5,
"currency": "EUR"
},
{
"type": "exchange_fee",
"amount": 7.5,
"currency": "EUR"
}
]
},
"relationships": {
"documents": {
"data": [
{
"type": "invoice",
"id": "550e8400-e29b-41d4-a716-446655440004"
},
{
"type": "document",
"id": "550e8400-e29b-41d4-a716-446655440020"
}
]
}
}
}
'{
"data": {
"type": "transaction",
"id": "550e8400-e29b-41d4-a716-446655440010",
"attributes": {
"scheme": "sepa",
"external_ids": {
"transaction_id": "TXN_SEPA_20240115_001",
"payment_request_id": "PAY_REQ_001",
"end_to_end_id": "E2E_20240115_ACME_001"
},
"requested_execution_date": "2024-01-15",
"executed_at": "2024-01-15T14:35:00Z",
"booking_date": "2024-01-15",
"value_date": "2024-01-15",
"instructed_amount": {
"currency": "EUR",
"amount": 1250
},
"settlement_amount": {
"currency": "USD",
"amount": 1355.25
},
"foreign_exchange": {
"currency_rate": "1.0842",
"currency_pair": "EURUSD",
"currency_rate_source": "ECB",
"currency_rate_at": "2024-01-15T14:35:00Z"
},
"transaction_type": "transfer",
"status": "completed",
"category_purpose": "CBFF",
"purpose_code": "SALA",
"remittance_information": {
"unstructured": "Salary payment January 2024 - Updated",
"structured_reference": "RF18539007547034",
"reference_type": "SCOR"
},
"fees": [
{
"type": "transfer_fee",
"amount": 2.5,
"currency": "EUR"
},
{
"type": "exchange_fee",
"amount": 7.5,
"currency": "EUR"
}
],
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-15T14:40:00Z"
},
"relationships": {
"debtor_payment_means": {
"data": {
"type": "payment_means",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
},
"creditor_payment_means": {
"data": {
"type": "payment_means",
"id": "550e8400-e29b-41d4-a716-446655440001"
}
},
"debtor": {
"data": {
"type": "company",
"id": "550e8400-e29b-41d4-a716-446655440002"
}
},
"creditor": {
"data": {
"type": "people",
"id": "550e8400-e29b-41d4-a716-446655440003"
}
},
"documents": {
"data": [
{
"type": "invoice",
"id": "550e8400-e29b-41d4-a716-446655440004"
},
{
"type": "document",
"id": "550e8400-e29b-41d4-a716-446655440020"
}
]
},
"created_by": {
"data": {
"type": "people",
"id": "550e8400-e29b-41d4-a716-446655440005"
}
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440006"
}
]
}
}
},
"included": [
{
"type": "payment_means",
"id": "550e8400-e29b-41d4-a716-446655440000",
"attributes": {
"type": "account_details",
"status": "active",
"nickname": "Business Primary Account",
"description": "Main SEPA account for outgoing payments"
}
},
{
"type": "payment_means",
"id": "550e8400-e29b-41d4-a716-446655440001",
"attributes": {
"type": "account_details",
"status": "active",
"nickname": "Employee Salary Account",
"description": "Dedicated account for receiving salary payments"
}
},
{
"type": "company",
"id": "550e8400-e29b-41d4-a716-446655440002",
"attributes": {
"name": "Acme Corporation",
"description": "Leading technology solutions provider"
}
},
{
"type": "people",
"id": "550e8400-e29b-41d4-a716-446655440003",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"job_title": "Software Engineer"
}
},
{
"type": "invoice",
"id": "550e8400-e29b-41d4-a716-446655440004",
"attributes": {
"invoice_number": "INV-2024-0115",
"amount": 1250,
"currency": "EUR",
"status": "paid"
}
},
{
"type": "document",
"id": "550e8400-e29b-41d4-a716-446655440020",
"attributes": {
"name": "Payment Receipt",
"filename": "receipt-2024-0115.pdf",
"content_type": "application/pdf"
}
}
]
}Update a financial transaction record with comprehensive payment details, foreign exchange information, remittance data, fees, and relationship associations. This endpoint supports:
Partial updates: All fields are optional - only provide the fields you want to update.
Status management: Update transaction status from pending to completed, failed, or cancelled.
Relationship updates: Modify debtor/creditor payment means, entities, documents, and workspace associations.
Financial adjustments: Update amounts, foreign exchange rates, fees, and remittance information.
Audit trail: Automatically updates the updated_at timestamp while preserving creation history.
Data integrity: Validates business rules and maintains consistency across related entities.
curl --request PATCH \
--url https://api.wellapp.ai/v1/transactions/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "transaction",
"attributes": {
"status": "completed",
"executed_at": "2024-01-15T14:35:00Z",
"booking_date": "2024-01-15",
"value_date": "2024-01-15",
"settlement_amount": {
"currency": "USD",
"amount": 1355.25
},
"foreign_exchange": {
"currency_rate": "1.0842",
"currency_rate_source": "ECB",
"currency_rate_at": "2024-01-15T14:35:00Z"
},
"remittance_information": {
"unstructured": "Salary payment January 2024 - Updated",
"structured_reference": "RF18539007547034",
"reference_type": "SCOR"
},
"fees": [
{
"type": "transfer_fee",
"amount": 2.5,
"currency": "EUR"
},
{
"type": "exchange_fee",
"amount": 7.5,
"currency": "EUR"
}
]
},
"relationships": {
"documents": {
"data": [
{
"type": "invoice",
"id": "550e8400-e29b-41d4-a716-446655440004"
},
{
"type": "document",
"id": "550e8400-e29b-41d4-a716-446655440020"
}
]
}
}
}
'{
"data": {
"type": "transaction",
"id": "550e8400-e29b-41d4-a716-446655440010",
"attributes": {
"scheme": "sepa",
"external_ids": {
"transaction_id": "TXN_SEPA_20240115_001",
"payment_request_id": "PAY_REQ_001",
"end_to_end_id": "E2E_20240115_ACME_001"
},
"requested_execution_date": "2024-01-15",
"executed_at": "2024-01-15T14:35:00Z",
"booking_date": "2024-01-15",
"value_date": "2024-01-15",
"instructed_amount": {
"currency": "EUR",
"amount": 1250
},
"settlement_amount": {
"currency": "USD",
"amount": 1355.25
},
"foreign_exchange": {
"currency_rate": "1.0842",
"currency_pair": "EURUSD",
"currency_rate_source": "ECB",
"currency_rate_at": "2024-01-15T14:35:00Z"
},
"transaction_type": "transfer",
"status": "completed",
"category_purpose": "CBFF",
"purpose_code": "SALA",
"remittance_information": {
"unstructured": "Salary payment January 2024 - Updated",
"structured_reference": "RF18539007547034",
"reference_type": "SCOR"
},
"fees": [
{
"type": "transfer_fee",
"amount": 2.5,
"currency": "EUR"
},
{
"type": "exchange_fee",
"amount": 7.5,
"currency": "EUR"
}
],
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-15T14:40:00Z"
},
"relationships": {
"debtor_payment_means": {
"data": {
"type": "payment_means",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
},
"creditor_payment_means": {
"data": {
"type": "payment_means",
"id": "550e8400-e29b-41d4-a716-446655440001"
}
},
"debtor": {
"data": {
"type": "company",
"id": "550e8400-e29b-41d4-a716-446655440002"
}
},
"creditor": {
"data": {
"type": "people",
"id": "550e8400-e29b-41d4-a716-446655440003"
}
},
"documents": {
"data": [
{
"type": "invoice",
"id": "550e8400-e29b-41d4-a716-446655440004"
},
{
"type": "document",
"id": "550e8400-e29b-41d4-a716-446655440020"
}
]
},
"created_by": {
"data": {
"type": "people",
"id": "550e8400-e29b-41d4-a716-446655440005"
}
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440006"
}
]
}
}
},
"included": [
{
"type": "payment_means",
"id": "550e8400-e29b-41d4-a716-446655440000",
"attributes": {
"type": "account_details",
"status": "active",
"nickname": "Business Primary Account",
"description": "Main SEPA account for outgoing payments"
}
},
{
"type": "payment_means",
"id": "550e8400-e29b-41d4-a716-446655440001",
"attributes": {
"type": "account_details",
"status": "active",
"nickname": "Employee Salary Account",
"description": "Dedicated account for receiving salary payments"
}
},
{
"type": "company",
"id": "550e8400-e29b-41d4-a716-446655440002",
"attributes": {
"name": "Acme Corporation",
"description": "Leading technology solutions provider"
}
},
{
"type": "people",
"id": "550e8400-e29b-41d4-a716-446655440003",
"attributes": {
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"job_title": "Software Engineer"
}
},
{
"type": "invoice",
"id": "550e8400-e29b-41d4-a716-446655440004",
"attributes": {
"invoice_number": "INV-2024-0115",
"amount": 1250,
"currency": "EUR",
"status": "paid"
}
},
{
"type": "document",
"id": "550e8400-e29b-41d4-a716-446655440020",
"attributes": {
"name": "Payment Receipt",
"filename": "receipt-2024-0115.pdf",
"content_type": "application/pdf"
}
}
]
}Bearer token for authentication
The unique identifier of the transaction to update
Show child attributes
Resource type identifier
"transaction"Partial update attributes for transaction. All fields are optional for PATCH operations.
Show child attributes
Updated transaction status. See transaction status for details.
pending, processing, authorized, completed, failed, rejected, cancelled, reversed Updated execution timestamp in ISO 8601 format
Updated booking date in YYYY-MM-DD format
Updated value date in YYYY-MM-DD format
Show child attributes
Updated exchange rate as string for precision
Updated source of exchange rate (e.g., ECB, Fed, manual)
Updated currency pair (e.g., EURUSD)
Show child attributes
Updated fee type
commission, service, processing, transfer, atm, overdraft, monthly, card, other Updated fee currency
Updated fee amount
0.01Updated fee description
Show child attributes
Updated unstructured remittance information
Show child attributes
Updated payment reference
Updated reference type
SCOR, CBFF, REMI, RADM Updated reference issuer
Show child attributes
Updated creditor reference
Updated creditor reference type
Updated creditor reference issuer
Updated additional metadata
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Type of debtor entity
company, people UUID of an existing company or person, or temp-id that references an entity defined in the included array (entity that initiated the payment)
Show child attributes
Show child attributes
Type of creditor entity
company, people UUID of an existing company or person, or temp-id that references an entity defined in the included array (entity that received the payment)
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
"payment_means"Temp-id that references a payment means in the relationships
Show child attributes
Type of payment means. See payment means types for details.
card_details, account_details, wallet_details, ... Payment scheme or network. See scheme types for details.
SEPA, SWIFT, ACH, ... Current status of the payment means. See payment means status for details.
active, inactive, pending_verification, suspended, expired, blocked Bank account details for account_details type
Show child attributes
International Bank Account Number
Bank Identifier Code (SWIFT)
Bank sort code (UK)
Local account number (alternative to IBAN)
Bank routing number (US ACH)
Currency code (ISO 4217)
Additional bank information
Show child attributes
Name of the bank
Bank code or identifier
Bank branch name
Bank branch code
Credit/debit card details for card_details type
Show child attributes
Masked Primary Account Number (PCI DSS compliant)
Card brand
visa, mastercard, amex, discover, diners, jcb, unionpay, other Type of card
credit, debit, prepaid, charge Card expiry month
1 <= x <= 12Card expiry year
x >= 2024Name as printed on card
Digital wallet details for wallet_details type
Show child attributes
Digital wallet provider
paypal, applepay, googlepay, stripe, square, venmo, cashapp, other Wallet identifier (email, phone, etc.)
Type of wallet account
personal, business, merchant Compliance and verification status
Show child attributes
Know Your Customer verification status
pending, in_progress, completed, failed, not_required Anti-Money Laundering check status
pending, in_progress, cleared, flagged, not_required User-friendly name for the payment means
100Additional description of the payment means
500Tags for categorization
Show child attributes
"payment_mean"Temp-id that references a creditor payment means in the relationships
Show child attributes
Type of payment means. See payment means types for details.
card_details, account_details, wallet_details, ... Payment scheme or network. See scheme types for details.
SEPA, SWIFT, ACH, ... Current status of the payment means. See payment means status for details.
active, inactive, pending_verification, suspended, expired, blocked Bank account details for account_details type
Show child attributes
International Bank Account Number
Bank Identifier Code (SWIFT)
Bank sort code (UK)
Local account number (alternative to IBAN)
Bank routing number (US ACH)
Currency code (ISO 4217)
Additional bank information
Show child attributes
Name of the bank
Bank code or identifier
Bank branch name
Bank branch code
Credit/debit card details for card_details type
Show child attributes
Masked Primary Account Number (PCI DSS compliant)
Card brand
visa, mastercard, amex, discover, diners, jcb, unionpay, other Type of card
credit, debit, prepaid, charge Card expiry month
1 <= x <= 12Card expiry year
x >= 2024Name as printed on card
Digital wallet details for wallet_details type
Show child attributes
Digital wallet provider
paypal, applepay, googlepay, stripe, square, venmo, cashapp, other Wallet identifier (email, phone, etc.)
Type of wallet account
personal, business, merchant Compliance and verification status
Show child attributes
Know Your Customer verification status
pending, in_progress, completed, failed, not_required Anti-Money Laundering check status
pending, in_progress, cleared, flagged, not_required User-friendly name for the payment means
100Additional description of the payment means
500Tags for categorization
Show child attributes
Show child attributes
"company"Temp-id that references a debtor in the relationships
Show child attributes
Show child attributes
Language settings.That’s the locale for the business relationship. Emails or documents can be used to identify the locale. Default EN.
"en-US"
The domain url from the website or email address of the company. Used as unique identifier in some cases.
"https://www.techcorp.com"
Show child attributes
Tax ID issued by local or national tax authority.
"DE123456789"
Type of tax ID, useful for applying formatting and validation rules.all tax id types See all available labels for complete list.
["VAT", "TVA", "IVA", "..."]Show child attributes
Legal entity structure type. See all business entity types for complete list.
Inc, Corp, LLC, GmbH, Ltd, SA, SAS "GmbH"
Official company registration number.
"HRB 123456"
Name of the official registration body. See all available registry name for complete list.
"Handelsregister Berlin"
Country of the registry authority. Must be valid ISO country code
"DE, FR, US, etc."
Company description explaining business purpose in max 2 sentences.
1 - 500"An innovative technology company focused on AI solutions"
Show child attributes
Show child attributes
"company"Temp-id that references a creditor in the relationships
Show child attributes
Show child attributes
Language settings.That’s the locale for the business relationship. Emails or documents can be used to identify the locale. Default EN.
"en-US"
The domain url from the website or email address of the company. Used as unique identifier in some cases.
"https://www.techcorp.com"
Show child attributes
Tax ID issued by local or national tax authority.
"DE123456789"
Type of tax ID, useful for applying formatting and validation rules.all tax id types See all available labels for complete list.
["VAT", "TVA", "IVA", "..."]Show child attributes
Legal entity structure type. See all business entity types for complete list.
Inc, Corp, LLC, GmbH, Ltd, SA, SAS "GmbH"
Official company registration number.
"HRB 123456"
Name of the official registration body. See all available registry name for complete list.
"Handelsregister Berlin"
Country of the registry authority. Must be valid ISO country code
"DE, FR, US, etc."
Company description explaining business purpose in max 2 sentences.
1 - 500"An innovative technology company focused on AI solutions"
Show child attributes
Show child attributes
document, invoice Temp-id that references a documents in the relationships
Show child attributes
Show child attributes
"people"Temp-id that references a people who create the transaction in the relationships
Show child attributes
Show child attributes
"workspace"Temp-id that workspaces a creditor in the relationships
Show child attributes
Workspace name
1 - 255Workspace description
1000Avatar color in hexadecimal format (e.g., #FF5733)
External workspace identifier
1 - 255Transaction updated successfully
Show child attributes
"transaction"UUID of the created transaction
"550e8400-e29b-41d4-a716-446655440010"
Show child attributes
Payment scheme used for the transaction
sepa, swift, ach, faster_payments, instant_credit_transfer Show child attributes
Date when transaction execution was requested
Timestamp when transaction was executed
Date when transaction was booked
Value date of the transaction
Show child attributes
Exchange rate applied
Currency pair (e.g., EURUSD)
Source of the exchange rate
Timestamp when exchange rate was applied
Type of transaction. See transaction types documentation for complete list.
payment, transfer, deposit, withdrawal, card_payment, direct_debit, refund, fee, interest, other Current status of the transaction
pending, completed, failed, cancelled, rejected ISO 20022 category purpose code
ISO 20022 purpose code
Show child attributes
Unstructured remittance information
Structured creditor reference
Type of structured reference. See remittance reference types for details.
SCOR, RADM, RPIN, FXDR, DISP, PUOR, SCNR Show child attributes
Type of fee. See banking transaction fees for details.
transfer_fee, exchange_fee, processing_fee, commission Fee amount
x >= 0ISO 4217 currency code
Timestamp when transaction was created
Timestamp when transaction was last updated
Show child attributes
Show child attributes
Show child attributes
Show child attributes
"payment_means"UUID of the debtor payment means (source)
Show child attributes
Type of payment means. See payment means types for details.
card_details, account_details, wallet_details, cash_details, check_details, crypto_details, other Payment scheme or network. See scheme types for details.
SEPA, SWIFT, ACH, FASTER_PAYMENTS, VISA, MASTERCARD, AMEX, PAYPAL, APPLEPAY, GOOGLEPAY, STRIPE, LOCAL, OTHER Current status of the payment means. See payment means status for details.
active, inactive, pending_verification, suspended, expired, blocked Bank account details for account_details type
Show child attributes
International Bank Account Number
Bank Identifier Code (SWIFT)
Local account number (alternative to IBAN)
Bank routing number (US ACH)
Currency code (ISO 4217)
Additional bank information
Show child attributes
Name of the bank
Bank code or identifier
Bank branch name
Bank branch code
Credit/debit card details for card_details type
Show child attributes
Masked Primary Account Number (PCI DSS compliant)
Card brand
visa, mastercard, amex, discover, diners, jcb, unionpay, other Type of card
credit, debit, prepaid, charge Card expiry month
Card expiry year
Name as printed on card
Digital wallet details for wallet_details type
Show child attributes
Digital wallet provider
paypal, applepay, googlepay, stripe, square, venmo, cashapp, other Wallet identifier (email, phone, etc.)
Type of wallet account
personal, business, merchant Compliance and verification status
Show child attributes
Know Your Customer verification status
pending, in_progress, completed, failed, not_required Anti-Money Laundering check status
pending, in_progress, cleared, flagged, not_required Sanctions screening status
pending, passed, failed, not_required Last compliance check timestamp
System metadata
User-friendly name for the payment means
Additional description of the payment means
Tags for categorization
Creation timestamp
Last update timestamp
Show child attributes
Show child attributes
"payment_means"UUID of the creditor payment means (destination)
Show child attributes
Type of payment means. See payment means types for details.
card_details, account_details, wallet_details, cash_details, check_details, crypto_details, other Payment scheme or network. See scheme types for details.
SEPA, SWIFT, ACH, FASTER_PAYMENTS, VISA, MASTERCARD, AMEX, PAYPAL, APPLEPAY, GOOGLEPAY, STRIPE, LOCAL, OTHER Current status of the payment means. See payment means status for details.
active, inactive, pending_verification, suspended, expired, blocked Bank account details for account_details type
Show child attributes
International Bank Account Number
Bank Identifier Code (SWIFT)
Local account number (alternative to IBAN)
Bank routing number (US ACH)
Currency code (ISO 4217)
Additional bank information
Show child attributes
Name of the bank
Bank code or identifier
Bank branch name
Bank branch code
Credit/debit card details for card_details type
Show child attributes
Masked Primary Account Number (PCI DSS compliant)
Card brand
visa, mastercard, amex, discover, diners, jcb, unionpay, other Type of card
credit, debit, prepaid, charge Card expiry month
Card expiry year
Name as printed on card
Digital wallet details for wallet_details type
Show child attributes
Digital wallet provider
paypal, applepay, googlepay, stripe, square, venmo, cashapp, other Wallet identifier (email, phone, etc.)
Type of wallet account
personal, business, merchant Compliance and verification status
Show child attributes
Know Your Customer verification status
pending, in_progress, completed, failed, not_required Anti-Money Laundering check status
pending, in_progress, cleared, flagged, not_required Sanctions screening status
pending, passed, failed, not_required Last compliance check timestamp
System metadata
User-friendly name for the payment means
Additional description of the payment means
Tags for categorization
Creation timestamp
Last update timestamp
Show child attributes
Show child attributes
"company"Show child attributes
The domain url from the website or email address of the company. Used as unique identifier in some cases.
500Show child attributes
Legal entity structure type.
Official company registration number.
Name of the official registration body.
Country of the registry authority. (string (ISO 3166-1 alpha-2))
UUID of the workspace associated with this company
Show child attributes
Show child attributes
"company"Show child attributes
The domain url from the website or email address of the company. Used as unique identifier in some cases.
500Show child attributes
Legal entity structure type.
Official company registration number.
Name of the official registration body.
Country of the registry authority. (string (ISO 3166-1 alpha-2))
UUID of the workspace associated with this company
Show child attributes
Show child attributes
Type of document
document, invoice UUID of the document (receipts, confirmations, invoices)
Show child attributes
Show child attributes
Show child attributes
"people"UUID of the user who created the transaction record
Show child attributes
The person's first name
The person's last name
The person's full name (typically first_name + last_name)
Timestamp when the person was created
Timestamp when the person was last updated
Show child attributes
Show child attributes
"workspace"UUID of the workspace associated with this transaction
Show child attributes
Workspace name
Workspace description
external workspace id
Color of the avatar
Timestamp when the workspace was created
Timestamp when the workspace was last updated