API

Auction APIs

POST auction/lots/{lotId}/bids

Place a new bid for this lot. Note that if the bidder is a contact, is have to be related to the customer.

HTTP method POST
URI https://api.rambase.net/auction/lots/{lotId}/bids
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {lotId} Lot identifier
Integer, minimum 100000
Successful HTTP status code 201
API resource identifier 1823, version 9

The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.

Format:
1
<Bid>
2
     <Type
Type

Required/mandatory field

Type of bid

Applicable domain values can be found here

>
{String}</Type>
3
     <Currency
Currency

Required/mandatory field

Three character code following the ISO 4217 standard

Applicable domain values can be found here

>
{String}</Currency>
4
     <MaximumAmount
MaximumAmount

Required/mandatory field

The highest amount the bidder is willing to spend for this lot. The amount will increase according to the bid increment setup.

Minimum value: 0

>
{Decimal}</MaximumAmount>
5
     <Customer
Customer

Required/mandatory field

The customer the bid is placed for

>
6
          <CustomerId
CustomerId

Required/mandatory field

Customer identifier

Minimum value: 10000

>
{Integer}</CustomerId>
7
     </Customer>
8
     <Bidder
Bidder

Required/mandatory field

The person placing the bid. Either a contact related to the customer, or an employee

>
9
          <ObjectId
ObjectId

Required/mandatory field

Identifier of the object

>
{Integer}</ObjectId>
10
          <ObjectType
ObjectType

Required/mandatory field

Type of object

>
{String}</ObjectType>
11
     </Bidder>
12
</Bid>
1
{
2
     "bid": {
3
          "type
Type

Required/mandatory field

Type of bid

Applicable domain values can be found here

":
"{String}",
4
          "currency
Currency

Required/mandatory field

Three character code following the ISO 4217 standard

Applicable domain values can be found here

":
"{String}",
5
          "maximumAmount
MaximumAmount

Required/mandatory field

The highest amount the bidder is willing to spend for this lot. The amount will increase according to the bid increment setup.

Minimum value: 0

":
"{Decimal}",
6
          "customer
Customer

Required/mandatory field

The customer the bid is placed for

":
{
7
               "customerId
CustomerId

Required/mandatory field

Customer identifier

Minimum value: 10000

":
"{Integer}"
8
          },
9
          "bidder
Bidder

Required/mandatory field

The person placing the bid. Either a contact related to the customer, or an employee

":
{
10
               "objectId
ObjectId

Required/mandatory field

Identifier of the object

":
"{Integer}",
11
               "objectType
ObjectType

Required/mandatory field

Type of object

":
"{String}"
12
          }
13
     }
14
}

The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.

$access_token String, optional After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time.
$db String, optional Set the database/company for the request
$useMinimumVersion Integer, optional Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information.
$showDomainDescriptions Boolean, optional Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false.
$lang String, optional Specifies the language used in the response, following the 3-letter ISO-639-1 [lll]

Read more about filters and sorting on how to use filter parameters and named filters.

Read more about filters and sorting on how to use sortable parameters

Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<Bid>
2
     <BidId
BidId

Bid identifier

>
{Integer}</BidId>
3
     <BidStatus
BidStatus

Status of the bid

>
{Integer}</BidStatus>
4
     <Type
Type

Type of bid

Possible domain values can be found here

>
{String}</Type>
5
     <CreatedAt
CreatedAt

Timestamp of the bid

>
{Datetime}</CreatedAt>
6
     <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
7
     <AppliedAmount
AppliedAmount

The amount applied for the bid (lower or equal to maximum amount)

>
{Decimal}</AppliedAmount>
8
     <MaximumAmount
MaximumAmount

The highest amount the bidder is willing to spend for this lot. The amount will increase according to the bid increment setup.

>
{Decimal}</MaximumAmount>
9
     <Customer>
10
          <CustomerId
CustomerId

Customer identifier

>
{Integer}</CustomerId>
11
          <CustomerLink
CustomerLink

Customer reference

>
{String}</CustomerLink>
12
     </Customer>
13
     <SalesOrderItem>
14
          <Database
Database

Company code/database the object belongs to

>
{String}</Database>
15
          <SalesOrderId
SalesOrderId

Sales order identifier

>
{Integer}</SalesOrderId>
16
          <SalesOrderLink
SalesOrderLink

Sales order reference

>
{String}</SalesOrderLink>
17
          <ItemId
ItemId

Sales order item identifier

>
{Integer}</ItemId>
18
          <ItemLink
ItemLink

Reference to the sales order item.

>
{String}</ItemLink>
19
     </SalesOrderItem>
20
     <Bidder>
21
          <ObjectId
ObjectId

The person placing the bid. Either a contact related to the customer, or an employee

>
{Integer}</ObjectId>
22
          <ObjectType
ObjectType

The person placing the bid. Either a contact related to the customer, or an employee

>
{String}</ObjectType>
23
          <ObjectLink
ObjectLink

