Offer Details  [Go SDK]

Returns information and links relating to a single offer.

Request

GET /offers/{offer}

Arguments

name notes description example
offer required, string Offer ID 126628073

curl Example Request

curl "https://frontier.testnet.digitalbits.io/offers/1347876"

Response

This endpoint responds with the details of a single offer for a given ID. See offer resource for reference.

Example Response

{
  "_links": {
    "self": {
      "href": "https://frontier.testnet.digitalbits.io/offers/1347876"
    },
    "offer_maker": {
      "href": "https://frontier.testnet.digitalbits.io/accounts/GAQHWQYBBW272OOXNQMMLCA5WY2XAZPODGB7Q3S5OKKIXVESKO55ZQ7C"
    }
  },
  "id": "1347876",
  "paging_token": "1347876",
  "seller": "GAQHWQYBBW272OOXNQMMLCA5WY2XAZPODGB7Q3S5OKKIXVESKO55ZQ7C",
  "selling": {
    "asset_type": "credit_alphanum4",
    "asset_code": "DSQ",
    "asset_issuer": "GBDQPTQJDATT7Z7EO4COS4IMYXH44RDLLI6N6WIL5BZABGMUOVMLWMQF"
  },
  "buying": {
    "asset_type": "credit_alphanum4",
    "asset_code": "USD",
    "asset_issuer": "GAA4MFNZGUPJAVLWWG6G5XZJFZDHLKQNG3Q6KB24BAD6JHNNVXDCF4XG"
  },
  "amount": "60.4544008",
  "price_r": {
    "n": 84293,
    "d": 2000000
  },
  "price": "0.0421465",
  "last_modified_ledger": 1429506,
  "last_modified_time": "2019-10-29T22:08:23Z"
}

Possible Errors

  • The standard errors.
  • not_found: A not_found error will be returned if there is no offer whose ID matches the offer argument.

Edit this doc in GitHub

THE FUTURE OF LOYALTY STARTS HERE

Stay up to date on the latest happenings at DigitalBits. Get the latest news.