Offers
Last updated
Last updated
Get list of offers
Chain ID
Token address
Token ID
Owner ID
Status of these offers
Limit
Current page number
Property to sort by
Direction to sort
GET /v1/offers HTTP/1.1
Host: api.sandbox.horizonland.app
Accept: */*
{
"cursor": "text",
"remaining": 1,
"result": [
{
"assets": {
"cursor": "text",
"remaining": 1,
"result": [
{
"collection": {
"image_url": "text",
"name": "text",
"contract_address": "text"
},
"created_at": "text",
"description": "text",
"fees": [
{
"address": "text",
"basis_points": 1,
"type": "text"
}
],
"id": "text",
"image_url": "text",
"animation_url": "text",
"external_link": "text",
"metadata": {},
"name": "text",
"listing": {
"closing_date": "text",
"fees": [
{
"address": "text",
"basis_points": 1,
"type": "text"
}
],
"accept_price": 1,
"start_price": 1,
"current_price": 1,
"name": "text",
"token_address": "text",
"token_id": "text",
"chain": {
"id": "text",
"name": "text",
"symbol": "text"
}
},
"status": "text",
"token_address": "text",
"token_id": "text",
"chain": {
"id": "text",
"name": "text",
"symbol": "text"
},
"updated_at": "text",
"owner": "text"
}
]
},
"taker": "text",
"price": 1,
"start_time": "text",
"end_time": "text"
}
]
}
Get detail of an offer
ID of offer
GET /v1/offers/{id} HTTP/1.1
Host: api.sandbox.horizonland.app
Accept: */*
{
"assets": {
"cursor": "text",
"remaining": 1,
"result": [
{
"collection": {
"image_url": "text",
"name": "text",
"contract_address": "text"
},
"created_at": "text",
"description": "text",
"fees": [
{
"address": "text",
"basis_points": 1,
"type": "text"
}
],
"id": "text",
"image_url": "text",
"animation_url": "text",
"external_link": "text",
"metadata": {},
"name": "text",
"listing": {
"closing_date": "text",
"fees": [
{
"address": "text",
"basis_points": 1,
"type": "text"
}
],
"accept_price": 1,
"start_price": 1,
"current_price": 1,
"name": "text",
"token_address": "text",
"token_id": "text",
"chain": {
"id": "text",
"name": "text",
"symbol": "text"
}
},
"status": "text",
"token_address": "text",
"token_id": "text",
"chain": {
"id": "text",
"name": "text",
"symbol": "text"
},
"updated_at": "text",
"owner": "text"
}
]
},
"taker": "text",
"price": 1,
"start_time": "text",
"end_time": "text"
}
Create an offer
Asset ID of the asset to be offered
Price of the asset
Start time of this offer
End time of this offer
POST /v1/offers HTTP/1.1
Host: api.sandbox.horizonland.app
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"asset_id": "text",
"price": 1,
"start_time": "text",
"end_time": "text"
}
{
"assets": {
"cursor": "text",
"remaining": 1,
"result": [
{
"collection": {
"image_url": "text",
"name": "text",
"contract_address": "text"
},
"created_at": "text",
"description": "text",
"fees": [
{
"address": "text",
"basis_points": 1,
"type": "text"
}
],
"id": "text",
"image_url": "text",
"animation_url": "text",
"external_link": "text",
"metadata": {},
"name": "text",
"listing": {
"closing_date": "text",
"fees": [
{
"address": "text",
"basis_points": 1,
"type": "text"
}
],
"accept_price": 1,
"start_price": 1,
"current_price": 1,
"name": "text",
"token_address": "text",
"token_id": "text",
"chain": {
"id": "text",
"name": "text",
"symbol": "text"
}
},
"status": "text",
"token_address": "text",
"token_id": "text",
"chain": {
"id": "text",
"name": "text",
"symbol": "text"
},
"updated_at": "text",
"owner": "text"
}
]
},
"taker": "text",
"price": 1,
"start_time": "text",
"end_time": "text"
}
Accept an offer
Offer ID of the offer to be accepted
POST /v1/offers/accept HTTP/1.1
Host: api.sandbox.horizonland.app
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"asset_id": "text"
}
{
"offer": {
"assets": {
"cursor": "text",
"remaining": 1,
"result": [
{
"collection": {
"image_url": "text",
"name": "text",
"contract_address": "text"
},
"created_at": "text",
"description": "text",
"fees": [
{
"address": "text",
"basis_points": 1,
"type": "text"
}
],
"id": "text",
"image_url": "text",
"animation_url": "text",
"external_link": "text",
"metadata": {},
"name": "text",
"listing": {
"closing_date": "text",
"fees": [
{
"address": "text",
"basis_points": 1,
"type": "text"
}
],
"accept_price": 1,
"start_price": 1,
"current_price": 1,
"name": "text",
"token_address": "text",
"token_id": "text",
"chain": {
"id": "text",
"name": "text",
"symbol": "text"
}
},
"status": "text",
"token_address": "text",
"token_id": "text",
"chain": {
"id": "text",
"name": "text",
"symbol": "text"
},
"updated_at": "text",
"owner": "text"
}
]
},
"taker": "text",
"price": 1,
"start_time": "text",
"end_time": "text"
},
"status": "text",
"created_at": "text",
"updated_at": "text"
}