Skip to main content
POST
/
resale
/
listings
Create a new resale listing
curl --request POST \
  --url https://api.nuwebgroup.com/v1/resale/listings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "orderItems": [
    {
      "orderItemId": 123,
      "maxSellerContribution": null,
      "price": null
    }
  ],
  "minimumPurchaseQuantity": 1
}
'
{
  "data": {
    "type": "resaleListings",
    "id": 1,
    "attributes": {
      "customerId": 123,
      "minimumPurchaseQuantity": 1,
      "status": "active",
      "eventId": 456,
      "orderId": 789,
      "createdAt": "2025-01-15T10:30:00.000000Z",
      "closedAt": null,
      "onSaleFrom": "2025-02-01T09:00:00.000000Z",
      "onSaleUntil": "2025-02-15T18:00:00.000000Z"
    },
    "relationships": {
      "resaleContracts": {
        "data": [
          {
            "type": "resaleContracts",
            "id": 1
          }
        ]
      }
    }
  },
  "included": [
    {
      "type": "resaleContracts",
      "id": 1,
      "attributes": {
        "orderItemId": 123,
        "maxSellerContribution": 0,
        "status": "active",
        "soldAt": null,
        "currencyId": 1,
        "price": 5000,
        "totalPrice": 5250,
        "displayTotal": 5500
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

The 'Bearer' token can be obtained from the token management interface or via the login endpoint using your admin user credentials.

Query Parameters

include
enum<string>[]

A list of related resources you wish to include in the response.

Available options:
resaleContracts,
resaleContracts.orderItem

Body

application/json

Request body for creating a resale listing.

orderItems
object[]
required

An array of order item details to be listed for resale.

minimumPurchaseQuantity
integer
default:1

This value determines the minimum number of items from this listing that must be purchased in a single transaction. Explicitly set this value equal to the count of orderItems to force all items to be purchased in a single transaction.

Response

Successfully created the resale listing.

data
object