> ## Documentation Index
> Fetch the complete documentation index at: https://www.spacebring.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get an order

> Get a certain order. <h3>OAuth</h3>Required scopes: <code>shop.readonly</code> or <code>shop</code>



## OpenAPI

````yaml /assets/openapi.json get /shop/orders/v1/{orderId}
openapi: 3.0.2
info:
  title: Spacebring
  version: 1.0.0
  termsOfService: https://www.spacebring.com/terms
servers:
  - url: https://api.spacebring.com
security: []
paths:
  /shop/orders/v1/{orderId}:
    get:
      tags:
        - Shop
      summary: Get an order
      description: >-
        Get a certain order. <h3>OAuth</h3>Required scopes:
        <code>shop.readonly</code> or <code>shop</code>
      operationId: getOrder
      parameters:
        - in: path
          name: orderId
          required: true
          description: The id of the order.
          schema:
            type: string
            format: uuid
        - in: header
          name: spacebring-network-id
          schema:
            type: string
            format: uuid
          required: false
          description: >-
            The id of the network. Required when using bearer token
            authentication
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getOrder'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responseError'
      security:
        - BasicAuth: []
        - OAuth2:
            - shop.readonly
            - shop
components:
  schemas:
    getOrder:
      type: object
      properties:
        order:
          type: object
          properties:
            comment:
              description: Optional comment left by the customer.
              type: string
            createDate:
              type: string
              format: date-time
              description: ISO timestamp of when the order was created.
            deleteDate:
              description: ISO timestamp of when the order was deleted.
              type: string
              format: date-time
            id:
              type: string
              format: uuid
              description: Unique identifier of the order.
            items:
              type: array
              items:
                type: object
                properties:
                  altCurrencyPriceDetails:
                    description: Price in an alternative currency, if applicable.
                    type: object
                    properties:
                      money:
                        type: object
                        properties:
                          currencyCode:
                            type: string
                            description: ISO 4217 currency code.
                          tax:
                            description: Tax details.
                            type: object
                            properties:
                              inclusive:
                                type: boolean
                                description: Whether tax is included in the price.
                              rate:
                                type: number
                                description: Tax rate.
                            required:
                              - inclusive
                              - rate
                            additionalProperties: false
                          unitAmount:
                            type: number
                            description: Unit price in the alternative currency.
                        required:
                          - currencyCode
                          - unitAmount
                        additionalProperties: false
                      type:
                        type: string
                        enum:
                          - money
                        description: Price type.
                    required:
                      - money
                      - type
                    additionalProperties: false
                  id:
                    type: string
                    format: uuid
                    description: Unique identifier of the order item.
                  priceDetails:
                    description: Price details for this item, if the order was paid.
                    type: object
                    properties:
                      credits:
                        description: Credits price details.
                        type: object
                        properties:
                          unitAmount:
                            type: number
                            description: Unit price in credits.
                        required:
                          - unitAmount
                        additionalProperties: false
                      money:
                        description: Money price details.
                        type: object
                        properties:
                          currencyCode:
                            type: string
                            description: ISO 4217 currency code.
                          tax:
                            description: Tax details.
                            type: object
                            properties:
                              inclusive:
                                type: boolean
                                description: Whether tax is included in the price.
                              rate:
                                type: number
                                description: Tax rate.
                            required:
                              - inclusive
                              - rate
                            additionalProperties: false
                          unitAmount:
                            type: number
                            description: Unit price in money.
                        required:
                          - currencyCode
                          - unitAmount
                        additionalProperties: false
                      type:
                        type: string
                        enum:
                          - credits
                          - money
                        description: Price type.
                    required:
                      - type
                    additionalProperties: false
                  product:
                    type: object
                    properties:
                      description:
                        type: string
                        description: Product description.
                      id:
                        type: string
                        format: uuid
                        description: Unique identifier of the product.
                      media:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              description: Storage key.
                            url:
                              type: string
                              description: Public URL.
                          required:
                            - key
                            - url
                          additionalProperties: false
                        description: Product media files.
                      option:
                        description: Product option selected for this item.
                        type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                            description: Unique identifier of the option.
                          title:
                            type: string
                            description: Display name of the option.
                        required:
                          - id
                          - title
                        additionalProperties: false
                      title:
                        type: string
                        description: Product title.
                    required:
                      - description
                      - id
                      - media
                      - title
                    additionalProperties: false
                    description: Product purchased in this item.
                  quantity:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                    description: Number of units purchased.
                required:
                  - id
                  - product
                  - quantity
                additionalProperties: false
              description: Items included in this order.
            locationRef:
              type: string
              format: uuid
              description: ID of the location where the order was placed.
            membershipRef:
              description: ID of the membership associated with this order.
              type: string
              format: uuid
            membershipRefDeletedBy:
              description: ID of the membership that deleted this order.
              type: string
              format: uuid
            number:
              type: number
              description: Sequential order number within the location.
            payment:
              description: Payment details. Absent for free orders.
              type: object
              properties:
                createDate:
                  description: ISO timestamp of when the payment was created.
                  type: string
                  format: date-time
                discounts:
                  type: array
                  items:
                    type: object
                    properties:
                      coupon:
                        type: object
                        properties:
                          amountOff:
                            description: Fixed amount deducted by this coupon.
                            type: number
                          currencyCode:
                            description: ISO 4217 currency code for the coupon amount.
                            type: string
                          id:
                            description: Coupon identifier.
                            type: string
                          percentOff:
                            description: Percentage deducted by this coupon.
                            type: number
                          productTypes:
                            description: Product types this coupon applies to.
                            type: array
                            items:
                              type: string
                          type:
                            description: Coupon type.
                            type: string
                        additionalProperties: false
                        description: Applied coupon details.
                      promocode:
                        description: Applied promocode details.
                        type: object
                        properties:
                          code:
                            type: string
                            description: Promocode string.
                          expiration:
                            description: ISO timestamp of when the promocode expires.
                            type: object
                            properties:
                              date:
                                type: string
                              enabled:
                                type: boolean
                            required:
                              - enabled
                            additionalProperties: false
                          id:
                            type: string
                            description: Promocode identifier.
                          limitByFirstPurchase:
                            description: >-
                              Whether the promocode is limited to the first
                              purchase.
                            type: boolean
                        required:
                          - code
                          - id
                        additionalProperties: false
                      subscriptionId:
                        description: Subscription reference associated with this discount.
                        type: string
                    required:
                      - coupon
                    additionalProperties: false
                  description: Discounts applied to this order.
                dispute:
                  description: Payment dispute details, if any.
                  type: object
                  properties:
                    createDate:
                      type: string
                      format: date-time
                      description: ISO timestamp of when the dispute was created.
                  required:
                    - createDate
                  additionalProperties: false
                method:
                  type: object
                  properties:
                    credits:
                      description: Credits payment method details.
                      type: object
                      properties:
                        customer:
                          type: object
                          properties:
                            id:
                              description: Customer identifier.
                              type: string
                            location:
                              description: Location the customer belongs to.
                              type: object
                              properties:
                                id:
                                  type: string
                                  format: uuid
                                  description: Unique identifier of the location.
                                title:
                                  type: string
                                  description: Display name of the location.
                              required:
                                - id
                                - title
                              additionalProperties: false
                            name:
                              description: First name of the customer.
                              nullable: true
                              type: string
                            surname:
                              description: Last name of the customer.
                              nullable: true
                              type: string
                            title:
                              description: Company title.
                              type: string
                            type:
                              description: Customer type.
                              type: string
                              enum:
                                - company
                                - user
                          additionalProperties: false
                          description: Customer who paid with credits.
                      required:
                        - customer
                      additionalProperties: false
                    invoice:
                      description: Invoice payment method details.
                      type: object
                      properties:
                        customer:
                          type: object
                          properties:
                            id:
                              description: Customer identifier.
                              type: string
                            location:
                              description: Location the customer belongs to.
                              type: object
                              properties:
                                id:
                                  type: string
                                  format: uuid
                                  description: Unique identifier of the location.
                                title:
                                  type: string
                                  description: Display name of the location.
                              required:
                                - id
                                - title
                              additionalProperties: false
                            name:
                              description: First name of the customer.
                              nullable: true
                              type: string
                            surname:
                              description: Last name of the customer.
                              nullable: true
                              type: string
                            title:
                              description: Company title.
                              type: string
                            type:
                              description: Customer type.
                              type: string
                              enum:
                                - company
                                - user
                          additionalProperties: false
                          description: Customer who paid by invoice.
                        invoiceRef:
                          description: Reference to the invoice.
                          type: string
                          format: uuid
                        subscriptionRef:
                          description: Reference to the subscription.
                          type: string
                          format: uuid
                      required:
                        - customer
                      additionalProperties: false
                    paymentGateway:
                      description: Payment gateway method details.
                      type: object
                      properties:
                        customer:
                          type: object
                          properties:
                            id:
                              description: Customer identifier.
                              type: string
                            location:
                              description: Location the customer belongs to.
                              type: object
                              properties:
                                id:
                                  type: string
                                  format: uuid
                                  description: Unique identifier of the location.
                                title:
                                  type: string
                                  description: Display name of the location.
                              required:
                                - id
                                - title
                              additionalProperties: false
                            name:
                              description: First name of the customer.
                              nullable: true
                              type: string
                            surname:
                              description: Last name of the customer.
                              nullable: true
                              type: string
                            title:
                              description: Company title.
                              type: string
                            type:
                              description: Customer type.
                              type: string
                              enum:
                                - company
                                - user
                          additionalProperties: false
                          description: Customer who paid via payment gateway.
                        label:
                          description: >-
                            Human-readable payment method label (e.g. Visa ****
                            4242).
                          type: string
                        location:
                          description: Location associated with the payment gateway.
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                              description: Unique identifier of the location.
                            title:
                              type: string
                              description: Display name of the location.
                          required:
                            - id
                            - title
                          additionalProperties: false
                        mask:
                          description: Masked payment method identifier.
                          type: string
                        title:
                          description: Payment gateway display name.
                          type: string
                        type:
                          description: Payment gateway type.
                          type: string
                          enum:
                            - flow
                            - fondy
                            - freedompay
                            - kakaopay
                            - maya
                            - mercadopago
                            - paypal
                            - paystack
                            - payway
                            - plata
                            - stripe
                            - tap
                            - wayforpay
                            - mollie
                            - xendit
                      required:
                        - customer
                      additionalProperties: false
                    type:
                      type: string
                      enum:
                        - credits
                        - invoice
                        - paymentGateway
                      description: Payment method type.
                  required:
                    - type
                  additionalProperties: false
                  description: Payment method used for this order.
                price:
                  type: object
                  properties:
                    credits:
                      description: Credits price breakdown. Present when type is credits.
                      type: object
                      properties:
                        expiringAmount:
                          type: number
                          description: Amount of expiring credits charged.
                        permanentAmount:
                          type: number
                          description: Amount of permanent credits charged.
                      required:
                        - expiringAmount
                        - permanentAmount
                      additionalProperties: false
                    money:
                      description: Money price breakdown. Present when type is money.
                      type: object
                      properties:
                        currencyCode:
                          type: string
                          description: ISO 4217 currency code.
                        grossAmount:
                          type: number
                          description: Total gross amount charged.
                      required:
                        - currencyCode
                        - grossAmount
                      additionalProperties: false
                    type:
                      type: string
                      enum:
                        - credits
                        - money
                      description: Payment price type.
                  required:
                    - type
                  additionalProperties: false
                  description: Price breakdown for this payment.
                refund:
                  description: Most recent refund, if any.
                  type: object
                  properties:
                    credits:
                      description: Credits refund details.
                      type: object
                      properties:
                        amountExpiring:
                          type: number
                          description: Expiring credits refunded.
                        amountPermanent:
                          type: number
                          description: Permanent credits refunded.
                        amountTotal:
                          type: number
                          description: Total credits refunded.
                        createDate:
                          type: string
                          format: date-time
                          description: ISO timestamp of when the refund was created.
                      required:
                        - amountExpiring
                        - amountPermanent
                        - amountTotal
                        - createDate
                      additionalProperties: false
                    money:
                      description: Money refund details.
                      type: object
                      properties:
                        createDate:
                          type: string
                          format: date-time
                          description: ISO timestamp of when the refund was created.
                        currencyCode:
                          type: string
                          description: ISO 4217 currency code.
                        grossAmount:
                          type: number
                          description: Gross amount refunded.
                      required:
                        - createDate
                        - currencyCode
                        - grossAmount
                      additionalProperties: false
                    transactionRef:
                      description: Reference to the refund transaction.
                      type: string
                  additionalProperties: false
                refundable:
                  type: boolean
                  description: Whether this payment can currently be refunded.
                refunds:
                  description: All refunds for this payment.
                  type: object
                  properties:
                    credits:
                      description: List of credits refunds.
                      type: array
                      items:
                        type: object
                        properties:
                          amountExpiring:
                            type: number
                            description: Expiring credits in this refund.
                          amountPermanent:
                            type: number
                            description: Permanent credits in this refund.
                          amountTotal:
                            type: number
                            description: Total credits in this refund.
                          createDate:
                            type: string
                            format: date-time
                            description: ISO timestamp of when this refund was created.
                          id:
                            type: string
                            description: Refund identifier.
                        required:
                          - amountExpiring
                          - amountPermanent
                          - amountTotal
                          - createDate
                          - id
                        additionalProperties: false
                    money:
                      description: List of money refunds.
                      type: array
                      items:
                        type: object
                        properties:
                          createDate:
                            type: string
                            format: date-time
                            description: ISO timestamp of when this refund was created.
                          currencyCode:
                            type: string
                            description: ISO 4217 currency code.
                          grossAmount:
                            type: number
                            description: Gross amount of this refund.
                          id:
                            type: string
                            description: Refund identifier.
                        required:
                          - createDate
                          - currencyCode
                          - grossAmount
                          - id
                        additionalProperties: false
                    type:
                      description: Refund type.
                      type: string
                      enum:
                        - credits
                        - money
                  additionalProperties: false
                request:
                  description: >-
                    Pending payment request. Present when status is pending and
                    the order belongs to the current user.
                  type: object
                  properties:
                    id:
                      type: string
                      format: uuid
                      description: Payment request identifier.
                    url:
                      type: string
                      description: URL to complete the payment.
                  required:
                    - id
                    - url
                  additionalProperties: false
                status:
                  description: Payment status (e.g. succeeded, pending, failed).
                  type: string
                surcharge:
                  description: Payment gateway surcharge, if any.
                  type: object
                  properties:
                    money:
                      type: object
                      properties:
                        amount:
                          type: number
                          description: Surcharge amount.
                        currencyCode:
                          type: string
                          description: ISO 4217 currency code.
                        percentage:
                          description: Surcharge percentage.
                          type: number
                        rate:
                          description: Surcharge rate.
                          type: number
                      required:
                        - amount
                        - currencyCode
                        - percentage
                        - rate
                      additionalProperties: false
                    type:
                      type: string
                      enum:
                        - money
                      description: Surcharge type.
                  required:
                    - money
                    - type
                  additionalProperties: false
                transactionRef:
                  description: Reference to the payment transaction.
                  type: string
                type:
                  description: Payment type (e.g. stripe, credits, invoice).
                  type: string
              required:
                - discounts
                - method
                - price
                - refundable
              additionalProperties: false
            status:
              type: string
              enum:
                - new
                - inProgress
                - completed
                - canceled
              description: Current order status.
            user:
              type: object
              properties:
                about:
                  description: Short bio of the user.
                  nullable: true
                  type: string
                email:
                  description: Email address of the user.
                  nullable: true
                  type: string
                id:
                  type: string
                  format: uuid
                  description: Unique identifier of the user.
                name:
                  description: First name of the user.
                  nullable: true
                  type: string
                phoneNumber:
                  description: Phone number of the user.
                  nullable: true
                  type: string
                photoUrl:
                  nullable: true
                  description: Profile photo URL of the user.
                  type: string
                surname:
                  description: Last name of the user.
                  nullable: true
                  type: string
              required:
                - id
              additionalProperties: false
              description: User who placed the order.
            userDeletedBy:
              description: User who deleted this order, if applicable.
              type: object
              properties:
                id:
                  type: string
                  format: uuid
                  description: Unique identifier of the user who deleted the order.
                name:
                  description: First name of the user who deleted the order.
                  nullable: true
                  type: string
                surname:
                  description: Last name of the user who deleted the order.
                  nullable: true
                  type: string
              required:
                - id
              additionalProperties: false
          required:
            - createDate
            - id
            - items
            - locationRef
            - number
            - status
            - user
          additionalProperties: false
          description: The order.
      required:
        - order
      additionalProperties: false
    responseError:
      type: object
      properties:
        message:
          type: string
        type:
          type: string
  securitySchemes:
    BasicAuth:
      type: http
      description: >-
        See our [authentication
        documentation](https://www.spacebring.com/docs/api-reference/authentication#basic-authentication)
        for how to authorize your requests
      scheme: basic
    OAuth2:
      type: oauth2
      description: >-
        See our [authentication
        documentation](https://www.spacebring.com/docs/api-reference/authentication#oauth2)
        for how to authorize your requests
      flows:
        authorizationCode:
          authorizationUrl: https://api.spacebring.com/oauth2/authorize
          tokenUrl: https://api.spacebring.com/oauth2/token
          refreshUrl: https://api.spacebring.com/oauth2/token
          scopes:
            benefits.readonly: Read benefits and applications
            benefits: Read and write benefits and applications
            community.readonly: Read community companies and memberships
            community: Read and write community companies and memberships
            events.readonly: Read events and tickets
            events: Read and write events and tickets
            feed.readonly: Read feed posts
            feed: Read and write feed posts
            invoices.readonly: Read contracts, credit notes, discounts and invoices
            invoices: Read and write contract, credit notes, discounts and invoices
            locations.readonly: Read locations
            locations: Read and write locations
            plans.readonly: Read plans
            plans: Read and write plans
            resources.readonly: Read resources and bookings
            resources: Read and write resources and bookings
            subscriptions.readonly: Read subscriptions
            subscriptions: Read and write subscriptions
            shop.readonly: Read products and orders
            shop: Read and write products and orders
            support.readonly: Read support tickets
            support: Read and write support tickets
            transactions.readonly: Read transactions
            transactions: Read and write transactions
            visitors.readonly: Read visitors
            visitors: Read and write visitors

````