logo
OpenapiOrders

Get order details

API Docs with browser client
GET
/orders/{orderId}

Retrieve detailed information about an order including items, payments, and user details. User must own the order.

AuthorizationBearer <token>

In: header

Path Parameters

orderId*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://backend.astra.namefi.dev/v-next/orders/string"
{
  "order": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
    "status": "CREATED",
    "amountInUSDCents": -2147483648,
    "nftWalletAddress": "string",
    "nftChainId": -2147483648,
    "metadata": {
      "freeClaim": true,
      "groupOrCampaignKey": "string",
      "claimId": "string",
      "mintTransactions": {
        "property1": {
          "txHash": "string",
          "recordedAt": "string"
        },
        "property2": {
          "txHash": "string",
          "recordedAt": "string"
        }
      },
      "property1": null,
      "property2": null
    },
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  },
  "items": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
      "normalizedDomainName": "string",
      "amountInUSDCents": -2147483648,
      "durationInYears": -2147483648,
      "type": "REGISTER",
      "registrar": "string",
      "encryptionKeyId": "string",
      "encryptedEppAuthorizationCode": "string",
      "status": "CREATED",
      "metadata": {
        "freeClaim": true,
        "groupOrCampaignKey": "string",
        "claimId": "string",
        "mintTransaction": {
          "txHash": "string",
          "recordedAt": "string"
        },
        "property1": null,
        "property2": null
      },
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "payments": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "amountInUSDCents": -2147483648,
      "status": "CREATED",
      "paymentProvider": "NFSC_BASE",
      "paymentProviderReferenceId": "string",
      "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
      "nfscPaymentDetails": "string",
      "stripePaymentDetails": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "user": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "primaryEmail": "string",
    "stripeCustomerId": "string",
    "privyUserId": "string",
    "subscribeToEmails": true,
    "lastSignInAt": "2019-08-24T14:15:22Z",
    "lastAccessedSessionAt": "2019-08-24T14:15:22Z",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
{
  "defined": true,
  "code": "BAD_REQUEST",
  "status": 400,
  "message": "Bad Request",
  "data": null
}
{
  "defined": true,
  "code": "UNAUTHORIZED",
  "status": 401,
  "message": "Unauthorized",
  "data": null
}
{
  "defined": true,
  "code": "FORBIDDEN",
  "status": 403,
  "message": "Forbidden",
  "data": null
}
{
  "defined": true,
  "code": "NOT_FOUND",
  "status": 404,
  "message": "Not Found",
  "data": null
}
{
  "defined": true,
  "code": "NOT_ACCEPTABLE",
  "status": 406,
  "message": "Not Acceptable",
  "data": null
}
{
  "defined": true,
  "code": "TIMEOUT",
  "status": 408,
  "message": "Request Timeout",
  "data": null
}
{
  "defined": true,
  "code": "CONFLICT",
  "status": 409,
  "message": "Conflict",
  "data": null
}
{
  "defined": true,
  "code": "PRECONDITION_FAILED",
  "status": 412,
  "message": "Precondition Failed",
  "data": null
}
{
  "defined": true,
  "code": "TOO_MANY_REQUESTS",
  "status": 429,
  "message": "Too Many Requests",
  "data": null
}
{
  "defined": true,
  "code": "INTERNAL_SERVER_ERROR",
  "status": 500,
  "message": "Internal Server Error",
  "data": null
}