Maremagnum API Documentation

Welcome to the GraphQL Introduction Documentation for our Maremagnum. GraphQL is a query language for APIs that allows for more efficient and flexible communication between the client and the server. It provides a way for clients to request only the data that they need and reduces the amount of over or under-fetching of data. This documentation is intended for developers who want to understand how to interact with the Maremagnum API using GraphQL. We will cover the basics of GraphQL, including the query syntax, mutations, and subscriptions. We will also provide examples of how to make queries and mutations to retrieve and update data in the Maremagnum. Additionally, we will cover the different types of data that are available, including books, authors, and reviews. Whether you're a seasoned GraphQL developer or just getting started, this documentation will help you get up and running with our Maremagnum API. Let's get started!

Contact

Maremagnum Technical Support

support@maremagnum.com

API Endpoints
https://api.maremagnum.com/graphql
Headers
# Your API token from the dashboard. Must be included in all API calls.
Authorization: Bearer <YOUR_TOKEN_HERE>
Version

0.58-3

Where i can find my API token?

How to Get Your API-Token in Your Administrative Dashboard

In order to access to Maremagnum API, you need to have an API-Token. If you do not have one, you can easily generate it by following these steps:

  • Login to your administrative dashboard
  • Navigate to the section "Service Account"
  • If you do not already have an API-Token, you will see a button labeled "Generate".
  • Push the "Generate" button to generate your API-Token
  • Your API-Token will now be displayed in the "Service Account" section

It is important to keep your API-Token secure and not to share it with anyone else. You can regenerate it at any time if you suspect it has been compromised.

Queries

ncd

Description

Lista delle note di conto deposito.

Response

Returns [Ncd!]!

Arguments
Name Description
first - Int Return at most N records. Something like SQL LIMIT clause. Default is 100. Max value is 100.
where - NcdWhereClauseInput A JSON object conforming the the shape specified in the NcdWhereClauseInput type. This allows for filtering orders by any of the fields in the order object.

Example

Query
query ncd(
  $first: Int,
  $where: NcdWhereClauseInput
) {
  ncd(
    first: $first,
    where: $where
  ) {
    tsCreated
    tsUpdated
    tsPrinted
    progressivo
    data
    codiceFiscale
    partitaIva
    codiceDestinatarioSdi
    cognome
    nome
    ragioneSociale
    indirizzo
    citta
    provinciaStato
    cap
    nazione
    totale
    righe {
      ...RigaNcdFragment
    }
  }
}
Variables
{"first": 42, "where": NcdWhereClauseInput}
Response
{
  "data": {
    "ncd": [
      {
        "tsCreated": "2023-11-29T13:32:36.690Z",
        "tsUpdated": "2023-11-29T13:32:36.690Z",
        "tsPrinted": "2007-12-03",
        "progressivo": "xyz789",
        "data": "2007-12-03",
        "codiceFiscale": "xyz789",
        "partitaIva": "abc123",
        "codiceDestinatarioSdi": "abc123",
        "cognome": "xyz789",
        "nome": "xyz789",
        "ragioneSociale": "xyz789",
        "indirizzo": "xyz789",
        "citta": "xyz789",
        "provinciaStato": "xyz789",
        "cap": "abc123",
        "nazione": "xyz789",
        "totale": Decimal,
        "righe": [RigaNcd]
      }
    ]
  }
}

orders

Description

Get a list of orders filtered and sorted by the given parameters.

Response

Returns [Order!]!

Arguments
Name Description
first - Int Return at most N records. Something like SQL LIMIT clause. Default is 250. Max value is 250.
orderBy - OrderBy Sort Ascending or Descending. Default is DESC.
where - OrderWhereClauseInput A JSON object conforming the the shape specified in the OrderWhereClauseInput type. This allows for filtering orders by any of the fields in the order object.

Example

Query
query orders(
  $first: Int,
  $orderBy: OrderBy,
  $where: OrderWhereClauseInput
) {
  orders(
    first: $first,
    orderBy: $orderBy,
    where: $where
  ) {
    tsCreated
    ts
    number
    total
    totalShippingCost
    totalDiscount
    orderDate
    status
    paymentStatus
    shippingAddress {
      ...ShippingAddressFragment
    }
    billingAddress {
      ...BillingAddressFragment
    }
    orderLines {
      ...OrderLineFragment
    }
    shipments {
      ...ShipmentFragment
    }
    coupons {
      ...DiscountCouponFragment
    }
  }
}
Variables
{
  "first": 42,
  "orderBy": "Asc",
  "where": OrderWhereClauseInput
}
Response
{
  "data": {
    "orders": [
      {
        "tsCreated": "2023-11-29T13:32:36.690Z",
        "ts": "2023-11-29T13:32:36.690Z",
        "number": "xyz789",
        "total": Decimal,
        "totalShippingCost": Decimal,
        "totalDiscount": Decimal,
        "orderDate": "2007-12-03",
        "status": "WAITING_AVAILABILITY",
        "paymentStatus": "PROCESSING",
        "shippingAddress": ShippingAddress,
        "billingAddress": BillingAddress,
        "orderLines": [OrderLine],
        "shipments": [Shipment],
        "coupons": [DiscountCoupon]
      }
    ]
  }
}

product

Description

Get a product by id.

Response

Returns a Product!

Arguments
Name Description
id - IdInput! Unique ID for this product.

Example

Query
query product($id: IdInput!) {
  product(id: $id) {
    id
    ts
    visible
    title
    slug
    description
    stock
    allocated
    price
    productClass
    codiceIva
    discount
    weight
    details {
      ...ProductDetailFragment
    }
  }
}
Variables
{"id": IdInput}
Response
{
  "data": {
    "product": {
      "id": "4",
      "ts": "2023-11-29T13:32:36.690Z",
      "visible": true,
      "title": "4",
      "slug": "abc123",
      "description": "xyz789",
      "stock": 42,
      "allocated": 42,
      "price": Decimal,
      "productClass": "Book",
      "codiceIva": "Art36",
      "discount": 42,
      "weight": 42,
      "details": [ProductDetail]
    }
  }
}

