GET
/
api
/
v2
/
platform
/
store_credits
/
{id}
curl --request GET \
  --url http://{defaultHost}/api/v2/platform/store_credits/{id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "7",
    "type": "store_credit",
    "attributes": {
      "amount": "150.0",
      "amount_used": "0.0",
      "memo": null,
      "deleted_at": null,
      "currency": "USD",
      "amount_authorized": "0.0",
      "originator_type": null,
      "created_at": "2022-11-08T19:35:39.554Z",
      "updated_at": "2022-11-08T19:35:39.554Z",
      "public_metadata": {},
      "private_metadata": {},
      "display_amount": "$150.00",
      "display_amount_used": "$0.00"
    },
    "relationships": {
      "user": {
        "data": {
          "id": "115",
          "type": "user"
        }
      },
      "created_by": {
        "data": {
          "id": "116",
          "type": "user"
        }
      },
      "store_credit_category": {
        "data": {
          "id": "19",
          "type": "store_credit_category"
        }
      },
      "store_credit_type": {
        "data": {
          "id": "20",
          "type": "store_credit_type"
        }
      },
      "store_credit_events": {
        "data": [
          {
            "id": "8",
            "type": "store_credit_event"
          }
        ]
      }
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Query Parameters

include
string

Select which associated resources you would like to fetch, see: <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>

Response

200
application/vnd.api+json
Record found
data
object
required