# Update linked payment Partially updates an existing Linked Payment. Only provided fields will be updated. Endpoint: PATCH /site/{siteId}/ahds/v1/linked-payment/{linkedPaymentId} Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier - `linkedPaymentId` (string, required) Linked Payment unique identifier (UUID) ## Request fields (application/json): - `amount` (string) Monetary amount of the payment applied to the target, as a decimal string. Example: "100.00" - `currency` (string) ISO 4217 currency code for the linked amount. - `extensions` (object) Vendor- or practice-specific extensions. - `paymentId` (string) Identifier of the payment that is being linked. Example: "123e4567-e89b-12d3-a456-426614174000" - `targetId` (string) Identifier of the entity this payment is linked to (e.g., invoiceId). Example: "123e4567-e89b-12d3-a456-426614174000" - `targetType` (string) Type of entity this payment is linked to. Enum: "invoice", "creditNote", "other" ## Response 200 fields (application/json): - `amount` (string, required) Monetary amount of the payment applied to the target, as a decimal string. Example: "100.00" - `createdAt` (string, required) Timestamp when this linked payment record was created. Example: "2025-01-01T00:00:00.000Z" - `currency` (string, required) ISO 4217 currency code for the linked amount. - `extensions` (object, required) Vendor- or practice-specific extensions. - `linkedPaymentId` (string, required) Canonical identifier for this linked payment record. Example: "123e4567-e89b-12d3-a456-426614174000" - `paymentId` (string, required) Identifier of the payment that is being linked. Example: "123e4567-e89b-12d3-a456-426614174000" - `targetId` (string, required) Identifier of the entity this payment is linked to (e.g., invoiceId). Example: "123e4567-e89b-12d3-a456-426614174000" - `targetType` (string, required) Type of entity this payment is linked to. Enum: "invoice", "creditNote", "other" - `updatedAt` (string, required) Timestamp when this linked payment record was last updated. Example: "2025-01-01T00:00:00.000Z" ## Response 400 fields ## Response 401 fields ## Response 404 fields