gift_card_code_logs

Resource: gift_card_code_log_detail

This link relationship returns a collection of gift card code logs. You can paginate through this collection using the hypermedia links provided and the link relationships of first, prev, next, and last.

Required Scopes

Full store_full_access
Read gift_cards_read
Write gift_cards_write

Collection Resource

gift_card_code_log_detail

Actions

GET View a list of gift_card_code_logs
HEAD Get just the header response
OPTIONS Get a response explaining which HTTP methods are supported

Properties (5)

_embedded Object · Read-only

Contains fx:gift_card_code_logs[] — array of gift_card_code_log_detail resources

total_items String · Read-only

Total number of resources in this collection.

returned_items Number · Read-only

Number of resources returned in this page.

limit Number · Read-only

Maximum number of resources per page.

offset Number · Read-only

Number of resources skipped.

Link Relations (5)

self This Collection
first First Page of this Collection
prev Previous Page of this Collection
next Next Page of this Collection
last Last Page of this Collection
https://api.foxycart.com/stores/{store_id}/gift_card_code_logs
Available via fx:gift_card_code_logs on gift_card_code

Example Representation

{
  "_links": {
    "curies": [
      {
        "name": "fx",
        "href": "https://api.foxycart.com/rels/{rel}",
        "templated": true
      }
    ],
    "self": {
      "href": "https://api.foxycart.com/stores/123/gift_card_code_logs",
      "title": "This Collection"
    },
    "first": {
      "href": "https://api.foxycart.com/stores/123/gift_card_code_logs?offset=0",
      "title": "First Page of this Collection"
    },
    "prev": {
      "href": "https://api.foxycart.com/stores/123/gift_card_code_logs?offset=0",
      "title": "Previous Page of this Collection"
    },
    "next": {
      "href": "https://api.foxycart.com/stores/123/gift_card_code_logs?offset=20",
      "title": "Next Page of this Collection"
    },
    "last": {
      "href": "https://api.foxycart.com/stores/123/gift_card_code_logs?offset=20",
      "title": "Last Page of this Collection"
    }
  },
  "_embedded": {
    "fx:gift_card_code_logs": [
      {
        "_links": {
          "curies": [
            {
              "name": "fx",
              "href": "https://api.foxycart.com/rels/{rel}",
              "templated": true
            }
          ],
          "self": {
            "href": "https://api.foxycart.com/gift_card_code_log_details/456",
            "title": "Gift Card Code Transaction Relationship"
          },
          "fx:store": {
            "href": "https://api.foxycart.com/stores/456",
            "title": "This Store"
          },
          "fx:gift_card": {
            "href": "https://api.foxycart.com/gift_cards/999",
            "title": "This Gift Card"
          },
          "fx:gift_card_code": {
            "href": "https://api.foxycart.com/gift_card_codes/999",
            "title": "This Gift Card Code"
          }
        },
        "transaction_id": 3859534,
        "external_id": null,
        "balance_adjustment": -40.3,
        "user_id": null,
        "source": null,
        "date_created": "2021-11-15T19:30:33-0800",
        "date_modified": "2021-11-15T19:30:35-0800"
      }
    ]
  },
  "total_items": 1,
  "returned_items": 1,
  "limit": 20,
  "offset": 0
}