Offers

Creating a single offer

post
Authorizations
apikeystringRequired

API key for authorizing requests in GET parameters

Header parameters
Content-Typestring Β· enumRequiredDefault: application/jsonPossible values:
Accept-Encodingstring Β· enumRequiredDefault: gzipPossible values:
Body
statusstring Β· enumRequired

The status of the created offer. At the moment, only offers in the not published status are allowed to be created

Possible values:
typestring Β· enumRequired

Type of offer (transport/cargo). Also determines the requirements for the request

Possible values:
is_publicbooleanRequired

The offer is published on a public exchange

is_privatebooleanRequired

The offer is published on a private exchange

is_all_private_partnersbooleanOptional

The offer on the private exchange will be received by all partners of the owner company. The field is displayed only in personal offers

private_partnersstring Β· UUID[]Optional

IDs of partner companies that will receive private offer. The field is displayed only in personal offers

descriptionstringOptional

Additional description in the offer

Responses
200

Successful execution of the request

application/json
post
/exchange/offer

This offer creation method allows creating an offer only in the not_published status. To publish an offer on the exchange, update the status of a single offer by unique ID (see below).

Updating the status of a single offer by unique ID

patch
Authorizations
apikeystringRequired

API key for authorizing requests in GET parameters

Path parameters
idstringRequired

Unique offer ID

Header parameters
Content-Typestring Β· enumRequiredDefault: application/jsonPossible values:
Accept-Encodingstring Β· enumRequiredDefault: gzipPossible values:
Body
statusstringOptionalExample: not_published
Responses
200

Successful execution of the request

application/json
Responseobject
patch
/exchange/offer/{id}/status

Deleting a single offer by unique ID

delete
Authorizations
apikeystringRequired

API key for authorizing requests in GET parameters

Path parameters
idstringRequired

Unique offer ID

Header parameters
Content-Typestring Β· enumRequiredDefault: application/jsonPossible values:
Accept-Encodingstring Β· enumRequiredDefault: gzipPossible values:
Responses
delete
/exchange/offer/{id}

No content

Getting a paginated list of incoming offers on the private exchange

get
Authorizations
apikeystringRequired

API key for authorizing requests in GET parameters

Query parameters
limitinteger Β· min: 1 Β· max: 50Optional

Limit on the number of offers listed per pagination iteration

Default: 25
offsetintegerOptional

Offset of the paginated selection of offers relative to the previous selection

Default: 0
Header parameters
Content-Typestring Β· enumRequiredDefault: application/jsonPossible values:
Accept-Encodingstring Β· enumRequiredDefault: gzipPossible values:
Responses
200

Successful execution of the request

application/json
get
/exchange/company/offers/incoming

Receiving a paginated list of your offers

get
Authorizations
apikeystringRequired

API key for authorizing requests in GET parameters

Query parameters
limitinteger Β· min: 1 Β· max: 50Optional

Limit on the number of offers listed per pagination iteration

Default: 25
offsetintegerOptional

Offset of the paginated selection of offers relative to the previous selection

Default: 0
offers_statusstring Β· enumOptional

Select offers of a certain status (except the deleted ones)

Possible values:
offers_typestring Β· enumOptional

Select offers of a certain type

Possible values:
Header parameters
Content-Typestring Β· enumRequiredDefault: application/jsonPossible values:
Accept-Encodingstring Β· enumRequiredDefault: gzipPossible values:
Responses
200

Successful execution of the request

application/json
get
/exchange/company/offers

Getting an offer by the unique ID

get
Authorizations
apikeystringRequired

API key for authorizing requests in GET parameters

Path parameters
idstringRequired

Unique offer ID

Header parameters
Content-Typestring Β· enumRequiredDefault: application/jsonPossible values:
Accept-Encodingstring Β· enumRequiredDefault: gzipPossible values:
Responses
200

Successful execution of the request

application/json
get
/exchange/offer/{id}

Last updated

Was this helpful?