products

Description

Get all the products.

Response

Returns [Product!]!

Arguments
Name Description
offset - Int OFFSET says to skip that many rows before beginning to return rows. OFFSET 0 is the same as omitting the OFFSET clause. Default is 0.
limit - Int Return at most N records. Something like SQL LIMIT clause. Default is 100. Max value is 500.

Example

Query
query products(
  $offset: Int,
  $limit: Int
) {
  products(
    offset: $offset,
    limit: $limit
  ) {
    id
    ts
    visible
    title
    slug
    description
    stock
    allocated
    price
    productClass
    codiceIva
    discount
    weight
    details {
      ...ProductDetailFragment
    }
  }
}
Variables
{"offset": 42, "limit": 42}
Response
{
  "data": {
    "products": [
      {
        "id": 4,
        "ts": "2023-11-29T13:32:36.690Z",
        "visible": false,
        "title": 4,
        "slug": "abc123",
        "description": "xyz789",
        "stock": 42,
        "allocated": 42,
        "price": Decimal,
        "productClass": "Book",
        "codiceIva": "Art36",
        "discount": 42,
        "weight": 42,
        "details": [ProductDetail]
      }
    ]
  }
}

productsCount

Description

Get the number of products present in Mare Manum database.

Response

Returns an Int!

Example

Query
query productsCount {
  productsCount
}
Response
{"data": {"productsCount": 42}}

Mutations

confirmAvailability

Description

Confirm availability of a order.

Response

Returns a Boolean!

Arguments
Name Description
orderNumber - IdInput! Unique ID for the order that will be confirmed.

Example

Query
mutation confirmAvailability($orderNumber: IdInput!) {
  confirmAvailability(orderNumber: $orderNumber)
}
Variables
{"orderNumber": IdInput}
Response
{"data": {"confirmAvailability": false}}

productDelete

Description

Delete an existing product from the Mare Magnum database.

Response

Returns an ID!

Arguments
Name Description
id - IdInput! Unique ID for this product.

Example

Query
mutation productDelete($id: IdInput!) {
  productDelete(id: $id)
}
Variables
{"id": IdInput}
Response
{"data": {"productDelete": "4"}}

productMassiveDelete

Description

Massively delete products from the Mare Magnum database.

Response

Returns an Int!

Arguments
Name Description
ids - [IdInput!]! List of IDs for products that will be deleted. Max 500 items per request.

Example

Query
mutation productMassiveDelete($ids: [IdInput!]!) {
  productMassiveDelete(ids: $ids)
}
Variables
{"ids": [IdInput]}
Response
{"data": {"productMassiveDelete": 42}}

productUpdateCreate

Description

Create a new product or update an existing one.

Response

Returns a Product!

Arguments
Name Description
input - ProductInput! The product that will be created or updated by this mutation

Example

Query
mutation productUpdateCreate($input: ProductInput!) {
  productUpdateCreate(input: $input) {
    id
    ts
    visible
    title
    slug
    description
    stock
    allocated
    price
    productClass
    codiceIva
    discount
    weight
    details {
      ...ProductDetailFragment
    }
  }
}
Variables
{"input": ProductInput}
Response
{
  "data": {
    "productUpdateCreate": {
      "id": "4",
      "ts": "2023-11-29T13:32:36.690Z",
      "visible": false,
      "title": "4",
      "slug": "xyz789",
      "description": "abc123",
      "stock": 42,
      "allocated": 42,
      "price": Decimal,
      "productClass": "Book",
      "codiceIva": "Art36",
      "discount": 42,
      "weight": 42,
      "details": [ProductDetail]
    }
  }
}

updateAuthToken

Description

Update the authentication token.

Response

Returns an AuthToken!

Example

Query
mutation updateAuthToken {
  updateAuthToken {
    token
    expires
  }
}
Response
{
  "data": {
    "updateAuthToken": {
      "token": "abc123",
      "expires": "2023-11-29T13:32:36.690Z"
    }
  }
}

updateShippingData

Description

Update shipping related data. All fields are optional, but you must provide at least the order number.

Response

Returns a Boolean!

Arguments
Name Description
notes - String Optional notes.
trackingURL - String Optional tracking URL.
expectedDeliveryDate - DateInput Optional expected delivery date.
pickupDate - DateInput Optional pickup date.
orderNumber - IdInput! Unique ID for the order.

Example

Query
mutation updateShippingData(
  $notes: String,
  $trackingURL: String,
  $expectedDeliveryDate: DateInput,
  $pickupDate: DateInput,
  $orderNumber: IdInput!
) {
  updateShippingData(
    notes: $notes,
    trackingURL: $trackingURL,
    expectedDeliveryDate: $expectedDeliveryDate,
    pickupDate: $pickupDate,
    orderNumber: $orderNumber
  )
}
Variables
{
  "notes": "xyz789",
  "trackingURL": "xyz789",
  "expectedDeliveryDate": DateInput,
  "pickupDate": DateInput,
  "orderNumber": IdInput
}
Response
{"data": {"updateShippingData": false}}

voidSingleOrderLine

Description

Void a single order line.

Response

Returns a Boolean!

Arguments
Name Description
productID - IdInput! Unique ID for the product not available.
orderNumber - IdInput! Unique ID for the order.

Example

Query
mutation voidSingleOrderLine(
  $productID: IdInput!,
  $orderNumber: IdInput!
) {
  voidSingleOrderLine(
    productID: $productID,
    orderNumber: $orderNumber
  )
}
Variables
{
  "productID": IdInput,
  "orderNumber": IdInput
}
Response
{"data": {"voidSingleOrderLine": false}}

Types

AuthToken

Fields
Field Name Description
token - String! The authentication token.
expires - Timestamp! The expiration date of the authentication token.
Example
{
  "token": "xyz789",
  "expires": "2023-11-29T13:32:36.690Z"
}

BillingAddress

