Skip to main content
POST
Create an order

Authorizations

Authorization
string
header
required

Salesforce session ID (or OAuth 2.0 access token issued by the Salesforce org) supplied as Authorization: Bearer <token>. Obtain via the Salesforce OAuth 2.0 flows or the SOAP login API.

Body

application/json
businessUnitId
string
required

Salesforce Id of the Business Unit (FCORE_PAY__Business_Unit__c) the order is being placed under.

customerType
string
required

Customer type for the order. Typical values include ORGANIZATION and INDIVIDUAL; consult your fusionCore Commerce configuration for the full list.

accountId
string
required

Salesforce Id of the Account that owns the order.

billToContactId
string

Salesforce Id of the bill-to Contact (optional).

currencyIsoCode
string

ISO 4217 currency code (for example USD). Required when the org is multi-currency.

Response

Order created.

Common envelope returned by every endpoint. Concrete responses extend this shape with operation-specific fields.

success
boolean

true when the request completed without errors.

errors
string[]

Populated with one or more error messages when success is false.

id
string

Salesforce Id of the created Order.

uuid
string

fusionCore Order UUID (FCORE_PAY__Order_UUID__c) of the created Order.