---
title: PayloadOptions
slug: data-platform/connect-platform/node-sdk-api-reference-zaius-interfaces-payloadoptions
docTags: 
createdAt: 2026-08-05T20:06:38.028Z
---

[ODP Node SDK](docId\:gxEU_0AA37IEZJK-uoVcT) / [Zaius](docId\:Ymt8R5EsKRYBHwqG3pJkL) / PayloadOptions

# PayloadOptions

Payload formatting options.

## Index

### Properties

- [excludeNulls](docId:5qPanRhjTFsuT38y6Gy-G)
- [trimToNull](docId:5qPanRhjTFsuT38y6Gy-G)

## Properties

### excludeNulls?

:::BlockQuote
`boolean`
:::

When true (default) the exclude nulls option will remove null valued fields in the payload.

Defined in: [src/Api/Types/PayloadOptions.ts:14](https://github.com/ZaiusInc/node-sdk/blob/46602d2/src/Api/Types/PayloadOptions.ts#L14)

### trimToNull?

:::BlockQuote
`boolean`
:::

When true (default) the trim to null option will trim all string value fields and if
the result is an empty string the value is changed to null.

Defined in: [src/Api/Types/PayloadOptions.ts:9](https://github.com/ZaiusInc/node-sdk/blob/46602d2/src/Api/Types/PayloadOptions.ts#L9)