Fields
Field Name Description
fiscalProfile - FiscalProfile! Type of fiscal entity
fiscalCode - String Fiscal code.
vatNumber - String VAT Number.
italianSdiCode - String Italian SDI code.
lastName - String Last name.
firstName - String First name.
birthday - Date Birthday.
companyName - String Company name.
address - String Address.
city - String City.
state - String Province/state.
zipCode - String ZIP code.
nation - String Natio. Two letters following ISO 3166-1 alpha-2, e.g. IT.
Example
{
  "fiscalProfile": "NONE",
  "fiscalCode": "xyz789",
  "vatNumber": "abc123",
  "italianSdiCode": "xyz789",
  "lastName": "xyz789",
  "firstName": "abc123",
  "birthday": "2007-12-03",
  "companyName": "abc123",
  "address": "abc123",
  "city": "abc123",
  "state": "abc123",
  "zipCode": "xyz789",
  "nation": "abc123"
}

Boolean

Example
true

Date

Description

A date, formatted according to RFC3339. Example: 2023-02-02

Example
"2007-12-03"

DateInput

Description

A date, formatted according to RFC3339. Example: 2023-02-02

Example
DateInput

Decimal

Description

Arbitrary-precision floating-point decimal type.

Example
Decimal

DecimalInput

Description

Arbitrary-precision floating-point decimal type.

Example
DecimalInput

DetailName

Description

Name of a product detail.

Values
Enum Value Description

Book_Author

Book_Curator

Book_Translator

Book_Illustrator

Book_Prefacer

Book_PlaceOfPrinting

Book_Publishers

Book_YearOfPublication

Book_Size

Book_DustJacket

Book_CoverDescription

Book_Binding

Book_BindingDescription

Book_Volume

Book_Pages

Book_ISBN

Book_FirstEdition

Book_Edition

Book_Keyword

Book_Series

Book_Inscribed

Book_InscriptionDescription

Book_PrintOnDemand

Book_Condition

Book_StateOfPreservation

Book_Languages

Postcard_Author

Postcard_PlaceOfPrinting

Postcard_Publisher

Postcard_YearOfPublication

Postcard_Size

Postcard_Album

Postcard_AlbumDescription

Postcard_Original

Postcard_Keyword

Postcard_AutographedCopy

Postcard_AutographDescription

Postcard_TraveledPostcard

Postcard_StateOfPreservation

Postcard_Languages

Print_Engravers

Print_Designers

Print_PlaceOfPrinting

Print_Publisher

Print_YearOfPublication

Print_Size

Print_Original

Print_Edition

Print_Keyword

Print_Inscribed

Print_InscriptionDescription

Print_StateOfPreservation

Print_Languages

Newspapers_Editor

Newspapers_Contributors

Newspapers_Translators

Newspapers_Illustrators

Newspapers_PlaceOfPrinting

Newspapers_Publisher

Newspapers_YearOfPublication

Newspapers_Size

Newspapers_DustJacket

Newspapers_CoverDescription

Newspapers_Binding

Newspapers_BindingDescription

Newspapers_Volume

Newspapers_Pages

Newspapers_ISSN

Newspapers_FirstEdition

Newspapers_Edition

Newspapers_Keyword

Newspapers_Inscribed

Newspapers_InscriptionDescription

Newspapers_Condition

Newspapers_StateOfPreservation

Newspapers_Languages

Newspapers_Number

Newspapers_FullYear

Photographs_Photographers

Photographs_PlaceOfPrinting

Photographs_Printer

Photographs_Publisher

Photographs_YearOfPublication

Photographs_Size

Photographs_Original

Photographs_Keyword

Photographs_Inscribed

Photographs_InscriptionDescription

Photographs_ChromaticBackground

Photographs_PrintOnDemand

Photographs_StateOfPreservation

Photographs_Condition

Comics_Author

Comics_Curator

Comics_Translator

Comics_Illustrator

Comics_Prefacer

Comics_PlaceOfPrinting

Comics_Publishers

Comics_YearOfPublication

Comics_Size

Comics_DustJacket

Comics_CoverDescription

Comics_Binding

Comics_BindingDescription

Comics_Volume

Comics_Pages

Comics_ISBN

Comics_FirstEdition

Comics_Edition

Comics_Keyword

Comics_Series

Comics_Inscribed

Comics_InscriptionDescription

Comics_PrintOnDemand

Comics_Condition

Comics_StateOfPreservation

Comics_Languages

Autographs_Author

Autographs_PlaceOfPrinting

Autographs_YearOfPublication

Autographs_Size

Autographs_Binding

Autographs_BindingDescription

Autographs_Volume

Autographs_Pages

Autographs_Keyword

Autographs_StateOfPreservation

Autographs_Languages

Example
"Book_Author"

DetailNameInput

Description

Name of a product detail.

Values
Enum Value Description

Book_Author

Book_Curator

Book_Translator

Book_Illustrator

Book_Prefacer

Book_PlaceOfPrinting

Book_Publishers

Book_YearOfPublication

Book_Size

Book_DustJacket

Book_CoverDescription

Book_Binding

Book_BindingDescription

Book_Volume

Book_Pages

Book_ISBN

Book_FirstEdition

Book_Edition

Book_Keyword

Book_Series

Book_Inscribed

Book_InscriptionDescription

Book_PrintOnDemand

Book_Condition

Book_StateOfPreservation

Book_Languages

Postcard_Author

Postcard_PlaceOfPrinting

Postcard_Publisher

Postcard_YearOfPublication

Postcard_Size

Postcard_Album

Postcard_AlbumDescription

Postcard_Original

Postcard_Keyword

Postcard_AutographedCopy

Postcard_AutographDescription

Postcard_TraveledPostcard

Postcard_StateOfPreservation

Postcard_Languages

Print_Engravers

Print_Designers

Print_PlaceOfPrinting

Print_Publisher

Print_YearOfPublication

Print_Size

Print_Original

Print_Edition

Print_Keyword

Print_Inscribed

Print_InscriptionDescription

Print_StateOfPreservation

Print_Languages

Newspapers_Editor

Newspapers_Contributors

Newspapers_Translators

Newspapers_Illustrators

Newspapers_PlaceOfPrinting

Newspapers_Publisher

Newspapers_YearOfPublication

Newspapers_Size

Newspapers_DustJacket

