Retrieving an item

Items can be retrieved by calling the GET API request. If you know the name of the item you want to retrieve, you can use that as a filter in the request to only get that item back. The GET response will return a JSON object that represents the item.

GET//api/v1/items
Authorization
Query parameters
Header parameters
Response

Ok

Body
items*array of GeneralItemResponse (object)
Request
const response = await fetch('//api/v1/items', {
    method: 'GET',
    headers: {
      "entity-id": "text"
    },
});
const data = await response.json();
Response
{
  "items": [
    {
      "name": "The Professional Plan",
      "amount": 29.99,
      "frequency": "MONTH",
      "frequencyCount": 1,
      "acceptedTokens": {},
      "externalId": "price_1ObTC0EsKlmFX3FHDjZnmim1",
      "active": true,
      "priceMetadata": "Increases to $200 after 2 weeks",
      "autoInvoice": true,
      "initialOffset": 1,
      "itemId": "2a697faf-8fdb-4aab-be20-64db0cef7dd5",
      "entityId": "4d1f3191-935b-40c5-b91e-37e1e3700bac",
      "url": "https://checkout.loopcrypto.xyz/4d1f3191-935b-40c5-b91e-37e1e3700bac/2a697faf-8fdb-4aab-be20-64db0cef7dd5",
      "type": "Subscription",
      "category": "Books, Periodicals, and Newspapers",
      "categoryCode": 5192
    }
  ]
}

Last updated