Skip to main content

PaymentCreateRequest

external_payment_idstringrequired

Idempotency key from source

external_sourcestring
Default value: UNKNOWN
statusstring

If PAID/SETTLED and no settled_at provided, API sets settled_at=now().

Possible values: [INITIATED, PROCESSING, SENT, SETTLED, RETURNED, FAILED, CANCELED, PAID]

methodstringrequired

Possible values: [ACH, WIRE, SEPA, SWIFT, RTP, CHECK, CARD, VIRTUAL_CARD, PAYPAL, OTHER]

total_amountnumberrequired
currencystringrequired

3-letter ISO code (uppercased by API)

scheduled_atdate-timenullable
submitted_atdate-timenullable
sent_atdate-timenullable
expected_settlement_atdate-timenullable
settled_atdate-timenullable
returned_atdate-timenullable
payment_referencestringnullable
bank_referencestringnullable
ach_trace_numberstringnullable
sepa_end_to_end_idstringnullable
rtp_trace_idstringnullable
check_numberstringnullable
check_mailed_atdate-timenullable
check_cleared_atdate-timenullable
check_stop_paymentbooleannullable
beneficiary_namestringnullable
beneficiary_bank_namestringnullable
beneficiary_bank_countrystringnullable

Possible values: >= 2 characters and <= 2 characters

beneficiary_swift_bicstringnullable

Possible values: <= 11 characters

beneficiary_ibanstringnullable
beneficiary_accountstringnullable
beneficiary_routingstringnullable
payer_bank_namestringnullable
payer_bank_countrystringnullable

Possible values: >= 2 characters and <= 2 characters

payer_accountstringnullable
payer_routingstringnullable
remittance_memostringnullable
remittance_advice_urlstringnullable
lines object[]

If provided, applications will be inserted. Default behavior replaces all existing applications unless replace_lines=false.

  • Array [
  • invoice_tokenuuidrequired

    Token of the target invoice

    applied_amountnumberrequired
    applied_currencystring
    fx_rate_linenumbernullable
    fx_at_linedate-timenullable
    discount_amountnumbernullable
    discount_currencystringnullable
    fee_amount_linenumbernullable
    fee_currency_linestringnullable
    remittance_labelstringnullable
    Default value: Invoice
    remittance_valuestringnullable
    notesstringnullable
  • ]
  • replace_linesboolean

    When lines are provided: true (default) = delete all existing applications then insert these; false = append/merge without deleting.

    Default value: true
    PaymentCreateRequest
    {
    "external_payment_id": "string",
    "external_source": "UNKNOWN",
    "status": "INITIATED",
    "method": "ACH",
    "total_amount": 0,
    "currency": "string",
    "scheduled_at": "2024-07-29T15:51:28.071Z",
    "submitted_at": "2024-07-29T15:51:28.071Z",
    "sent_at": "2024-07-29T15:51:28.071Z",
    "expected_settlement_at": "2024-07-29T15:51:28.071Z",
    "settled_at": "2024-07-29T15:51:28.071Z",
    "returned_at": "2024-07-29T15:51:28.071Z",
    "payment_reference": "string",
    "bank_reference": "string",
    "ach_trace_number": "string",
    "sepa_end_to_end_id": "string",
    "rtp_trace_id": "string",
    "check_number": "string",
    "check_mailed_at": "2024-07-29T15:51:28.071Z",
    "check_cleared_at": "2024-07-29T15:51:28.071Z",
    "check_stop_payment": true,
    "beneficiary_name": "string",
    "beneficiary_bank_name": "string",
    "beneficiary_bank_country": "string",
    "beneficiary_swift_bic": "string",
    "beneficiary_iban": "string",
    "beneficiary_account": "string",
    "beneficiary_routing": "string",
    "payer_bank_name": "string",
    "payer_bank_country": "string",
    "payer_account": "string",
    "payer_routing": "string",
    "remittance_memo": "string",
    "remittance_advice_url": "string",
    "lines": [
    {
    "invoice_token": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "applied_amount": 0,
    "applied_currency": "string",
    "fx_rate_line": 0,
    "fx_at_line": "2024-07-29T15:51:28.071Z",
    "discount_amount": 0,
    "discount_currency": "string",
    "fee_amount_line": 0,
    "fee_currency_line": "string",
    "remittance_label": "Invoice",
    "remittance_value": "string",
    "notes": "string"
    }
    ],
    "replace_lines": true
    }