The person placing the bid. Either a contact related to the customer, or an employee

>
{String}</ObjectLink>
24
     </Bidder>
25
     <Comment
Comment

Comment/note for the bid

>
{String}</Comment>
26
     <IsHighestBid
IsHighestBid

True if the bid is the highest/leading bid

>
{Boolean}</IsHighestBid>
27
</Bid>
1
{
2
     "bid": {
3
          "bidId
BidId

Bid identifier

":
"{Integer}",
4
          "bidStatus
BidStatus

Status of the bid

":
"{Integer}",
5
          "type
Type

Type of bid

Possible domain values can be found here

":
"{String}",
6
          "createdAt
CreatedAt

Timestamp of the bid

":
"{Datetime}",
7
          "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
8
          "appliedAmount
AppliedAmount

The amount applied for the bid (lower or equal to maximum amount)

":
"{Decimal}",
9
          "maximumAmount
MaximumAmount

The highest amount the bidder is willing to spend for this lot. The amount will increase according to the bid increment setup.

":
"{Decimal}",
10
          "customer": {
11
               "customerId
CustomerId

Customer identifier

":
"{Integer}",
12
               "customerLink
CustomerLink

Customer reference

":
"{String}"
13
          },
14
          "salesOrderItem": {
15
               "database
Database

Company code/database the object belongs to

":
"{String}",
16
               "salesOrderId
SalesOrderId

Sales order identifier

":
"{Integer}",
17
               "salesOrderLink
SalesOrderLink

Sales order reference

":
"{String}",
18
               "itemId
ItemId

Sales order item identifier

":
"{Integer}",
19
               "itemLink
ItemLink

Reference to the sales order item.

":
"{String}"
20
          },
21
          "bidder": {
22
               "objectId
ObjectId

The person placing the bid. Either a contact related to the customer, or an employee

":
"{Integer}",
23
               "objectType
ObjectType

The person placing the bid. Either a contact related to the customer, or an employee

":
"{String}",
24
               "objectLink
ObjectLink

The person placing the bid. Either a contact related to the customer, or an employee

":
"{String}"
25
          },
26
          "comment
Comment

Comment/note for the bid

":
"{String}",
27
          "isHighestBid
IsHighestBid

True if the bid is the highest/leading bid

":
"{Boolean}"
28
     }
29
}

List of available operations/actions for this resource.
See the operations documentation for more information about API operations.

Possible error codes the response might return:

Error 100041 HTTP 400 Cannot delete this item
Error 106501 HTTP 400 When using manufacturers product, globale trade item number must be updated there
Error 106502 HTTP 400 When using manufacturers product, country of orgion country code must be updated there
Error 102941 HTTP 400 Manufacturer is required
Error 103726 HTTP 400 You can only set product as stock/non stock when status is equal to draft (status 1)
Error 103018 HTTP 400 Name of product is required
Error 105833 HTTP 400 CompanySetting require product name to be unique
Error 108872 HTTP 400 The value {0} is not allowed to use in Type
Error 103548 HTTP 400 DaysToExpediteScheduledStartDate can only be changed on product structures
Error 103550 HTTP 400 IsManufacturedExternally can only be changed on product structures
Error 103551 HTTP 400 IsManufacturedInBatches can only be changed on product structures
Error 103554 HTTP 400 AutomaticallyCreateWorkOrdersForSubstructures can only be changed on product structures
Error 104253 HTTP 400 ProduceInMultipleOf can only be changed on product structures.
Error 107694 HTTP 400 Use line production can only be changed on product structeres
Error 106999 HTTP 400 Sub module 'Projectorder' is not activated in this company
Error 106436 HTTP 400 Unit can only be changed when status is equal to draft (status 1)
Error 100167 HTTP 404 Measurement unit not found
Error 104486 HTTP 400 Unit production is only allowed for measurment units (UNI) of type QTY
Error 100200 HTTP 404 Special handling code not found
Error 100092 HTTP 404 Service template not found
Error 103020 HTTP 404 Qcdoc not found
Error 101091 HTTP 404 Contry of origin is not valid: {0}
Error 101124 HTTP 400 Hardware code already exists
Error 106437 HTTP 400 Type can not be changed when status is not equal to draft (status 1)
Error 101009 HTTP 400 The product has a structure. You can only change the product type to a type that can contain a structure.
Error 101010 HTTP 400 The product structure contains operations and can not be changed to become a phantom structure
Error 101008 HTTP 400 Cannot change product type from a physical type to a virtual type
Error 101007 HTTP 400 Cannot change product type from a virtual type to a physical type
Error 103021 HTTP 400 Linkid must be a rental product
Error 104760 HTTP 400 Costing method can't be changed after product has been received
Error 104652 HTTP 400 Both minimum sales price and minimum sales price currency must be given
Error 100563 HTTP 400 Currency {0} is not supported by the system
Error 104653 HTTP 400 Minimum sales price can not be negative
Error 106506 HTTP 404 Image not found