Skip to main content

Counterparty Upsert Many Ep

POST 

/v1/counterparty/upsert_many

Upsert Counterparty

Creates or updates counterparty information based on provided identifier(s) or name.

Required Scopes (ia.w)

Request​

id: str | None = None
Internal identifier for the counterparty. If provided, updates the counterparty with this ID.


source_id: str | None = None
If received from integration, the identifier inside the source system.


source_system_id: str | None = None
If received from integration, the source system identifier.


sourcing_strategy: str | None = None
Different options for a counterparty to control supply on order generation. Supported sourcing strategies are Specific Supply, Tank Supply Default, Use Best, and Manual.


name: str
The unique counterparty name. If provided, updates the counterparty with this name.


types: list[CounterpartyType]
Indicates all the counterparty’s types or roles. Controls the counterparty’s behavior in the system.

Show Types

Carrier
A counterparty that acts as a carrier.

Internal
An internal counterparty.

Supplier
A supplier of fuel.

Customer
A customer of fuel.

Other
Any other type of counterparty.


trailer_config: str | None = None
If applicable, the trailer configuration associated with the counterparty.


emails: list[EmailStr] = []
List of the counterparty’s emails.


supply_map: list[SourceMap] = None
List of source_system and source_id mappings. Used for eBOL process.

Details

Show SourceMap Attributes source_system: str
System name.

source_id: str
ID in the source system.


extra_data: dict | None = None
Any additional data provided or managed by the client through integration endpoints.


goid: str | None = None
Beta: Gravitate Object ID. Used for integration with Crossroads

Show Deprecated

carrier_type: str | None = None
Deprecated. If the counterparty has type Carrier in types, specifies the type of carrier, which can be Simple, Managed, or Other. A counterparty can have only one carrier type.


available_credit: float | None = None
The amount of available credit for the counterparty.


hold: bool | None = False
Indicates if the counterparty is on credit hold or not.


allow_short_loads: bool | None = False
Whether orders for this counterparty may be built as short loads.


requires_approval: bool | None = False
Whether orders for this counterparty require approval.


order_notification_preferences: list[OrderReqNotificationStates] | None = []
Which order-request states this counterparty is notified on. Values: received, acknowledged, in progress, arrived at terminal, delivered, canceled, no notifications.


ebol_all_terminals: bool = True
Whether this supplier participates in eBOL matching at every terminal. Set to False to restrict matching to ebol_terminal_ids; movements at other terminals are then exempt rather than unmatched.


ebol_terminal_ids: list[str] = []
The terminals that participate in eBOL matching for this supplier when ebol_all_terminals is False.


attributes: dict[str, bool | float | str] = {}
Custom attributes applied to the counterparty, keyed by attribute definition id. Attribute definitions are managed in the application; each definition fixes the value type of its entry (boolean, number, string, or presence-only exists).


Response​

created: int
Number of created counterparties.


updated: int
Number of updated counterparties.


errors: list
Any records on the upsert that errored, detailing the cause of the error.

Responses​

Successful Response

Loading...