Newspapers_CoverDescription

Newspapers_Binding

Newspapers_BindingDescription

Newspapers_Volume

Newspapers_Pages

Newspapers_ISSN

Newspapers_FirstEdition

Newspapers_Edition

Newspapers_Keyword

Newspapers_Inscribed

Newspapers_InscriptionDescription

Newspapers_Condition

Newspapers_StateOfPreservation

Newspapers_Languages

Newspapers_Number

Newspapers_FullYear

Photographs_Photographers

Photographs_PlaceOfPrinting

Photographs_Printer

Photographs_Publisher

Photographs_YearOfPublication

Photographs_Size

Photographs_Original

Photographs_Keyword

Photographs_Inscribed

Photographs_InscriptionDescription

Photographs_ChromaticBackground

Photographs_PrintOnDemand

Photographs_StateOfPreservation

Photographs_Condition

Comics_Author

Comics_Curator

Comics_Translator

Comics_Illustrator

Comics_Prefacer

Comics_PlaceOfPrinting

Comics_Publishers

Comics_YearOfPublication

Comics_Size

Comics_DustJacket

Comics_CoverDescription

Comics_Binding

Comics_BindingDescription

Comics_Volume

Comics_Pages

Comics_ISBN

Comics_FirstEdition

Comics_Edition

Comics_Keyword

Comics_Series

Comics_Inscribed

Comics_InscriptionDescription

Comics_PrintOnDemand

Comics_Condition

Comics_StateOfPreservation

Comics_Languages

Autographs_Author

Autographs_PlaceOfPrinting

Autographs_YearOfPublication

Autographs_Size

Autographs_Binding

Autographs_BindingDescription

Autographs_Volume

Autographs_Pages

Autographs_Keyword

Autographs_StateOfPreservation

Autographs_Languages

Example
"Book_Author"

DetailType

Description

Type of a product detail.

Values
Enum Value Description

Text

Integer

Decimal

Bool

Date

Datetime

Option

Array

OptionArray

Example
"Text"

DetailTypeInput

Description

Type of a product detail.

Values
Enum Value Description

Text

Integer

Decimal

Bool

Date

Datetime

Option

Array

OptionArray

Example
"Text"

DiscountCoupon

Fields
Field Name Description
id - ID! The unique code identifying this discount coupon.
validFrom - Date! The date when this discount coupon becomes valid.
validTo - Date! The date when this discount coupon expires.
maxUses - Int! The maximum number of times this discount coupon can be used.
value - Decimal! The value of this discount coupon, in EUR.
Example
{
  "id": "4",
  "validFrom": "2007-12-03",
  "validTo": "2007-12-03",
  "maxUses": 42,
  "value": Decimal
}

FiscalProfile

Description

The fiscal profile of a customer.

Values
Enum Value Description

NONE

FIS

GIU

PA

Example
"NONE"

ID

Description

The ID scalar type represents a unique identifier, often used to refetch an object or as the key for a cache. The ID type is serialized in the same way as a String; however, defining it as an ID signifies that it is not intended to be human‐readable.

Example
4

IdInput

Description

The ID scalar type represents a unique identifier, often used to refetch an object or as the key for a cache. The ID type is serialized in the same way as a String; however, defining it as an ID signifies that it is not intended to be human‐readable.

Example
IdInput

Int

Example
42

Ncd

Fields
Field Name Description
tsCreated - Timestamp! Timestamp di creazione di questa nota di conto deposito.
tsUpdated - Timestamp! Timestamp di ultima modifica di questa nota di conto deposito.
tsPrinted - Date Timestamp di stampa di questa nota di conto deposito.
progressivo - String! Progressivo di questa nota di conto deposito.
data - Date! Data di questa nota di conto deposito.
codiceFiscale - String Codice fiscale dell'intestatario di questa nota di conto deposito.
partitaIva - String Partita IVA dell'intestatario di questa nota di conto deposito.
codiceDestinatarioSdi - String Codice destinatario SDI dell'intestatario di questa nota di conto deposito.
cognome - String Cognome dell'intestatario di questa nota di conto deposito.
nome - String Nome dell'intestatario di questa nota di conto deposito.
ragioneSociale - String Ragione sociale dell'intestatario di questa nota di conto deposito.
indirizzo - String Indirizzo dell'intestatario di questa nota di conto deposito.
citta - String Città dell'intestatario di questa nota di conto deposito.
provinciaStato - String Provincia o stato dell'intestatario di questa nota di conto deposito.
cap - String CAP dell'intestatario di questa nota di conto deposito.
nazione - String Nazione dell'intestatario di questa nota di conto deposito.
totale - Decimal! Totale di questa nota di conto deposito.
righe - [RigaNcd!]! Righe di questa nota di conto deposito.
Example
{
  "tsCreated": "2023-11-29T13:32:36.690Z",
  "tsUpdated": "2023-11-29T13:32:36.690Z",
  "tsPrinted": "2007-12-03",
  "progressivo": "xyz789",
  "data": "2007-12-03",
  "codiceFiscale": "abc123",
  "partitaIva": "abc123",
  "codiceDestinatarioSdi": "abc123",
  "cognome": "xyz789",
  "nome": "xyz789",
  "ragioneSociale": "abc123",
  "indirizzo": "xyz789",
  "citta": "abc123",
  "provinciaStato": "abc123",
  "cap": "xyz789",
  "nazione": "xyz789",
  "totale": Decimal,
  "righe": [RigaNcd]
}

NcdWhereClauseInput

Fields
Input Field Description
dateLte - DateInput The order date must be less or equal to this value.
dateGte - DateInput The order date must be greater or equal to this value.
Example
{
  "dateLte": DateInput,
  "dateGte": DateInput
}

OptionValue

Description

The value of a product option when it's a fixed choice.

Values
Enum Value Description

Book_Binding_Hardcover

Book_Binding_Softcover

Book_Condition_New

Book_Condition_Used

Book_StateOfPreservation_New

Book_StateOfPreservation_AsNew

Book_StateOfPreservation_Fine

Book_StateOfPreservation_VeryGood

