reserveMarketplaceBuyNowLot

This mutation allows the reservation on buy now lot from the marketplace.

Sample mutation

Reserve a BuyNow lot:

mutation{
  reserveMarketplaceBuyNowLot(input:{
    marketplaceBuyNowLotID:"bcc914a8-8e97-4898-bad7-c52b966828ac"
    itemCount:1
  }){
    id
    unitPrice
    totalUnits
    totalAvailableUnits
    startDate
    endDate
    sortNumber
    invoice{
      invoiceID
      userName
      invoiceNumber
      invoiceCreatedAt
    }
  }
}

Sample response

{
  "data": {
    "reserveMarketplaceBuyNowLot": {
      "id": "bcc914a8-8e97-4898-bad7-c52b966828ac",
      "unitPrice": 75,
      "totalUnits": 155520,
      "totalAvailableUnits": 142060,
      "startDate": "2022-02-09T22:07:00Z",
      "endDate": "2022-03-15T22:07:00Z",
      "sortNumber": 0,
      "invoice": {
        "invoiceID": "d841c9b8-fe8d-4194-8f66-cb8730b9b526",
        "userName": "",
        "invoiceNumber": 1371,
        "invoiceCreatedAt": "2022-03-14T09:14:43Z"
      }
    }
  }
}

Arguments

Name

Type

Description

Required

Input

Object

Reservation input for buy now lot in the marketplace.

Yes

Return

Name

Type

Description

MarketplaceBuyNowOutput

Object

Contains all the information from MarketplaceBuyNowOutput that includes id, marketplace collection item, unit price, total units, start date, end date, etc.

Example

Reserve a BuyNow lot within a marketplace using Marketplace BuyNow Lot ID and item count: