Create Cart (assetToOrder)
Create orders from existing assets by performing move, add, change, and delete (MACD) actions. Use assetToOrder only for Future Dated Orders.
-
The inputFields is not supported for AssetToOrder (subaction as assetToOrder).
-
This API supports following Date and DateTime formats.
yyyy-MM-ddyyyy-MM-dd'T'HH:mm:ss.SSS'Z'yyyy-MM-dd'T'HH:mm:ss.SSSZyyyy-MM-dd'T'HH:mm:ss.SSSXyyyy-MM-dd'T'HH:mm:ssXXXyyyy-MM-dd'T'HH:mm:ss'Z'yyyy-MM-dd HH:mm:ssYYYY-MM-DDTHH:MM:SS.sss.000+0000
Date format example:
2025-06-01
DateTime format examples:
2026-01-24T11:13:33.000Z2026-01-24T11:13:33.000+00002026-06-01T12:34:56.789Z2026-06-01T12:34:56+00:002026-06-01T12:34:56Z2026-06-01 12:34:56
-
Standard Cart APIs parse these ISO date and date-time formats and do not use the running user’s Salesforce locale. Classic Cart APIs parse date fields with locale-based
Date.parse(), so values such asdd/mm/yyyycan succeed for day-first locales. Send ISO values (yyyy-MM-ddoryyyy-MM-dd'T'HH:mm:ss'Z') so the same payload works when Standard Cart APIs are enabled or disabled.
Communication (vlocity__cmt)
Resource URL: /services/apexrest/{namespace}/v2/carts
Response Format: JSON
While performing AssetToOrder we can create Order of specific RecordType by RecordTypeId in the request payload
To raise a Change Order on the current time and date: