Skip to main content

Import a batch of suppliers.

POST 

/partner/v1.0/organizations/:organizationId/suppliers/batch

Import a batch of suppliers.

Request​

Path Parameters

    organizationId stringrequired

    The ID of the organization

Body

The batch of suppliers and the import type

    importType ImportType (string)

    Possible values: [Create, Create And Update, Update]

    suppliers

    object[]

    nullable

    Suppliers to import.

  • Array [

  • id stringnullable

    The unique identifier of the supplier in CarbonTrail.

    name stringnullable

    The name of the supplier.

    primaryEmail stringnullable

    The primary contact email address for the supplier.

    location

    object

    Represents a geographical location where a manufacturing process or material sourcing takes place.

    id stringnullable

    The unique identifier of the location.

    city stringnullable

    The name of the city.

    stateName stringnullable

    The name of the state where the location is situated.

    country stringrequired

    Possible values: non-empty

    The ISO 3166-1 alpha-2 country code.

    countryName stringnullable

    The full name of the country.

    continent stringnullable

    The name of the continent.

    latitude doublenullable

    The latitude coordinate of the location.

    longitude doublenullable

    The longitude coordinate of the location.

    aliases

    object[]

    nullable

    The aliases associated with the supplier, including alternative identifiers.

  • Array [

  • id stringnullable

    The unique identifier of the alias definition in CarbonTrail.

    name stringnullable

    The name of the alias (e.g., "Supplier ID", "Facility ID").

    value stringnullable

    The identifier value associated with the entity for this alias.

  • ]

  • customFieldValues

    object[]

    nullable

    The values of custom fields associated with the supplier.

  • Array [

  • oneOf

    Represents a custom field value.

    type

    string

    required

    Possible values: [Text, Select, Multi-Select]

    value stringnullable

    The value of the text custom field.

    customFieldId stringrequired

    Possible values: non-empty

    The unique identifier of the custom field this value is associated with.

  • ]

  • externalIdentities

    object[]

    nullable

    The identifiers of the supplier in source systems, used for idempotency to prevent duplicate imports.

  • Array [

  • name stringnullable

    The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.

    value stringnullable

    The unique identifier value from the system.

  • ]

  • ]

Responses​

Accepted

Schema

    batchId stringnullable

    Unique identifier for tracking the batch import.

    status ImportStatusType (string)

    Possible values: [Accepted, Processing, Completed, CompletedWithErrors, Failed, Submitted]

    Status types for import jobs.

    totalRecords int32

    Total number of records in the batch.

Loading...