Skip to content

Create Payment

Required scope: payment:create

Generated Reference
POST /public-api/publicapi.v1.Payment/CreatePayment

Creates a payment request. Reusing external_operation_id with the same request returns the original payment; different input is rejected.

Request CreatePaymentRequest
Response CreatePaymentResponse

CreatePaymentRequest

Field Type Description
external_operation_id string Durable workspace-scoped identifier supplied by the caller.
customer_id string
amount int64
currency optional string
description string
due_date optional int64 Unix seconds when the payment becomes due and the customer is asked to pay. Omitted means now.
method optional string Settlement handler. One of default, manual, mollie, stripe, or warmtefonds. Workspace defaults apply when omitted. Warmtefonds does not create an online checkout.
transaction_id optional string
customer_name string
billing_address_line1 string
billing_address_line2 string
billing_city string
billing_postal_code string
billing_country string

CreatePaymentResponse

Field Type
payment Payment
{
"externalOperationId": "erp-payment-123",
"customerId": "<customer-id>",
"amount": "12500",
"currency": "EUR",
"description": "Deposit",
"method": "manual"
}

Amounts use minor currency units. Repeating identical input with the same externalOperationId returns the original payment; changed input is rejected.

method selects how the payment is settled. manual records a payment you collect outside HeyX; warmtefonds creates a pending, non-checkout payment request. Some provider-managed payment methods cannot be created through this endpoint.

dueDate sets when the payment becomes due and the customer is asked to pay. When omitted, the payment is due now and the payment request is issued immediately; a future date creates the payment in advance.