Book_StateOfPreservation_Good

Book_StateOfPreservation_Fair

Book_StateOfPreservation_Poor

Book_Languages_Italian

Book_Languages_English

Book_Languages_French

Book_Languages_Spanish

Book_Languages_German

Book_Languages_Russian

Book_Languages_Greek

Book_Languages_Danish

Book_Languages_Swedish

Book_Languages_Chinese

Book_Languages_Japanese

Book_Languages_Portuguese

Book_Languages_Norwegian

Book_Languages_Ladin

Book_Languages_Latin

Book_Languages_Others

Postcard_StateOfPreservation_New

Postcard_StateOfPreservation_AsNew

Postcard_StateOfPreservation_Fine

Postcard_StateOfPreservation_VeryGood

Postcard_StateOfPreservation_Good

Postcard_StateOfPreservation_Fair

Postcard_StateOfPreservation_Poor

Postcard_Languages_Italian

Postcard_Languages_English

Postcard_Languages_French

Postcard_Languages_Spanish

Postcard_Languages_German

Postcard_Languages_Russian

Postcard_Languages_Greek

Postcard_Languages_Danish

Postcard_Languages_Swedish

Postcard_Languages_Chinese

Postcard_Languages_Japanese

Postcard_Languages_Portuguese

Postcard_Languages_Norwegian

Postcard_Languages_Ladin

Postcard_Languages_Latin

Postcard_Languages_Others

Print_StateOfPreservation_New

Print_StateOfPreservation_AsNew

Print_StateOfPreservation_Fine

Print_StateOfPreservation_VeryGood

Print_StateOfPreservation_Good

Print_StateOfPreservation_Fair

Print_StateOfPreservation_Poor

Print_Languages_Italian

Print_Languages_English

Print_Languages_French

Print_Languages_Spanish

Print_Languages_German

Print_Languages_Russian

Print_Languages_Greek

Print_Languages_Danish

Print_Languages_Swedish

Print_Languages_Chinese

Print_Languages_Japanese

Print_Languages_Portuguese

Print_Languages_Norwegian

Print_Languages_Ladin

Print_Languages_Latin

Print_Languages_Others

Newspapers_Binding_Hardcover

Newspapers_Binding_Softcover

Newspapers_Condition_New

Newspapers_Condition_Used

Newspapers_StateOfPreservation_New

Newspapers_StateOfPreservation_AsNew

Newspapers_StateOfPreservation_Fine

Newspapers_StateOfPreservation_VeryGood

Newspapers_StateOfPreservation_Good

Newspapers_StateOfPreservation_Fair

Newspapers_StateOfPreservation_Poor

Newspapers_Languages_Italian

Newspapers_Languages_English

Newspapers_Languages_French

Newspapers_Languages_Spanish

Newspapers_Languages_German

Newspapers_Languages_Russian

Newspapers_Languages_Greek

Newspapers_Languages_Danish

Newspapers_Languages_Swedish

Newspapers_Languages_Chinese

Newspapers_Languages_Japanese

Newspapers_Languages_Portuguese

Newspapers_Languages_Norwegian

Newspapers_Languages_Ladin

Newspapers_Languages_Latin

Newspapers_Languages_Others

Photographs_ChromaticBackground_BlackAndWhite

Photographs_ChromaticBackground_BlackAndWhiteColouredLater

Photographs_ChromaticBackground_Color

Photographs_ChromaticBackground_Sepia

Photographs_StateOfPreservation_New

Photographs_StateOfPreservation_AsNew

Photographs_StateOfPreservation_Fine

Photographs_StateOfPreservation_VeryGood

Photographs_StateOfPreservation_Good

Photographs_StateOfPreservation_Fair

Photographs_StateOfPreservation_Poor

Photographs_Condition_New

Photographs_Condition_Used

Comics_Binding_Hardcover

Comics_Binding_Softcover

Comics_Condition_New

Comics_Condition_Used

Comics_StateOfPreservation_New

Comics_StateOfPreservation_AsNew

Comics_StateOfPreservation_Fine

Comics_StateOfPreservation_VeryGood

Comics_StateOfPreservation_Good

Comics_StateOfPreservation_Fair

Comics_StateOfPreservation_Poor

Comics_Languages_Italian

Comics_Languages_English

Comics_Languages_French

Comics_Languages_Spanish

Comics_Languages_German

Comics_Languages_Russian

Comics_Languages_Greek

Comics_Languages_Danish

Comics_Languages_Swedish

Comics_Languages_Chinese

Comics_Languages_Japanese

Comics_Languages_Portuguese

Comics_Languages_Norwegian

Comics_Languages_Ladin

Comics_Languages_Latin

Comics_Languages_Others

Autographs_Binding_Hardcover

Autographs_Binding_Softcover

Autographs_StateOfPreservation_New

Autographs_StateOfPreservation_AsNew

Autographs_StateOfPreservation_Fine

Autographs_StateOfPreservation_VeryGood

Autographs_StateOfPreservation_Good

Autographs_StateOfPreservation_Fair

Autographs_StateOfPreservation_Poor

Autographs_Languages_Italian

Autographs_Languages_English

Autographs_Languages_French

Autographs_Languages_Spanish

Autographs_Languages_German

Autographs_Languages_Russian

Autographs_Languages_Greek

Autographs_Languages_Danish

Autographs_Languages_Swedish

Autographs_Languages_Chinese

Autographs_Languages_Japanese

Autographs_Languages_Portuguese

Autographs_Languages_Norwegian

Autographs_Languages_Ladin

Autographs_Languages_Latin

Autographs_Languages_Others

Example
"Book_Binding_Hardcover"

OptionValueInput

Description

The value of a product option when it's a fixed choice.

Values
Enum Value Description

Book_Binding_Hardcover

Book_Binding_Softcover

Book_Condition_New

Book_Condition_Used

Book_StateOfPreservation_New

Book_StateOfPreservation_AsNew

Book_StateOfPreservation_Fine

Book_StateOfPreservation_VeryGood

Book_StateOfPreservation_Good

Book_StateOfPreservation_Fair

Book_StateOfPreservation_Poor

Book_Languages_Italian

Book_Languages_English

Book_Languages_French

Book_Languages_Spanish

Book_Languages_German

Book_Languages_Russian

Book_Languages_Greek

Book_Languages_Danish

Book_Languages_Swedish

Book_Languages_Chinese

Book_Languages_Japanese

Book_Languages_Portuguese

Book_Languages_Norwegian

Book_Languages_Ladin

Book_Languages_Latin

Book_Languages_Others

Postcard_StateOfPreservation_New

Postcard_StateOfPreservation_AsNew

Postcard_StateOfPreservation_Fine

Postcard_StateOfPreservation_VeryGood

Postcard_StateOfPreservation_Good

Postcard_StateOfPreservation_Fair

Postcard_StateOfPreservation_Poor

Postcard_Languages_Italian

Postcard_Languages_English

Postcard_Languages_French

Postcard_Languages_Spanish

Postcard_Languages_German

Postcard_Languages_Russian

Postcard_Languages_Greek

Postcard_Languages_Danish

Postcard_Languages_Swedish

Postcard_Languages_Chinese

Postcard_Languages_Japanese

Postcard_Languages_Portuguese

Postcard_Languages_Norwegian

Postcard_Languages_Ladin

Postcard_Languages_Latin

Postcard_Languages_Others

Print_StateOfPreservation_New

Print_StateOfPreservation_AsNew

Print_StateOfPreservation_Fine

Print_StateOfPreservation_VeryGood

Print_StateOfPreservation_Good

Print_StateOfPreservation_Fair

Print_StateOfPreservation_Poor

Print_Languages_Italian

Print_Languages_English

Print_Languages_French

Print_Languages_Spanish

Print_Languages_German

Print_Languages_Russian

Print_Languages_Greek

Print_Languages_Danish

Print_Languages_Swedish

Print_Languages_Chinese

Print_Languages_Japanese

Print_Languages_Portuguese

Print_Languages_Norwegian

Print_Languages_Ladin

Print_Languages_Latin

Print_Languages_Others

Newspapers_Binding_Hardcover

Newspapers_Binding_Softcover

Newspapers_Condition_New

Newspapers_Condition_Used

Newspapers_StateOfPreservation_New

Newspapers_StateOfPreservation_AsNew

Newspapers_StateOfPreservation_Fine

Newspapers_StateOfPreservation_VeryGood

Newspapers_StateOfPreservation_Good

Newspapers_StateOfPreservation_Fair

Newspapers_StateOfPreservation_Poor

Newspapers_Languages_Italian

Newspapers_Languages_English

Newspapers_Languages_French

Newspapers_Languages_Spanish

Newspapers_Languages_German

Newspapers_Languages_Russian

Newspapers_Languages_Greek

Newspapers_Languages_Danish

Newspapers_Languages_Swedish

Newspapers_Languages_Chinese

Newspapers_Languages_Japanese

Newspapers_Languages_Portuguese

Newspapers_Languages_Norwegian

Newspapers_Languages_Ladin

Newspapers_Languages_Latin

Newspapers_Languages_Others

Photographs_ChromaticBackground_BlackAndWhite

Photographs_ChromaticBackground_BlackAndWhiteColouredLater

Photographs_ChromaticBackground_Color

Photographs_ChromaticBackground_Sepia

Photographs_StateOfPreservation_New

Photographs_StateOfPreservation_AsNew

Photographs_StateOfPreservation_Fine

Photographs_StateOfPreservation_VeryGood

Photographs_StateOfPreservation_Good

Photographs_StateOfPreservation_Fair

Photographs_StateOfPreservation_Poor

Photographs_Condition_New

Photographs_Condition_Used

Comics_Binding_Hardcover

Comics_Binding_Softcover

Comics_Condition_New

Comics_Condition_Used

Comics_StateOfPreservation_New

Comics_StateOfPreservation_AsNew

Comics_StateOfPreservation_Fine

Comics_StateOfPreservation_VeryGood

Comics_StateOfPreservation_Good

Comics_StateOfPreservation_Fair

Comics_StateOfPreservation_Poor

Comics_Languages_Italian

Comics_Languages_English

Comics_Languages_French

Comics_Languages_Spanish

Comics_Languages_German

Comics_Languages_Russian

Comics_Languages_Greek

Comics_Languages_Danish

Comics_Languages_Swedish

Comics_Languages_Chinese

Comics_Languages_Japanese

Comics_Languages_Portuguese

Comics_Languages_Norwegian

Comics_Languages_Ladin

Comics_Languages_Latin

Comics_Languages_Others

Autographs_Binding_Hardcover

Autographs_Binding_Softcover

Autographs_StateOfPreservation_New

Autographs_StateOfPreservation_AsNew

Autographs_StateOfPreservation_Fine

Autographs_StateOfPreservation_VeryGood

Autographs_StateOfPreservation_Good

Autographs_StateOfPreservation_Fair

Autographs_StateOfPreservation_Poor

Autographs_Languages_Italian

Autographs_Languages_English

Autographs_Languages_French

Autographs_Languages_Spanish

Autographs_Languages_German

Autographs_Languages_Russian

Autographs_Languages_Greek

Autographs_Languages_Danish

Autographs_Languages_Swedish

Autographs_Languages_Chinese

Autographs_Languages_Japanese

Autographs_Languages_Portuguese

Autographs_Languages_Norwegian

Autographs_Languages_Ladin

Autographs_Languages_Latin

Autographs_Languages_Others

Example
"Book_Binding_Hardcover"

Order

