Skip to main content
GET
/
user
/
purchases
/
{id}
Get purchase
curl --request GET \
  --url https://api.managem.co.uk/user/purchases/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "customerEmailAddress": "jsmith@example.com",
  "deliveryCharge": 123,
  "deliveryAddress": {
    "name": "<string>",
    "city": "<string>",
    "country": "<string>",
    "line1": "<string>",
    "line2": "<string>",
    "postal_code": "<string>",
    "state": "<string>"
  },
  "subtotal": 123,
  "total": 123,
  "serviceFee": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "orders": [
    {
      "id": "<string>",
      "sellerId": "<string>",
      "purchaseId": "<string>",
      "deliveryCharge": 123,
      "subtotal": 123,
      "total": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "items": [
        {
          "id": "<string>",
          "listingId": "<string>",
          "orderId": "<string>",
          "urn": "<string>",
          "price": 123,
          "quantity": 123,
          "condition": "<string>",
          "language": "<string>",
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z",
          "item": {
            "urn": "<string>",
            "type": "card",
            "game": "Pokemon",
            "title": "<string>",
            "name": "<string>",
            "rarity": "<string>",
            "set": {
              "name": "<string>",
              "urn": "<string>",
              "counts": {
                "printed": 123,
                "total": 123
              },
              "references": [
                "<string>"
              ],
              "size": 123,
              "symbol": {
                "url": "<string>"
              },
              "released": "<string>"
            },
            "series": {
              "name": "<string>",
              "urn": "<string>"
            },
            "images": [
              {
                "urn": "<string>",
                "orientation": "portrait",
                "url": "<string>",
                "illustrator": "<string>"
              }
            ],
            "alternatives": [
              "<string>"
            ],
            "metadata": [
              {
                "name": "<string>",
                "value": "<string>",
                "detail": [
                  "<unknown>"
                ]
              }
            ],
            "number": "<string>",
            "description": "<string>",
            "price": 123,
            "available": 1
          },
          "status": "ACCEPTED",
          "variants": [],
          "comment": "<string>",
          "shipmentId": "<string>"
        }
      ],
      "shipments": [
        {
          "id": "<string>",
          "orderId": "<string>",
          "trackingNumber": "<string>",
          "trackingStatus": "<string>",
          "trackingStatusDetail": "<string>",
          "trackingUrl": "<string>",
          "carrier": "<string>",
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z",
          "attachments": [
            {
              "id": "<string>",
              "url": "<string>",
              "hidden": true
            }
          ]
        }
      ],
      "user": {
        "id": "<string>",
        "username": "<string>",
        "reviews": 123,
        "rating": 123,
        "score": 123,
        "sales": 123,
        "purchases": 123,
        "joined": "2023-11-07T05:31:56Z",
        "avatar": "<string>",
        "cover": "<string>",
        "profile": "<string>"
      },
      "adjustments": [],
      "reviews": {}
    }
  ],
  "cases": [
    {
      "id": "<string>",
      "workflowId": "<string>",
      "purchaseId": "<string>",
      "reason": "SNAD",
      "status": "OPEN",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "outcomes": [
        {
          "id": "<string>",
          "type": "RETURN",
          "party": "SELLER",
          "status": "PENDING",
          "caseId": "<string>",
          "amount": 1,
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z",
          "comment": "<string>",
          "deliveryAddress": "<unknown>"
        }
      ],
      "attachments": [
        {
          "url": "<string>",
          "party": "SELLER",
          "createdAt": "2023-11-07T05:31:56Z"
        }
      ],
      "comment": "<string>"
    }
  ],
  "status": "ACTIVE",
  "invoiceId": "<string>",
  "user": {
    "id": "<string>",
    "username": "<string>",
    "reviews": 123,
    "rating": 123,
    "score": 123,
    "sales": 123,
    "purchases": 123,
    "joined": "2023-11-07T05:31:56Z",
    "avatar": "<string>",
    "cover": "<string>",
    "profile": "<string>"
  },
  "refunds": []
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Purchase ID

Response

Purchase

id
string<cuid2>
required

Unique identifier for the purchase

customerEmailAddress
string<email>
required

Email address used for the purchase

deliveryCharge
integer
required

Delivery charge in pence

deliveryAddress
Delivery Address · object
required

Address where the order should be delivered

subtotal
integer
required

Subtotal in pence

total
integer
required

Total in pence

serviceFee
integer
required

Service fee in pence

createdAt
string<date-time>
required

Timestamp when the purchase was created

updatedAt
string<date-time>
required

Timestamp when the purchase was last updated

orders
object[]
required

Orders included in the purchase

cases
object[]
required

Cases associated with the purchase

status
enum<string>
default:ACTIVE

Purchase status

Available options:
ACTIVE,
REFUNDED,
COMPLETED
invoiceId
string | null

Invoice identifier generated for the purchase

user
object

User that purchased the items

refunds
object[]

Refunds against this purchase (Stripe IDs omitted)