Skip to main content
GET
/
v1
/
swaps
List
curl --request GET \
  --url https://{defaultHost}/v1/swaps \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "pagination": {
    "count": 1,
    "limit": 20,
    "page": 1,
    "url": "/v1/swaps"
  },
  "data": [
    {
      "id": "8a2e12c6-4011-4ad4-8685-1b7c5caa1faa",
      "object": "swap",
      "archived": false,
      "archived_at": null,
      "description": "Swap this price for another",
      "metadata": {},
      "price": "3721fa18-940d-4301-8226-965090047415",
      "swap_price": "0f446199-00f0-4870-88c8-e48d5b01be84",
      "discarded_at": null,
      "created_at": 1778010938,
      "updated_at": 1778010938
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developer.surecart.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

archived
boolean

Only return objects that are archived or not archived.

ids[]
string[]

Only return objects with the given IDs.

limit
integer

A limit on the number of items to be returned, between 1 and 100.

page
integer

The page of items you want returned.

price_ids[]
string[]

Only return objects that belong to the given prices.

Response

200 - application/json

Success

object
string

A string describing the object type returned.

pagination
object
data
array

An array of objects.