Acumatica API - Endpoint Default 23 200 001 icon

Acumatica API - Endpoint Default 23 200 001

Interact with Acumatica Endpoint Default/23.200.001

Actions478

Discount Code → Insert/Update

AI-generated

Summary

Upsert a Discount Code record in Acumatica using optional fields from the Additional Fields collection.

Inputs

  • Additional Fields — Set optional fields for the Discount Code record. Fields include: Applicable To (string), Created Date Time (dateTime), Description (string), Discount Code ID (string), Discount Type (string), Last Modified Date Time (dateTime). If Discount Code ID is provided and matches an existing record, the record is updated; otherwise, a new record is created. Empty values are omitted from the request.

Output shape

The operation returns the Acumatica API response for the upserted Discount Code record, typically including the record's fields and metadata.

The exact response structure depends on the Acumatica API and may include the Discount Code ID, description, and other system fields.

Examples

Example 1: Create a new discount code

Set Description to 'Summer Sale Discount' and Discount Type to 'Percentage'. Leave Discount Code ID empty to generate a new ID.

Example 2: Update an existing discount code

Set Discount Code ID to 'SUMMER2024', Description to 'Updated Summer Sale Discount', and Discount Type to 'Fixed Amount'.

Links

Discussion