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

[ODP Node SDK](docId\:gxEU_0AA37IEZJK-uoVcT)

***

[ODP Node SDK](docId\:gxEU_0AA37IEZJK-uoVcT) / [ODP](docId\:R8vto_M9Wlz5ke8bcr-Ht) / PayloadOptions

# Interface: PayloadOptions

Defined in: [src/Api/Types/PayloadOptions.ts:4](https://github.com/ZaiusInc/node-sdk/blob/8c86908a179d8d1a3a54466e27e16762587be133/src/Api/Types/PayloadOptions.ts#L4)

Payload formatting options.

## Properties

### excludeNulls?

:::BlockQuote
`optional` **excludeNulls**: `boolean`
:::

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

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

***

### trimToNull?

:::BlockQuote
`optional` **trimToNull**: `boolean`
:::

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

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.