Fields
Field Name Description
tsCreated - Timestamp! Timestamp of creation of this order.
ts - Timestamp! Timestamp of last modification of this order.
number - String! Unique ID of this order. It can be used to get this GraphQL object.
total - Decimal! Total amount of money payed by the customer, including tax and shipping costs.
totalShippingCost - Decimal! The sum of all the shipping costs of this order.
totalDiscount - Decimal! The sum of all the discounts applied to this order.
orderDate - Date! The date when this order was payed.
status - Status! Order status.
paymentStatus - PaymentStatus! Order payment status.
shippingAddress - ShippingAddress! The address where this order will be shipped.
billingAddress - BillingAddress! The billing address of this order.
orderLines - [OrderLine!]! The list of products bought by the customer.
shipments - [Shipment!]! The list of shipments associated with this order.
coupons - [DiscountCoupon!]! The list of discount coupons associated with this order.
Example
{
  "tsCreated": "2023-11-29T13:32:36.690Z",
  "ts": "2023-11-29T13:32:36.690Z",
  "number": "abc123",
  "total": Decimal,
  "totalShippingCost": Decimal,
  "totalDiscount": Decimal,
  "orderDate": "2007-12-03",
  "status": "WAITING_AVAILABILITY",
  "paymentStatus": "PROCESSING",
  "shippingAddress": ShippingAddress,
  "billingAddress": BillingAddress,
  "orderLines": [OrderLine],
  "shipments": [Shipment],
  "coupons": [DiscountCoupon]
}

OrderBy

Description

Order by clause.

Values
Enum Value Description

Asc

Desc

Example
"Asc"

OrderLine

Fields
Field Name Description
title - String Title of the product.
unitPriceTaxIncluded - Decimal! Unit price of the product, including tax.
qty - Int! Number of items of this product bought by the customer.
taxes - Decimal! The amount of taxes payed by the customer for this product.
totalDiscount - Decimal! The amount of discount applied to this product.
notAvailable - Boolean! True if this product is not available anymore.
vatCode - RegimeIva! The VAT code of this product.
privateId - String! The bookshop ID of this product.
authors - [String!]! The author of this product.
publishers - [String!]! The publisher of this product.
year - Int The year of publication of this product.
Example
{
  "title": "xyz789",
  "unitPriceTaxIncluded": Decimal,
  "qty": 42,
  "taxes": Decimal,
  "totalDiscount": Decimal,
  "notAvailable": true,
  "vatCode": "Art36",
  "privateId": "xyz789",
  "authors": ["xyz789"],
  "publishers": ["abc123"],
  "year": 42
}

OrderWhereClauseInput

Fields
Input Field Description
statusEqual - StatusInput The order status must be equal to this value.
paymentStatusIsEqual - PaymentStatusInput The payment status must be equal to this value.
dateLte - DateInput The order date must be less or equal to this value.
dateGte - DateInput The order date must be greater or equal to this value.
numberIsEqual - String The order number must be equal to this value.
Example
{
  "statusEqual": "WAITING_AVAILABILITY",
  "paymentStatusIsEqual": "PROCESSING",
  "dateLte": DateInput,
  "dateGte": DateInput,
  "numberIsEqual": "xyz789"
}

PaymentStatus

Description

Payment status.

Values
Enum Value Description

PROCESSING

PARTIAL

CANCELED

CANCELED_BY_SYSTEM

SUCCEEDED

Example
"PROCESSING"

PaymentStatusInput

Description

Payment status.

Values
Enum Value Description

PROCESSING

PARTIAL

CANCELED

CANCELED_BY_SYSTEM

SUCCEEDED

Example
"PROCESSING"

Product

Fields
Field Name Description
id - ID! Unique ID of this product. It can be used to get this GraphQL object.
ts - Timestamp! Timestamp of last modification of this product.
visible - Boolean! True if this product will be visible (actually published).
title - ID! Title of this product.
slug - String The "slug" generated by Mare Magnum for this product.
description - String Description of this product.
stock - Int! Number of items actually, physically, sellable.
allocated - Int! The number of items present in Mare Magnum for this product that are allocated in other orders and not sellable. No more meaningful.
price - Decimal! Product price paid by the customer, including tax.
productClass - ProductClass! The product category of this product.
codiceIva - RegimeIva! Tax regime of this product.
discount - Int! Percentage discount for this product.
weight - Int! Weight in grams of this product.
details - [ProductDetail!]! Product details (authors, year of publication, etc...)
Example
{
  "id": 4,
  "ts": "2023-11-29T13:32:36.690Z",
  "visible": true,
  "title": 4,
  "slug": "abc123",
  "description": "abc123",
  "stock": 42,
  "allocated": 42,
  "price": Decimal,
  "productClass": "Book",
  "codiceIva": "Art36",
  "discount": 42,
  "weight": 42,
  "details": [ProductDetail]
}

ProductClass

Description

Product categories available inside Mare Magnum.

Values
Enum Value Description

Book

Postcard

Print

Newspapers

Photographs

Comics

Autographs

Example
"Book"

ProductClassInput

Description

Product categories available inside Mare Magnum.

Values
Enum Value Description

Book

Postcard

Print

Newspapers

Photographs

Comics

Autographs

Example
"Book"

ProductDetail

Fields
Field Name Description
detailName - DetailName! The name of the attribute.
detailType - DetailType! The type of the attribute.
valueText - String The value of the attribute in case detailType is Text.
valueInteger - Int The value of the attribute in case detailType is Integer.
valueDecimal - Decimal The value of the attribute in case detailType is Decimal.
valueBool - Boolean The value of the attribute in case detailType is Bool.
valueDate - Date The value of the attribute in case detailType is Date.
valueDatetime - Timestamp The value of the attribute in case detailType is Datetime.
valueOption - OptionValue The value of the attribute in case detailType is Option.
valueArray - [String!] The value of the attribute in case detailType is Array.
valueOptionArray - [OptionValue!] The value of the attribute in case detailType is OptionArray.
Example
{
  "detailName": "Book_Author",
  "detailType": "Text",
  "valueText": "abc123",
  "valueInteger": 42,
  "valueDecimal": Decimal,
  "valueBool": true,
  "valueDate": "2007-12-03",
  "valueDatetime": "2023-11-29T13:32:36.690Z",
  "valueOption": "Book_Binding_Hardcover",
  "valueArray": ["xyz789"],
  "valueOptionArray": ["Book_Binding_Hardcover"]
}

ProductDetailInput

Fields
Input Field Description
valueOptionArray - [OptionValueInput!] The value of the attribute in case detailType is OptionArray.
valueArray - [String!] The value of the attribute in case detailType is Array.
valueOption - OptionValueInput The value of the attribute in case detailType is Option.
valueDatetime - TimestampInput The value of the attribute in case detailType is Datetime.
valueDate - DateInput The value of the attribute in case detailType is Date.
valueBool - Boolean The value of the attribute in case detailType is Bool.
valueDecimal - DecimalInput The value of the attribute in case detailType is Decimal.
valueInteger - Int The value of the attribute in case detailType is Integer.
valueText - String The value of the attribute in case detailType is Text.
detailType - DetailTypeInput! The type of the attribute.
detailName - DetailNameInput! The name of the attribute.
Example
{
  "valueOptionArray": ["Book_Binding_Hardcover"],
  "valueArray": ["xyz789"],
  "valueOption": "Book_Binding_Hardcover",
  "valueDatetime": TimestampInput,
  "valueDate": DateInput,
  "valueBool": true,
  "valueDecimal": DecimalInput,
  "valueInteger": 42,
  "valueText": "abc123",
  "detailType": "Text",
  "detailName": "Book_Author"
}

ProductInput

Fields
Input Field Description
details - [ProductDetailInput!]! Product details (authors, year of publication, etc...)
images - [String!] List of image URLs associated with this product.
weight - Int! Weight in grams of this product.
discount - Int! Percentage discount for this product.
codiceIva - RegimeIvaInput! Tax regime of this product.
productClass - ProductClassInput! The product category of this product.
price - DecimalInput! Product price paid by the customer, including tax.
stock - Int! Number of items actually, physically, sellable.
description - String! Description of this product.
title - String! Title of this product.
visible - Boolean! True if this product will be visible (actually published).
id - String! Unique ID of this product in the library catalog.
Example
{
  "details": [ProductDetailInput],
  "images": ["abc123"],
  "weight": 42,
  "discount": 42,
  "codiceIva": "Art36",
  "productClass": "Book",
  "price": DecimalInput,
  "stock": 42,
  "description": "xyz789",
  "title": "xyz789",
  "visible": false,
  "id": "abc123"
}

RegimeIva

Description

Regime fiscale.

Values
Enum Value Description

Art36

Art74

Art36_2

IVA22

Example
"Art36"

RegimeIvaInput

Description

Regime fiscale.

Values
Enum Value Description

Art36

Art74

Art36_2

IVA22

Example
"Art36"

RigaNcd

Fields
Field Name Description
numeroOrdine - String! Numero dell'ordine a cui appartiene questa riga di nota di conto deposito.
descrizione - String! Descrizione della riga di questa nota di conto deposito.
importo - Decimal! Importo della riga di questa nota di conto deposito.
titolo - String Titolo del prodotto della riga di questa nota di conto deposito.
idProdotto - String ID del prodotto della riga di questa nota di conto deposito.
Example
{
  "numeroOrdine": "abc123",
  "descrizione": "abc123",
  "importo": Decimal,
  "titolo": "xyz789",
  "idProdotto": "xyz789"
}

Shipment

Fields
Field Name Description
id - ID! Unique ID of this shipment. It can be used to get this GraphQL object.
tsCreated - Timestamp! Timestamp of creation of this shipment.
ts - Timestamp! Timestamp of last modification of this shipment.
pickupDate - Date The date when the shipment was picked up by the courier.
scheduledDeliveryDate - Date The date when the shipment is scheduled to be delivered to the customer.
trackingUrl - String The URL where the customer can track the shipment.
wayBill - String The URL of the waybill document in PDF format.
shippingType - ShippingType! The type of shipping used for this shipment.
cost - Decimal! The cost the customer payed for this shipment.
weight - Decimal! The weight in grams of this shipment.
Example
{
  "id": 4,
  "tsCreated": "2023-11-29T13:32:36.690Z",
  "ts": "2023-11-29T13:32:36.690Z",
  "pickupDate": "2007-12-03",
  "scheduledDeliveryDate": "2007-12-03",
  "trackingUrl": "abc123",
  "wayBill": "xyz789",
  "shippingType": "Shop_pickup",
  "cost": Decimal,
  "weight": Decimal
}

ShippingAddress

Fields
Field Name Description
name - String Name of the customer.
careOf - String Care of
phoneNumber - String Phone number.
fax - String FAX number.
email - String Email address.
addressLine1 - String Address: first line.
addressLine2 - String Address: secondf line.
city - String City.
state - String Province/state.
zipCode - String ZIP code.
nation - String Natio. Two letters following ISO 3166-1 alpha-2, e.g. IT.
notes - String Notes about the shipping address.
Example
{
  "name": "xyz789",
  "careOf": "xyz789",
  "phoneNumber": "xyz789",
  "fax": "xyz789",
  "email": "abc123",
  "addressLine1": "xyz789",
  "addressLine2": "xyz789",
  "city": "xyz789",
  "state": "xyz789",
  "zipCode": "xyz789",
  "nation": "abc123",
  "notes": "xyz789"
}

ShippingType

Description

Shipping types.

Values
Enum Value Description

Shop_pickup

Economy

Standard

Express

Example
"Shop_pickup"

Status

Description

Order status.

Values
Enum Value Description

WAITING_AVAILABILITY

CONFIRMED

CANCELED

PAYED

SHIPPING

PARTIALLY_SHIPPING

DELIVERED

WAIT_RETURN

REFUNDED

PARTIALLY_REFUNDED

Example
"WAITING_AVAILABILITY"

StatusInput

Description

Order status.

Values
Enum Value Description

WAITING_AVAILABILITY

CONFIRMED

CANCELED

PAYED

SHIPPING

PARTIALLY_SHIPPING

DELIVERED

WAIT_RETURN

REFUNDED

PARTIALLY_REFUNDED

Example
"WAITING_AVAILABILITY"

String

Example
"xyz789"

Timestamp

Description

A timestamp with time zone and microsecond precision. Example: 2023-02-02T13:35:07.861Z

Example
2023-11-29T13:32:36.690Z

TimestampInput

Description

A timestamp with time zone and microsecond precision. Example: 2023-02-02T13:35:07.861Z

Example
TimestampInput