Beyond is a cloud-based platform that offers a flexible and performant feature set to satisfy the varying requirements of the ecommerce business. Add new functionality or integrations or build awesome ecommerce applications using our brand new REST API. Our modern microservice architecture allows you to quickly develop your ecommerce solution by offering you access to services such as checkout, orders, products, payments, and many more. Anyone who is curious about our new platform can already sign up for a beyondshop.

Use cases

You plan an integration with ePages? That’s great! Here are some use cases we can think of:

Integrate a payment solution

If you have a payment solution in place and would like to integrate with an ecommerce solution, this is where to start. Check our payment app documentation and find out how to integrate with Beyond!

Terminology

Before we jump right in, let’s look at the key terms that will be used throughout this documentation.

Name Description

App

The application that would like to interact with the payment gateway, thus integrate with Beyond.

Customer

The visitor of the online shop that is about to purchase products.

JWT

JSON Web Token. According to RFC-7519 a compact, URL-safe means of representing claims to be transferred between two parties.

Merchant

The owner of the online shop that will use your app.

Payment approval page

The page where the customer approves or cancels the payment with your app.

Payment gateway

The Beyond interface to payment apps. Provides an API contract that can be implemented in form of an app in order to integrate a payment with Beyond.

Storefront

The user interface of the customer.

Our requirements

In order to integrate with Beyond, your payment app needs to

  • communicate with our payment gateway

  • communicate with your backend

  • do the data mapping of the single merchant accounts

  • be run and operated by you, as we currently do not offer to run apps developed by 3rd parties in our system

There are no further requirements regarding your infrastructure as we are not directly communicating with your backend. Your backend will only communicate with your app. Our payment gateway will then forward the requests from the app towards our microservices. During the development and the integration of your app, we will stay in close contact. This way, we can bring certain development steps of your app into our infrastructure and test it.

In order to enable Beyond to send requests, you will have to provide several URIs upon creation of your app:

URI Required? Description Can be templated?

statusUri

Yes

Endpoint for the app’s integration status. Takes the shopID as parameter to refer to an individual shop.

Yes

createPaymentUri

Yes

Endpoint for the creation of individual payments. Can optionally take a paymentID as parameter.

Yes

capturePaymentUri

Yes

Endpoint to capture the payment after creation and approval have been successful. Takes a paymentID as parameter to refer to an individual payment.

Yes

referralUri

No

Endpoint that generates a reference to the site where the merchant can connect their shop with their payment app account.

No

disconnectUri

No

Endpoint to unlink a payment app account from a shop (with the URI generated by the app’s referralUri endpoint). Takes the shopID as parameter to refer to an individual shop.

Yes

refundPaymentUri

No

Endpoint to process refunds. Takes a paymentID as parameter to refer to an individual payment.

Yes

Payment Methods

Your app can manage different payment methods in our system using payment method definitions. You can create such a payment method definition once in our system using a system token. Afterwards, payment methods for single shops can be easily created from the payment method definition with a shop token.

What does this mean for the connection between single payment methods and their respective payment method definition? Each payment method needs to have a payment method definition and both are strongly connected. So, if the payment method definition is retrieved with a shop token, the response contains a link to create a payment method. If a payment method already exists, the response will contain a link to delete that payment method. This also means that if you delete a payment method definition, all related payment methods will also be deleted.

Retrieve a system access token

The client_credentials flow is used to create a system access token. With this token, you are able to do API calls on a system level.

In general, the POST request for the system access token is similar to the one for creating a JsonWebToken. The only difference is that you need to make the request to the system access token endpoint using https://system.beyondshop.cloud/api/oauth/token.

Retrieve a payment method definition

A GET request is used to retrieve a payment method definition.

Required scopes

paym:m

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-method-definitions/testPMD' -i -X GET \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_id

String

The name of a payment method definition.

name

String

The name of a payment method definition.

referralUriTemplate

String

The URI template for the endpoint that generates a reference to the site where the merchant can connect their shop with their payment app account.

statusUriTemplate

String

The URI template for the endpoint for the app’s integration status. Takes the shopID as parameter to refer to an individual shop.

disconnectUriTemplate

String

The URI template for the endpoint to unlink a payment app account from a shop. Takes the shopID as parameter to refer to an individual shop.

createPaymentUriTemplate

String

The URI template for the endpoint for the creation of individual payments. Can optionally take a paymentID as parameter.

capturePaymentUriTemplate

String

The URI template for the endpoint to capture the payment after creation and approval have been successful. Takes a paymentID as parameter to refer to an individual payment.

refundPaymentUriTemplate

String

The URI template for the endpoint to process refunds. Takes a paymentID as parameter to refer to an individual payment.

sandbox

Boolean

Indicates if the payment method is using a sandbox environment. Can be true or false.

workflow

String

Indicates the workflow of the payment method. Can be one of PAYMENT_ON_SELECTION, PAYMENT_ON_BUY, or EMBEDDED_ON_BUY.

refund

String

Gives information about the refund capabilities of the payment method. Can be one of NO_REFUND, FULL_REFUND_ONLY, or PARTIAL_REFUND.

logos[].setName

String

The set name of the logo. The default is official.

logos[].variant

String

The variant of the logo. Can be one of TILE, DETAILS, LIST, or STOREFRONT, depending on the location of the logo.

logos[].uri

String

The URI of the logo.

officialName

Object

The name of the payment method that will be displayed to the merchant. Needs to be translated for each supported language.

officialDescription

Object

The description of the payment method that will be displayed to the merchant. Needs to be translated for each supported language.

defaultName

Object

The default name of the payment method that will be displayed to the customer. Can be edited by the merchant and needs to be translated for each supported language.

defaultDescription

Object

Optional default description of the payment method that will be displayed to the customer. Can be edited by the merchant and needs to be translated for each supported language.

_links

Object

See Hypermedia

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1068

{
  "_id" : "testPMD",
  "name" : "testPMD",
  "referralUriTemplate" : "http://ref.uri.de",
  "statusUriTemplate" : "http://status.uri.de",
  "disconnectUriTemplate" : "http://disconnect.uri.de",
  "createPaymentUriTemplate" : "http://create.payment.de",
  "capturePaymentUriTemplate" : "http://capture.payment.de",
  "refundPaymentUriTemplate" : "http://refund.payment.de",
  "sandbox" : true,
  "workflow" : "PAYMENT_ON_BUY",
  "refund" : "NO_REFUND",
  "logos" : [ {
    "setName" : "official",
    "variant" : "STOREFRONT",
    "uri" : "http://example.com/somewhere"
  } ],
  "officialName" : {
    "de-DE" : "Test",
    "en-US" : "Trial"
  },
  "officialDescription" : {
    "de-DE" : "Das ist ein Test",
    "en-US" : "This is a test"
  },
  "defaultDescription" : {
    "de-DE" : "Wunderschöne Erklärung",
    "en-US" : "The best explanation"
  },
  "defaultName" : {
    "de-DE" : "Supergute Bezahlmethode",
    "en-US" : "Paymenator"
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-method-definitions/testPMD"
    }
  }
}
List payment method definitions

A GET request is used to list all payment method definitions.

Required scopes

paym:m

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-method-definitions' -i -X GET \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.payment-method-definitions[]._id

String

The name of a payment method definition.

_embedded.payment-method-definitions[].name

String

The name of a payment method definition.

_embedded.payment-method-definitions[].referralUriTemplate

String

The URI template for the endpoint that generates a reference to the site where the merchant can connect their shop with their payment app account.

_embedded.payment-method-definitions[].statusUriTemplate

String

The URI template for the endpoint for the app’s integration status. Takes the shopID as parameter to refer to an individual shop.

_embedded.payment-method-definitions[].disconnectUriTemplate

String

The URI template for the endpoint to unlink a payment app account from a shop. Takes the shopID as parameter to refer to an individual shop.

_embedded.payment-method-definitions[].createPaymentUriTemplate

String

The URI template for the endpoint for the creation of individual payments. Can optionally take a paymentID as parameter.

_embedded.payment-method-definitions[].capturePaymentUriTemplate

String

The URI template for the endpoint to capture the payment after creation and approval have been successful. Takes a paymentID as parameter to refer to an individual payment.

_embedded.payment-method-definitions[].refundPaymentUriTemplate

String

The URI template for the endpoint to process refunds. Takes a paymentID as parameter to refer to an individual payment.

_embedded.payment-method-definitions[].sandbox

Boolean

Indicates if the payment method is using a sandbox environment. Can be true or false.

_embedded.payment-method-definitions[].workflow

String

Indicates the workflow of the payment method. Can be one of NO_REFUND, FULL_REFUND_ONLY, or PARTIAL_REFUND.

_embedded.payment-method-definitions[].refund

String

Gives information about the refund capabilities of the payment method. Can be one of NO_REFUND, FULL_REFUND_ONLY, or PARTIAL_REFUND.

_embedded.payment-method-definitions[].logos[].setName

String

The set name of the logo. The default is official.

_embedded.payment-method-definitions[].logos[].variant

String

The variant of the logo. Can be one of TILE, DETAILS, LIST, or STOREFRONT, depending on the location of the logo.

_embedded.payment-method-definitions[].logos[].uri

String

The URI of the logo.

_embedded.payment-method-definitions[]._links

Object

See Hypermedia

_embedded.payment-method-definitions[].officialName

Object

The name of the payment method that will be displayed to the merchant. Needs to be translated for each supported language.

_embedded.payment-method-definitions[].officialDescription

Object

The description of the payment method that will be displayed to the merchant. Needs to be translated for each supported language.

_embedded.payment-method-definitions[].defaultName

Object

The default name of the payment method that will be displayed to the customer. Can be edited by the merchant and needs to be translated for each supported language.

_embedded.payment-method-definitions[].defaultDescription

Object

Optional default description of the payment method that will be displayed to the customer. Can be edited by the merchant and needs to be translated for each supported language.

_links

Object

See Hypermedia

page

Object

See Pagination

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1509

{
  "_embedded" : {
    "payment-method-definitions" : [ {
      "_id" : "testPMD",
      "name" : "testPMD",
      "referralUriTemplate" : "http://ref.uri.de",
      "statusUriTemplate" : "http://status.uri.de",
      "disconnectUriTemplate" : "http://disconnect.uri.de",
      "createPaymentUriTemplate" : "http://create.payment.de",
      "capturePaymentUriTemplate" : "http://capture.payment.de",
      "refundPaymentUriTemplate" : "http://refund.payment.de",
      "sandbox" : true,
      "workflow" : "PAYMENT_ON_BUY",
      "refund" : "NO_REFUND",
      "logos" : [ {
        "setName" : "official",
        "variant" : "STOREFRONT",
        "uri" : "http://example.com/somewhere"
      } ],
      "officialName" : {
        "de-DE" : "Test",
        "en-US" : "Trial"
      },
      "officialDescription" : {
        "de-DE" : "Das ist ein Test",
        "en-US" : "This is a test"
      },
      "defaultDescription" : {
        "de-DE" : "Wunderschöne Erklärung",
        "en-US" : "The best explanation"
      },
      "defaultName" : {
        "de-DE" : "Supergute Bezahlmethode",
        "en-US" : "Paymenator"
      },
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-method-definitions/testPMD"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-method-definitions?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}
Create a payment method definition

A POST request is used to create a payment method definition.

Required scopes

paym:m

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-method-definitions' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "name": "testPMD",
  "referralUriTemplate": "http://ref.uri.de",
  "statusUriTemplate": "http://status.uri.de",
  "disconnectUriTemplate": "http://disconnect.uri.de",
  "createPaymentUriTemplate": "http://create.payment.de",
  "capturePaymentUriTemplate": "http://capture.payment.de",
  "refundPaymentUriTemplate": "http://refund.payment.de",
  "sandbox": "true",
  "workflow": "PAYMENT_ON_BUY",
  "refund": "NO_REFUND",
  "logos": [{
    "setName" : "official",
    "variant" : "STOREFRONT",
    "uri" : "http://example.com/somewhere"
  }],
  "officialName": {
    "de-DE" : "Test",
    "en-US" : "Trial"
  },
  "officialDescription": {
    "de-DE" : "Das ist ein Test",
    "en-US" : "This is a test"
  },
  "defaultName": {
    "de-DE" : "Supergute Bezahlmethode",
    "en-US" : "Paymenator"
  },
  "defaultDescription": {"de-DE" : "Wunderschöne Erklärung","en-US" : "The best explanation"}}'

Response body properties

Path Type Description

_id

String

The name of a payment method definition.

name

String

The name of a payment method definition.

referralUriTemplate

String

The URI template for the endpoint that generates a reference to the site where the merchant can connect their shop with their payment app account.

statusUriTemplate

String

The URI template for the endpoint for the app’s integration status. Takes the shopID as parameter to refer to an individual shop.

disconnectUriTemplate

String

The URI template for the endpoint to unlink a payment app account from a shop. Takes the shopID as parameter to refer to an individual shop.

createPaymentUriTemplate

String

The URI template for the endpoint for the creation of individual payments. Can optionally take a paymentID as parameter.

capturePaymentUriTemplate

String

The URI template for the endpoint to capture the payment after creation and approval have been successful. Takes a paymentID as parameter to refer to an individual payment.

refundPaymentUriTemplate

String

The URI template for the endpoint to process refunds. Takes a paymentID as parameter to refer to an individual payment.

sandbox

Boolean

Indicates if the payment method is using a sandbox environment. Can be true or false.

workflow

String

Indicates the workflow of the payment method. Can be one of PAYMENT_ON_SELECTION, PAYMENT_ON_BUY, or EMBEDDED_ON_BUY.

refund

String

Gives information about the refund capabilities of the payment method. Can be one of NO_REFUND, FULL_REFUND_ONLY, or PARTIAL_REFUND.

logos[].setName

String

The set name of the logo. The default is official.

logos[].variant

String

The variant of the logo. Can be one of TILE, DETAILS, LIST, or STOREFRONT, depending on the location of the logo.

logos[].uri

String

The URI of the logo.

officialName

Object

The name of the payment method that will be displayed to the merchant. Needs to be translated for each supported language.

officialDescription

Object

The description of the payment method that will be displayed to the merchant. Needs to be translated for each supported language.

defaultName

Object

The default name of the payment method that will be displayed to the customer. Can be edited by the merchant and needs to be translated for each supported language.

defaultDescription

Object

Optional default description of the payment method that will be displayed to the customer. Can be edited by the merchant and needs to be translated for each supported language.

_links

Object

See Hypermedia

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/paymentMethodDefinitions/testPMD
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1068

{
  "_id" : "testPMD",
  "name" : "testPMD",
  "referralUriTemplate" : "http://ref.uri.de",
  "statusUriTemplate" : "http://status.uri.de",
  "disconnectUriTemplate" : "http://disconnect.uri.de",
  "createPaymentUriTemplate" : "http://create.payment.de",
  "capturePaymentUriTemplate" : "http://capture.payment.de",
  "refundPaymentUriTemplate" : "http://refund.payment.de",
  "sandbox" : true,
  "workflow" : "PAYMENT_ON_BUY",
  "refund" : "NO_REFUND",
  "logos" : [ {
    "setName" : "official",
    "variant" : "STOREFRONT",
    "uri" : "http://example.com/somewhere"
  } ],
  "officialName" : {
    "de-DE" : "Test",
    "en-US" : "Trial"
  },
  "officialDescription" : {
    "de-DE" : "Das ist ein Test",
    "en-US" : "This is a test"
  },
  "defaultDescription" : {
    "de-DE" : "Wunderschöne Erklärung",
    "en-US" : "The best explanation"
  },
  "defaultName" : {
    "de-DE" : "Supergute Bezahlmethode",
    "en-US" : "Paymenator"
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-method-definitions/testPMD"
    }
  }
}
Update a payment method definition

A PUT request is used to update a payment method definition.

Required scopes

paym:m

Request body properties

Path Type Description

name

String

The name of a payment method definition.

referralUriTemplate

String

The URI template for the endpoint that generates a reference to the site where the merchant can connect their shop with their payment app account.

statusUriTemplate

String

The URI template for the endpoint for the app’s integration status. Takes the shopID as parameter to refer to an individual shop.

disconnectUriTemplate

String

The URI template for the endpoint to unlink a payment app account from a shop. Takes the shopID as parameter to refer to an individual shop.

createPaymentUriTemplate

String

The URI template for the endpoint for the creation of individual payments. Can optionally take a paymentID as parameter.

capturePaymentUriTemplate

String

The URI template for the endpoint to capture the payment after creation and approval have been successful. Takes a paymentID as parameter to refer to an individual payment.

refundPaymentUriTemplate

String

The URI template for the endpoint to process refunds. Takes a paymentID as parameter to refer to an individual payment.

workflow

String

Indicates the workflow of the payment method. Can be one of PAYMENT_ON_SELECTION, PAYMENT_ON_BUY, or EMBEDDED_ON_BUY.

refund

String

Gives information about the refund capabilities of the payment method. Can be one of NO_REFUND, FULL_REFUND_ONLY, or PARTIAL_REFUND.

logos[].setName

String

The set name of the logo. The default is official.

logos[].variant

String

The variant of the logo. Can be one of TILE, DETAILS, LIST, or STOREFRONT, depending on the location of the logo.

logos[].uri

String

The URI of the logo.

officialName

Object

The name of the payment method that will be displayed to the merchant. Needs to be translated for each supported language.

officialDescription

Object

The description of the payment method that will be displayed to the merchant. Needs to be translated for each supported language.

defaultName

Object

The default name of the payment method that will be displayed to the customer. Can be edited by the merchant and needs to be translated for each supported language.

defaultDescription

Object

Optional default description of the payment method that will be displayed to the customer. Can be edited by the merchant and needs to be translated for each supported language.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-method-definitions/testPMD' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "name": "New Payment Method Definition Name",
  "referralUriTemplate": "http://ref.uri.de",
  "statusUriTemplate": "http://status.uri.de",
  "disconnectUriTemplate": "http://disconnect.uri.de",
  "createPaymentUriTemplate": "http://create.payment.de",
  "capturePaymentUriTemplate": "http://capture.payment.de",
  "refundPaymentUriTemplate": "http://refund.payment.de",
  "workflow": "PAYMENT_ON_SELECTION",
  "refund": "NO_REFUND",
  "logos": [{
    "setName" : "official",
    "variant" : "STOREFRONT",
    "uri" : "http://example.com/somewhere"
  }],
  "officialName": {
    "de-DE" : "Test",
    "en-US" : "Trial"
  },
  "officialDescription": {
    "de-DE" : "Das ist ein Test",
    "en-US" : "This is a test"
  },
  "defaultName": {
    "de-DE" : "Supergute Bezahlmethode",
    "en-US" : "Paymenator"
  },
  "defaultDescription": {
    "de-DE" : "Wunderschöne Erzählung",
    "en-US" : "The best explanation"
  }
}'

Response body properties

Path Type Description

_id

String

The name of a payment method definition.

name

String

The name of a payment method definition.

referralUriTemplate

String

The URI template for the endpoint that generates a reference to the site where the merchant can connect their shop with their payment app account.

statusUriTemplate

String

The URI template for the endpoint for the app’s integration status. Takes the shopID as parameter to refer to an individual shop.

disconnectUriTemplate

String

The URI template for the endpoint to unlink a payment app account from a shop. Takes the shopID as parameter to refer to an individual shop.

createPaymentUriTemplate

String

The URI template for the endpoint for the creation of individual payments. Can optionally take a paymentID as parameter.

capturePaymentUriTemplate

String

The URI template for the endpoint to capture the payment after creation and approval have been successful. Takes a paymentID as parameter to refer to an individual payment.

refundPaymentUriTemplate

String

The URI template for the endpoint to process refunds. Takes a paymentID as parameter to refer to an individual payment.

sandbox

Boolean

Indicates if the payment method is using a sandbox environment. Can be true or false.

workflow

String

Indicates the workflow of the payment method. Can be one of PAYMENT_ON_SELECTION, PAYMENT_ON_BUY, or EMBEDDED_ON_BUY.

refund

String

Gives information about the refund capabilities of the payment method. Can be one of NO_REFUND, FULL_REFUND_ONLY, or PARTIAL_REFUND.

logos[].setName

String

The set name of the logo. The default is official.

logos[].variant

String

The variant of the logo. Can be one of TILE, DETAILS, LIST, or STOREFRONT, depending on the location of the logo.

logos[].uri

String

The URI of the logo.

officialName

Object

The name of the payment method that will be displayed to the merchant. Needs to be translated for each supported language.

officialDescription

Object

The description of the payment method that will be displayed to the merchant. Needs to be translated for each supported language.

defaultName

Object

The default name of the payment method that will be displayed to the customer. Can be edited by the merchant and needs to be translated for each supported language.

defaultDescription

Object

Optional default description of the payment method that will be displayed to the customer. Can be edited by the merchant and needs to be translated for each supported language.

_links

Object

See Hypermedia

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1074

{
  "_id" : "testPMD",
  "name" : "testPMD",
  "referralUriTemplate" : "http://ref.uri.de",
  "statusUriTemplate" : "http://status.uri.de",
  "disconnectUriTemplate" : "http://disconnect.uri.de",
  "createPaymentUriTemplate" : "http://create.payment.de",
  "capturePaymentUriTemplate" : "http://capture.payment.de",
  "refundPaymentUriTemplate" : "http://refund.payment.de",
  "sandbox" : true,
  "workflow" : "PAYMENT_ON_SELECTION",
  "refund" : "NO_REFUND",
  "logos" : [ {
    "setName" : "official",
    "variant" : "STOREFRONT",
    "uri" : "http://example.com/somewhere"
  } ],
  "officialName" : {
    "de-DE" : "Test",
    "en-US" : "Trial"
  },
  "officialDescription" : {
    "de-DE" : "Das ist ein Test",
    "en-US" : "This is a test"
  },
  "defaultDescription" : {
    "de-DE" : "Wunderschöne Erzählung",
    "en-US" : "The best explanation"
  },
  "defaultName" : {
    "de-DE" : "Supergute Bezahlmethode",
    "en-US" : "Paymenator"
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-method-definitions/testPMD"
    }
  }
}
Delete a payment method definition

A DELETE request is used to delete a payment method definition.

Required scopes

paym:m

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-method-definitions/testPMD' -i -X DELETE \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
X-Frame-Options: DENY
Create a payment method

A POST request is used to create a payment method from a payment method definition.

Required scopes

paym:m

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-method-definitions/testPMD/payment-method' -i -X POST \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
X-Frame-Options: DENY
Delete a payment method

A DELETE request is used to delete a payment method from a payment method definition.

Required scopes

paym:m

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-method-definitions/testPMD/payment-method' -i -X DELETE \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
X-Frame-Options: DENY

Authorization

Communication between Beyond API, App, and Merchant

Here’s an overview of what you’ll need to do to communicate with our Beyond API.

AuthFlowChart
Figure 1. Authorisation flow
1. Receive authorisation code

ePages makes a GET request to the Application Callback URL provided by the app developer. The required query parameters, see table below, will be automatically passed by ePages.

Name Description

code

Authorisation code that is required for the app installation process to obtain the access_token.

return_url

The URL to which the merchant should be redirected after the app installation.

api_url

The base API URL, that uniquely identifies the merchant. The api_url differs for every merchant and has to be stored in the app.

access_token_url

The URL to obtain the access_token.

signature

The signature is a message authentification code. It is calculated with the code, access_token_url and client_secret.

Although it is optional to validate the signature query parameter, we highly recommend to do so, in order to verify that your request was not changed, and for sure has been provided by ePages and no external, insecure party. Get in touch with us to get your client_id and client_secret.

2. Registration (optional)

If your app requires a registration process, this optional step can be included before obtaining the access_token. During this, the app would display the registration or login form to the merchant.

3. Exchange authorisation code for access token

To get an access_token, make a POST request to the token endpoint provided by the access_token query parameter on the Application Callback URL with the following parameters:

Field Description

code

The code provided in the Application Callback URL.

client_id

The unique identifier for your app.

client_secret

The shared client secret for the app.

Mind the Content-Type! The POST request has to be x-www-form-urlencoded!

In a successful response, a JSON object is returned with the following parameters:

Field Description

access_token

The encoded JsonWebToken to access the resource.

expires_in

The time of token expiry.

refresh_token

The token that can be used to obtain a renewed access token.

The access_token is a permanent one that can be used to access the shop’s data as long as the app is installed in the merchant’s shop. This access_token allows your application to act on behalf of the merchant on this specific shop. Store the access_token, the refresh_token, and the expires in date of the access_token securely against the api_url.

4. Retrieve a shopId

The app additionally needs to store the shopId. It can be retrieved with the following GET request:

Required scopes

paym:m

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop-id' -i -X GET \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

shopId

String

The unique identifier of the shop.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 55

{
  "shopId" : "d82c1d2b-ab48-4a85-add0-4def4e6e77e6"
}
5. Create a signer

Every request in the communication between the payment gateway and the app should be signed. A signer is not mandatory, but highly recommended. It serves two purposes:

  • Ensures that the sender of the request is your trusted partner.

  • Ensures that the request was not modified during transaction.

You can create a signer by using a POST request.

6. Redirect the merchant

Once the authorisation process is complete, your app has to send the merchant back to the return_url the app received before.

Connection to the merchant account

The merchant needs to connect their shop with their payment app account. That means, that they authorise your app to communicate with your backend on their behalf. In general, the merchant registers credentials in the app that allow the app to create and update payments on their behalf. This registration can be implemented in various ways. We currently only support a referral process for the registration. In such a referral process the app can use shop data, such as customer address, or email address. Additionally, the app’s referralUri generates a reference to redirect the merchant to a page where they can perform a self-signup.

If you would like to use a different process, get in touch with us. Otherwise, here’s what you need to do for the referral process:

1. Generate referral URI

In order to initiate a referral process, the app needs to generate the referralUri with a POST request.

Required scopes

pymt:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-signup/referrals/converge-sandbox' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{ "referralReturnUri": "http://example.com/take-me-home" }'

Response body properties

Path Type Description

referralUri

String

The endpoint that generates a reference to the site where the merchant can connect their shop with their payment app account.

_links

Object

See Hypermedia

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 235

{
  "referralUri" : "http://localhost/some",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-signup/referrals/converge-sandbox"
    },
    "referral" : {
      "href" : "http://localhost/some"
    }
  }
}

The payment gateway will then provide details about the merchant, such as merchant address or email address, as a POST request to the payment app. This way, the related fields can already be pre-filled and the merchant can register more easily.

Request body properties

Path Type Description

shop

Object

A complete shop object. See shops resource for more information.

shopUri

String

The URI of the shop.

redirectUri

String

The URI to which the customer will be redirected after the referral process.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/exampleapp/referrals' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -d '{
  "shop" : {
    "id" : "55930a05-95cb-4a48-995e-94a40d3e30f5",
    "name" : "My Shop",
    "address" : {
      "company" : null,
      "firstName" : "Alice",
      "lastName" : "Simple",
      "email" : "office@example.com",
      "phone" : null,
      "fax" : null,
      "street" : "Buckingham Palace",
      "street2" : null,
      "postalCode" : "SW1A 1AA",
      "city" : "London",
      "country" : "GB",
      "state" : null
    },
    "defaultCurrency" : "EUR",
    "defaultLocale" : "de-DE"
  },
  "shopUri" : "http://some.shop",
  "redirectUri" : "http://redirect.me"
}'

Response body properties

Path Type Description

referralUri

String

The endpoint that generates a reference to the site where the merchant can connect their shop with their payment app account.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 40

{
  "referralUri" : "https://refer.me"
}
2. Retrieve status of merchant registration

The Beyond API makes a GET request to retrieve the current status of the merchant registration from the app.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/exampleapp/merchant-account-status/13ee4e09-3951-4774-9b57-f3aaef8d7b44' -i -X GET \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

ready

Boolean

Indicates if the account is properly connected to the payment app.

details

Object

Gives information about the account that is connected to the payment app.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 70

{
  "ready" : true,
  "details" : {
    "primaryEmail" : "a@b.c"
  }
}

If the response is "ready":true, the referral process was successful and the merchant account is connected with the app.

Payment flow

The payment flow can be triggered in two different steps:

  • On buy
    The payment flow is triggered after the customer selected the button Buy now in the checkout.

  • On selection
    The payment flow is triggered after the customer selected the related payment method in the payment step of the checkout.

It’s up to you to decide which option you would like to choose for your payment app. The general payment flow stays the same. The following diagram illustrates the possible status transitions within the payment flow:

paymentStatus

Each node in this graph is idempotent, meaning that trying to set a payment to a status it already has will not produce an error. Those paymentStatus values have the following meanings:

Status

Description

PENDING

The default status upon creation of a new payment waiting to be processed.

APPROVED

The customer has given their consent to proceed with the payment.

CANCELED

The processing of the payment has been terminated as a result of the customer’s decision.

CAPTURE_PENDING

The payment gateway has to wait for further notice to capture the payment. Functionally equivalent to APPROVED.

CAPTURED

The payment flow has been completed successfully.

FAILED

The payment could not be completed successfully due to an error.

Here’s an overview of the general payment flow:

PaymentFlowChart
Figure 2. Payment flow

The flow is divided into two main sections:

  • Creating the payment during the checkout (step 1 & 2 of Fig.2).

  • Capturing the payment when the order is created (step 3 of Fig.2).

Both of these sections and the related requests are further explained in the following:

1. Create a payment

The customer adds items to their cart, and starts with the checkout. Depending on the chosen payment flow, a POST request is triggered from the Beyond API to the payment app to create the payment during the checkout process. In this request, the payment gateway will provide a paymentId as well as related cart and shop information. As a response to this POST request, the app needs to return an approvalUri or a paymentNote. If an approvalUri is returned, it will be passed on to the storefront. For payments that do not need further redirects (e.g. payment in advance), the approvalUri can be omitted, but a paymentNote should be provided. In this case steps 2 and 3 can be ignored. The paymentNote will then be rendered on the invoice order document.

See below the related POST request:

Request body properties

Path Type Description

paymentId

String

The unique identifier of the payment.

shopId

String

The unique identifier of the shop.

shop.name

String

The name of the shop.

errorUri

String

The URI to which the customer will be redirected if an unexpected errors occurs during a redirect.

cart

Object

A complete cart object. See carts resource for more information.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/exampleapp/payments' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -d '{
  "cart" : {
    "_id" : "c1b9ac64-9f1a-4744-a952-2a70b5e3a7bf",
    "lineItems" : [ {
      "productName" : "item1",
      "productSku" : null,
      "quantity" : 0,
      "lineItemTax" : null,
      "lineItemPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 10
      },
      "singleItemPrice" : null
    }, {
      "productName" : "item2",
      "productSku" : null,
      "quantity" : 0,
      "lineItemTax" : null,
      "lineItemPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 10
      },
      "singleItemPrice" : null
    } ],
    "billingAddress" : {
      "company" : null,
      "title" : null,
      "firstName" : "FirstName",
      "middleName" : null,
      "lastName" : "lastName",
      "street" : "345 SE Shipping St",
      "houseNumber" : "100",
      "street2" : "Suite 300",
      "addressExtension" : null,
      "postalCode" : "WC1B 3DG",
      "city" : "London",
      "country" : "GB",
      "state" : null,
      "phone" : null,
      "mobile" : null,
      "email" : "someEmail@epages.com",
      "salutation" : "Herr",
      "gender" : "male"
    },
    "shippingAddress" : {
      "company" : null,
      "title" : null,
      "firstName" : "FirstName",
      "middleName" : null,
      "lastName" : "lastName",
      "street" : "345 SE Shipping St",
      "houseNumber" : "100",
      "street2" : "Suite 300",
      "addressExtension" : null,
      "postalCode" : "WC1B 3DG",
      "city" : "London",
      "country" : "GB",
      "state" : null,
      "phone" : null,
      "mobile" : null,
      "email" : null,
      "salutation" : null,
      "gender" : null
    },
    "grandTotal" : {
      "currency" : "EUR",
      "amount" : 20
    },
    "subtotal" : {
      "currency" : "EUR",
      "amount" : 20
    },
    "shippingTotal" : {
      "currency" : "EUR",
      "amount" : 0
    },
    "currency" : "EUR"
  },
  "shop" : {
    "name" : "Granny Pants"
  },
  "paymentId" : "da0035d2-a8ca-4040-805d-4a2e06726380",
  "shopId" : "8af0c207-eb18-42d9-b991-45defc725402",
  "errorUri" : "http://error-uri.epages.com?errorType=API_FAILURE&recommendedUserAction=CHOOSE_DIFFERENT_PAYMENT_METHOD"
}'

Response body properties

Path Type Description

approvalUri

String

Optional URI to which the customer will be redirected after the approval of the payment. If no URI is provided, the customer will not be redirected.

paymentNote

String

Optional payment note that will appear on the order’s invoice document.

embeddedApprovalUri

Null

Optional URI to the iframe that will be embedded in the checkout.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 130

{
  "approvalUri" : "https://approve.me",
  "paymentNote" : "Please use the reference ABC123YXZ",
  "embeddedApprovalUri" : null
}
2. Approve a payment

When receiving the approvalUri from the Beyond API, the storefront leads the customer to a payment approval page. On this payment approval page, the customer needs to approve/cancel the payment. The customer decision is forwarded from the payment approval page to the app. The app then needs to inform the payment gateway about the decision. To do so, the payment approval page redirects to an endpoint of the app, which notifies the payment gateway. Depending on the decision of the customer, either approval or cancelation of the payment, the payment gateway then provides a returnUri. The payment app needs to respond with a redirect to this URI.

2a. Successful payment

If the app informs the payment gateway that the customer approved the payment, the payment gateway will provide the above-mentioned returnUri to which the customer will be redirected by the app. In case of an approved payment, the returnUri is the successUri as shown below:

Required scopes

paym:m

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payments/ce1cc900-ec45-4cc6-9583-8ef028b79611/approve' -i -X POST \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

returnUri

String

The URI to which the app will redirect the customer after the approval, cancelation or failure of the payment.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 72

{
  "returnUri" : "https://api-shop.beyondshop.cloud/checkout/success"
}

The app then redirects the customer to this URI, e.g. an order success page provided by the payment gateway.

2b. Canceled payment

One reason for an unsuccessful payment can be the customer explicitly choosing to terminate the payment flow in the approval stage. In this case, the app informs the payment gateway that the payment is canceled by calling the /payments/{paymentId}/cancel endpoint. The payment gateway will then provide a returnUri to which the customer will be redirected by the app. In case of a canceled payment, the returnUri is the cancelUri as shown below:

Required scopes

paym:m

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payments/e6a61054-fb55-40b2-b993-f4c82d16b4fd/cancel' -i -X POST \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

returnUri

String

The URI to which the app will redirect the customer after the approval, cancelation or failure of the payment.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 71

{
  "returnUri" : "https://api-shop.beyondshop.cloud/checkout/cancel"
}

The app then redirects the customer to this URI, e.g. back to the last checkout step.

2c. Failed payment

If an error occurs during payment approval or cancelation, the payment app can also fail the payment by calling the /payments/{paymentId}/fail endpoint. A transition to the FAILED status is possible from APPROVED, CAPTURE_PENDING or directly from PENDING. In this case, the app should provide error information to the payment gateway. Although passing this information is optional, it is highly recommended.

Required scopes

paym:m

Request body properties

Path Type Description Constraints

approvalFailureType

String

The kind of error that occurred. Can be one of API_FAILURE or THREE_D_SECURE_FAILURE. Defaults to API_FAILURE.

recommendedUserAction

String

The recommended action for the customer. Can be one of RETRY or CHOOSE_DIFFERENT_PAYMENT_METHOD. Defaults to CHOOSE_DIFFERENT_PAYMENT_METHOD.

paymentErrorCode

String

An error code defined by the app to specify the problem.

Length must be between 0 and 512 inclusive

paymentErrorMessage

String

A message to further explain the problem that occurred.

Length must be between 0 and 1024 inclusive

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payments/ea6a71f3-3044-4514-8c8d-c1f803054418/fail' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "approvalFailureType": "API_FAILURE",
  "recommendedUserAction": "RETRY",
  "paymentErrorCode": "payment-app-specific-error-code",
  "paymentErrorMessage": "An error message explaining the payment app specific error situation."
}'

Response body properties

Path Type Description

returnUri

String

The URI to which the app will redirect the customer after the approval, cancelation or failure of the payment.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 278

{
  "returnUri" : "https://api-shop.beyondshop.cloud/checkout/cancel?errorType=API_FAILURE&recommendedUserAction=RETRY&paymentErrorCode=payment-app-specific-error-code&paymentErrorMessage=An%20error%20message%20explaining%20the%20payment%20app%20specific%20error%20situation."
}

The payment gateway then provides a returnUri to which the payment app should redirect the customer. If this also fails, the app should fall back to the errorUri it received from the payment gateway upon creation of the payment to redirect the customer to the checkout.

3. Capture a payment

Besides the approval of the customer, the payment needs to be captured. This capturing is triggered by the payment gateway via a request towards the app. The payment app needs to respond with the current status of the payment. If the payment gateway receives the confirmation that the payment is paid, the payment is captured and the payment was successful, as seen in the following POST request:

Request body properties

Path Type Description

shopId

String

The unique identifier of the shop.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/exampleapp/payments/245780a5-23b1-4e1e-8218-d9b08869ba69/capture' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -d '{
  "shopId" : "a839857a-192a-4508-9b90-60f1dd41370d"
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 34

{
  "paymentStatus" : "CAPTURED"
}
Set a payment status

In some cases, the payment app might not be able to directly report the status of the payment as paid when the payment is captured. For example, if the payment request has been accepted but the process in the background is still in progress. The app then needs to inform the payment gateway about changes of the payment status. This can be done via a POST request:

Required scopes

paym:m

Request body properties

Path Type Description

paymentStatus

String

The status of the payment. Can be one of PENDING, APPROVED, CANCELED, CAPTURED, CAPTURE_PENDING, PAID, UNDERPAID, OVERPAID, or FAILED, depending on the former status of the payment.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payments/4be82a8b-b4fb-43c0-b470-e19d2d7e7fbb/status' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{"paymentStatus":"APPROVED"}'

Response body properties

Path Type Description

paymentStatus

String

The status of the payment. Can be one of PENDING, APPROVED, CANCELED, CAPTURED, CAPTURE_PENDING, PAID, UNDERPAID, OVERPAID, or FAILED, depending on the former status of the payment.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 34

{
  "paymentStatus" : "APPROVED"
}

Refunds

If an order or a single item of an order has been canceled, the respective payment needs to be refunded. This can be done via a full or a partial refund.

Request body properties

Path Type Description

shopId

String

The unique identifier of the shop.

refundAmount

Object

The amount to be refunded with currency unit.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/exampleapp/payments/cf2f15bc-b355-4ece-ad6f-9da2320de4b2/refund' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -d '{
  "shopId" : "cb8a225a-5d44-4573-9668-0ac7b183c1cc",
  "refundAmount" : {
    "currency" : "EUR",
    "amount" : 10
  }
}'

Example response

HTTP/1.1 200 OK
X-Frame-Options: DENY

Support

Any questions left? Get in touch with us!

Explore more

Need more ideas? Here we go:

Social Commerce

Show case products on social media platforms such as Facebook or Pinterest. Or why not integrating products on a blogging platform, or on any given site with a widget?

Portal Engines

Add products to price comparison or shopping portals.

Shipping

Enable our merchants to print shipping labels and to control the status of an order.

Accounting

Allow our merchants to manage and process orders.

Legal Service

Provide up-to-date legal information (imprint, terms and conditions, etc.) automatically.

Basic POS/Marketplace

Automatically update the stock level of a product upon a POS/Marketplace sale.

Sales Analytics

Determine top selling products, top customers, top regions, or optimize cross-selling products by evaluating orders.

Image Service

Provide the ability to get images for a product, upload improved images, delete old images, or set the default product image as well as reorder the slideshow.

Advanced POS/Marketplace

Automatically update the stock level of a product upon a POS/Marketplace sale and allow to create and manage customers and orders.

CRM and Newsletters

Analyze and groups/targets customers by ordered products and/or newsletter preferences and generate personalized newsletters accordingly.

Enterprise Management Systems (EMS)

Integrate all core ecommerce functionality from our cockpit into an external application.

Basic Storefront Apps

Implement different types of social media buttons, a live chat to interact with customers or place badges into a shop’s storefront.

API Reference

The following sections provide you with all the required information on API resources, operations, and usage.

Change Log

This change log covers significant updates and changes to the Beyond REST API.

2018-10-30

Update

Rework Product Attribute Definitions and Product Attributes to reduce complexity by simplifying object structure.

2018-10-29

New

2018-10-18

Update

Change several paths on payment signup to comply with a name change from {paymentIntegration} to {paymentMethodDefinition}.

2018-09-11

Update

2018-08-28

New

Change shop resource’s body by re-working its structure and content.

Add shop attributes resource, which allow clients to store arbitrary information.

Add open, and close shop endpoints.

Add manufacturer suggested retail price, represented with the product attribute manufacturerPrice.

2018-08-14

Update

Change cart details by adding mustAcceptTermsAndConditions property in the payload.

Change Create order from cart endpoint by adding termsAndConditionsExplicitlyAccepted property in the payload.

2018-07-17

New

2018-06-19

New

Add Refund process support for payment apps.

2018-06-05

New

Update

Change Enable support access endpoint by removing user details from the response.

Change List users and Show user details endpoints by removing support user rendering.

2018-05-22

Update

Change cart’s payload endpoint by adding minimumOrderValue property.

2018-04-10

New

Add Replace single line item endpoint.

Update

Enhance official apps to carry additional configuration data used for payment app creation.

2018-03-29

New

2018-03-13

New

Implement Payment Gateway for payment integrations.

Authentication

Create a JsonWebToken from Refresh Token

A POST request is used to create a JsonWebToken from a refresh token.

Request parameters

Parameter Description

grant_type

OAuth2 grant type. Use client_credentials for client credentials flow, authorization_code for authorization code flow, and refresh_token to refresh an access token.

refresh_token

The token that can be used to obtain a renewed access token when the current token has expired. Required for the refresh_token grant type.

Request header properties

Name Description

Authorization

The HTTP Basic Authorization header containing the OAuth 2.0 client credentials (client_id:client_secret).

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/oauth/token' -i -u 'sample-client:6892585f-a37a-420e-b6d9-933131600626' -X POST \
    -d 'grant_type=refresh_token&refresh_token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJ1c2VyX25hbWUiOiJ1c2VyIiwic2NvcGUiOlsicHJvZDpyYyJdLCJhdGkiOiI1Nzk3MDE1Yi0xMDIwLTRhNWQtODIzYS0xNTkyYTMwNWE0Y2EiLCJ0ZW5hbnRJZCI6MTQzOCwiZXhwIjoxNTQ3NjM1NTQ0LCJpYXQiOjE1NDUwNDM1NDQsInVzZXJJZCI6IjRhN2FiYmFkLTI4YjItNDM0Ni1iNDcyLTc3MGNmNWM2ZGQxNSIsImp0aSI6ImVhNzk1NDkwLWM4ZmQtNGEzYi05OWQ0LWQ3YTM1ODNhZmZlYSIsImNsaWVudF9pZCI6InNhbXBsZS1jbGllbnQiLCJ1c2VybmFtZSI6InVzZXIifQ.H7DsfvQ7o_oeTxnNBGpmg2ADYB52bfFKQJ1mUZuAYNakSsQgGULZlBSADWMrv358BedwP3RIGi1ISzyOXLptFeXrtIIy_otwsUvpJD-VLtG9kjhxJgh4kHTbUyu4r6Ynxzi_cQ7jul22mdK2oZKyJvlaEUleVTBgjsZ2oS8z4MUS3vZsWbw0S2OBEAaENq7rzLip77BgwBZHkVFOfIuSEFF7yiAm9cIGmZOB11RtXQvlPD4Gp_F06KSrIa3qzSkofsXWouiTkVpd6QzH4NBtlakO8TmNN8FlgBi7fNVb6s9wnkJaIBQmf68sSRqi40vMRdhPJ0Vg8QUaxIZSMXVXRA'

Response body properties

Path Type Description

refresh_token

String

The token that can be used to obtain a renewed access token.

userId

String

The unique identifier of the user the token was issued for.

username

String

The username that identifies the user the token was issued for.

access_token

String

The encoded JsonWebToken to access the resource.

tenantId

Number

The unique identifier of the tenant.

token_type

String

Represents how an accessToken will be generated and presented for accessing a resource. Always issued as Bearer.

iat

Number

The timestamp when the token was created (Issued At). Displayed in seconds since the start of the Epoch. Refer to RFC 7519.

expires_in

Number

The time of token expiry in seconds. Calculated from iat.

scope

String

A space-delimited list of scopes the token is issued for.

jti

String

The unique token identifier of the token. Must be unique for each request. Refer to RFC 7519.

Example response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1753

{
  "access_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJ1c2VyX25hbWUiOiJ1c2VyIiwic2NvcGUiOlsicHJvZDpyYyJdLCJ0ZW5hbnRJZCI6MTQzOCwiZXhwIjoxNTQ1MzAyNzQ0LCJpYXQiOjE1NDUwNDM1NDQsInVzZXJJZCI6IjRhN2FiYmFkLTI4YjItNDM0Ni1iNDcyLTc3MGNmNWM2ZGQxNSIsImp0aSI6IjAwNTcwODY4LWFkMTQtNDM5MC1iOTczLTQ3NmE3MzNjZjIzYyIsImNsaWVudF9pZCI6InNhbXBsZS1jbGllbnQiLCJ1c2VybmFtZSI6InVzZXIifQ.AKBnELPGFxTScX4UswnLTKKqIEbinOzrLr7TtlJQwRfkLYokVbRfadU_abnztOjX6lvuZzcBJ-guDHmXxWDHQWdYT_UJGuL3aqv8vloEALmx-IfalGX7wfx5vxp39r4-a1SZZ9eDu03j7QL5VoJzx0C8I0FyFbLaEys_RvVEPDLMkhjlOXOUkFbAMHHJjlfzr_BdlODF0HlDbLSc_MX9I7GEE5KPIli6RTd4UarxKowWiRQchwIlLbNnIbA6ua_-EtNsQ3Im6va_n1kKDrX3fA-yX-h8qi7zKbjH_0fcSituPCweqlxcPhdCpQykcZu6ofSy-7Bov-u3Z-iwXzgxaw",
  "token_type" : "bearer",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJ1c2VyX25hbWUiOiJ1c2VyIiwic2NvcGUiOlsicHJvZDpyYyJdLCJhdGkiOiIwMDU3MDg2OC1hZDE0LTQzOTAtYjk3My00NzZhNzMzY2YyM2MiLCJ0ZW5hbnRJZCI6MTQzOCwiZXhwIjoxNTQ3NjM1NTQ0LCJpYXQiOjE1NDUwNDM1NDQsInVzZXJJZCI6IjRhN2FiYmFkLTI4YjItNDM0Ni1iNDcyLTc3MGNmNWM2ZGQxNSIsImp0aSI6ImVhNzk1NDkwLWM4ZmQtNGEzYi05OWQ0LWQ3YTM1ODNhZmZlYSIsImNsaWVudF9pZCI6InNhbXBsZS1jbGllbnQiLCJ1c2VybmFtZSI6InVzZXIifQ.AIdb0q4mQ6UJXi4HZBj0rWSrI9Qn_btXIDZxHTOm41kmnc3SZTpU-KXNltHyRwaNv1b38vivz_WXbseWpXoS1Mgi9x_SyuNYdKLIt4nJl0IHpJ2gwR5tVXNWVbnbqy9BoKF4uoblTFPSo6oj2U0voYDkHeKxaAOxLb362b0smzYEZh16THM-LroDYYgKJptAFAzkprF0le4zhYalFRl4PGnSZsPfvmygjO3Vw3LExupg_NS1KwSZ14dGAdc7kZJVebdSaz7KTU4Tu5_v3wJUQyLOKBuGc4AQr1HAe9Gx3WZYPtToirqTuGEpvLA79saMUc6T_mMIdIIxmwS5JkXd3Q",
  "expires_in" : 259199,
  "scope" : "prod:rc",
  "tenantId" : 1438,
  "iat" : 1545043544,
  "userId" : "4a7abbad-28b2-4346-b472-770cf5c6dd15",
  "username" : "user",
  "jti" : "00570868-ad14-4390-b973-476a733cf23c"
}

Create a JsonWebToken from Client Credentials

A POST request is used to create a JsonWebToken using the client_credentials grant type.

Request parameters

Parameter Description

grant_type

OAuth2 grant type. Use client_credentials for client credentials flow, authorization_code for authorization code flow, and refresh_token to refresh an access token.

Request header properties

Name Description

Authorization

The HTTP Basic Authorization header containing the OAuth 2.0 client credentials (client_id:client_secret).

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/oauth/token' -i -u 'clientId-1:password' -X POST \
    -d 'grant_type=client_credentials'

Response body properties

Path Type Description

access_token

String

The encoded JsonWebToken to access the resource.

tenantId

Number

The unique identifier of the tenant.

token_type

String

Represents how an accessToken will be generated and presented for accessing a resource. Always issued as Bearer.

iat

Number

The timestamp when the token was created (Issued At). Displayed in seconds since the start of the Epoch. Refer to RFC 7519.

expires_in

Number

The time of token expiry in seconds. Calculated from iat.

scope

String

A space-delimited list of scopes the token is issued for.

jti

String

The unique token identifier of the token. Must be unique for each request. Refer to RFC 7519.

Example response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 774

{
  "access_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJzY29wZSI6WyJwcm9kOmNyIl0sInRlbmFudElkIjoxNDM4LCJleHAiOjE1NDUwODY3NDcsImlhdCI6MTU0NTA0MzU0NywianRpIjoiOTlmNGIzZTAtZGNhNy00NTg4LWIwOGUtZmExOGNhN2MzOTUwIiwiY2xpZW50X2lkIjoiY2xpZW50SWQtMSJ9.L7ri6BmriqjfgsOMOAeMmLNKC7HNHhlrTqxsTKWRM7bB7UJGZJkYz7EmOLxa0vVH3PAzH9AV-p2sc2cFgLv-essfeR_XfENhkSc0XsI5_yjkZkwroPHsxmXbQa89dZp0XCrmR1KElsSnrFkZ4UPnnyJwhia9J9FOQhsArvdwYqDZ9XbP1CVXUYEzwekjXCDmIm6S-usPG__LqmhlCr1mXO23o3gJ1BXdLbRZSsacnHNORdZCr_waIfemCqEHIBAhBe0yt9_BauNQHsncMgVf9gAmHCCqeULltooAFI2Yt5XSApluWPzh_xL6kS2fv2JhIwLeKuWA9JMhoftl0uAO7A",
  "token_type" : "bearer",
  "expires_in" : 43199,
  "scope" : "prod:cr",
  "tenantId" : 1438,
  "iat" : 1545043547,
  "jti" : "99f4b3e0-dca7-4588-b08e-fa18ca7c3950"
}

Carts

The cart resources are used to manage the carts of a shop. A cart allows customers to pick products from a shop and store them to be bought now or at a later time. The cart can contain a single or various line items. The cart also holds the feature for setting the billing address, the shipping address and shipping zone as well as the payment method.

Create cart

A POST request is used to create a cart.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts' -i -X POST \
    -H 'Accept: application/hal+json'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/carts/1cc04e8f-7d77-4050-86ec-8372baca5152
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 4758

{
  "_id" : "1cc04e8f-7d77-4050-86ec-8372baca5152",
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "f1a5c250-df9b-4283-ad9d-e596fa5c4ef2",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/b5e55528-53eb-47ec-9532-64782a03fe57/shipping-methods/f1a5c250-df9b-4283-ad9d-e596fa5c4ef2"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "2df38cc0-f415-4794-ac69-0644a7124ef3",
        "name" : "Converge",
        "description" : "Pay with Converge",
        "officialName" : "Converge",
        "officialDescription" : "Pay with Converge",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "ABSOLUTE",
          "absoluteValue" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 2
          },
          "percentageValue" : null
        },
        "position" : 1,
        "serviceableCountries" : [ "DE" ],
        "minimumOrderValue" : null,
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/2df38cc0-f415-4794-ac69-0644a7124ef3"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/2df38cc0-f415-4794-ac69-0644a7124ef3"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/2df38cc0-f415-4794-ac69-0644a7124ef3/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/2df38cc0-f415-4794-ac69-0644a7124ef3/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1cc04e8f-7d77-4050-86ec-8372baca5152"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1cc04e8f-7d77-4050-86ec-8372baca5152/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1cc04e8f-7d77-4050-86ec-8372baca5152/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1cc04e8f-7d77-4050-86ec-8372baca5152/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1cc04e8f-7d77-4050-86ec-8372baca5152/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1cc04e8f-7d77-4050-86ec-8372baca5152/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1cc04e8f-7d77-4050-86ec-8372baca5152/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1cc04e8f-7d77-4050-86ec-8372baca5152/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1cc04e8f-7d77-4050-86ec-8372baca5152/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1cc04e8f-7d77-4050-86ec-8372baca5152/shipping-address"
    }
  }
}

Show cart details

A GET request is used to retrieve the details of a cart.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_id

String

The unique identifier of the cart.

lineItems[]._id

String

The unique identifier of the product line item.

lineItems[]._ref

String

The ID of the associated item (in case of _type=PRODUCT the product ID).

lineItems[]._type

String

The type of the line item (always PRODUCT for product line items).

lineItems[].name

String

The name of the line item.

lineItems[]._embedded.product

Object

The product-related details.

lineItems[]._embedded.product._id

String

The immutable, unique identifier of the requested resource.

lineItems[]._embedded.product.sku

String

The SKU of the product line item.

lineItems[]._embedded.product.essentialFeatures

String

The essential product properties. Shown in the cart and checkout. In Germany mandatory field in online shops according to §312j Abs. 2 BGB (German Civil Code).

lineItems[]._embedded.product._links.product

Object

The link to the product.

lineItems[]._embedded.product._links.default-image-data

Object

The download URL of the default image.

lineItems[].quantity

Number

The value of the quantity of the single line item.

lineItems[].singleItemPrice.taxModel

String

The tax model of the single line item price.

lineItems[].singleItemPrice.amount

Number

The amount of the single line item price.

lineItems[].singleItemPrice.currency

String

The currency of the single line item price.

lineItems[].lineItemPrice.taxModel

String

The tax model of the line item total price.

lineItems[].lineItemPrice.amount

Number

The amount of the line item total price.

lineItems[].lineItemPrice.currency

String

The currency of the line item total price.

lineItems[].lineItemTax.taxRate

Number

The tax rate of the line item.

lineItems[].lineItemTax.taxClass

String

The tax class of the line item. Can be REGULAR, REDUCED, or EXEMPT.

lineItems[].lineItemTax.amount

Number

The tax amount of the line item.

lineItems[].lineItemTax.currency

String

The currency of the line item.

lineItems[]._links.self.href

String

The self URI of the product line item.

shippingLineItem._embedded.shipping-method

Object

The line items of the shipping method.

shippingLineItem.lineItemTaxes

Array

The tax information for the shipping line item. The array contains one item per tax class.

shippingLineItem.lineItemPrice.taxModel

String

The tax model of the price for this shipping line item.

shippingLineItem.lineItemPrice.amount

Number

The amount of the price for this shipping line item.

shippingLineItem.lineItemPrice.currency

String

The currency of the price for this shipping line item.

paymentLineItem._embedded.payment-method

Object

Refer to Show payment method details for item documentation.

paymentLineItem.lineItemTaxes

Array

The tax information for the payment line item. The array contains one item per tax class.

paymentLineItem.lineItemPrice.taxModel

String

The tax model of the payment line item price.

paymentLineItem.lineItemPrice.amount

Number

The amount of the payment line item price.

paymentLineItem.lineItemPrice.currency

String

The currency of the payment line item price.

billingAddress

Object

The billing address of the cart. Refer to Set cart billing address for item documentation.

billingAddress.displayAddressLines

Array

The applicable billing address of the cart to be displayed.

shippingAddress

Object

The shipping address that applies to the cart. Defaults to billing address if no shipping address is set. Refer to Set cart shipping address for item documentation.

shippingAddress.displayAddressLines

Array

The applicable shipping address of the cart to be displayed.

grandTotal

Object

The total price to be paid including product price, shipping, and tax.

subtotal

Object

The subtotal of the product line items.

netTotal

Object

The total net amount of the cart.

taxTotal

Object

The total tax amount.

taxable

Boolean

Indicates if a tax applies for the cart. Can be true or false.

taxes

Array

The tax amount per tax class.

taxes[*].taxClass

String

The tax class that applies for the cart.

taxes[*].taxRate

Number

The tax rate of this tax class.

taxes[*].amount

Number

The tax amount of this tax class.

taxes[*].currency

String

The currency for this tax amount.

balanceDue

Object

The outstanding balance of the amount to be paid.

minimumOrderValue

Object

The minimum value of the cart so that this payment method can be used.

mustAcceptTermsAndConditions

Boolean

Indicates if the customer has to explicitly consent to the terms and conditions before buying something.

weight

Number

The total weight of products in the cart. A product’s weight defaults to 0 if not set.

checkoutState.readyToOrder

Boolean

Indicates if this cart is ready to create an order. Can be true or false.

checkoutState.shippingMethodValid

Boolean

Indicates if the shipping method for this cart is valid.

checkoutState.shippingMethodSelectable

Boolean

Indicates if the shipping method for this cart can be selected.

checkoutState.paymentMethodValid

Boolean

Indicates if the payment method for this cart is valid. Can be true or false.

checkoutState.paymentMethodSelectable

Boolean

Indicates if the payment method for this cart can be selected. Can be true or false.

checkoutState.billingAddressSet

Boolean

Indicates if the billing address for the cart is set. Can be true or false.

checkoutState.priceValidToOrder

Boolean

Indicates if the cart sum is valid to create an order. Can be true or false.

checkoutState.paymentTransactionStatus

String

The state of the payment transaction of this cart. Can be one of NO_APPROVAL_NEEDED, APPROVAL_PENDING, or APPROVED.

_links

Object

See Hypermedia

paymentLineItem._embedded.payment-method._id

String

The immutable, unique identifier of the requested resource.

paymentLineItem._embedded.payment-method.position

Number

The sorting position of the payment method in the Commerce Cockpit in relation to other payment methods.

paymentLineItem._embedded.payment-method.officialName

String

The official name of the payment method chosen by the merchant during setup.

paymentLineItem._embedded.payment-method.officialDescription

String

The official description of the payment method chosen by the merchant during setup.

paymentLineItem._embedded.payment-method.name

String

The name of the payment method that is used during checkout.

paymentLineItem._embedded.payment-method.description

String

Description of the payment method that is used during checkout.

paymentLineItem._embedded.payment-method.activated

Boolean

Indicates if a payment method is active. Can be true or false.

paymentLineItem._embedded.payment-method.taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

paymentLineItem._embedded.payment-method.discountOrFee

Object

The details about the fee to be payed or discount to be granted for this payment method.

paymentLineItem._embedded.payment-method.discountOrFee.type

String

The discount or fee can be an absolute or a percentage based value. Can be one of PERCENTAGE or ABSOLUTE. ABSOLUTE contains another attribute absoluteValue with a positive or negative price. PERCENTAGE contains another attribute percentageValue with a negative or positive percentage value.

paymentLineItem._embedded.payment-method.serviceableCountries

Array

The list of target countries this payment method can be used in.

paymentLineItem._embedded.payment-method.minimumOrderValue

Null

The minimum value of the cart so that this payment method can be used.

paymentLineItem._embedded.payment-method.onlinePayment

Boolean

Indicates if the payment method is an online payment. Can be true or false.

paymentLineItem._embedded.payment-method.activeLogoSet

Null

The name of the currently selected logo set. Can be TILE, DETAILS, LIST, or STOREFRONT. (official is always the fallback).

paymentLineItem._embedded.payment-method._links

Object

See Hypermedia

shippingLineItem._embedded.shipping-method._id

String

The immutable, unique identifier of the requested resource.

shippingLineItem._embedded.shipping-method.weightBasedPrice

Null

The price depending on the package weight (optional).

shippingLineItem._embedded.shipping-method.freeShippingValue

Null

Once a customer reaches this amount (excluding payment fee) this shipping method is free of charge.

shippingLineItem._embedded.shipping-method.position

Number

The sorting position of the shipping method in the Commerce Cockpit in relation to other shipping methods.

shippingLineItem._embedded.shipping-method.name

String

The name of the shipping method.

shippingLineItem._embedded.shipping-method.description

String

The description of the shipping method.

shippingLineItem._embedded.shipping-method.taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

shippingLineItem._embedded.shipping-method.freeShippingValue

Null

Once a customer reaches this amount (excluding payment fee) this shipping method is free of charge.

shippingLineItem._embedded.shipping-method.fixedPrice

object

The fixed price for the shipping method irrespective of weight, dimensions, etc.

shippingLineItem._embedded.shipping-method._links

Object

See Hypermedia

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 7999

{
  "_id" : "be2c17a1-667e-4429-bbac-1cf1490383f7",
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "0e28bb99-7db7-4f8f-8086-654d7421c1a2",
    "_ref" : "ef0e01c5-d3e4-454a-850d-2703ef102e66",
    "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
    "quantity" : 1,
    "singleItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0.9405
    },
    "_embedded" : {
      "product" : {
        "_id" : "ef0e01c5-d3e4-454a-850d-2703ef102e66",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/ef0e01c5-d3e4-454a-850d-2703ef102e66?locale=de-DE"
          },
          "default-image-data" : {
            "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
          }
        }
      }
    },
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7/line-items/0e28bb99-7db7-4f8f-8086-654d7421c1a2"
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "2ab8fdc0-3d43-4b95-a040-e7cf4c4f547d",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/c899f377-735c-4094-b2ed-3eba388581c0/shipping-methods/2ab8fdc0-3d43-4b95-a040-e7cf4c4f547d"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "08b2f6de-fd8a-45b4-8c83-cb1e42d001e2",
        "name" : "Converge",
        "description" : "Pay with Converge",
        "officialName" : "Converge",
        "officialDescription" : "Pay with Converge",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "ABSOLUTE",
          "absoluteValue" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 2
          },
          "percentageValue" : null
        },
        "position" : 1,
        "serviceableCountries" : [ "DE" ],
        "minimumOrderValue" : null,
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/08b2f6de-fd8a-45b4-8c83-cb1e42d001e2"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/08b2f6de-fd8a-45b4-8c83-cb1e42d001e2"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/08b2f6de-fd8a-45b4-8c83-cb1e42d001e2/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/08b2f6de-fd8a-45b4-8c83-cb1e42d001e2/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : null,
    "title" : "",
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "displayAddressLines" : [ "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "DEUTSCHLAND" ],
    "vatId" : "123456789",
    "taxNumber" : "123-34-6789",
    "birthDate" : "1985-03-20"
  },
  "shippingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : null,
    "title" : "",
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "displayAddressLines" : [ "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "DEUTSCHLAND" ],
    "doorCode" : "0185"
  },
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 4.95
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.0,
    "currency" : "EUR",
    "amount" : 0
  } ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 190,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : true,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : true
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7/shipping-address"
    },
    "place-order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be2c17a1-667e-4429-bbac-1cf1490383f7/order"
    }
  }
}

Delete cart

A DELETE request is used to remove the cart.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/5ebc3192-49fc-4432-aa47-d92f63d5b619' -i -X DELETE

Example response

HTTP/1.1 204 No Content

Create order from cart

A POST request is used to create an order from the cart.

This endpoint can just be used on a cart with checkoutState.readyToOrder == true. The readyToOrder does not include the availability check, so this might still fail if stock-managed products are not available.

The response contains a location header with a link to the order. Note that the order is created asynchronously and is not available immediately.

Request body properties

Path Type Description

customerComment

String

An optional comment from the customer regarding the order.

salesChannel

String

The sales channel for this order, such as an online shop, point of sale, or a retail store.

marketingChannel

String

The marketing channel for this order, such as a newsletter campaign, Google Shopping, or a Buy Button that’s implemented on a blog.

marketingSubchannel

String

The marketing subchannel for this order, such as a specific newsletter of a newsletter campaign, e.g. a Summer Sale that’s promoted on a blog, or a Winter Special that’s promoted on Facebook.

testOrder

Boolean

Indicates if this order is a test order. Can be true or false.

termsAndConditionsExplicitlyAccepted

Boolean

Indicates if the shop’s terms and conditions have been explicitly accepted. If explicit consent is required (see checkout settings) and not given, trying to order the cart will fail. Can be true or false.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/ec6958ce-3064-4cc6-a33c-8aecab85167e/order' -i -X POST \
    -H 'Content-Type: application/json' \
    -d '{"customerComment": "send it fast please",
  "salesChannel": "DifferentChannel",
  "marketingChannel": "Google",
  "marketingSubchannel": "Search page 2",
  "testOrder": false,
  "termsAndConditionsExplicitlyAccepted": true
}'

Example response

HTTP/1.1 202 Accepted
Location: https://api-shop.beyondshop.cloud/api/order/orders/search/find-by-cart-id?cartId=ec6958ce-3064-4cc6-a33c-8aecab85167e

Add single line item to cart

A POST request is used to add a line item to the cart. Currently only product line items are supported.

Request body properties

Path Type Description

_type

String

The type of the line item (always PRODUCT for product line items).

_ref

String

The ID of the associated item (in case of _type=PRODUCT the product ID).

quantity

Number

The quantity for the line item to be set. If the line item is already in the cart, the quantity is added. Defaults to one.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/2dce7616-3619-4eb1-9803-e5c1800b4726/line-items' -i -X POST \
    -H 'Content-Type: application/json' \
    -d '{"_type":"PRODUCT","_ref":"d4edb5a7-75fc-46e5-aa85-b99654ad7483","quantity":1}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 6362

{
  "_id" : "2dce7616-3619-4eb1-9803-e5c1800b4726",
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "701bd698-f713-40d9-806b-35ee6d674561",
    "_ref" : "d4edb5a7-75fc-46e5-aa85-b99654ad7483",
    "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
    "quantity" : 1,
    "singleItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0.9405
    },
    "_embedded" : {
      "product" : {
        "_id" : "d4edb5a7-75fc-46e5-aa85-b99654ad7483",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/d4edb5a7-75fc-46e5-aa85-b99654ad7483?locale=de-DE"
          },
          "default-image-data" : {
            "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
          }
        }
      }
    },
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/carts/2dce7616-3619-4eb1-9803-e5c1800b4726/line-items/701bd698-f713-40d9-806b-35ee6d674561"
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "8e17a82e-a262-4da3-87ee-452fb2757082",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/b5bf5f88-4dda-414d-9601-773417145db2/shipping-methods/8e17a82e-a262-4da3-87ee-452fb2757082"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "7c9f40d1-0cf6-44ff-b2cd-c470fc1d37dd",
        "name" : "Converge",
        "description" : "Pay with Converge",
        "officialName" : "Converge",
        "officialDescription" : "Pay with Converge",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "ABSOLUTE",
          "absoluteValue" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 2
          },
          "percentageValue" : null
        },
        "position" : 1,
        "serviceableCountries" : [ "DE" ],
        "minimumOrderValue" : null,
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7c9f40d1-0cf6-44ff-b2cd-c470fc1d37dd"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7c9f40d1-0cf6-44ff-b2cd-c470fc1d37dd"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7c9f40d1-0cf6-44ff-b2cd-c470fc1d37dd/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7c9f40d1-0cf6-44ff-b2cd-c470fc1d37dd/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 4.95
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.0,
    "currency" : "EUR",
    "amount" : 0
  } ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 190,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/2dce7616-3619-4eb1-9803-e5c1800b4726"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/2dce7616-3619-4eb1-9803-e5c1800b4726/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/2dce7616-3619-4eb1-9803-e5c1800b4726/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/2dce7616-3619-4eb1-9803-e5c1800b4726/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/2dce7616-3619-4eb1-9803-e5c1800b4726/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/2dce7616-3619-4eb1-9803-e5c1800b4726/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/2dce7616-3619-4eb1-9803-e5c1800b4726/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/2dce7616-3619-4eb1-9803-e5c1800b4726/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/2dce7616-3619-4eb1-9803-e5c1800b4726/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/2dce7616-3619-4eb1-9803-e5c1800b4726/shipping-address"
    }
  }
}

Replace single line item

A PUT request is used to replace only one line item in the cart.

Request body properties

Path Type Description

_type

String

The type of the line item (always PRODUCT for product line items).

_ref

String

The ID of the associated item (in case of _type=PRODUCT the product ID).

quantity

Number

The quantity for the line item to be set. If the line item is already in the cart, the quantity is added. Defaults to one.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/809c5e93-1f4e-4323-ba93-36418356e100/line-items/02f77e6b-8cee-4c5f-bb1d-055b7f08b353' -i -X PUT \
    -H 'Content-Type: application/json' \
    -d '{"_type":"PRODUCT","_ref":"fa23da93-6a83-4a9e-bce9-9dc520a72da7","quantity":2}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 6359

{
  "_id" : "809c5e93-1f4e-4323-ba93-36418356e100",
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "02f77e6b-8cee-4c5f-bb1d-055b7f08b353",
    "_ref" : "fa23da93-6a83-4a9e-bce9-9dc520a72da7",
    "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
    "quantity" : 2,
    "singleItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 9.9
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 1.881
    },
    "_embedded" : {
      "product" : {
        "_id" : "fa23da93-6a83-4a9e-bce9-9dc520a72da7",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/fa23da93-6a83-4a9e-bce9-9dc520a72da7?locale=de-DE"
          },
          "default-image-data" : {
            "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
          }
        }
      }
    },
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/carts/809c5e93-1f4e-4323-ba93-36418356e100/line-items/02f77e6b-8cee-4c5f-bb1d-055b7f08b353"
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "f196dbb1-4bec-4eb8-b827-3a6d0e5d2186",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/77452897-91eb-430d-9932-e546dbb70d92/shipping-methods/f196dbb1-4bec-4eb8-b827-3a6d0e5d2186"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "6020540a-0556-47bd-b225-6d3e10f7bedc",
        "name" : "Converge",
        "description" : "Pay with Converge",
        "officialName" : "Converge",
        "officialDescription" : "Pay with Converge",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "ABSOLUTE",
          "absoluteValue" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 2
          },
          "percentageValue" : null
        },
        "position" : 1,
        "serviceableCountries" : [ "DE" ],
        "minimumOrderValue" : null,
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/6020540a-0556-47bd-b225-6d3e10f7bedc"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/6020540a-0556-47bd-b225-6d3e10f7bedc"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/6020540a-0556-47bd-b225-6d3e10f7bedc/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/6020540a-0556-47bd-b225-6d3e10f7bedc/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 9.9
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 31.89
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 31.89
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 31.89
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.0,
    "currency" : "EUR",
    "amount" : 0
  } ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 380,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/809c5e93-1f4e-4323-ba93-36418356e100"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/809c5e93-1f4e-4323-ba93-36418356e100/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/809c5e93-1f4e-4323-ba93-36418356e100/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/809c5e93-1f4e-4323-ba93-36418356e100/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/809c5e93-1f4e-4323-ba93-36418356e100/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/809c5e93-1f4e-4323-ba93-36418356e100/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/809c5e93-1f4e-4323-ba93-36418356e100/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/809c5e93-1f4e-4323-ba93-36418356e100/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/809c5e93-1f4e-4323-ba93-36418356e100/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/809c5e93-1f4e-4323-ba93-36418356e100/shipping-address"
    }
  }
}

Replace line items

A PUT request is used to replace the current line items in the cart with the given list.

Request body properties

Path Type Description

[]

Array

The list of line items.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2/line-items' -i -X PUT \
    -H 'Content-Type: application/json' \
    -d '[{"_type":"PRODUCT","_ref":"60d319dc-207a-4145-884f-9b6e5e75c6bf","quantity":1}]'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 6362

{
  "_id" : "8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2",
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "24ba7f3b-0e14-4825-abe3-0a4cf2ecc4cd",
    "_ref" : "60d319dc-207a-4145-884f-9b6e5e75c6bf",
    "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
    "quantity" : 1,
    "singleItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0.9405
    },
    "_embedded" : {
      "product" : {
        "_id" : "60d319dc-207a-4145-884f-9b6e5e75c6bf",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/60d319dc-207a-4145-884f-9b6e5e75c6bf?locale=de-DE"
          },
          "default-image-data" : {
            "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
          }
        }
      }
    },
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/carts/8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2/line-items/24ba7f3b-0e14-4825-abe3-0a4cf2ecc4cd"
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "e3ffc64a-e333-4efb-bf99-f20771abd571",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/f387aa20-8c36-49f3-9a34-600964e4865c/shipping-methods/e3ffc64a-e333-4efb-bf99-f20771abd571"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "c2095a0e-9c88-49f8-a2ea-c626a51ab2b2",
        "name" : "Converge",
        "description" : "Pay with Converge",
        "officialName" : "Converge",
        "officialDescription" : "Pay with Converge",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "ABSOLUTE",
          "absoluteValue" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 2
          },
          "percentageValue" : null
        },
        "position" : 1,
        "serviceableCountries" : [ "DE" ],
        "minimumOrderValue" : null,
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c2095a0e-9c88-49f8-a2ea-c626a51ab2b2"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c2095a0e-9c88-49f8-a2ea-c626a51ab2b2"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c2095a0e-9c88-49f8-a2ea-c626a51ab2b2/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c2095a0e-9c88-49f8-a2ea-c626a51ab2b2/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 4.95
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.0,
    "currency" : "EUR",
    "amount" : 0
  } ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 190,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8a7eae87-c9ac-4ef7-98d1-42e5074cd2c2/shipping-address"
    }
  }
}

Delete line item

A DELETE request is used to remove a line item from the cart.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/5c498ab0-8cf3-4007-937a-85c38c93b599/line-items/1e19fdcd-3ea4-49aa-ba89-10bb313139c0' -i -X DELETE

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 4758

{
  "_id" : "5c498ab0-8cf3-4007-937a-85c38c93b599",
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "7443d5c2-459c-489c-8ff0-8dbbb0afe052",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/df562c72-a436-4adc-9a17-35ba01eb660c/shipping-methods/7443d5c2-459c-489c-8ff0-8dbbb0afe052"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "55efb8dd-f113-4bc2-8520-81b4d55736b2",
        "name" : "Converge",
        "description" : "Pay with Converge",
        "officialName" : "Converge",
        "officialDescription" : "Pay with Converge",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "ABSOLUTE",
          "absoluteValue" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 2
          },
          "percentageValue" : null
        },
        "position" : 1,
        "serviceableCountries" : [ "DE" ],
        "minimumOrderValue" : null,
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/55efb8dd-f113-4bc2-8520-81b4d55736b2"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/55efb8dd-f113-4bc2-8520-81b4d55736b2"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/55efb8dd-f113-4bc2-8520-81b4d55736b2/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/55efb8dd-f113-4bc2-8520-81b4d55736b2/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5c498ab0-8cf3-4007-937a-85c38c93b599"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5c498ab0-8cf3-4007-937a-85c38c93b599/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5c498ab0-8cf3-4007-937a-85c38c93b599/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5c498ab0-8cf3-4007-937a-85c38c93b599/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5c498ab0-8cf3-4007-937a-85c38c93b599/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5c498ab0-8cf3-4007-937a-85c38c93b599/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5c498ab0-8cf3-4007-937a-85c38c93b599/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5c498ab0-8cf3-4007-937a-85c38c93b599/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5c498ab0-8cf3-4007-937a-85c38c93b599/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5c498ab0-8cf3-4007-937a-85c38c93b599/shipping-address"
    }
  }
}

The cart address resources handle the billing and shipping address of a cart.

Set cart billing address

A PUT request is used to set the billing address of the cart. The billing address is mandatory for a cart being ready to order.

Request body properties

Path Type Description Constraints

salutation

String

The customer’s salutation, e.g. Mr or Mrs.

Length must be between 0 and 30 inclusive

gender

String

The customer’s grammatical gender. Can be FEMALE, MALE, or UNDEFINED.

title

String

The customer’s academic title, e.g. professor, or PhD.

Length must be between 0 and 100 inclusive

firstName

String

The first name of the customer.

Length must be between 0 and 50 inclusive

middleName

String

The middle name of the customer.

Length must be between 0 and 100 inclusive

lastName

String

The last name of the customer.

Length must be between 0 and 50 inclusive

street

String

The street of the customer address.

Length must be between 0 and 200 inclusive. Must not be empty

houseNumber

String

The house number of the customer address.

Length must be between 0 and 20 inclusive

street2

String

Additional street field of the customer address.

Length must be between 0 and 200 inclusive

doorCode

String

The door code of the customer address.

addressExtension

String

The address extension of the customer address, e.g. PO box.

Length must be between 0 and 200 inclusive

postalCode

String

The zip code of the customer address.

Length must be between 0 and 25 inclusive

dependentLocality

String

Additional locality information such as a village or suburb name, giving a more specific location.

Length must be between 0 and 60 inclusive

city

String

The city of the customer address.

Length must be between 0 and 60 inclusive. Must not be empty

country

String

A two letter country code according to ISO 3166-1. Only officially assigned country codes.

Must be an officially assigned country code (see ISO 3166-1 Alpha-2). Must not be null. The address country must be in the list of shipping countries of the shop

state

String

The state of the customer address.

Length must be between 0 and 100 inclusive

email

String

The email address of the customer.

Length must be between 0 and 150 inclusive. Must be a well-formed email address. Must not be empty

phone

String

The landline phone number of the customer.

Length must be between 0 and 40 inclusive

mobile

String

The mobile phone number of the customer.

Length must be between 0 and 40 inclusive

vatId

String

Length must be between 0 and 20 inclusive

taxNumber

String

Length must be between 0 and 50 inclusive

birthDate

String

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/c25fb8b6-bc8e-431b-b601-c09cb806e4c2/billing-address' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -d '{"salutation":"Mrs","gender":"FEMALE","title":"","firstName":"Astrid","middleName":"Agnes","lastName":"Alster","street":"Alsterwasserweg","houseNumber":"2","street2":"Erdgeschoss","doorCode":"0185","addressExtension":"Hinterhof","postalCode":"20999","dependentLocality":"Seevetal","city":"Alsterwasser","country":"DE","state":"Hamburg","email":"a.alsterh@example.com","phone":"(800) 555-0102","mobile":"(800) 555-0103","vatId":"123456789","taxNumber":"123-34-6789","birthDate":"1985-03-20"}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 5669

{
  "_id" : "c25fb8b6-bc8e-431b-b601-c09cb806e4c2",
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "bbaed11a-1c70-4c1a-bc78-130490500a87",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/975ae873-bf40-4867-bd8c-1f56440973ee/shipping-methods/bbaed11a-1c70-4c1a-bc78-130490500a87"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "7341b572-ee00-4a0e-9a1a-a95afb1ecafa",
        "name" : "Converge",
        "description" : "Pay with Converge",
        "officialName" : "Converge",
        "officialDescription" : "Pay with Converge",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "ABSOLUTE",
          "absoluteValue" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 2
          },
          "percentageValue" : null
        },
        "position" : 1,
        "serviceableCountries" : [ "DE" ],
        "minimumOrderValue" : null,
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7341b572-ee00-4a0e-9a1a-a95afb1ecafa"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7341b572-ee00-4a0e-9a1a-a95afb1ecafa"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7341b572-ee00-4a0e-9a1a-a95afb1ecafa/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7341b572-ee00-4a0e-9a1a-a95afb1ecafa/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : null,
    "title" : "",
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "displayAddressLines" : [ "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "DEUTSCHLAND" ],
    "vatId" : "123456789",
    "taxNumber" : "123-34-6789",
    "birthDate" : "1985-03-20"
  },
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : true,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : true
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c25fb8b6-bc8e-431b-b601-c09cb806e4c2"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c25fb8b6-bc8e-431b-b601-c09cb806e4c2/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c25fb8b6-bc8e-431b-b601-c09cb806e4c2/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c25fb8b6-bc8e-431b-b601-c09cb806e4c2/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c25fb8b6-bc8e-431b-b601-c09cb806e4c2/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c25fb8b6-bc8e-431b-b601-c09cb806e4c2/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c25fb8b6-bc8e-431b-b601-c09cb806e4c2/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c25fb8b6-bc8e-431b-b601-c09cb806e4c2/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c25fb8b6-bc8e-431b-b601-c09cb806e4c2/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c25fb8b6-bc8e-431b-b601-c09cb806e4c2/shipping-address"
    },
    "place-order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c25fb8b6-bc8e-431b-b601-c09cb806e4c2/order"
    }
  }
}

Set cart shipping address

A PUT request is used to set the shipping address of the cart. If a shipping address is not set, it will default to the billing address.

Request body properties

Path Type Description Constraints

salutation

String

The customer’s salutation, e.g. Mr or Mrs.

Length must be between 0 and 30 inclusive

gender

String

The customer’s grammatical gender. Can be FEMALE, MALE, or UNDEFINED.

title

String

The customer’s academic title, e.g. professor, or PhD.

Length must be between 0 and 100 inclusive

firstName

String

The first name of the customer.

Length must be between 0 and 50 inclusive

middleName

String

The middle name of the customer.

Length must be between 0 and 100 inclusive

lastName

String

The last name of the customer.

Length must be between 0 and 50 inclusive

street

String

The street of the customer address.

Length must be between 0 and 200 inclusive. Must not be empty

houseNumber

String

The house number of the customer address.

Length must be between 0 and 20 inclusive

street2

String

Additional street field of the customer address.

Length must be between 0 and 200 inclusive

doorCode

String

The door code of the customer address.

addressExtension

String

The address extension of the customer address, e.g. PO box.

Length must be between 0 and 200 inclusive

postalCode

String

The zip code of the customer address.

Length must be between 0 and 25 inclusive

dependentLocality

String

Additional locality information such as a village or suburb name, giving a more specific location.

Length must be between 0 and 60 inclusive

city

String

The city of the customer address.

Length must be between 0 and 60 inclusive. Must not be empty

country

String

A two letter country code according to ISO 3166-1. Only officially assigned country codes.

Must be an officially assigned country code (see ISO 3166-1 Alpha-2). Must not be null. The address country must be in the list of shipping countries of the shop

state

String

The state of the customer address.

Length must be between 0 and 100 inclusive

email

String

The email address of the customer.

Length must be between 0 and 150 inclusive. Must be a well-formed email address. Must not be empty

phone

String

The landline phone number of the customer.

Length must be between 0 and 40 inclusive

mobile

String

The mobile phone number of the customer.

Length must be between 0 and 40 inclusive

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/86dee4bc-2d45-482c-97b7-8dfc0beee51b/shipping-address' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -d '{"salutation":"Mrs","gender":"FEMALE","title":"","firstName":"Astrid","middleName":"Agnes","lastName":"Alster","street":"Alsterwasserweg","houseNumber":"2","street2":"Erdgeschoss","doorCode":"0185","addressExtension":"Hinterhof","postalCode":"20999","dependentLocality":"Seevetal","city":"Alsterwasser","country":"DE","state":"Hamburg","email":"a.alsterh@example.com","phone":"(800) 555-0102","mobile":"(800) 555-0103"}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 5484

{
  "_id" : "86dee4bc-2d45-482c-97b7-8dfc0beee51b",
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "904a691e-7df1-4b2a-bf32-0270e3b36a04",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/d06b3db8-35a6-4d69-969c-ee447945de23/shipping-methods/904a691e-7df1-4b2a-bf32-0270e3b36a04"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "35617b60-fa77-412c-b0d4-f5698c37e4c6",
        "name" : "Converge",
        "description" : "Pay with Converge",
        "officialName" : "Converge",
        "officialDescription" : "Pay with Converge",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "ABSOLUTE",
          "absoluteValue" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 2
          },
          "percentageValue" : null
        },
        "position" : 1,
        "serviceableCountries" : [ "DE" ],
        "minimumOrderValue" : null,
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/35617b60-fa77-412c-b0d4-f5698c37e4c6"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/35617b60-fa77-412c-b0d4-f5698c37e4c6"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/35617b60-fa77-412c-b0d4-f5698c37e4c6/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/35617b60-fa77-412c-b0d4-f5698c37e4c6/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : null,
    "title" : "",
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "displayAddressLines" : [ "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "DEUTSCHLAND" ],
    "doorCode" : "0185"
  },
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/86dee4bc-2d45-482c-97b7-8dfc0beee51b"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/86dee4bc-2d45-482c-97b7-8dfc0beee51b/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/86dee4bc-2d45-482c-97b7-8dfc0beee51b/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/86dee4bc-2d45-482c-97b7-8dfc0beee51b/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/86dee4bc-2d45-482c-97b7-8dfc0beee51b/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/86dee4bc-2d45-482c-97b7-8dfc0beee51b/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/86dee4bc-2d45-482c-97b7-8dfc0beee51b/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/86dee4bc-2d45-482c-97b7-8dfc0beee51b/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/86dee4bc-2d45-482c-97b7-8dfc0beee51b/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/86dee4bc-2d45-482c-97b7-8dfc0beee51b/shipping-address"
    }
  }
}

Remove cart shipping address

A DELETE request is used to remove the shipping address of the cart. After deletion, the shipping address will default to the billing address.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/37fcbdb9-44b5-4cb6-b71f-c0466a29d0aa/shipping-address' -i -X DELETE \
    -H 'Accept: application/hal+json'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 4758

{
  "_id" : "37fcbdb9-44b5-4cb6-b71f-c0466a29d0aa",
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "dc21afa7-6c00-4d07-8da6-b54a0cb6641c",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/f977bca8-3213-466d-b240-29b3cb89e283/shipping-methods/dc21afa7-6c00-4d07-8da6-b54a0cb6641c"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "804a7139-fb58-4268-a3db-f25f5d13291f",
        "name" : "Converge",
        "description" : "Pay with Converge",
        "officialName" : "Converge",
        "officialDescription" : "Pay with Converge",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "ABSOLUTE",
          "absoluteValue" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 2
          },
          "percentageValue" : null
        },
        "position" : 1,
        "serviceableCountries" : [ "DE" ],
        "minimumOrderValue" : null,
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/804a7139-fb58-4268-a3db-f25f5d13291f"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/804a7139-fb58-4268-a3db-f25f5d13291f"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/804a7139-fb58-4268-a3db-f25f5d13291f/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/804a7139-fb58-4268-a3db-f25f5d13291f/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/37fcbdb9-44b5-4cb6-b71f-c0466a29d0aa"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/37fcbdb9-44b5-4cb6-b71f-c0466a29d0aa/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/37fcbdb9-44b5-4cb6-b71f-c0466a29d0aa/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/37fcbdb9-44b5-4cb6-b71f-c0466a29d0aa/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/37fcbdb9-44b5-4cb6-b71f-c0466a29d0aa/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/37fcbdb9-44b5-4cb6-b71f-c0466a29d0aa/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/37fcbdb9-44b5-4cb6-b71f-c0466a29d0aa/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/37fcbdb9-44b5-4cb6-b71f-c0466a29d0aa/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/37fcbdb9-44b5-4cb6-b71f-c0466a29d0aa/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/37fcbdb9-44b5-4cb6-b71f-c0466a29d0aa/shipping-address"
    }
  }
}

The cart payment method resources hold information on the payment methods handled for a cart.

Set current cart payment method

A PUT request is used to set the current payment method of the cart.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/7dff9a13-746e-46c4-bd8e-26f8640052a2/payment-methods/current' -i -X PUT \
    -H 'Content-Type: text/uri-list' \
    -H 'Accept: application/json' \
    -d 'https://api-shop.beyondshop.cloud/api/payment-methods/2c6beec9-1698-480a-9ea2-4a005eeb65ae'

Example response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 6351

{
  "_id" : "7dff9a13-746e-46c4-bd8e-26f8640052a2",
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "638679e6-9853-49e0-bfaa-6549ab383810",
    "_ref" : "af2ff655-daa1-4a47-96e0-ff8f1bf83621",
    "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
    "quantity" : 1,
    "singleItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0.9405
    },
    "_embedded" : {
      "product" : {
        "_id" : "af2ff655-daa1-4a47-96e0-ff8f1bf83621",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/af2ff655-daa1-4a47-96e0-ff8f1bf83621?locale=de-DE"
          },
          "default-image-data" : {
            "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
          }
        }
      }
    },
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/carts/7dff9a13-746e-46c4-bd8e-26f8640052a2/line-items/638679e6-9853-49e0-bfaa-6549ab383810"
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "ee8eec30-f73a-408a-9df6-354d97020a9f",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/8d827aa5-cc0e-4e60-b5fc-3192830ac6e9/shipping-methods/ee8eec30-f73a-408a-9df6-354d97020a9f"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 0.4988
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "2c6beec9-1698-480a-9ea2-4a005eeb65ae",
        "name" : "Credit Card",
        "description" : "Pay with CreditCard",
        "officialName" : "Credit Card",
        "officialDescription" : "Pay with CreditCard",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "PERCENTAGE",
          "absoluteValue" : null,
          "percentageValue" : 0.02
        },
        "position" : 2,
        "serviceableCountries" : [ "DE", "GB" ],
        "minimumOrderValue" : {
          "currency" : "EUR",
          "amount" : 20
        },
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/2c6beec9-1698-480a-9ea2-4a005eeb65ae"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/2c6beec9-1698-480a-9ea2-4a005eeb65ae"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/2c6beec9-1698-480a-9ea2-4a005eeb65ae/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/2c6beec9-1698-480a-9ea2-4a005eeb65ae/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 4.95
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 25.4388
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 25.4388
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 25.4388
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.0,
    "currency" : "EUR",
    "amount" : 0
  } ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 190,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : false,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/7dff9a13-746e-46c4-bd8e-26f8640052a2"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/7dff9a13-746e-46c4-bd8e-26f8640052a2/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/7dff9a13-746e-46c4-bd8e-26f8640052a2/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/7dff9a13-746e-46c4-bd8e-26f8640052a2/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/7dff9a13-746e-46c4-bd8e-26f8640052a2/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/7dff9a13-746e-46c4-bd8e-26f8640052a2/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/7dff9a13-746e-46c4-bd8e-26f8640052a2/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/7dff9a13-746e-46c4-bd8e-26f8640052a2/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/7dff9a13-746e-46c4-bd8e-26f8640052a2/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/7dff9a13-746e-46c4-bd8e-26f8640052a2/shipping-address"
    }
  }
}

Set cart payment method to current default

A PUT request is used to set the payment method to the current default payment method. The default payment method is the one with the highest priority of the applicable payment methods.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/5ca84923-a7f9-4b45-b992-ef615fcb01fb/payment-methods/default' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json'

Example response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 4758

{
  "_id" : "5ca84923-a7f9-4b45-b992-ef615fcb01fb",
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "5b13a3f2-8b20-419d-abe1-189d2d85fbd5",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/5853e00b-361f-4e7d-8d67-cc2add5dea46/shipping-methods/5b13a3f2-8b20-419d-abe1-189d2d85fbd5"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "5b2e3d79-50ab-4b47-83df-f5e058eaaf73",
        "name" : "Converge",
        "description" : "Pay with Converge",
        "officialName" : "Converge",
        "officialDescription" : "Pay with Converge",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "ABSOLUTE",
          "absoluteValue" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 2
          },
          "percentageValue" : null
        },
        "position" : 1,
        "serviceableCountries" : [ "DE" ],
        "minimumOrderValue" : null,
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/5b2e3d79-50ab-4b47-83df-f5e058eaaf73"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/5b2e3d79-50ab-4b47-83df-f5e058eaaf73"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/5b2e3d79-50ab-4b47-83df-f5e058eaaf73/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/5b2e3d79-50ab-4b47-83df-f5e058eaaf73/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5ca84923-a7f9-4b45-b992-ef615fcb01fb"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5ca84923-a7f9-4b45-b992-ef615fcb01fb/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5ca84923-a7f9-4b45-b992-ef615fcb01fb/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5ca84923-a7f9-4b45-b992-ef615fcb01fb/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5ca84923-a7f9-4b45-b992-ef615fcb01fb/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5ca84923-a7f9-4b45-b992-ef615fcb01fb/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5ca84923-a7f9-4b45-b992-ef615fcb01fb/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5ca84923-a7f9-4b45-b992-ef615fcb01fb/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5ca84923-a7f9-4b45-b992-ef615fcb01fb/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5ca84923-a7f9-4b45-b992-ef615fcb01fb/shipping-address"
    }
  }
}

Show current cart payment method details

A GET request is used to get the current payment method. The payment method type is documented here.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/05b8757d-c399-4068-8528-92640f72b37d/payment-methods/current' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1139

{
  "_id" : "9de006f0-65ab-416c-85ea-3e8e2efec371",
  "name" : "Converge",
  "description" : "Pay with Converge",
  "officialName" : "Converge",
  "officialDescription" : "Pay with Converge",
  "taxClass" : "REGULAR",
  "discountOrFee" : {
    "type" : "ABSOLUTE",
    "absoluteValue" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "percentageValue" : null
  },
  "position" : 1,
  "serviceableCountries" : [ "DE" ],
  "minimumOrderValue" : null,
  "activated" : true,
  "activeLogoSet" : null,
  "onlinePayment" : false,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/9de006f0-65ab-416c-85ea-3e8e2efec371"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/9de006f0-65ab-416c-85ea-3e8e2efec371"
    },
    "deactivate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/9de006f0-65ab-416c-85ea-3e8e2efec371/deactivate"
    },
    "payment-method-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/9de006f0-65ab-416c-85ea-3e8e2efec371/payment-method-definition"
    }
  }
}

Show applicable cart payment method details

A GET request is used to get the applicable payment methods of a cart. The payment method type is documented here.

The selectable field indicates if a payment method is currently selectable. Non-selectable payment methods are currently restricted because of rules that apply to a Cart. Trying to set such a payment method as the current one of the cart will fail.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/1a0ecdab-dc81-4aae-9c08-d4a0e5546dbb/payment-methods' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_embedded.payment-methods[].selectable

Boolean

Indicates if the payment method can be selected for the current cart. A payment method can be become non-selectable if the cart is modified, so that the minimumOrderValue is no longer reached. A cart with an non-selectable payment method cannot be ordered.

_embedded.payment-methods[].lineItemPrice

Object

The calculated price for this payment on the current cart.

_embedded.payment-methods[]._embedded.payment-method._id

String

The immutable, unique identifier of the requested resource.

_embedded.payment-methods[]._embedded.payment-method.position

Number

The sorting position of the payment method in the Commerce Cockpit in relation to other payment methods.

_embedded.payment-methods[]._embedded.payment-method.officialName

String

The official name of the payment method chosen by the merchant during setup.

_embedded.payment-methods[]._embedded.payment-method.officialDescription

String

The official description of the payment method chosen by the merchant during setup.

_embedded.payment-methods[]._embedded.payment-method.name

String

The name of the payment method that is used during checkout.

_embedded.payment-methods[]._embedded.payment-method.description

String

Description of the payment method that is used during checkout.

_embedded.payment-methods[]._embedded.payment-method.activated

Boolean

Indicates if a payment method is active. Can be true or false.

_embedded.payment-methods[]._embedded.payment-method.taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

_embedded.payment-methods[]._embedded.payment-method.discountOrFee

Object

The details about the fee to be payed or discount to be granted for this payment method.

_embedded.payment-methods[]._embedded.payment-method.discountOrFee.type

String

The discount or fee can be an absolute or a percentage based value. Can be one of PERCENTAGE or ABSOLUTE. ABSOLUTE contains another attribute absoluteValue with a positive or negative price. PERCENTAGE contains another attribute percentageValue with a negative or positive percentage value.

_embedded.payment-methods[]._embedded.payment-method.serviceableCountries

Array

The list of target countries this payment method can be used in.

_embedded.payment-methods[]._embedded.payment-method.minimumOrderValue

Null

The minimum value of the cart so that this payment method can be used.

_embedded.payment-methods[]._embedded.payment-method.onlinePayment

Boolean

Indicates if the payment method is an online payment. Can be true or false.

_embedded.payment-methods[]._embedded.payment-method.activeLogoSet

Null

The name of the currently selected logo set. Can be TILE, DETAILS, LIST, or STOREFRONT. (official is always the fallback).

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1829

{
  "_embedded" : {
    "payment-methods" : [ {
      "lineItemPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 2
      },
      "selectable" : true,
      "_embedded" : {
        "payment-method" : {
          "_id" : "76120dc0-230d-4c6f-877a-f7e8d0ba8727",
          "name" : "Converge",
          "description" : "Pay with Converge",
          "officialName" : "Converge",
          "officialDescription" : "Pay with Converge",
          "taxClass" : "REGULAR",
          "discountOrFee" : {
            "type" : "ABSOLUTE",
            "absoluteValue" : {
              "taxModel" : "GROSS",
              "currency" : "EUR",
              "amount" : 2
            },
            "percentageValue" : null
          },
          "position" : 1,
          "serviceableCountries" : [ "DE" ],
          "minimumOrderValue" : null,
          "activated" : true,
          "activeLogoSet" : null,
          "onlinePayment" : false,
          "_links" : {
            "self" : {
              "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/76120dc0-230d-4c6f-877a-f7e8d0ba8727"
            },
            "payment-method" : {
              "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/76120dc0-230d-4c6f-877a-f7e8d0ba8727"
            },
            "deactivate-payment-method" : {
              "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/76120dc0-230d-4c6f-877a-f7e8d0ba8727/deactivate"
            },
            "payment-method-definition" : {
              "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/76120dc0-230d-4c6f-877a-f7e8d0ba8727/payment-method-definition"
            }
          }
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1a0ecdab-dc81-4aae-9c08-d4a0e5546dbb/payment-methods"
    }
  }
}

Create payment

A POST request is used to initiate the creation of a payment.

Request body properties

Path Type Description

returnUri

String

The redirect URI after successful payment authorization.

cancelUri

String

The URI to which the customer will be redirected if the customer canceled the payment or an error occurred.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/75f501b4-44f2-4b4b-a54e-7d874a6069a2/create-payment' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -d '{
  "returnUri" : "http://some.com/return",
  "cancelUri" : "http://some.com/cancel"
}'

Response body properties

Path Type Description

approvalUri

String

The URI used to approve the payment (optional). If present, the client has to redirect to this URI to initiate the approval.

embeddedApprovalUri

Null

The optional URI to the iframe that will be embedded in the checkout UI.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 80

{
  "approvalUri" : "http://some.com/approval",
  "embeddedApprovalUri" : null
}

Create payment and order

If the payment method’s flow is PAYMENT_ON_BUY, the items in the cart can be paid and ordered with a single POST request.

Request body properties

Path Type Description

returnUri

String

The redirect URI after successful payment authorization.

cancelUri

String

The URI to which the customer will be redirected if the customer canceled the payment or an error occurred.

customerComment

String

An optional comment from the customer regarding the order.

salesChannel

String

The sales channel for this order, such as an online shop, point of sale, or a retail store.

marketingChannel

String

The marketing channel for this order, such as a newsletter campaign, Google Shopping, or a Buy Button that’s implemented on a blog.

marketingSubchannel

String

The marketing subchannel for this order, such as a specific newsletter of a newsletter campaign, e.g. a Summer Sale that’s promoted on a blog, or a Winter Special that’s promoted on Facebook.

testOrder

Boolean

Indicates if this order is a test order. Can be true or false.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/1c017fda-8023-4289-af34-9fb635d10a63/create-payment-and-order' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -d '{
  "returnUri" : "http://some.com/return",
  "cancelUri" : "http://some.com/cancel",
  "customerComment" : "Send it fast please!",
  "salesChannel" : "Storefront",
  "marketingChannel" : "Google",
  "marketingSubchannel" : "Search page 2",
  "testOrder" : false
}'

Response body properties

Path Type Description

approvalUri

String

The URI used to approve the payment (optional). If present, the client has to redirect to this URI to initiate the approval.

embeddedApprovalUri

Null

The optional URI to the iframe that will be embedded in the checkout UI.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 80

{
  "approvalUri" : "http://some.com/approval",
  "embeddedApprovalUri" : null
}

Categories

The categories resource is used to manage categories of a shop.

List categories

A GET request will list all of the categories in a paged manner.

Required scopes

catg:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/categories' -i -X GET \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

page

Object

See Pagination

_embedded.categories[]._id

String

The immutable, unique identifier of the requested resource.

_embedded.categories[].name

String

The name of the product collection.

_embedded.categories[].label

String

The label of the product collection.

_embedded.categories[].type

String

The type of the product collection. Can be SMART or MANUAL.

_embedded.categories[].query

Object

The JSON query to retrieve products according to Elasticsearch Query DSL.

Links

Relation Description

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1317

{
  "_embedded" : {
    "categories" : [ {
      "name" : "Corner Shop",
      "label" : "corner-shop",
      "type" : "MANUAL",
      "query" : {"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}},
      "_id" : "5e7137c1-5571-4164-9e75-f64b449bf4f1",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/5e7137c1-5571-4164-9e75-f64b449bf4f1"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/5e7137c1-5571-4164-9e75-f64b449bf4f1"
        }
      }
    }, {
      "name" : "Power Bars",
      "label" : "power-bar",
      "type" : "SMART",
      "query" : { "bool": { "filter": { "term": { "tags": "power-bar" }}}},
      "_id" : "ee9c0c29-8d9e-49d6-86b2-1eeb127701c6",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/ee9c0c29-8d9e-49d6-86b2-1eeb127701c6"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/ee9c0c29-8d9e-49d6-86b2-1eeb127701c6"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

Create category

A POST request is used to create a category.

Required scopes

catg:c

Request body properties

Path Type Description Constraints

name

String

The name of the product collection.

Length must be between 0 and 255 inclusive. Must not be empty

label

String

The label of the product collection.

Length must be between 0 and 255 inclusive

type

String

The type of the product collection. Can be SMART or MANUAL.

Must not be null

query

Object

The JSON query to retrieve products according to Elasticsearch Query DSL.

Must not be null

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/categories' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{"name":"Power Bars","label":"power-bar","type":"SMART","query":{"bool":{"filter":{"term":{"tags":"power-bar"}}}}}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/categories/8851bcd4-a1b9-419d-a02f-e6b1bd7ee696
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 432

{
  "name" : "Power Bars",
  "label" : "power-bar",
  "type" : "SMART",
  "query" : {"bool":{"filter":{"term":{"tags":"power-bar"}}}},
  "_id" : "8851bcd4-a1b9-419d-a02f-e6b1bd7ee696",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/8851bcd4-a1b9-419d-a02f-e6b1bd7ee696"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/8851bcd4-a1b9-419d-a02f-e6b1bd7ee696"
    }
  }
}

Show category details

A GET request is used to retrieve the details of a category.

Required scopes

catg:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/categories/60721858-a3a9-48ae-b7aa-e1aacad3d2e2' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

name

String

The name of the product collection.

label

String

The label of the product collection.

type

String

The type of the product collection. Can be SMART or MANUAL.

query

Object

The JSON query to retrieve products according to Elasticsearch Query DSL.

_id

String

The immutable, unique identifier of the requested resource.

_links

Object

See Hypermedia

Links

Relation Description

category

The templated self link of the product collection. Current representation of the resource. See Hypermedia.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 441

{
  "name" : "Power Bars",
  "label" : "power-bar",
  "type" : "SMART",
  "query" : { "bool": { "filter": { "term": { "tags": "power-bar" }}}},
  "_id" : "60721858-a3a9-48ae-b7aa-e1aacad3d2e2",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/60721858-a3a9-48ae-b7aa-e1aacad3d2e2"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/60721858-a3a9-48ae-b7aa-e1aacad3d2e2"
    }
  }
}

Update all category properties

A PUT request is issued to update all category properties with application/json content type.

Required scopes

catg:u

Request body properties

Path Type Description Constraints

name

String

The name of the product collection.

Length must be between 0 and 255 inclusive. Must not be empty

label

String

The label of the product collection.

Length must be between 0 and 255 inclusive

type

String

The type of the product collection. Can be SMART or MANUAL.

Must not be null

query

Object

The JSON query to retrieve products according to Elasticsearch Query DSL.

Must not be null

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/categories/62151e49-04c7-4bb0-8e11-d69b592c4de5' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{"name":"updated name","label":"updated-name","type":"MANUAL","query":{"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}}}'

Response body properties

Path Type Description

name

String

The name of the product collection.

label

String

The label of the product collection.

type

String

The type of the product collection. Can be SMART or MANUAL.

query

Object

The JSON query to retrieve products according to Elasticsearch Query DSL.

_id

String

The immutable, unique identifier of the requested resource.

_links

Object

See Hypermedia

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 507

{
  "name" : "updated name",
  "label" : "updated-name",
  "type" : "MANUAL",
  "query" : {"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}},
  "_id" : "62151e49-04c7-4bb0-8e11-d69b592c4de5",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/62151e49-04c7-4bb0-8e11-d69b592c4de5"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/62151e49-04c7-4bb0-8e11-d69b592c4de5"
    }
  }
}

Update category partially (json patch)

A PATCH request is issued to update a category partially with json patch content type.

Required scopes

catg:u

Request body properties

Path Type Description

.[]

Array

A list of JSON Patch operations.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/categories/bf87fac6-6dc3-4a5a-8f8d-198eadd5439e' -i -X PATCH \
    -H 'Content-Type: application/json-patch+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '[{"op":"test","path":"/name","value":"Power Bars"},{"op":"replace","path":"/name","value":"patched name"},{"op":"replace","path":"/type","value":"MANUAL"},{"op":"replace","path":"/query","value":{"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}}}]'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 504

{
  "name" : "patched name",
  "label" : "power-bar",
  "type" : "MANUAL",
  "query" : {"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}},
  "_id" : "bf87fac6-6dc3-4a5a-8f8d-198eadd5439e",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/bf87fac6-6dc3-4a5a-8f8d-198eadd5439e"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/bf87fac6-6dc3-4a5a-8f8d-198eadd5439e"
    }
  }
}

Update category partially (json)

A PATCH request is issued to update a category partially with json content type.

Required scopes

catg:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/categories/8236ec16-229c-4ee3-a07f-29a288cc0ef3' -i -X PATCH \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{"name":"patched name","type":"MANUAL","query":{"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}}}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 504

{
  "name" : "patched name",
  "label" : "power-bar",
  "type" : "MANUAL",
  "query" : {"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}},
  "_id" : "8236ec16-229c-4ee3-a07f-29a288cc0ef3",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/8236ec16-229c-4ee3-a07f-29a288cc0ef3"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/8236ec16-229c-4ee3-a07f-29a288cc0ef3"
    }
  }
}

Delete category

A DELETE request is used to delete a category.

Required scopes

catg:d

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/categories/a5f5a1b8-a01e-4223-9fbe-3ddf4f55cc80' -i -X DELETE \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
X-Frame-Options: DENY

Show product category details

A GET request is used to retrieve the details of a product category.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/categories/60721858-a3a9-48ae-b7aa-e1aacad3d2e2' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

name

String

The name of the product collection.

label

String

The label of the product collection.

type

String

The type of the product collection. Can be SMART or MANUAL.

query

Object

The JSON query to retrieve products according to Elasticsearch Query DSL.

_id

String

The immutable, unique identifier of the requested resource.

_links

Object

See Hypermedia

Links

Relation Description

category

The templated self link of the product collection. Current representation of the resource. See Hypermedia.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 441

{
  "name" : "Power Bars",
  "label" : "power-bar",
  "type" : "SMART",
  "query" : { "bool": { "filter": { "term": { "tags": "power-bar" }}}},
  "_id" : "60721858-a3a9-48ae-b7aa-e1aacad3d2e2",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/60721858-a3a9-48ae-b7aa-e1aacad3d2e2"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/60721858-a3a9-48ae-b7aa-e1aacad3d2e2"
    }
  }
}

Show enhanced view of product category details

A GET request is used to retrieve enhanced details of a product category.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/categories/593028d4-347c-42de-8b4a-00b068ec0082?projection=enhancedCategoryProjection' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_id

String

The unique identifier of the category.

_indexedAt

String

The time of storing this document in the search index.

name

String

The name of the category.

label

String

The label of the category.

type

String

The type of the category. Can be SMART or MANUAL.

_links

Object

See Hypermedia

Links

Relation Description

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 616

{
  "_id" : "593028d4-347c-42de-8b4a-00b068ec0082",
  "_indexedAt" : "2018-12-10T13:37:26.321",
  "type" : "SMART",
  "name" : "Power Bars",
  "label" : "power-bar",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/593028d4-347c-42de-8b4a-00b068ec0082"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/593028d4-347c-42de-8b4a-00b068ec0082{?projection}",
      "templated" : true
    },
    "products" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/593028d4-347c-42de-8b4a-00b068ec0082/products"
    }
  }
}

List product categories

A GET request is used to list all product categories.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/categories' -i -X GET \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

page

Object

See Pagination

_embedded.categories[]._id

String

The immutable, unique identifier of the requested resource.

_embedded.categories[].name

String

The name of the product collection.

_embedded.categories[].label

String

The label of the product collection.

_embedded.categories[].type

String

The type of the product collection. Can be SMART or MANUAL.

_embedded.categories[].query

Object

The JSON query to retrieve products according to Elasticsearch Query DSL.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1317

{
  "_embedded" : {
    "categories" : [ {
      "name" : "Corner Shop",
      "label" : "corner-shop",
      "type" : "MANUAL",
      "query" : {"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}},
      "_id" : "5e7137c1-5571-4164-9e75-f64b449bf4f1",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/5e7137c1-5571-4164-9e75-f64b449bf4f1"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/5e7137c1-5571-4164-9e75-f64b449bf4f1"
        }
      }
    }, {
      "name" : "Power Bars",
      "label" : "power-bar",
      "type" : "SMART",
      "query" : { "bool": { "filter": { "term": { "tags": "power-bar" }}}},
      "_id" : "ee9c0c29-8d9e-49d6-86b2-1eeb127701c6",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/ee9c0c29-8d9e-49d6-86b2-1eeb127701c6"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/ee9c0c29-8d9e-49d6-86b2-1eeb127701c6"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

List products

A GET request is used to list all products of a category.

For the response body properties see category list structure.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/categories/c7ff6681-0a81-47c4-bfde-94ff32dfb9b0/products' -i -X GET \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1673

{
  "_embedded" : {
    "products" : [ {
      "_id" : "bc1a212f-ee10-455b-9f1a-ff0786528708",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "salesPrice" : {
        "amount" : 8.7,
        "currency" : "EUR"
      },
      "listPrice" : {
        "amount" : 10.95,
        "currency" : "EUR"
      },
      "manufacturerPrice" : {
        "amount" : 99.95,
        "currency" : "EUR"
      },
      "onSale" : true,
      "listPriceText" : null,
      "shippingDimension" : {
        "length" : 1500,
        "width" : 1000,
        "height" : 2000
      },
      "refPrice" : {
        "refQuantity" : 1,
        "unit" : "LITER",
        "quantity" : 0.75,
        "price" : {
          "amount" : 11.6,
          "currency" : "EUR"
        }
      },
      "availabilityState" : "IN_STOCK",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-01.jpg?hash=e9a1ce5c0c6abfebec8fb1f6faf77dca7e6e7777{&width,height,upscale}",
          "templated" : true
        },
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/bc1a212f-ee10-455b-9f1a-ff0786528708"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/bc1a212f-ee10-455b-9f1a-ff0786528708{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/c7ff6681-0a81-47c4-bfde-94ff32dfb9b0/products?page=0&size=40"
    }
  },
  "page" : {
    "size" : 40,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

List product categories assigned to product

A GET request is used to list all product categories a product is part of.

For the response body properties see category list structure.

Request parameters

Parameter Description

productId

The unique identifier of the product.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/categories/search/find-by-product?productId=8e68bc01-04af-413c-9920-1e155ed93283' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1622

{
  "_embedded" : {
    "categories" : [ {
      "type" : "SMART",
      "name" : "category that loves everyone",
      "label" : null,
      "_id" : "3904ffc0-4df8-4e46-aa6c-5084f8caeff9",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/3904ffc0-4df8-4e46-aa6c-5084f8caeff9"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/3904ffc0-4df8-4e46-aa6c-5084f8caeff9{?projection}",
          "templated" : true
        },
        "products" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/3904ffc0-4df8-4e46-aa6c-5084f8caeff9/products"
        }
      }
    }, {
      "type" : "MANUAL",
      "name" : "category that matches product 1 in a complicated way",
      "label" : null,
      "_id" : "3eed20dd-8528-40e0-8972-ff581a09e970",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/3eed20dd-8528-40e0-8972-ff581a09e970"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/3eed20dd-8528-40e0-8972-ff581a09e970{?projection}",
          "templated" : true
        },
        "products" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/3eed20dd-8528-40e0-8972-ff581a09e970/products"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/search/find-by-product?page=0&size=40"
    }
  },
  "page" : {
    "size" : 40,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

Find product category by label

A GET request is used to find a product category by its unique label.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/categories/search/find-by-label?label=power-bar' -i -X GET \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_id

String

The unique identifier of the category.

name

String

The name of the category.

label

String

The label of the category.

type

String

The type of the category. Can be SMART or MANUAL.

_links

Object

See Hypermedia

Links

Relation Description

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 572

{
  "type" : "SMART",
  "name" : "Power Bars",
  "label" : "power-bar",
  "_id" : "213a7936-5163-4002-bf1c-d21d67a0bba3",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/213a7936-5163-4002-bf1c-d21d67a0bba3"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/213a7936-5163-4002-bf1c-d21d67a0bba3{?projection}",
      "templated" : true
    },
    "products" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/213a7936-5163-4002-bf1c-d21d67a0bba3/products"
    }
  }
}

Checkout

The checkout settings contain information about the minimum order value of a shop as well as indicates customer consent to the general terms and conditions of a shop.

List checkout settings

A GET request is used to retrieve the checkout settings.

Required scopes

cset:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/checkout-settings' -i -X GET \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Links

Relation Description

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 218

{
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/checkout-settings"
    }
  }
}

Update checkout settings

A PUT request is used to update the checkout settings.

Required scopes

cset:u

Request body properties

Path Type Description

minimumOrderValue.currency

String

The currency of the minimum order value of this shop.

minimumOrderValue.amount

Number

The amount of the minimum order value of this shop.

mustAcceptTermsAndConditions

Boolean

Indicates if the customer has to explicitly consent to the terms and conditions before buying something. Can be true or false.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/checkout-settings' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d ' {
   "minimumOrderValue" : {
     "currency" : "EUR",
     "amount" : 50
   },
   "mustAcceptTermsAndConditions" : true
 }'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 217

{
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 50
  },
  "mustAcceptTermsAndConditions" : true,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/checkout-settings"
    }
  }
}

Orders

Order number configuration

This resource gives the merchant control over the structure of order numbers.

A prefix can be defined for the order number as well as a numeric suffix to start counting from. The length of the numeric suffix can also be configured.

A configuration such as

  • prefix = 2017-shop-

  • next numeric suffix = 1000

  • numeric suffix length = 5

results in an order number like 2017-shop-01000, where the numeric suffix is increased for every order.

Show order number configuration details

A GET request is used to retrieve the order number configuration for the current shop.

Required scopes

ordn:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/configuration/order-number' -i -X GET \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

stringPrefix

String

prefix attached to all order numbers

nextNumericSuffix

Number

the next numeric suffix used for the next order. This value is incremented after each order creation

numericSuffixLength

Number

the length of the numeric part of the order number. If the numeric value is shorter, the value is padded with zeros to the left. If the value is longer the numericSuffixLength is extended

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 195

{
  "stringPrefix" : "",
  "nextNumericSuffix" : 10001,
  "numericSuffixLength" : 5,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/configuration/order-number"
    }
  }
}

Update complete order number configuration

A PUT request is used to update the complete order number configuration for the current shop.

Required scopes

ordn:u

Request body properties

Path Type Description Constraints

stringPrefix

String

prefix attached to all order numbers

Must not be null. Size must be between 0 and 20 inclusive

nextNumericSuffix

Number

the next numeric suffix used for the next order. This value is incremented after each order creation

Must be greater than 0 and less than 9223372036854775807

numericSuffixLength

Number

the length of the numeric part of the order number. If the numeric value is shorter, the value is padded with zeros to the left. If the value is longer the numericSuffixLength is extended

Must be greater than 0 and less than 20

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/configuration/order-number' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "stringPrefix" : "2017-shop-",
  "nextNumericSuffix" : 10000,
  "numericSuffixLength" : 4
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 205

{
  "stringPrefix" : "2017-shop-",
  "nextNumericSuffix" : 10000,
  "numericSuffixLength" : 4,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/configuration/order-number"
    }
  }
}

Update order number configuration partially

A PATCH request is used to update parts of the order number configuration for the current shop.

Patch can be applied using json-patch or plain json.

All fields can be updated with PUT can be updated using patch:

Required scopes

ordn:u

Request body properties

Path Type Description

[]

Array

list of json patch operations as defined in https://tools.ietf.org/html/rfc6902.All fields updatable via PUT can be updated using patch

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/configuration/order-number' -i -X PATCH \
    -H 'Content-Type: application/json-patch+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '[ {
  "op" : "replace",
  "path" : "/stringPrefix",
  "value" : "2017-shop-"
}, {
  "op" : "replace",
  "path" : "/nextNumericSuffix",
  "value" : 20000
} ]'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 205

{
  "stringPrefix" : "2017-shop-",
  "nextNumericSuffix" : 20000,
  "numericSuffixLength" : 5,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/configuration/order-number"
    }
  }
}

Required scopes

ordn:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/configuration/order-number' -i -X PATCH \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "stringPrefix" : "2017-shop-",
  "nextNumericSuffix" : 20000
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 205

{
  "stringPrefix" : "2017-shop-",
  "nextNumericSuffix" : 20000,
  "numericSuffixLength" : 5,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/configuration/order-number"
    }
  }
}

The orders resource is used to manage the orders of a shop. This includes all processes related to billing, shipping, payments, invoicing, as well as refunds, returns, and cancelations.

List orders

A GET request is used to list all orders of the shop in a paged way. Each item in the response represents a summary of the order data.

Required scopes

ordr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.orders[]

Array

The list of orders as documented in Show order details.

_links

Object

See Hypermedia

page

Object

See Pagination

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 11091

{
  "_embedded" : {
    "orders" : [ {
      "_id" : "8fa99edb-50dc-498b-bfb9-a912e3d52686",
      "createdAt" : "2018-12-13T15:32:52.921",
      "cartId" : "3b8d51ed-8740-4c40-8bd1-2a4313abc611",
      "currency" : "EUR",
      "taxModel" : "GROSS",
      "taxable" : false,
      "testOrder" : false,
      "termsAndConditionsExplicitlyAccepted" : false,
      "productLineItems" : [ {
        "_id" : "dcebec3a-1ca1-4fc0-8607-5ff3e3f48cc6",
        "product" : {
          "_id" : "2f90149e-4999-42a7-92b0-71dba60a2415",
          "sku" : "EB001",
          "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
          "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
          "shippingWeight" : 190,
          "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
          "_links" : {
            "default-image-data" : {
              "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
            }
          }
        },
        "quantity" : 5,
        "initialQuantity" : 5,
        "unitPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 9.99
        },
        "lineItemPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 49.95
        },
        "initialLineItemPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 49.95
        },
        "lineItemTax" : {
          "taxClass" : "REGULAR",
          "taxRate" : 0.19,
          "currency" : "EUR",
          "amount" : 7.9743
        },
        "unshipped" : {
          "quantity" : 5,
          "amount" : null
        },
        "shipped" : {
          "quantity" : 0,
          "amount" : null
        },
        "pending" : {
          "quantity" : 0,
          "amount" : null
        },
        "returned" : {
          "quantity" : 0,
          "amount" : {
            "currency" : "EUR",
            "amount" : 0
          }
        },
        "broken" : {
          "quantity" : 0,
          "amount" : {
            "currency" : "EUR",
            "amount" : 0
          }
        },
        "canceled" : {
          "quantity" : 0,
          "amount" : {
            "currency" : "EUR",
            "amount" : 0
          }
        }
      }, {
        "_id" : "eb8a158b-59f7-4a75-89c3-4d7937a01042",
        "product" : {
          "_id" : "426d4837-707c-41fc-8b19-d2aa1909149a",
          "sku" : "vino020",
          "name" : "Rioja Castillo de Puerto (2013)",
          "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
          "shippingWeight" : 100,
          "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
          "_links" : {
            "default-image-data" : {
              "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
            }
          }
        },
        "quantity" : 3,
        "initialQuantity" : 3,
        "unitPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 2.5
        },
        "lineItemPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 7.5
        },
        "initialLineItemPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 7.5
        },
        "lineItemTax" : {
          "taxClass" : "REGULAR",
          "taxRate" : 0.19,
          "currency" : "EUR",
          "amount" : 1.197
        },
        "unshipped" : {
          "quantity" : 3,
          "amount" : null
        },
        "shipped" : {
          "quantity" : 0,
          "amount" : null
        },
        "pending" : {
          "quantity" : 0,
          "amount" : null
        },
        "returned" : {
          "quantity" : 0,
          "amount" : {
            "currency" : "EUR",
            "amount" : 0
          }
        },
        "broken" : {
          "quantity" : 0,
          "amount" : {
            "currency" : "EUR",
            "amount" : 0
          }
        },
        "canceled" : {
          "quantity" : 0,
          "amount" : {
            "currency" : "EUR",
            "amount" : 0
          }
        }
      } ],
      "shippingLineItem" : {
        "lineItemPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "initialLineItemPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "taxClass" : "REGULAR",
        "shippingMethod" : {
          "name" : "Standard Shipping 2",
          "description" : "Standard Shipping",
          "freeShippingValue" : {
            "currency" : "EUR",
            "amount" : 400
          },
          "fixedPrice" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 19.99
          },
          "weightBasedPrice" : null
        },
        "lineItemTaxes" : [ {
          "taxClass" : "REGULAR",
          "taxRate" : 0.19,
          "currency" : "EUR",
          "amount" : 3.192
        } ]
      },
      "paymentLineItem" : {
        "lineItemPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 0
        },
        "initialLineItemPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 0
        },
        "taxClass" : "REGULAR",
        "paymentMethod" : {
          "name" : "PayPal",
          "description" : "Pay with PayPal",
          "discountOrFee" : {
            "type" : "ABSOLUTE",
            "absoluteValue" : {
              "taxModel" : "GROSS",
              "currency" : "EUR",
              "amount" : 0
            },
            "percentageValue" : null
          },
          "onlinePayment" : false
        },
        "lineItemTaxes" : [ {
          "taxClass" : "REGULAR",
          "taxRate" : 0.19,
          "currency" : "EUR",
          "amount" : 0
        } ]
      },
      "subtotal" : {
        "currency" : "EUR",
        "amount" : 57.45
      },
      "grandTotal" : {
        "currency" : "EUR",
        "amount" : 77.44
      },
      "balanceDue" : {
        "currency" : "EUR",
        "amount" : 77.44
      },
      "netTotal" : {
        "currency" : "EUR",
        "amount" : 68.2687
      },
      "taxTotal" : {
        "currency" : "EUR",
        "amount" : 9.1713
      },
      "initialSubtotal" : {
        "currency" : "EUR",
        "amount" : 57.45
      },
      "initialGrandTotal" : {
        "currency" : "EUR",
        "amount" : 77.44
      },
      "initialBalanceDue" : {
        "currency" : "EUR",
        "amount" : 77.44
      },
      "initialNetTotal" : {
        "currency" : "EUR",
        "amount" : 68.2687
      },
      "initialTaxTotal" : {
        "currency" : "EUR",
        "amount" : 9.1713
      },
      "taxes" : [ {
        "taxClass" : "REGULAR",
        "taxRate" : 0.19,
        "currency" : "EUR",
        "amount" : 9.1713
      } ],
      "shippingAddress" : {
        "salutation" : "Mrs",
        "gender" : "FEMALE",
        "company" : "Astrid Alster GmbH",
        "title" : null,
        "firstName" : "Astrid",
        "middleName" : "Agnes",
        "lastName" : "Alster",
        "street" : "Alsterwasserweg",
        "houseNumber" : "2",
        "street2" : "Erdgeschoss",
        "addressExtension" : "Hinterhof",
        "postalCode" : "20999",
        "dependentLocality" : "Seevetal",
        "city" : "Alsterwasser",
        "country" : "DE",
        "state" : "Hamburg",
        "email" : "a.alsterh@example.com",
        "phone" : "(800) 555-0102",
        "mobile" : "(800) 555-0103",
        "doorCode" : "456",
        "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
      },
      "billingAddress" : {
        "salutation" : "Mrs",
        "gender" : "FEMALE",
        "company" : "Astrid Alster GmbH",
        "title" : null,
        "firstName" : "Astrid",
        "middleName" : "Agnes",
        "lastName" : "Alster",
        "street" : "Alsterwasserweg",
        "houseNumber" : "2",
        "street2" : "Erdgeschoss",
        "addressExtension" : "Hinterhof",
        "postalCode" : "20999",
        "dependentLocality" : "Seevetal",
        "city" : "Alsterwasser",
        "country" : "DE",
        "state" : "Hamburg",
        "email" : "a.alsterh@example.com",
        "phone" : "(800) 555-0102",
        "mobile" : "(800) 555-0103",
        "vatId" : "DE123456789",
        "taxNumber" : "HRE 987654/32123/864516",
        "birthDate" : "1985-05-11",
        "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
      },
      "paymentStatus" : "PENDING",
      "shippingStatus" : "UNSHIPPED",
      "canceled" : false,
      "orderNumber" : "10001",
      "customerComment" : null,
      "orderNote" : "not paid yet",
      "paymentNote" : "Please transfer the money using the reference ABC123XYZ to the bank account IBAN!",
      "entryDate" : "2018-12-13T15:32:52.921",
      "totalReceived" : {
        "currency" : "EUR",
        "amount" : 0
      },
      "totalRefunded" : {
        "currency" : "EUR",
        "amount" : 0
      },
      "openAmount" : {
        "currency" : "EUR",
        "amount" : 77.44
      },
      "marketingChannel" : "Google shopping",
      "marketingSubchannel" : "Some category",
      "salesChannel" : "Storefront",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/8fa99edb-50dc-498b-bfb9-a912e3d52686"
        },
        "order" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/8fa99edb-50dc-498b-bfb9-a912e3d52686"
        },
        "order-note" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/8fa99edb-50dc-498b-bfb9-a912e3d52686/order-note"
        },
        "processes" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/8fa99edb-50dc-498b-bfb9-a912e3d52686/processes"
        },
        "events" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/8fa99edb-50dc-498b-bfb9-a912e3d52686/events"
        },
        "cancel" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/8fa99edb-50dc-498b-bfb9-a912e3d52686/cancel"
        },
        "create-invoice" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/8fa99edb-50dc-498b-bfb9-a912e3d52686/create-invoice"
        },
        "right-of-withdrawal-pdf" : {
          "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
        },
        "terms-and-conditions-pdf" : {
          "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders?page=0&size=20&sort=createdAt,desc"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Show order details

A GET request is used to retrieve the details of an order.

Required scopes

ordr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/d904cf7d-8d4b-4c94-9f5e-ae588d6da253' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_id

String

The unique identifier of the order.

cartId

String

The ID of the cart this order has been created from (if existing).

createdAt

String

The date and time the order was technically created in the system. According to ISO 8601. Can deviate from entryDate, e.g. because the order was originally created earlier or in another system.

entryDate

String

The date and time of the actual creation of this order from a business perspective. Can deviate from createdAt.

currency

String

The currency in which the order was entered.

taxModel

String

The tax model that applies for this order.

taxable

Boolean

Indicates if a tax applies for this order. Can be true or false.

testOrder

Boolean

Indicates if this order is a test order. Can be true or false.

termsAndConditionsExplicitlyAccepted

Boolean

Indicates if the customer explicitly accepted the shop’s terms and conditions before ordering. Can be true or false.

orderNumber

String

The automatically generated order number.

customerComment

Null

A comment from the customer regarding their order.

salesChannel

String

The sales channel for this order, such as an online shop, point of sale, or a retail store.

marketingChannel

String

The marketing channel for this order, such as a newsletter campaign, Google Shopping, or a Buy Button that’s implemented on a blog.

marketingSubchannel

String

The marketing subchannel for this order, such as a specific newsletter of a newsletter campaign, e.g. a Summer Sale that’s promoted on a blog, or a Winter Special that’s promoted on Facebook.

productLineItems[].quantity

Number

The value of the quantity for the product line item.

productLineItems[].initialQuantity

Number

The initial quantity for the product line item.

productLineItems[].unitPrice.amount

Number

The amount of the unit price for the product line item.

productLineItems[].unitPrice.currency

String

The currency of the single product line item price.

productLineItems[].unitPrice.taxModel

String

The tax model of the unit price for a product line item.

productLineItems[].lineItemPrice.amount

Number

The amount of the line item price for a product line item.

productLineItems[].lineItemPrice.currency

String

The currency of the line item price for a product line item.

productLineItems[].lineItemPrice.taxModel

String

The tax model of the line item price for a product line item.

productLineItems[].initialLineItemPrice.amount

Number

The initial amount of the line item price for a product line item.

productLineItems[].initialLineItemPrice.currency

String

The currency of the initial line item price for a product line item.

productLineItems[].initialLineItemPrice.taxModel

String

The tax model of the initial line item price for a product line item.

productLineItems[].lineItemTax.taxRate

Number

The tax rate of a product line item.

productLineItems[].lineItemTax.taxClass

String

The tax class of a product line item. Can be REGULAR, REDUCED, or EXEMPT.

productLineItems[].lineItemTax.amount

Number

The tax amount of a product line item.

productLineItems[].lineItemTax.currency

String

The currency of the tax for a product line item.

productLineItems[].product._id

String

The ID of the product for this product line item.

productLineItems[].product.sku

String

The stock keeping unit (SKU) corresponding to the product in this product line item.

productLineItems[].product.name

String

The name of the product in this product line item.

productLineItems[].product.essentialFeatures

String

The essential product properties of the product in this product line item.

productLineItems[].product.shippingWeight

Number

The shipping weight of the product in this product line item.

productLineItems[].product._links.default-image-data

Object

The link to the product default image.

productLineItems[].product.defaultImageDataUri

String

The relative product default image URI.

productLineItems[]._id

String

The ID of the product line item.

productLineItems[].unshipped.quantity

Number

The quantity of not yet dispatched items of this product line item.

productLineItems[].unshipped.amount

Null

The amount of not yet dispatched items of this product line item.

productLineItems[].shipped.quantity

Number

The quantity of dispatched items of this product line item.

productLineItems[].shipped.amount

Null

The amount of dispatched items of this product line item.

productLineItems[].pending.quantity

Number

The quantity of pending items of this product line item.

productLineItems[].pending.amount

Null

The amount of pending items of this product line item.

productLineItems[].returned.quantity

Number

The quantity of returned items of this product line item.

productLineItems[].returned.amount

Object

The amount of returned items of this product line item.

productLineItems[].broken.quantity

Number

The quantity of broken items of this product line item.

productLineItems[].broken.amount

Object

The amount of broken items of this product line item.

productLineItems[].canceled.quantity

Number

The quantity of canceled items of this product line item.

productLineItems[].canceled.amount

Object

The amount of canceled items of this product line item.

shippingLineItem.lineItemPrice.amount

Number

The amount of the line item price for the shipping line item.

shippingLineItem.lineItemPrice.currency

String

The currency of the price for the shipping line item.

shippingLineItem.lineItemPrice.taxModel

String

The tax model of the line item price for the shipping line item.

shippingLineItem.initialLineItemPrice.amount

Number

The amount of the initial line item price for the shipping line item.

shippingLineItem.initialLineItemPrice.currency

String

The currency of the initial price for the shipping line item.

shippingLineItem.initialLineItemPrice.taxModel

String

The tax model of the initial line item price for the shipping line item.

shippingLineItem.taxClass

String

The tax class of the shipping line item. Can be REGULAR, REDUCED, or EXEMPT.

shippingLineItem.lineItemTaxes

Array

The tax information for the shipping line item. The array contains one item per tax class.

shippingLineItem.shippingMethod.name

String

The name of the shipping method in this shipping line item.

shippingLineItem.shippingMethod.description

String

The description of the shipping method in the shipping line item.

shippingLineItem.shippingMethod.freeShippingValue.amount

Number

The amount of the free shipping value of the shipping method in this shipping line item.

shippingLineItem.shippingMethod.freeShippingValue.currency

String

The currency of the free shipping amount of the shipping method.

shippingLineItem.shippingMethod.fixedPrice.amount

Number

The amount of the fixed price of the shipping method in this shipping line item (if set).

shippingLineItem.shippingMethod.fixedPrice.currency

String

The currency of the fixed price of the shipping method.

shippingLineItem.shippingMethod.fixedPrice.taxModel

String

The tax model of the fixed price of the shipping method in this shipping line item (if set).

shippingLineItem.shippingMethod.weightBasedPrice

Null

The weight-based price of the shipping method in this shipping line item (if set).

paymentLineItem.lineItemPrice.amount

Number

The amount of the product line item price for the payment line item.

paymentLineItem.lineItemPrice.currency

String

The currency of the payment line item price.

paymentLineItem.lineItemPrice.taxModel

String

The tax model of the product line item price for the payment line item.

paymentLineItem.initialLineItemPrice.amount

Number

The amount of the initial line item price for the payment line item.

paymentLineItem.initialLineItemPrice.currency

String

The currency of the initial payment line item price.

paymentLineItem.initialLineItemPrice.taxModel

String

The tax model of the initial line item price for the payment line item.

paymentLineItem.taxClass

String

The tax class of a payment line item. Can be REGULAR, REDUCED, or EXEMPT.

paymentLineItem.lineItemTaxes

Array

The tax information for the payment line item. The array contains one item per tax class.

paymentLineItem.paymentMethod.name

String

The name of the payment method.

paymentLineItem.paymentMethod.description

String

The description of the payment method in this payment line item.

paymentLineItem.paymentMethod.discountOrFee.type

String

The type of the discountOrFee for this payment method. Can be ABSOLUTE, PERCENTAGE, or UNSUPPORTED.

paymentLineItem.paymentMethod.discountOrFee.absoluteValue.amount

Number

The amount of the absolute value of discountOrFee of the payment method in this payment line item.

paymentLineItem.paymentMethod.discountOrFee.absoluteValue.currency

String

The currency of the absolute price of the discountOrFee for this payment method.

paymentLineItem.paymentMethod.discountOrFee.absoluteValue.taxModel

String

The tax model of the absolute price of the discountOrFee for this payment method.

paymentLineItem.paymentMethod.discountOrFee.percentageValue

Null

The percentage value of the discountOrFee for this payment method.

paymentLineItem.paymentMethod.onlinePayment

Boolean

Indicates if this payment method is an online payment. Can be true or false.

initialSubtotal.amount

Number

The initial subtotal amount of the product line items.

initialSubtotal.currency

String

The currency of the initial subtotal amount.

initialGrandTotal.amount

Number

The initial total amount of the order.

initialGrandTotal.currency

String

The currency of the initial total amount of the order.

initialNetTotal.amount

Number

The initial amount of net total.

initialNetTotal.currency

String

The currency of the initial total net amount.

initialTaxTotal.amount

Number

The initial total tax amount.

initialTaxTotal.currency

String

The currency of the initial total tax amount.

initialBalanceDue.amount

Number

The initial due balance of the order.

initialBalanceDue.currency

String

The currency of the initial balance due.

subtotal.amount

Number

The subtotal amount of the product line items.

subtotal.currency

String

The currency of the subtotal amount.

grandTotal.amount

Number

The total amount of the order.

grandTotal.currency

String

The currency of the total order amount.

netTotal.amount

Number

The amount of net total.

netTotal.currency

String

The currency of the total net amount.

taxTotal.amount

Number

The total tax amount.

taxTotal.currency

String

The currency of the total tax amount.

totalReceived.amount

Number

The total payment amount received.

totalReceived.currency

String

The currency of the total payment amount received.

totalRefunded.amount

Number

The total refunded amount.

totalRefunded.currency

String

The currency of the total refunded amount.

openAmount.amount

Number

The outstanding amount to be paid.

openAmount.currency

String

The currency of the open amount.

balanceDue.amount

Number

The total amount of the order. Does not change when payments come in.

balanceDue.currency

String

The currency of the balance due.

orderNote

String

A merchant comment or note on the order.

paymentNote

String

A prompt to pay the order which will be rendered in the invoice order document. Requires a payment reference and the merchant’s bank account details.

taxes[*].currency

String

The tax currency.

taxes[*].taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

taxes[*].amount

Number

The tax amount.

taxes[*].taxRate

Number

The applied tax rate.

billingAddress

Object

The billing address of the cart. Refer to Set cart billing address for item documentation.

billingAddress.displayAddressLines

Array

The applicable billing address of the cart to be displayed.

shippingAddress

Object

The shipping address of the cart. Defaults to billing address if no shipping address is set. Refer to Set cart shipping address for item documentation.

shippingAddress.displayAddressLines

Array

The applicable shipping address of the cart to be displayed.

paymentStatus

String

The current status of the payment associated with this order. Can be PAID, PENDING, or REFUND_PENDING.

canceled

Boolean

The current cancelation status of this order. Can be true or false.

shippingStatus

String

The current shipping status of this order. Can be UNSHIPPED, PARTIALLY_SHIPPED, or SHIPPED.

_links

Object

See Hypermedia

Links

Relation Description

order

The link to the order.

order-note

The link to set an order note.

create-invoice

The link to trigger the creation of the invoice. This link exists if no invoice has been triggered so far. If the invoice has been created successfully, an invoice-pdf link appears that points to the pdf. If the creation of an invoice has been triggered, but the rendering is not yet finished, a retry-create-invoice link is available.

invoice-pdf

The link to the invoice. This link appears if the invoice has been created successfully.

retry-create-invoice

The link to trigger a retry to create the invoice. This link exists if rendering of the invoice is not yet finished.

send-invoice

The link to trigger the sending of the invoice. This link exists if an invoice-pdf link has been rendered successfully.

right-of-withdrawal-pdf

Optional link to the pdf containing the right of withdrawal applicable for this order.

terms-and-conditions-pdf

Optional link to the pdf containing the terms and conditions applicable for this order.

processes

The link to order processes.

events

The link to the order events.

cancel

The link to cancel the order.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 9366

{
  "_id" : "d904cf7d-8d4b-4c94-9f5e-ae588d6da253",
  "createdAt" : "2018-12-13T15:32:51.646",
  "cartId" : "e6ed985b-4945-450c-8758-8d4e69554ff6",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : false,
  "productLineItems" : [ {
    "_id" : "71fb733f-9db5-4fde-8be9-5ec4d0c34b51",
    "product" : {
      "_id" : "1ae02586-b450-4b98-b886-91813be650fd",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
      "shippingWeight" : 100,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 3,
    "initialQuantity" : 3,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2.5
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 1.197
    },
    "unshipped" : {
      "quantity" : 3,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    }
  }, {
    "_id" : "d8487f6e-8e5a-4a05-bfe8-ca2866bf77ec",
    "product" : {
      "_id" : "eae0c290-170b-4302-9c08-3c3419a8f3d5",
      "sku" : "EB001",
      "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
      "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
      "shippingWeight" : 190,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 5,
    "initialQuantity" : 5,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 9.99
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 7.9743
    },
    "unshipped" : {
      "quantity" : 5,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "taxClass" : "REGULAR",
    "shippingMethod" : {
      "name" : "Standard Shipping 2",
      "description" : "Standard Shipping",
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 19.99
      },
      "weightBasedPrice" : null
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 3.192
    } ]
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "taxClass" : "REGULAR",
    "paymentMethod" : {
      "name" : "PayPal",
      "description" : "Pay with PayPal",
      "discountOrFee" : {
        "type" : "ABSOLUTE",
        "absoluteValue" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 0
        },
        "percentageValue" : null
      },
      "onlinePayment" : false
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0
    } ]
  },
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "initialSubtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "initialGrandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialBalanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialNetTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "initialTaxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.19,
    "currency" : "EUR",
    "amount" : 9.1713
  } ],
  "shippingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "doorCode" : "456",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "vatId" : "DE123456789",
    "taxNumber" : "HRE 987654/32123/864516",
    "birthDate" : "1985-05-11",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "paymentStatus" : "PENDING",
  "shippingStatus" : "UNSHIPPED",
  "canceled" : false,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "paymentNote" : "Please transfer the money using the reference ABC123XYZ to the bank account IBAN!",
  "entryDate" : "2018-12-13T15:32:51.646",
  "totalReceived" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "totalRefunded" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "openAmount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "marketingChannel" : "Google shopping",
  "marketingSubchannel" : "Some category",
  "salesChannel" : "Storefront",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/d904cf7d-8d4b-4c94-9f5e-ae588d6da253"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/d904cf7d-8d4b-4c94-9f5e-ae588d6da253"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/d904cf7d-8d4b-4c94-9f5e-ae588d6da253/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/d904cf7d-8d4b-4c94-9f5e-ae588d6da253/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/d904cf7d-8d4b-4c94-9f5e-ae588d6da253/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/d904cf7d-8d4b-4c94-9f5e-ae588d6da253/cancel"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/d904cf7d-8d4b-4c94-9f5e-ae588d6da253/create-invoice"
    },
    "right-of-withdrawal-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    },
    "terms-and-conditions-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    }
  }
}

Show order by cart Id

A GET request is used to retrieve the details of an order by cart ID.

Required scopes

ordr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/search/find-by-cart-id?cartId=8bcd7ad2-5c79-4969-ae62-9a09477a86ca' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 9366

{
  "_id" : "a1629987-ef80-45d9-ad6f-363650046320",
  "createdAt" : "2018-12-13T15:32:44.332",
  "cartId" : "8bcd7ad2-5c79-4969-ae62-9a09477a86ca",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : false,
  "productLineItems" : [ {
    "_id" : "a988b518-0281-4a8d-be34-22e998c85689",
    "product" : {
      "_id" : "a2aad133-d04b-4079-a7c5-85389df32066",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
      "shippingWeight" : 100,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 3,
    "initialQuantity" : 3,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2.5
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 1.197
    },
    "unshipped" : {
      "quantity" : 3,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    }
  }, {
    "_id" : "feac7d6a-40bb-457a-8b09-981b489c95af",
    "product" : {
      "_id" : "a4e52a81-21d8-4d7c-80e4-412d31ffab64",
      "sku" : "EB001",
      "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
      "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
      "shippingWeight" : 190,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 5,
    "initialQuantity" : 5,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 9.99
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 7.9743
    },
    "unshipped" : {
      "quantity" : 5,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "taxClass" : "REGULAR",
    "shippingMethod" : {
      "name" : "Standard Shipping 2",
      "description" : "Standard Shipping",
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 19.99
      },
      "weightBasedPrice" : null
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 3.192
    } ]
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "taxClass" : "REGULAR",
    "paymentMethod" : {
      "name" : "PayPal",
      "description" : "Pay with PayPal",
      "discountOrFee" : {
        "type" : "ABSOLUTE",
        "absoluteValue" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 0
        },
        "percentageValue" : null
      },
      "onlinePayment" : false
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0
    } ]
  },
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "initialSubtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "initialGrandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialBalanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialNetTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "initialTaxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.19,
    "currency" : "EUR",
    "amount" : 9.1713
  } ],
  "shippingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "doorCode" : "456",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "vatId" : "DE123456789",
    "taxNumber" : "HRE 987654/32123/864516",
    "birthDate" : "1985-05-11",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "paymentStatus" : "PENDING",
  "shippingStatus" : "UNSHIPPED",
  "canceled" : false,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "paymentNote" : "Please transfer the money using the reference ABC123XYZ to the bank account IBAN!",
  "entryDate" : "2018-12-13T15:32:44.332",
  "totalReceived" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "totalRefunded" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "openAmount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "marketingChannel" : "Google shopping",
  "marketingSubchannel" : "Some category",
  "salesChannel" : "Storefront",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a1629987-ef80-45d9-ad6f-363650046320"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a1629987-ef80-45d9-ad6f-363650046320"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a1629987-ef80-45d9-ad6f-363650046320/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a1629987-ef80-45d9-ad6f-363650046320/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a1629987-ef80-45d9-ad6f-363650046320/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a1629987-ef80-45d9-ad6f-363650046320/cancel"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a1629987-ef80-45d9-ad6f-363650046320/create-invoice"
    },
    "terms-and-conditions-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    },
    "right-of-withdrawal-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    }
  }
}

Update order note

A PUT request is used to change the order note.

Required scopes

ordr:u

Request body properties

Path Type Description

orderNote

String

A merchant comment or note on the order.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/97d8c28f-ef45-453c-a856-2513e1269fab/order-note' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "orderNote" : "not paid yet"
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 7289

{
  "cartId" : "02ab01e1-91ee-48c5-b166-1481f23bf259",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : false,
  "productLineItems" : [ {
    "quantity" : 3,
    "initialQuantity" : 3,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2.5
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "product" : {
      "_id" : "e08765c5-dfef-4cb9-b234-6cd6042c03e3",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
      "shippingWeight" : 100,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 1.197
    }
  }, {
    "quantity" : 5,
    "initialQuantity" : 5,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 9.99
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "product" : {
      "_id" : "ee6725b8-597e-4ea6-b9b6-d430db7f3a08",
      "sku" : "EB001",
      "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
      "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
      "shippingWeight" : 190,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 7.9743
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "taxClass" : "REGULAR",
    "shippingMethod" : {
      "name" : "Standard Shipping 2",
      "description" : "Standard Shipping",
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 19.99
      },
      "weightBasedPrice" : null
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 3.192
    } ]
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "taxClass" : "REGULAR",
    "paymentMethod" : {
      "name" : "PayPal",
      "description" : "Pay with PayPal",
      "discountOrFee" : {
        "type" : "ABSOLUTE",
        "absoluteValue" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 0
        },
        "percentageValue" : null
      },
      "onlinePayment" : false
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0
    } ]
  },
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "initialSubtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialGrandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialBalanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "initialNetTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "initialTaxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.19,
    "currency" : "EUR",
    "amount" : 9.1713
  } ],
  "shippingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "doorCode" : "456",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "vatId" : "DE123456789",
    "taxNumber" : "HRE 987654/32123/864516",
    "birthDate" : "1985-05-11",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "orderNumber" : "10001",
  "invoiceNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "paymentNote" : "Please transfer the money using the reference ABC123XYZ to the bank account IBAN!",
  "invoicePdfUri" : null,
  "entryDate" : "2018-12-13T15:32:54.058",
  "marketingChannel" : "Google shopping",
  "marketingSubchannel" : "Some category",
  "salesChannel" : "Storefront",
  "createdAt" : "2018-12-13T15:32:54.058",
  "shippingStatus" : "UNSHIPPED",
  "totalReceived" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "totalRefunded" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "openAmount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "paymentStatus" : "PENDING",
  "canceled" : false,
  "_id" : "97d8c28f-ef45-453c-a856-2513e1269fab",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/97d8c28f-ef45-453c-a856-2513e1269fab"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/97d8c28f-ef45-453c-a856-2513e1269fab"
    }
  }
}

Update billing address

A PUT request is used to change the customer’s billing address.

Required scopes

ordr:u

Request body properties

Path Type Description Constraints

address

Object

The billing address of the cart. Refer to Set cart billing address for item documentation.

comment

String

Optional comment that describes the event.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/65830bad-7af5-4097-ba72-046764f824a9/billing-address' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "address" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserstraße",
    "houseNumber" : "3",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "vatId" : "DE123456789",
    "taxNumber" : "HRE 987654/32123/864516",
    "birthDate" : "1985-05-11",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Seevetal", "20999 Alsterwasser", "Germany" ],
    "_id" : null
  },
  "comment" : "Updated billing address"
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 9374

{
  "_id" : "65830bad-7af5-4097-ba72-046764f824a9",
  "createdAt" : "2018-12-13T15:32:46.359",
  "cartId" : "0a14d28a-f489-49b5-a5f1-8547155f0412",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : false,
  "productLineItems" : [ {
    "_id" : "6abb3bcf-baa9-4641-a3ed-f0c65ddfda24",
    "product" : {
      "_id" : "88279803-6b66-47d6-8c65-5c5291ca62bc",
      "sku" : "EB001",
      "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
      "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
      "shippingWeight" : 190,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 5,
    "initialQuantity" : 5,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 9.99
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 7.9743
    },
    "unshipped" : {
      "quantity" : 5,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    }
  }, {
    "_id" : "6d6046d7-d7a5-4c58-afdd-f9eb37534041",
    "product" : {
      "_id" : "2933780c-fd1c-4caf-a0d9-383ce80663f7",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
      "shippingWeight" : 100,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 3,
    "initialQuantity" : 3,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2.5
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 1.197
    },
    "unshipped" : {
      "quantity" : 3,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "taxClass" : "REGULAR",
    "shippingMethod" : {
      "name" : "Standard Shipping 2",
      "description" : "Standard Shipping",
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 19.99
      },
      "weightBasedPrice" : null
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 3.192
    } ]
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "taxClass" : "REGULAR",
    "paymentMethod" : {
      "name" : "PayPal",
      "description" : "Pay with PayPal",
      "discountOrFee" : {
        "type" : "ABSOLUTE",
        "absoluteValue" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 0
        },
        "percentageValue" : null
      },
      "onlinePayment" : false
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0
    } ]
  },
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "initialSubtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "initialGrandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialBalanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialNetTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "initialTaxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.19,
    "currency" : "EUR",
    "amount" : 9.1713
  } ],
  "shippingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "doorCode" : "456",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserstraße",
    "houseNumber" : "3",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "vatId" : "DE123456789",
    "taxNumber" : "HRE 987654/32123/864516",
    "birthDate" : "1985-05-11",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserstraße 3", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "paymentStatus" : "PENDING",
  "shippingStatus" : "UNSHIPPED",
  "canceled" : false,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "paymentNote" : "Please transfer the money using the reference ABC123XYZ to the bank account IBAN!",
  "entryDate" : "2018-12-13T15:32:46.359",
  "totalReceived" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "totalRefunded" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "openAmount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "marketingChannel" : "Google shopping",
  "marketingSubchannel" : "Some category",
  "salesChannel" : "Storefront",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/65830bad-7af5-4097-ba72-046764f824a9"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/65830bad-7af5-4097-ba72-046764f824a9"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/65830bad-7af5-4097-ba72-046764f824a9/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/65830bad-7af5-4097-ba72-046764f824a9/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/65830bad-7af5-4097-ba72-046764f824a9/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/65830bad-7af5-4097-ba72-046764f824a9/cancel"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/65830bad-7af5-4097-ba72-046764f824a9/create-invoice"
    },
    "right-of-withdrawal-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    },
    "terms-and-conditions-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    }
  }
}

Update shipping address

A PUT request is used to change the customer’s shipping address.

Required scopes

ordr:u

Request body properties

Path Type Description Constraints

address

Object

The shipping address of the cart. Defaults to billing address if no shipping address is set. Refer to Set cart shipping address for item documentation.

comment

String

Optional comment that describes the event.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/73cea6c0-7fc1-458c-ab1b-9c9088f30d8a/shipping-address' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "address" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserstraße",
    "houseNumber" : "3",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "doorCode" : "456",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Seevetal", "20999 Alsterwasser", "Germany" ],
    "_id" : null
  },
  "comment" : "Updated shipping address"
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 9374

{
  "_id" : "73cea6c0-7fc1-458c-ab1b-9c9088f30d8a",
  "createdAt" : "2018-12-13T15:32:49.133",
  "cartId" : "1b6b0aff-d84d-46c9-b99a-89328b979f70",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : false,
  "productLineItems" : [ {
    "_id" : "4924cc4d-4101-4ac2-880d-74e3b1ac0119",
    "product" : {
      "_id" : "a365cc38-f435-46f9-ba3d-c62bf432f649",
      "sku" : "EB001",
      "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
      "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
      "shippingWeight" : 190,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 5,
    "initialQuantity" : 5,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 9.99
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 7.9743
    },
    "unshipped" : {
      "quantity" : 5,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    }
  }, {
    "_id" : "ff344187-5497-4ae7-a1de-a38fbda1898c",
    "product" : {
      "_id" : "1ea4dd6a-77f3-4a4e-9a51-67545c801290",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
      "shippingWeight" : 100,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 3,
    "initialQuantity" : 3,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2.5
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 1.197
    },
    "unshipped" : {
      "quantity" : 3,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "taxClass" : "REGULAR",
    "shippingMethod" : {
      "name" : "Standard Shipping 2",
      "description" : "Standard Shipping",
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 19.99
      },
      "weightBasedPrice" : null
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 3.192
    } ]
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "taxClass" : "REGULAR",
    "paymentMethod" : {
      "name" : "PayPal",
      "description" : "Pay with PayPal",
      "discountOrFee" : {
        "type" : "ABSOLUTE",
        "absoluteValue" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 0
        },
        "percentageValue" : null
      },
      "onlinePayment" : false
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0
    } ]
  },
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "initialSubtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "initialGrandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialBalanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialNetTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "initialTaxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.19,
    "currency" : "EUR",
    "amount" : 9.1713
  } ],
  "shippingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserstraße",
    "houseNumber" : "3",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "doorCode" : "456",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserstraße 3", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "vatId" : "DE123456789",
    "taxNumber" : "HRE 987654/32123/864516",
    "birthDate" : "1985-05-11",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "paymentStatus" : "PENDING",
  "shippingStatus" : "UNSHIPPED",
  "canceled" : false,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "paymentNote" : "Please transfer the money using the reference ABC123XYZ to the bank account IBAN!",
  "entryDate" : "2018-12-13T15:32:49.133",
  "totalReceived" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "totalRefunded" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "openAmount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "marketingChannel" : "Google shopping",
  "marketingSubchannel" : "Some category",
  "salesChannel" : "Storefront",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/73cea6c0-7fc1-458c-ab1b-9c9088f30d8a"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/73cea6c0-7fc1-458c-ab1b-9c9088f30d8a"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/73cea6c0-7fc1-458c-ab1b-9c9088f30d8a/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/73cea6c0-7fc1-458c-ab1b-9c9088f30d8a/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/73cea6c0-7fc1-458c-ab1b-9c9088f30d8a/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/73cea6c0-7fc1-458c-ab1b-9c9088f30d8a/cancel"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/73cea6c0-7fc1-458c-ab1b-9c9088f30d8a/create-invoice"
    },
    "right-of-withdrawal-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    },
    "terms-and-conditions-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    }
  }
}

Create invoice

A POST request is used to create an invoice for the order.

Required scopes

ordr:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/fa21e8df-ab1f-4cf6-85dd-80d121d470c1/create-invoice' -i -X POST \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 9372

{
  "_id" : "fa21e8df-ab1f-4cf6-85dd-80d121d470c1",
  "createdAt" : "2018-12-13T15:32:58.503",
  "cartId" : "d1b3c4e7-827d-4500-b89b-dd81bd22ca30",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : false,
  "productLineItems" : [ {
    "_id" : "99f16c30-43dc-462f-aa45-8dcf54ae9bd3",
    "product" : {
      "_id" : "fe15e6ef-3e07-4dae-b587-191739b9042e",
      "sku" : "EB001",
      "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
      "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
      "shippingWeight" : 190,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 5,
    "initialQuantity" : 5,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 9.99
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 7.9743
    },
    "unshipped" : {
      "quantity" : 5,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    }
  }, {
    "_id" : "f9528bab-cb41-4e3c-b67c-8e30be33675d",
    "product" : {
      "_id" : "a4e3a6b2-ea4b-4fb3-9c3f-f7f34d34e909",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
      "shippingWeight" : 100,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 3,
    "initialQuantity" : 3,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2.5
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 1.197
    },
    "unshipped" : {
      "quantity" : 3,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "taxClass" : "REGULAR",
    "shippingMethod" : {
      "name" : "Standard Shipping 2",
      "description" : "Standard Shipping",
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 19.99
      },
      "weightBasedPrice" : null
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 3.192
    } ]
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "taxClass" : "REGULAR",
    "paymentMethod" : {
      "name" : "PayPal",
      "description" : "Pay with PayPal",
      "discountOrFee" : {
        "type" : "ABSOLUTE",
        "absoluteValue" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 0
        },
        "percentageValue" : null
      },
      "onlinePayment" : false
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0
    } ]
  },
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "initialSubtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "initialGrandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialBalanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialNetTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "initialTaxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.19,
    "currency" : "EUR",
    "amount" : 9.1713
  } ],
  "shippingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "doorCode" : "456",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "vatId" : "DE123456789",
    "taxNumber" : "HRE 987654/32123/864516",
    "birthDate" : "1985-05-11",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "paymentStatus" : "PENDING",
  "shippingStatus" : "UNSHIPPED",
  "canceled" : false,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "paymentNote" : "Please transfer the money using the reference ABC123XYZ to the bank account IBAN!",
  "entryDate" : "2018-12-13T15:32:58.503",
  "totalReceived" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "totalRefunded" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "openAmount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "marketingChannel" : "Google shopping",
  "marketingSubchannel" : "Some category",
  "salesChannel" : "Storefront",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/fa21e8df-ab1f-4cf6-85dd-80d121d470c1"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/fa21e8df-ab1f-4cf6-85dd-80d121d470c1"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/fa21e8df-ab1f-4cf6-85dd-80d121d470c1/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/fa21e8df-ab1f-4cf6-85dd-80d121d470c1/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/fa21e8df-ab1f-4cf6-85dd-80d121d470c1/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/fa21e8df-ab1f-4cf6-85dd-80d121d470c1/cancel"
    },
    "retry-create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/fa21e8df-ab1f-4cf6-85dd-80d121d470c1/create-invoice"
    },
    "right-of-withdrawal-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    },
    "terms-and-conditions-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    }
  }
}

Send invoice

A POST request is used to send an invoice for the order.

Required scopes

ordr:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/27ce7486-6912-467d-b38e-cf3ad858e941/send-invoice' -i -X POST \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 9525

{
  "_id" : "27ce7486-6912-467d-b38e-cf3ad858e941",
  "createdAt" : "2018-12-13T15:32:50.043",
  "cartId" : "9238b8f7-f208-4b4b-ad00-007f18694997",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : false,
  "productLineItems" : [ {
    "_id" : "580ff53b-8f05-4a81-bace-5d6973992348",
    "product" : {
      "_id" : "09b21b09-5084-4ad1-8f06-1bccba07508f",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
      "shippingWeight" : 100,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 3,
    "initialQuantity" : 3,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2.5
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 1.197
    },
    "unshipped" : {
      "quantity" : 3,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    }
  }, {
    "_id" : "b2345657-744e-4bd2-8347-bc026e3dc830",
    "product" : {
      "_id" : "aa185b4e-9085-43bd-aca9-f2e6a19da920",
      "sku" : "EB001",
      "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
      "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
      "shippingWeight" : 190,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 5,
    "initialQuantity" : 5,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 9.99
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 7.9743
    },
    "unshipped" : {
      "quantity" : 5,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "taxClass" : "REGULAR",
    "shippingMethod" : {
      "name" : "Standard Shipping 2",
      "description" : "Standard Shipping",
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 19.99
      },
      "weightBasedPrice" : null
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 3.192
    } ]
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "taxClass" : "REGULAR",
    "paymentMethod" : {
      "name" : "PayPal",
      "description" : "Pay with PayPal",
      "discountOrFee" : {
        "type" : "ABSOLUTE",
        "absoluteValue" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 0
        },
        "percentageValue" : null
      },
      "onlinePayment" : false
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0
    } ]
  },
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "initialSubtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "initialGrandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialBalanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialNetTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "initialTaxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.19,
    "currency" : "EUR",
    "amount" : 9.1713
  } ],
  "shippingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "doorCode" : "456",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "vatId" : "DE123456789",
    "taxNumber" : "HRE 987654/32123/864516",
    "birthDate" : "1985-05-11",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "paymentStatus" : "PENDING",
  "shippingStatus" : "UNSHIPPED",
  "canceled" : false,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "paymentNote" : "Please transfer the money using the reference ABC123XYZ to the bank account IBAN!",
  "entryDate" : "2018-12-13T15:32:50.043",
  "totalReceived" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "totalRefunded" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "openAmount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "marketingChannel" : "Google shopping",
  "marketingSubchannel" : "Some category",
  "salesChannel" : "Storefront",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/27ce7486-6912-467d-b38e-cf3ad858e941"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/27ce7486-6912-467d-b38e-cf3ad858e941"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/27ce7486-6912-467d-b38e-cf3ad858e941/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/27ce7486-6912-467d-b38e-cf3ad858e941/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/27ce7486-6912-467d-b38e-cf3ad858e941/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/27ce7486-6912-467d-b38e-cf3ad858e941/cancel"
    },
    "invoice-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/pdf-storage/attachments/invoice-10003.pdf?hash=9e5e2631c6f5877d64cb3d40db46ec6eb48a3a92"
    },
    "send-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/27ce7486-6912-467d-b38e-cf3ad858e941/send-invoice"
    },
    "right-of-withdrawal-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    },
    "terms-and-conditions-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    }
  }
}

List order processes

A GET request is used to list all order processes.

Required scopes

ordp:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.payment-processes

Array

All payment processes of the order.

_embedded.shipping-processes

Array

All shipping processes of the order.

_embedded.return-processes

Array

All return processes of the order.

_embedded.cancel-processes

Array

All cancelation processes of the order.

_embedded.refund-processes

Array

All refund processes of the order.

_links

Object

See Hypermedia

Links

Relation Description

processes

The link to order processes.

shipping-processes

The link to all shipping processes of the order.

payment-processes

The link to all payment processes of the order.

return-processes

The link to all return processes of the order.

cancel-processes

The link to all cancelation processes of the order.

refund-processes

The link to all refund processes of the order.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 5273

{
  "_embedded" : {
    "refund-processes" : [ {
      "amount" : {
        "currency" : "EUR",
        "amount" : 19.98
      },
      "status" : "VOIDED",
      "completed" : true,
      "_id" : "c34bd646-9f63-41b4-8d30-3ea1c9ed3471",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/refunds/c34bd646-9f63-41b4-8d30-3ea1c9ed3471"
        },
        "refund-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/refunds/c34bd646-9f63-41b4-8d30-3ea1c9ed3471"
        }
      }
    }, {
      "amount" : {
        "currency" : "EUR",
        "amount" : 39.96
      },
      "status" : "PENDING",
      "completed" : false,
      "_id" : "375c2bba-7173-4782-8ba7-718aab5222b1",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/refunds/375c2bba-7173-4782-8ba7-718aab5222b1"
        },
        "refund-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/refunds/375c2bba-7173-4782-8ba7-718aab5222b1"
        },
        "mark-paid" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/refunds/375c2bba-7173-4782-8ba7-718aab5222b1/mark-paid"
        }
      }
    } ],
    "cancel-processes" : [ {
      "lineItems" : [ {
        "productLineItemId" : "d1399738-5119-4a51-bcad-3424d5b1fd31",
        "quantity" : 2
      } ],
      "_id" : "f425cb52-a927-4349-9d4a-ac09a0fe307b",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/cancelations/f425cb52-a927-4349-9d4a-ac09a0fe307b"
        },
        "cancel-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/cancelations/f425cb52-a927-4349-9d4a-ac09a0fe307b"
        }
      }
    } ],
    "shipping-processes" : [ {
      "status" : "SHIPPED",
      "trackingCode" : "lookAtMyTrackingCodeWow",
      "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
      "lineItems" : [ {
        "productLineItemId" : "d1399738-5119-4a51-bcad-3424d5b1fd31",
        "quantity" : 3
      } ],
      "_id" : "0de10d1e-500c-4815-855c-6f0f9543c9bc",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/shippings/0de10d1e-500c-4815-855c-6f0f9543c9bc"
        },
        "shipping-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/shippings/0de10d1e-500c-4815-855c-6f0f9543c9bc"
        },
        "mark-delivered" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/shippings/0de10d1e-500c-4815-855c-6f0f9543c9bc/mark-delivered"
        }
      }
    } ],
    "payment-processes" : [ {
      "amount" : {
        "currency" : "EUR",
        "amount" : 77.44
      },
      "status" : "PAID",
      "paymentId" : null,
      "completed" : true,
      "_id" : "c594aec9-e0ff-439e-a0d3-6ffa54ab830a",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/payments/c594aec9-e0ff-439e-a0d3-6ffa54ab830a"
        },
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/payments/c594aec9-e0ff-439e-a0d3-6ffa54ab830a"
        }
      }
    } ],
    "return-processes" : [ {
      "lineItems" : [ {
        "productLineItemId" : "d1399738-5119-4a51-bcad-3424d5b1fd31",
        "quantity" : 2,
        "status" : "RETURNED"
      } ],
      "shippingPriceRefund" : null,
      "_id" : "0915c2d2-15fc-4c43-b1d0-3e7d5e7d9e55",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/returns/0915c2d2-15fc-4c43-b1d0-3e7d5e7d9e55"
        },
        "return-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/returns/0915c2d2-15fc-4c43-b1d0-3e7d5e7d9e55"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes"
    },
    "payment-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/payments"
    },
    "shipping-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/shippings"
    },
    "return-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/returns"
    },
    "cancel-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/cancelations"
    },
    "refund-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9393dd23-49ca-4e59-86e7-cc1711be782e/processes/refunds"
    }
  }
}

List payment processes

A GET request is used to list all payment processes of an order in a paged way.

Required scopes

pypr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/6f050a83-7a9b-4064-a433-2048d55faee8/processes/payments?page=0&size=20' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

_embedded.payment-processes[].completed

Boolean

Indicates if the payment has been completed. Can be true or false.

_embedded.payment-processes[].status

String

The status of the payment process. Can be PARTIALLY_PAID, REFUNDED, PENDING, APPROVED, PAID, VOIDED, FAILED, or EXECUTED.

_embedded.payment-processes[].amount.amount

Number

The amount due for this payment process.

_embedded.payment-processes[].amount.currency

String

The currency of the amount due in this payment process.

_embedded.payment-processes[]._id

String

The ID of the payment process.

_embedded.payment-processes[].paymentId

Null

The ID of the payment created by the payment gateway.

page

Object

See Pagination

Links

Relation Description

payment-processes

The link to all payment processes of the order.

active

The link to the active payment process of the order.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1590

{
  "_embedded" : {
    "payment-processes" : [ {
      "amount" : {
        "currency" : "EUR",
        "amount" : 77.44
      },
      "status" : "PENDING",
      "paymentId" : null,
      "completed" : false,
      "_id" : "dbf43c12-2b3b-4fc0-a188-adb0c0e8a75b",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/6f050a83-7a9b-4064-a433-2048d55faee8/processes/payments/dbf43c12-2b3b-4fc0-a188-adb0c0e8a75b"
        },
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/6f050a83-7a9b-4064-a433-2048d55faee8/processes/payments/dbf43c12-2b3b-4fc0-a188-adb0c0e8a75b"
        },
        "mark-voided" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/6f050a83-7a9b-4064-a433-2048d55faee8/processes/payments/dbf43c12-2b3b-4fc0-a188-adb0c0e8a75b/mark-voided"
        },
        "mark-paid" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/6f050a83-7a9b-4064-a433-2048d55faee8/processes/payments/dbf43c12-2b3b-4fc0-a188-adb0c0e8a75b/mark-paid"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/6f050a83-7a9b-4064-a433-2048d55faee8/processes/payments?page=0&size=20"
    },
    "payment-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/6f050a83-7a9b-4064-a433-2048d55faee8/processes/payments"
    },
    "active" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/6f050a83-7a9b-4064-a433-2048d55faee8/processes/payments/active"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Show payment process details

A GET request is used to retrieve the payment processes.

Required scopes

pypr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/a66895d1-b5b5-4410-8506-56820659e8ba/processes/payments/f95d74e4-e2e6-4422-9ae8-1cc83d71e8a3' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

completed

Boolean

Indicates if the payment has been completed. Can be true or false.

status

String

The status of the payment process. Can be PARTIALLY_PAID, REFUNDED, PENDING, APPROVED, PAID, VOIDED, FAILED, or EXECUTED.

amount.amount

Number

The amount due for this payment process.

amount.currency

String

The currency of the amount due in this payment process.

_id

String

The ID of the payment process.

paymentId

Null

The ID of the payment created by the payment gateway.

_links

Object

See Hypermedia

Links

Relation Description

payment-process

The link to the current payment process.

mark-paid

The link to set the current payment process to paid.

mark-voided

The link to set the current payment process to voided.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 906

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "status" : "PENDING",
  "paymentId" : null,
  "completed" : false,
  "_id" : "f95d74e4-e2e6-4422-9ae8-1cc83d71e8a3",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a66895d1-b5b5-4410-8506-56820659e8ba/processes/payments/f95d74e4-e2e6-4422-9ae8-1cc83d71e8a3"
    },
    "payment-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a66895d1-b5b5-4410-8506-56820659e8ba/processes/payments/f95d74e4-e2e6-4422-9ae8-1cc83d71e8a3"
    },
    "mark-voided" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a66895d1-b5b5-4410-8506-56820659e8ba/processes/payments/f95d74e4-e2e6-4422-9ae8-1cc83d71e8a3/mark-voided"
    },
    "mark-paid" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a66895d1-b5b5-4410-8506-56820659e8ba/processes/payments/f95d74e4-e2e6-4422-9ae8-1cc83d71e8a3/mark-paid"
    }
  }
}

Show active payment process details

A GET request is used to retrieve the active payment processes. There is only one active payment process. See Show payment process details for more information about the request and response structure.

Required scopes

pypr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/e019282c-e411-4986-8608-d1eb1c29de52/processes/payments/active' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 906

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "status" : "PENDING",
  "paymentId" : null,
  "completed" : false,
  "_id" : "38d54106-86e6-4f83-9401-0d7926c6cdef",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e019282c-e411-4986-8608-d1eb1c29de52/processes/payments/38d54106-86e6-4f83-9401-0d7926c6cdef"
    },
    "payment-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e019282c-e411-4986-8608-d1eb1c29de52/processes/payments/38d54106-86e6-4f83-9401-0d7926c6cdef"
    },
    "mark-voided" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e019282c-e411-4986-8608-d1eb1c29de52/processes/payments/38d54106-86e6-4f83-9401-0d7926c6cdef/mark-voided"
    },
    "mark-paid" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e019282c-e411-4986-8608-d1eb1c29de52/processes/payments/38d54106-86e6-4f83-9401-0d7926c6cdef/mark-paid"
    }
  }
}

Mark payment process as voided

A POST request is used to mark the payment process as voided.

Required scopes

pypr:u

Request body properties

Path Type Description

comment

String

The comment to this status change.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/e05ad2c1-805e-4041-b42b-06c403815136/processes/payments/24fdf2de-2870-480b-acbb-2afd14abe451/mark-voided' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "comment" : "comment"
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 542

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "status" : "VOIDED",
  "paymentId" : null,
  "completed" : true,
  "_id" : "24fdf2de-2870-480b-acbb-2afd14abe451",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e05ad2c1-805e-4041-b42b-06c403815136/processes/payments/24fdf2de-2870-480b-acbb-2afd14abe451"
    },
    "payment-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e05ad2c1-805e-4041-b42b-06c403815136/processes/payments/24fdf2de-2870-480b-acbb-2afd14abe451"
    }
  }
}

Mark payment process as paid

A POST request is used to mark the payment process as paid.

Required scopes

pypr:u

Request body properties

Path Type Description

comment

String

The comment to this status change.

details.amount.amount

Number

The amount paid.

details.amount.currency

String

The currency of the amount paid.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/89d7818c-b8d4-4722-9bce-60833200b269/processes/payments/1f568fe4-3915-432a-9d88-a292d5588a2d/mark-paid' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "comment" : "comment",
  "details" : {
    "amount" : {
      "currency" : "EUR",
      "amount" : 77.44
    }
  }
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 540

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "status" : "PAID",
  "paymentId" : null,
  "completed" : true,
  "_id" : "1f568fe4-3915-432a-9d88-a292d5588a2d",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/89d7818c-b8d4-4722-9bce-60833200b269/processes/payments/1f568fe4-3915-432a-9d88-a292d5588a2d"
    },
    "payment-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/89d7818c-b8d4-4722-9bce-60833200b269/processes/payments/1f568fe4-3915-432a-9d88-a292d5588a2d"
    }
  }
}

List refund processes

A GET request is used to list all refund processes of an order in a paged way. Refunds are triggered if either a cancelation or return process is created. See Create cancelation processes and Create return processes for more information.

Required scopes

rfpr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/9c773632-8bae-4ed4-9375-d82399cb8f9f/processes/refunds?page=0&size=20' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

_embedded.refund-processes[].completed

Boolean

Indicates if the refund has been completed. Can be true or false.

_embedded.refund-processes[].status

String

The status of the refund process. Can be PENDING, PAID, or VOIDED.

_embedded.refund-processes[].amount.amount

Number

The amount due for this refund process.

_embedded.refund-processes[].amount.currency

String

The currency of the amount due in this refund process.

_embedded.refund-processes[]._id

String

The ID of the refund process.

page

Object

See Pagination

Links

Relation Description

refund-processes

The link to all refund processes of the order.

active

The link to the active payment process of the order.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1360

{
  "_embedded" : {
    "refund-processes" : [ {
      "amount" : {
        "currency" : "EUR",
        "amount" : 19.98
      },
      "status" : "PENDING",
      "completed" : false,
      "_id" : "7a556c10-76ad-428d-a277-d68477fb2ede",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9c773632-8bae-4ed4-9375-d82399cb8f9f/processes/refunds/7a556c10-76ad-428d-a277-d68477fb2ede"
        },
        "refund-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9c773632-8bae-4ed4-9375-d82399cb8f9f/processes/refunds/7a556c10-76ad-428d-a277-d68477fb2ede"
        },
        "mark-paid" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/9c773632-8bae-4ed4-9375-d82399cb8f9f/processes/refunds/7a556c10-76ad-428d-a277-d68477fb2ede/mark-paid"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9c773632-8bae-4ed4-9375-d82399cb8f9f/processes/refunds?page=0&size=20"
    },
    "refund-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9c773632-8bae-4ed4-9375-d82399cb8f9f/processes/refunds"
    },
    "active" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9c773632-8bae-4ed4-9375-d82399cb8f9f/processes/refunds/active"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Show refund process details

A GET request is used to retrieve the refund processes.

Required scopes

rfpr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/8aa2750f-712b-48bc-b879-a2d0c3731774/processes/refunds/6ddc0a87-109e-4d84-a8b5-a3ab2a539c8f' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

completed

Boolean

Indicates if the refund has been completed. Can be true or false.

status

String

The status of the refund process. Can be PENDING, PAID, or VOIDED.

amount.amount

Number

The amount due for this refund process.

amount.currency

String

The currency of the amount due in this refund process.

_id

String

The ID of the refund process.

_links

Object

See Hypermedia

Links

Relation Description

refund-process

The link to the current refund process.

mark-paid

The link to set the current payment process to paid.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 697

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 19.98
  },
  "status" : "PENDING",
  "completed" : false,
  "_id" : "6ddc0a87-109e-4d84-a8b5-a3ab2a539c8f",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/8aa2750f-712b-48bc-b879-a2d0c3731774/processes/refunds/6ddc0a87-109e-4d84-a8b5-a3ab2a539c8f"
    },
    "refund-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/8aa2750f-712b-48bc-b879-a2d0c3731774/processes/refunds/6ddc0a87-109e-4d84-a8b5-a3ab2a539c8f"
    },
    "mark-paid" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/8aa2750f-712b-48bc-b879-a2d0c3731774/processes/refunds/6ddc0a87-109e-4d84-a8b5-a3ab2a539c8f/mark-paid"
    }
  }
}

Show active refund process details

A GET request is used to retrieve the active refund processes. There is only one active refund process. See Show refund process details for more information about the request and response structure.

Required scopes

rfpr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/8cdb4495-f9a8-4675-aa8a-6b2ef4896afb/processes/refunds/active' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 697

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 19.98
  },
  "status" : "PENDING",
  "completed" : false,
  "_id" : "f05f3587-2083-4a54-b380-0fe6bddf6005",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/8cdb4495-f9a8-4675-aa8a-6b2ef4896afb/processes/refunds/f05f3587-2083-4a54-b380-0fe6bddf6005"
    },
    "refund-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/8cdb4495-f9a8-4675-aa8a-6b2ef4896afb/processes/refunds/f05f3587-2083-4a54-b380-0fe6bddf6005"
    },
    "mark-paid" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/8cdb4495-f9a8-4675-aa8a-6b2ef4896afb/processes/refunds/f05f3587-2083-4a54-b380-0fe6bddf6005/mark-paid"
    }
  }
}

Mark refund process as paid

A POST request is used to mark the refund process as paid.

Required scopes

rfpr:u

Request body properties

Path Type Description

comment

String

The comment to this status change.

details.amount.amount

Number

The amount refunded.

details.amount.currency

String

The currency of the amount paid.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/774281ec-764f-4cfd-b627-828ea63213ab/processes/refunds/active/mark-paid' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "comment" : "comment",
  "details" : {
    "amount" : {
      "currency" : "EUR",
      "amount" : 19.98
    }
  }
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 515

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 19.98
  },
  "status" : "PAID",
  "completed" : true,
  "_id" : "a7447c2a-79c3-4aea-805e-8f19d0491747",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/774281ec-764f-4cfd-b627-828ea63213ab/processes/refunds/a7447c2a-79c3-4aea-805e-8f19d0491747"
    },
    "refund-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/774281ec-764f-4cfd-b627-828ea63213ab/processes/refunds/a7447c2a-79c3-4aea-805e-8f19d0491747"
    }
  }
}

List shipping processes

A GET request is used to list all shipping processes of an order in a paged way.

Required scopes

shpr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/ec6a22bb-7f22-477e-a218-d9f7aee71520/processes/shippings?page=0&size=20' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

_embedded.shipping-processes[].lineItems

Array

The line items that are included in this shipping process.

_embedded.shipping-processes[].status

String

The status of the shipping process. Can be UNSHIPPED, PARTIALLY_SHIPPED, or SHIPPED.

_embedded.shipping-processes[].trackingCode

String

The tracking code for this shipping process.

_embedded.shipping-processes[].trackingLink

String

The tracking link for this shipping process.

_embedded.shipping-processes[]._id

String

The ID of the shipping process.

page

Object

See Pagination

Links

Relation Description

shipping-processes

The link to all shipping processes of the order.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1597

{
  "_embedded" : {
    "shipping-processes" : [ {
      "status" : "PENDING",
      "trackingCode" : "lookAtMyTrackingCodeWow",
      "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
      "lineItems" : [ {
        "productLineItemId" : "90fe2bc8-9aa6-49f4-a4eb-e81a4bd7ef2f",
        "quantity" : 3
      } ],
      "_id" : "6eed6ba9-67ce-46b6-8065-3f3ea1293d25",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/ec6a22bb-7f22-477e-a218-d9f7aee71520/processes/shippings/6eed6ba9-67ce-46b6-8065-3f3ea1293d25"
        },
        "shipping-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/ec6a22bb-7f22-477e-a218-d9f7aee71520/processes/shippings/6eed6ba9-67ce-46b6-8065-3f3ea1293d25"
        },
        "mark-shipped" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/ec6a22bb-7f22-477e-a218-d9f7aee71520/processes/shippings/6eed6ba9-67ce-46b6-8065-3f3ea1293d25/mark-shipped"
        },
        "mark-delivered" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/ec6a22bb-7f22-477e-a218-d9f7aee71520/processes/shippings/6eed6ba9-67ce-46b6-8065-3f3ea1293d25/mark-delivered"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/ec6a22bb-7f22-477e-a218-d9f7aee71520/processes/shippings?page=0&size=20"
    },
    "shipping-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/ec6a22bb-7f22-477e-a218-d9f7aee71520/processes/shippings"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Show shipping process details

A GET request is used to retrieve the shipping process details.

Required scopes

shpr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/23e0dbf4-12b7-40fd-956c-52984a4bed26/processes/shippings/a8ac4bcc-2aa5-423b-a6a4-bab72515dfa1' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

lineItems

Array

The line items that are included in this shipping process.

status

String

The status of the shipping process. Can be UNSHIPPED, PARTIALLY_SHIPPED, or SHIPPED.

trackingCode

String

The tracking code for this shipping process.

trackingLink

String

The tracking link for this shipping process.

_id

String

The ID of the shipping process.

_links

Object

See Hypermedia

Links

Relation Description

shipping-process

The link to the current shipping process.

mark-shipped

The link to set the current shipping process to shipped.

mark-delivered

The link to set the current shipping process to delivered.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1045

{
  "status" : "PENDING",
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "productLineItemId" : "c5cca056-32b9-48bf-a052-372a02774189",
    "quantity" : 3
  } ],
  "_id" : "a8ac4bcc-2aa5-423b-a6a4-bab72515dfa1",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/23e0dbf4-12b7-40fd-956c-52984a4bed26/processes/shippings/a8ac4bcc-2aa5-423b-a6a4-bab72515dfa1"
    },
    "shipping-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/23e0dbf4-12b7-40fd-956c-52984a4bed26/processes/shippings/a8ac4bcc-2aa5-423b-a6a4-bab72515dfa1"
    },
    "mark-shipped" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/23e0dbf4-12b7-40fd-956c-52984a4bed26/processes/shippings/a8ac4bcc-2aa5-423b-a6a4-bab72515dfa1/mark-shipped"
    },
    "mark-delivered" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/23e0dbf4-12b7-40fd-956c-52984a4bed26/processes/shippings/a8ac4bcc-2aa5-423b-a6a4-bab72515dfa1/mark-delivered"
    }
  }
}

Create shipping processes

A POST request is ussed to create a new shipping processes for an order.

Required scopes

shpr:c

Request body properties

Path Type Description

comment

String

The comment to this status change.

sendMail

Boolean

Indicates if a mail is to be sent out with this shipping process transition.

trackingCode

String

The tracking code for this shipping process.

trackingLink

String

The tracking link for this shipping process.

lineItems[].productLineItemId

String

The ID of a product line item that is marked with a new status.

lineItems[].quantity

Number

The quantity of a product line item that is marked with a new status.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/3b6c6932-506c-473a-9d24-70e8ab3ebb83/processes/shippings' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "comment" : "This needs to be done fast!",
  "sendMail" : true,
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "quantity" : 3,
    "productLineItemId" : "fb32f112-c992-464d-8b6b-44a586e11947"
  } ]
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/orders/3b6c6932-506c-473a-9d24-70e8ab3ebb83/processes/shippings/172c5f22-38a2-4fa5-bbd5-9c7cb14ccd49
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1045

{
  "status" : "PENDING",
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "productLineItemId" : "fb32f112-c992-464d-8b6b-44a586e11947",
    "quantity" : 3
  } ],
  "_id" : "172c5f22-38a2-4fa5-bbd5-9c7cb14ccd49",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/3b6c6932-506c-473a-9d24-70e8ab3ebb83/processes/shippings/172c5f22-38a2-4fa5-bbd5-9c7cb14ccd49"
    },
    "shipping-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/3b6c6932-506c-473a-9d24-70e8ab3ebb83/processes/shippings/172c5f22-38a2-4fa5-bbd5-9c7cb14ccd49"
    },
    "mark-shipped" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/3b6c6932-506c-473a-9d24-70e8ab3ebb83/processes/shippings/172c5f22-38a2-4fa5-bbd5-9c7cb14ccd49/mark-shipped"
    },
    "mark-delivered" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/3b6c6932-506c-473a-9d24-70e8ab3ebb83/processes/shippings/172c5f22-38a2-4fa5-bbd5-9c7cb14ccd49/mark-delivered"
    }
  }
}

Mark shipment as shipped

A POST request is used to mark the shipment as shipped.

Required scopes

shpr:u

Request body properties

Path Type Description

comment

String

The comment to this status change.

sendMail

Boolean

Indicates if a mail is to be sent out with this shipping process transition.

details.trackingCode

String

The tracking code for this shipping process.

details.trackingLink

String

The tracking link for this shipping process.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/e611d378-b56a-4289-b2e5-3b55c719f44a/processes/shippings/0b50fee4-26c7-4c4a-a74b-30ffb4713fd6/mark-shipped' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "comment" : "This needs to be done fast!",
  "sendMail" : true,
  "details" : {
    "trackingCode" : "lookAtMyTrackingCodeWow",
    "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow"
  }
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 859

{
  "status" : "SHIPPED",
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "productLineItemId" : "9fa8fee0-e95e-4e9c-a1c3-4ba7b046e851",
    "quantity" : 3
  } ],
  "_id" : "0b50fee4-26c7-4c4a-a74b-30ffb4713fd6",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e611d378-b56a-4289-b2e5-3b55c719f44a/processes/shippings/0b50fee4-26c7-4c4a-a74b-30ffb4713fd6"
    },
    "shipping-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e611d378-b56a-4289-b2e5-3b55c719f44a/processes/shippings/0b50fee4-26c7-4c4a-a74b-30ffb4713fd6"
    },
    "mark-delivered" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e611d378-b56a-4289-b2e5-3b55c719f44a/processes/shippings/0b50fee4-26c7-4c4a-a74b-30ffb4713fd6/mark-delivered"
    }
  }
}

Mark shipment as delivered

A POST request is used to mark the shipment as delivered.

Required scopes

shpr:u

Request body properties

Path Type Description

comment

String

The comment to this status change.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/5f1f5af8-4897-439e-ad5a-ff823e6e09e4/processes/shippings/a762906c-c7ef-4907-8f21-308a530e0cff/mark-delivered' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "comment" : "comment"
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 671

{
  "status" : "DELIVERED",
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "productLineItemId" : "83515b27-381d-4731-988a-8fb9ad8e22e9",
    "quantity" : 3
  } ],
  "_id" : "a762906c-c7ef-4907-8f21-308a530e0cff",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5f1f5af8-4897-439e-ad5a-ff823e6e09e4/processes/shippings/a762906c-c7ef-4907-8f21-308a530e0cff"
    },
    "shipping-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5f1f5af8-4897-439e-ad5a-ff823e6e09e4/processes/shippings/a762906c-c7ef-4907-8f21-308a530e0cff"
    }
  }
}

List return processes

A GET request is used to list all return processes of an order in a paged way.

Required scopes

rtpr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/88e8ac90-3f6a-4243-be4d-5f6a4530d40f/processes/returns?page=0&size=20' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

_embedded.return-processes[].lineItems

Array

The product line items that are included in this return process.

_embedded.return-processes[]._id

String

The ID of the return process.

_embedded.return-processes[].shippingPriceRefund.currency

String

The currency of the price for the shipping line item.

_embedded.return-processes[].shippingPriceRefund.amount

Number

The price for the shipping line item to be refunded.

page

Object

See Pagination

Links

Relation Description

return-processes

The link to all return processes of the order.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1152

{
  "_embedded" : {
    "return-processes" : [ {
      "lineItems" : [ {
        "productLineItemId" : "086fac85-8b10-4744-97ee-eb777501d874",
        "quantity" : 3,
        "status" : "RETURNED"
      } ],
      "shippingPriceRefund" : {
        "currency" : "EUR",
        "amount" : 19.99
      },
      "_id" : "7e122fd5-77e1-47d0-beb5-b8b5c63ff95f",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/88e8ac90-3f6a-4243-be4d-5f6a4530d40f/processes/returns/7e122fd5-77e1-47d0-beb5-b8b5c63ff95f"
        },
        "return-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/88e8ac90-3f6a-4243-be4d-5f6a4530d40f/processes/returns/7e122fd5-77e1-47d0-beb5-b8b5c63ff95f"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/88e8ac90-3f6a-4243-be4d-5f6a4530d40f/processes/returns?page=0&size=20"
    },
    "return-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/88e8ac90-3f6a-4243-be4d-5f6a4530d40f/processes/returns"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Show return process details

A GET request is used to retrieve the return process details.

Required scopes

rtpr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/5fdfcf76-fa84-4b80-a94c-679f0b7f3d74/processes/returns/6970d591-03cd-4c34-839d-c35f6af0c43a' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

lineItems

Array

The product line items that are included in this return process.

_id

String

The ID of the return process.

shippingPriceRefund.currency

String

The currency of the price for the shipping line item.

shippingPriceRefund.amount

Number

The price for the shipping line item to be refunded.

_links

Object

See Hypermedia

Links

Relation Description

return-process

The link to the current return process.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 624

{
  "lineItems" : [ {
    "productLineItemId" : "9e5defb3-4700-4b58-97fe-ca3d7a238af4",
    "quantity" : 3,
    "status" : "RETURNED"
  } ],
  "shippingPriceRefund" : {
    "currency" : "EUR",
    "amount" : 19.99
  },
  "_id" : "6970d591-03cd-4c34-839d-c35f6af0c43a",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5fdfcf76-fa84-4b80-a94c-679f0b7f3d74/processes/returns/6970d591-03cd-4c34-839d-c35f6af0c43a"
    },
    "return-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5fdfcf76-fa84-4b80-a94c-679f0b7f3d74/processes/returns/6970d591-03cd-4c34-839d-c35f6af0c43a"
    }
  }
}

Create return processes

A POST request is used to create a new return process for an order. Return processes trigger a refund process.

Required scopes

rtpr:c

Request body properties

Path Type Description

comment

String

The comment to this status change.

lineItems[].productLineItemId

String

The ID of a specified product line item in this return process.

lineItems[].quantity

Number

The quantity of the product line item in this return process.

shippingPriceRefund.currency

String

The currency of the price for the shipping line item.

shippingPriceRefund.amount

Number

The price for the shipping line item to be refunded.

lineItems[].status

String

The status of the product line item in this return process. Can be RETURNED or BROKEN.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/2b6704fc-0b94-4fec-ba3c-c965bad32ed8/processes/returns' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "comment" : "This needs to be done fast!",
  "lineItems" : [ {
    "quantity" : 3,
    "productLineItemId" : "b46caa89-7940-4307-9a1c-980f0c4e584f",
    "status" : "RETURNED"
  } ],
  "shippingPriceRefund" : {
    "currency" : "EUR",
    "amount" : 19.99
  }
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/orders/2b6704fc-0b94-4fec-ba3c-c965bad32ed8/processes/returns/6df59248-5185-472d-a6f7-7e3ba4b24f5c
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 624

{
  "lineItems" : [ {
    "productLineItemId" : "b46caa89-7940-4307-9a1c-980f0c4e584f",
    "quantity" : 3,
    "status" : "RETURNED"
  } ],
  "shippingPriceRefund" : {
    "currency" : "EUR",
    "amount" : 19.99
  },
  "_id" : "6df59248-5185-472d-a6f7-7e3ba4b24f5c",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/2b6704fc-0b94-4fec-ba3c-c965bad32ed8/processes/returns/6df59248-5185-472d-a6f7-7e3ba4b24f5c"
    },
    "return-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/2b6704fc-0b94-4fec-ba3c-c965bad32ed8/processes/returns/6df59248-5185-472d-a6f7-7e3ba4b24f5c"
    }
  }
}

List cancelation processes

A GET request is used to list all cancelation processes of an order in a paged way.

Required scopes

clpr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/e438a13f-8954-422c-b2e7-0bb0b41a31ac/processes/cancelations?page=0&size=20' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

_embedded.cancel-processes[].lineItems

Array

The product line items that are included in this cancelation process.

_embedded.cancel-processes[]._id

String

The ID of the cancelation process.

page

Object

See Pagination

Links

Relation Description

cancel-processes

The link to all cancelation processes of the order.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 1047

{
  "_embedded" : {
    "cancel-processes" : [ {
      "lineItems" : [ {
        "productLineItemId" : "2e6ebad2-8c19-43b7-8007-4adebc9ddf54",
        "quantity" : 3
      } ],
      "_id" : "18f712a1-4810-46dc-9172-6a6f8a6ababe",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/e438a13f-8954-422c-b2e7-0bb0b41a31ac/processes/cancelations/18f712a1-4810-46dc-9172-6a6f8a6ababe"
        },
        "cancel-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/e438a13f-8954-422c-b2e7-0bb0b41a31ac/processes/cancelations/18f712a1-4810-46dc-9172-6a6f8a6ababe"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e438a13f-8954-422c-b2e7-0bb0b41a31ac/processes/cancelations?page=0&size=20"
    },
    "cancel-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e438a13f-8954-422c-b2e7-0bb0b41a31ac/processes/cancelations"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Show cancelation process details

A GET request is used to retrieve the cancelation process details of an order.

Required scopes

clpr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/8b6855b4-921e-401e-bd2c-976e62ccf5ac/processes/cancelations/595ca60a-7ab0-49fb-8793-a96319b5abb4' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

lineItems

Array

The product line items that are included in this cancelation process.

_id

String

The ID of the cancelation process.

_links

Object

See Hypermedia

Links

Relation Description

cancel-process

The link to the current cancelation process.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 529

{
  "lineItems" : [ {
    "productLineItemId" : "88e2cd78-ef7f-4b66-9ea5-68959b78bc3d",
    "quantity" : 3
  } ],
  "_id" : "595ca60a-7ab0-49fb-8793-a96319b5abb4",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/8b6855b4-921e-401e-bd2c-976e62ccf5ac/processes/cancelations/595ca60a-7ab0-49fb-8793-a96319b5abb4"
    },
    "cancel-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/8b6855b4-921e-401e-bd2c-976e62ccf5ac/processes/cancelations/595ca60a-7ab0-49fb-8793-a96319b5abb4"
    }
  }
}

Create cancelation processes

A POST request is used to create a new cancelation process for an order. Cancelation processes trigger a refund process.

Required scopes

clpr:c

Request body properties

Path Type Description

comment

String

The comment to this status change.

lineItems[].productLineItemId

String

The ID of a specified product line item in this cancelation process.

lineItems[].quantity

Number

The quantity of the product line item in this cancelation process.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/8638cbda-b62b-482f-a63e-d728ee9cecfe/processes/cancelations' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "comment" : "This needs to be done fast!",
  "lineItems" : [ {
    "quantity" : 3,
    "productLineItemId" : "47a2da18-2e2a-4b52-b57b-208b7a501559"
  } ]
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/orders/8638cbda-b62b-482f-a63e-d728ee9cecfe/processes/cancelations/6375a392-6795-4470-971d-4ffe90db0846
Content-Type: application/hal+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 529

{
  "lineItems" : [ {
    "productLineItemId" : "47a2da18-2e2a-4b52-b57b-208b7a501559",
    "quantity" : 3
  } ],
  "_id" : "6375a392-6795-4470-971d-4ffe90db0846",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/8638cbda-b62b-482f-a63e-d728ee9cecfe/processes/cancelations/6375a392-6795-4470-971d-4ffe90db0846"
    },
    "cancel-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/8638cbda-b62b-482f-a63e-d728ee9cecfe/processes/cancelations/6375a392-6795-4470-971d-4ffe90db0846"
    }
  }
}

Cancel order

A POST request is used to cancel an order.

Required scopes

clpr:c

Request body properties

Path Type Description

comment

String

The comment to this status change.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/745faca2-31c6-4575-8243-99d342ffdfcf/cancel' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "comment" : "This needs to be done fast!"
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 9076

{
  "_id" : "745faca2-31c6-4575-8243-99d342ffdfcf",
  "createdAt" : "2018-12-13T15:32:15.811",
  "cartId" : "f144b5c7-ed5d-4a09-868c-0f83c05c8945",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : true,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : false,
  "productLineItems" : [ {
    "_id" : "0d480336-014b-4719-b898-383901153631",
    "product" : {
      "_id" : "14305575-54b4-46bb-a3fb-c4526ed09336",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
      "shippingWeight" : 100,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 0,
    "initialQuantity" : 3,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2.5
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 7.5
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0
    },
    "unshipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 3,
      "amount" : {
        "currency" : "EUR",
        "amount" : 7.5
      }
    }
  }, {
    "_id" : "21ee59a3-dbd0-4aae-a318-8621130938d5",
    "product" : {
      "_id" : "46d5a58a-b62a-4de8-ad0c-3c247a98dc30",
      "sku" : "EB001",
      "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
      "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
      "shippingWeight" : 190,
      "defaultImageDataUri" : "http://your.image.hoster.com/randomimage.png",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : 0,
    "initialQuantity" : 5,
    "unitPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 9.99
    },
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 49.95
    },
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0
    },
    "unshipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "shipped" : {
      "quantity" : 0,
      "amount" : null
    },
    "pending" : {
      "quantity" : 0,
      "amount" : null
    },
    "returned" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "broken" : {
      "quantity" : 0,
      "amount" : {
        "currency" : "EUR",
        "amount" : 0
      }
    },
    "canceled" : {
      "quantity" : 5,
      "amount" : {
        "currency" : "EUR",
        "amount" : 49.95
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "taxClass" : "REGULAR",
    "shippingMethod" : {
      "name" : "Standard Shipping 2",
      "description" : "Standard Shipping",
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 19.99
      },
      "weightBasedPrice" : null
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ]
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "initialLineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 0
    },
    "taxClass" : "REGULAR",
    "paymentMethod" : {
      "name" : "PayPal",
      "description" : "Pay with PayPal",
      "discountOrFee" : {
        "type" : "ABSOLUTE",
        "absoluteValue" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 0
        },
        "percentageValue" : null
      },
      "onlinePayment" : false
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ]
  },
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "initialSubtotal" : {
    "currency" : "EUR",
    "amount" : 57.45
  },
  "initialGrandTotal" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialBalanceDue" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "initialNetTotal" : {
    "currency" : "EUR",
    "amount" : 68.2687
  },
  "initialTaxTotal" : {
    "currency" : "EUR",
    "amount" : 9.1713
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.0,
    "currency" : "EUR",
    "amount" : 0
  } ],
  "shippingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "doorCode" : "456",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : "Astrid Alster GmbH",
    "title" : null,
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "vatId" : "DE123456789",
    "taxNumber" : "HRE 987654/32123/864516",
    "birthDate" : "1985-05-11",
    "displayAddressLines" : [ "Astrid Alster GmbH", "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "GERMANY" ]
  },
  "paymentStatus" : "REFUND_PENDING",
  "shippingStatus" : "SHIPPED",
  "canceled" : true,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "paymentNote" : "Please transfer the money using the reference ABC123XYZ to the bank account IBAN!",
  "entryDate" : "2018-12-13T15:32:15.811",
  "totalReceived" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "totalRefunded" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "openAmount" : {
    "currency" : "EUR",
    "amount" : -77.44
  },
  "marketingChannel" : "Google shopping",
  "marketingSubchannel" : "Some category",
  "salesChannel" : "Storefront",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/745faca2-31c6-4575-8243-99d342ffdfcf"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/745faca2-31c6-4575-8243-99d342ffdfcf"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/745faca2-31c6-4575-8243-99d342ffdfcf/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/745faca2-31c6-4575-8243-99d342ffdfcf/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/745faca2-31c6-4575-8243-99d342ffdfcf/events"
    },
    "terms-and-conditions-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    },
    "right-of-withdrawal-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    }
  }
}

List order events

A GET request is used to list all events of an order in a paged way.

Required scopes

orde:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/90869aea-7089-4bdd-b670-92f05c2cc6b5/events' -i -X GET \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.order-events[].triggeredBy

String

The user or client that triggered the order event.

_embedded.order-events[].comment

String

Optional comment that describes the event.

_embedded.order-events[].createdAt

String

The date and time the order event was created. According to ISO 8601.

_embedded.order-events[].details.type

String

The type of the order event. Can be order-created, order-shipped, items-returned, items-canceled, order-canceled, payment-created, payment-voided, payment-paid, payment-executed, payment-failed, payment-execution-temporarily-failed, invoice-created, invoice-sent, order-shipping-address-changed, order-billing-address-changed, shipping-shipped, shipping-delivered, shipping-pending, refund-created, refund-voided, refund-paid, refund-failed, or refund-not-supported.

_embedded.order-events[]._links.payment-process.href

String

The link to the corresponding payment process.

_links

Object

See Hypermedia

page

Object

See Pagination

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 2606

{
  "_embedded" : {
    "order-events" : [ {
      "triggeredBy" : "user",
      "comment" : "comment",
      "createdAt" : "2018-12-13T15:29:57.545",
      "details" : {
        "paymentProcessId" : "045d872c-925b-495b-8f8a-de25bdb2828c",
        "type" : "payment-voided"
      },
      "_links" : {
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/90869aea-7089-4bdd-b670-92f05c2cc6b5/processes/payments/045d872c-925b-495b-8f8a-de25bdb2828c"
        }
      }
    }, {
      "triggeredBy" : null,
      "comment" : null,
      "createdAt" : "2018-12-13T15:29:57.389",
      "details" : {
        "amount" : {
          "currency" : "EUR",
          "amount" : 0
        },
        "paymentId" : null,
        "paymentProcessId" : "045d872c-925b-495b-8f8a-de25bdb2828c",
        "type" : "payment-created"
      },
      "_links" : {
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/90869aea-7089-4bdd-b670-92f05c2cc6b5/processes/payments/045d872c-925b-495b-8f8a-de25bdb2828c"
        }
      }
    }, {
      "triggeredBy" : "user",
      "comment" : "customer transfer",
      "createdAt" : "2018-12-13T15:29:57.129",
      "details" : {
        "amount" : {
          "currency" : "EUR",
          "amount" : 77.44
        },
        "paymentProcessId" : "57576f33-c9f4-4b1f-8ed6-71c5b6efb957",
        "type" : "payment-paid"
      },
      "_links" : {
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/90869aea-7089-4bdd-b670-92f05c2cc6b5/processes/payments/57576f33-c9f4-4b1f-8ed6-71c5b6efb957"
        }
      }
    }, {
      "triggeredBy" : null,
      "comment" : null,
      "createdAt" : "2018-12-13T15:29:56.728",
      "details" : {
        "amount" : {
          "currency" : "EUR",
          "amount" : 77.44
        },
        "paymentId" : null,
        "paymentProcessId" : "57576f33-c9f4-4b1f-8ed6-71c5b6efb957",
        "type" : "payment-created"
      },
      "_links" : {
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/90869aea-7089-4bdd-b670-92f05c2cc6b5/processes/payments/57576f33-c9f4-4b1f-8ed6-71c5b6efb957"
        }
      }
    }, {
      "triggeredBy" : null,
      "comment" : null,
      "createdAt" : "2018-12-13T15:29:56.523",
      "details" : {
        "type" : "order-created"
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/90869aea-7089-4bdd-b670-92f05c2cc6b5/events"
    }
  },
  "page" : {
    "size" : 10,
    "totalElements" : 5,
    "totalPages" : 1,
    "number" : 0
  }
}

Payment Methods

The payment method resources are used to get information about payment methods of this shop. Payment methods refers to the options provided to a merchant’s customer at checkout, e.g. the option to pay with a credit card or via PayPal.

Show payment method details

A GET request is used to retrieve the details of a payment method.

Required scopes

pymt:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-methods/11ab4784-57ab-4279-9195-727aeb5daea1' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_id

String

The immutable, unique identifier of the requested resource.

position

Number

The sorting position of the payment method in the Commerce Cockpit in relation to other payment methods.

officialName

String

The official name of the payment method chosen by the merchant during setup.

officialDescription

String

The official description of the payment method chosen by the merchant during setup.

name

String

The name of the payment method that is used during checkout.

description

String

Description of the payment method that is used during checkout.

activated

Boolean

Indicates if a payment method is active. Can be true or false.

taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

discountOrFee

Object

The details about the fee to be payed or discount to be granted for this payment method.

discountOrFee.type

String

The discount or fee can be an absolute or a percentage based value. Can be one of PERCENTAGE or ABSOLUTE. ABSOLUTE contains another attribute absoluteValue with a positive or negative price. PERCENTAGE contains another attribute percentageValue with a negative or positive percentage value.

serviceableCountries

Array

The list of target countries this payment method can be used in.

minimumOrderValue

Object

The minimum value of the cart so that this payment method can be used.

onlinePayment

Boolean

Indicates if the payment method is an online payment. Can be true or false.

activeLogoSet

Null

The name of the currently selected logo set. Can be TILE, DETAILS, LIST, or STOREFRONT. (official is always the fallback).

_links

Object

See Hypermedia

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1601

{
  "_id" : "11ab4784-57ab-4279-9195-727aeb5daea1",
  "name" : "Converge",
  "description" : "Pay with Converge",
  "officialName" : "Converge",
  "officialDescription" : "Pay with Converge",
  "taxClass" : "REGULAR",
  "discountOrFee" : {
    "type" : "ABSOLUTE",
    "absoluteValue" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "percentageValue" : null
  },
  "position" : 1,
  "serviceableCountries" : [ "DE" ],
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 10
  },
  "activated" : true,
  "activeLogoSet" : null,
  "onlinePayment" : true,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/11ab4784-57ab-4279-9195-727aeb5daea1"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/11ab4784-57ab-4279-9195-727aeb5daea1"
    },
    "payment-method-definition-status" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-signup/merchant-accounts/converge-sandbox"
    },
    "deactivate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/11ab4784-57ab-4279-9195-727aeb5daea1/deactivate"
    },
    "logo-list" : {
      "href" : "http://list-logo.com"
    },
    "logo-details" : {
      "href" : "http://details-logo.com"
    },
    "logo-storefront" : {
      "href" : "http://storefront-logo.com"
    },
    "logo-tile" : {
      "href" : "http://tile-logo.com"
    },
    "payment-method-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/11ab4784-57ab-4279-9195-727aeb5daea1/payment-method-definition"
    }
  }
}

List payment methods

A GET request is used to list all payment methods in a paged manner.

Required scopes

pymt:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-methods' -i -X GET \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 2813

{
  "_embedded" : {
    "payment-methods" : [ {
      "_id" : "7e259c43-42a1-4e8b-970c-f8935975f539",
      "name" : "Converge",
      "description" : "Pay with Converge",
      "officialName" : "Converge",
      "officialDescription" : "Pay with Converge",
      "taxClass" : "REGULAR",
      "discountOrFee" : {
        "type" : "ABSOLUTE",
        "absoluteValue" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 2
        },
        "percentageValue" : null
      },
      "position" : 1,
      "serviceableCountries" : [ "DE" ],
      "minimumOrderValue" : null,
      "activated" : true,
      "activeLogoSet" : null,
      "onlinePayment" : false,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7e259c43-42a1-4e8b-970c-f8935975f539"
        },
        "payment-method" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7e259c43-42a1-4e8b-970c-f8935975f539"
        },
        "deactivate-payment-method" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7e259c43-42a1-4e8b-970c-f8935975f539/deactivate"
        },
        "payment-method-definition" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7e259c43-42a1-4e8b-970c-f8935975f539/payment-method-definition"
        }
      }
    }, {
      "_id" : "013aff71-9675-4c99-8dbf-f2f84c6d66e3",
      "name" : "Credit Card",
      "description" : "Pay with CreditCard",
      "officialName" : "Credit Card",
      "officialDescription" : "Pay with CreditCard",
      "taxClass" : "REGULAR",
      "discountOrFee" : {
        "type" : "PERCENTAGE",
        "absoluteValue" : null,
        "percentageValue" : 0.02
      },
      "position" : 2,
      "serviceableCountries" : [ "DE", "GB" ],
      "minimumOrderValue" : {
        "currency" : "EUR",
        "amount" : 20
      },
      "activated" : false,
      "activeLogoSet" : null,
      "onlinePayment" : false,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/013aff71-9675-4c99-8dbf-f2f84c6d66e3"
        },
        "payment-method" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/013aff71-9675-4c99-8dbf-f2f84c6d66e3"
        },
        "activate-payment-method" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/013aff71-9675-4c99-8dbf-f2f84c6d66e3/activate"
        },
        "payment-method-definition" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/013aff71-9675-4c99-8dbf-f2f84c6d66e3/payment-method-definition"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

Update payment method

A PUT request is used to update a payment method.

Required scopes

pymt:u

Request body properties

Path Type Description Constraints

name

String

The name of the payment method that is used during checkout.

Length must be between 0 and 255 inclusive. Must not be empty

description

String

Description of the payment method that is used during checkout.

Length must be between 0 and 4095 inclusive

discountOrFee

Object

The details about the fee to be payed or discount to be granted for this payment method.

discountOrFee.type

String

The discount or fee can be an absolute or a percentage based value. Can be one of PERCENTAGE or ABSOLUTE. ABSOLUTE contains another attribute absoluteValue with a positive or negative price. PERCENTAGE contains another attribute percentageValue with a negative or positive percentage value.

serviceableCountries

Array

The list of target countries this payment method can be used in.

Each country code must be officially assigned (see ISO 3166-1 Alpha-2)

minimumOrderValue

Object

The minimum value of the cart so that this payment method can be used.

taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

Length must be between 0 and 15 inclusive. Must not be null

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-methods/3f09bc3e-fe47-4f11-82db-f3e35e1e72d5' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "name" : "Another name",
  "description" : "Pay with Converge",
  "taxClass" : "REGULAR",
  "discountOrFee" : {
    "type" : "ABSOLUTE",
    "absoluteValue" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2.0
    }
  },
  "serviceableCountries" : [ "DE" ],
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 10.0
  }
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1186

{
  "_id" : "3f09bc3e-fe47-4f11-82db-f3e35e1e72d5",
  "name" : "Another name",
  "description" : "Pay with Converge",
  "officialName" : "Converge",
  "officialDescription" : "Pay with Converge",
  "taxClass" : "REGULAR",
  "discountOrFee" : {
    "type" : "ABSOLUTE",
    "absoluteValue" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "percentageValue" : null
  },
  "position" : 1,
  "serviceableCountries" : [ "DE" ],
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 10
  },
  "activated" : true,
  "activeLogoSet" : null,
  "onlinePayment" : false,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3f09bc3e-fe47-4f11-82db-f3e35e1e72d5"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3f09bc3e-fe47-4f11-82db-f3e35e1e72d5"
    },
    "deactivate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3f09bc3e-fe47-4f11-82db-f3e35e1e72d5/deactivate"
    },
    "payment-method-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3f09bc3e-fe47-4f11-82db-f3e35e1e72d5/payment-method-definition"
    }
  }
}

Sort payment methods

A PUT request is used to sort payment methods.

Required scopes

pymt:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-methods' -i -X PUT \
    -H 'Content-Type: text/uri-list' \
    -H 'Authorization: Bearer <Access token>' \
    -d 'https://api-shop.beyondshop.cloud/api/payment-methods/733dbe6b-78a0-4c73-8c21-76f5e9f92fc6
https://api-shop.beyondshop.cloud/api/payment-methods/cea74c7d-3305-4ce7-84a7-6e26b2508059
https://api-shop.beyondshop.cloud/api/payment-methods/1199509c-668f-4061-9eae-91c29c8dba9f
https://api-shop.beyondshop.cloud/api/payment-methods/f160bbfc-5144-4ae1-b8d5-16386b141ff3'

Example response

HTTP/1.1 204 No Content
Location: https://api-shop.beyondshop.cloud/api/payment-methods
X-Frame-Options: DENY

Activate a payment method

A POST request is used to activate a payment method.

Required scopes

pymt:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-methods/68fb68ef-d591-4e4f-93c4-8929b3dacea3/activate' -i -X POST \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1235

{
  "_id" : "68fb68ef-d591-4e4f-93c4-8929b3dacea3",
  "name" : "A Payment Method",
  "description" : "Description of A Payment Method",
  "officialName" : "Official Name",
  "officialDescription" : "Official description of method",
  "taxClass" : "REGULAR",
  "discountOrFee" : {
    "type" : "ABSOLUTE",
    "absoluteValue" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 12.34
    },
    "percentageValue" : null
  },
  "position" : 1,
  "serviceableCountries" : [ "DE", "GB" ],
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 19.99
  },
  "activated" : true,
  "activeLogoSet" : null,
  "onlinePayment" : false,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/68fb68ef-d591-4e4f-93c4-8929b3dacea3"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/68fb68ef-d591-4e4f-93c4-8929b3dacea3"
    },
    "deactivate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/68fb68ef-d591-4e4f-93c4-8929b3dacea3/deactivate"
    },
    "payment-method-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/68fb68ef-d591-4e4f-93c4-8929b3dacea3/payment-method-definition"
    }
  }
}

Deactivate a payment method

A POST request is used to deactivate a payment method.

Required scopes

pymt:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-methods/3b920a76-8c04-46b9-bb79-d0240070a416/deactivate' -i -X POST \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1250

{
  "_id" : "3b920a76-8c04-46b9-bb79-d0240070a416",
  "name" : "The second Payment Method",
  "description" : "Description of The second Payment Method",
  "officialName" : "Official Name",
  "officialDescription" : "Official description of method",
  "taxClass" : "REGULAR",
  "discountOrFee" : {
    "type" : "ABSOLUTE",
    "absoluteValue" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 12.34
    },
    "percentageValue" : null
  },
  "position" : 2,
  "serviceableCountries" : [ "DE", "GB" ],
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 19.99
  },
  "activated" : false,
  "activeLogoSet" : null,
  "onlinePayment" : false,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3b920a76-8c04-46b9-bb79-d0240070a416"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3b920a76-8c04-46b9-bb79-d0240070a416"
    },
    "activate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3b920a76-8c04-46b9-bb79-d0240070a416/activate"
    },
    "payment-method-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3b920a76-8c04-46b9-bb79-d0240070a416/payment-method-definition"
    }
  }
}

Products

The products resource is used to manage products of a shop.

List products

A GET request will list all of the products in a paged manner. The returned data is an excerpt projection, which includes a small subset of product properties.

Required scopes

prod:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products' -i -X GET \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

page

Object

See Pagination

_embedded.products[].sku

String

The stock keeping unit (SKU) corresponding to the product.

_embedded.products[].name

String

The name of the product.

_embedded.products[].visible

Boolean

Indicates if the product is visible in the online shop. Can be true or false.

_embedded.products[].tags

Array

The tags assigned to a product.

_embedded.products[].salesPrice

Object

The reduced price of a product that is currently on offer.

_embedded.products[].salesPrice.amount

Number

The amount of the offer price.

_embedded.products[].salesPrice.currency

String

The currency of the offer price.

_embedded.products[].salesPrice.taxModel

String

The tax model of the offer price. Can be GROSS or NET.

_embedded.products[].listPrice

Object

The price of the product without any discounts.

_embedded.products[].listPrice.amount

Number

The amount of the list price.

_embedded.products[].listPrice.currency

String

The currency of the list price.

_embedded.products[].listPrice.taxModel

String

The tax model of the list price. Can be GROSS or NET.

_embedded.products[].listPrice

Object

The price of the product without any discounts.

_embedded.products[].manufacturerPrice

Object

The manufacturer’s suggested retail price of the product.

_embedded.products[].manufacturerPrice.amount

Number

The amount of the manufacturer’s suggested retail price.

_embedded.products[].manufacturerPrice.currency

String

The currency of the manufacturer’s suggested retail price.

_embedded.products[].manufacturerPrice.taxModel

String

The tax model of the manufacturer’s suggested retail price. Can be GROSS or NET.

_embedded.products[]._id

String

The immutable, unique identifier of the requested resource.

_embedded.products[].salesPrice.derivedPrice

Object

The calculated price with taxes applied (read-only).

_embedded.products[].listPrice.derivedPrice

Object

The calculated price with taxes applied (read-only).

_embedded.products[].manufacturerPrice.derivedPrice

Object

The calculated manufacturer’s suggested retail price with taxes applied (read-only).

_embedded.products[].name

String

The name of the product.

_embedded.products[].description

String

The description of the product.

_embedded.products[].manufacturer

String

The manufacturer of the product.

_embedded.products[].visible

Boolean

Indicates if the product is visible in the online shop. Can be true or false.

_embedded.products[].onSale

Boolean

Indicates if the product is on offer. Can be true or false.

_embedded.products[].productIdentifiers[].type

String

The product code to identify and classify the product. Can be EAN, UPC, ISBN, or MPN.

_embedded.products[].productIdentifiers[].value

String

The actual value of the product identifier.

_embedded.products[].essentialFeatures

String

The essential product properties of the product. Shown in the cart and checkout. In Germany mandatory field in online shops according to §312j Abs. 2 BGB (German Civil Code).

_embedded.products[].tags

Array

The tags assigned to a product.

_embedded.products[].taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

_embedded.products[].shippingWeight

Number

The weight of the product including packaging in g.

_embedded.products[].maxOrderQuantity

Number

Displays how often this product can be ordered at maximum in one order.

_embedded.products[].shippingPeriod.minDays

Number

The minimum required days for shipping.

_embedded.products[].shippingPeriod.maxDays

Null

The maximum required days for shipping.

_embedded.products[].shippingPeriod.displayUnit

String

The unit to show the shipping period. Use DAYS or WEEKS.

_embedded.products[].shippingDimension.length

Number

The length of the product including packaging in mm.

_embedded.products[].shippingDimension.width

Number

The width of the product including packaging in mm.

_embedded.products[].shippingDimension.height

Number

The height of the product including packaging in mm.

_embedded.products[].refPrice

Object

The reference price of a product.

_embedded.products[].refPrice.refQuantity

Number

The reference quantity of the product.

_embedded.products[].refPrice.quantity

Number

The quantity in the product.

_embedded.products[].refPrice.unit

String

The unit of the quantity.

_embedded.products[].refPrice.price

Object

The price information scaled to a standardised base unit, according to the German base price regulation “Preisangabenverordnung” (PAngV), e.g. 1 l = 1.20 EUR. Is null if no reference amount is specified for the product.

_embedded.products[]._embedded.availability

Object

The information about the availability of the product.

Links

Relation Description

search

The link to product search endpoints.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 4404

{
  "_embedded" : {
    "products" : [ {
      "_embedded" : {
        "availability" : {
          "availabilityState" : "IN_STOCK",
          "availableStock" : 20,
          "stockThreshold" : 2,
          "purchasable" : true,
          "_links" : {
            "self" : {
              "href" : "https://api-shop.beyondshop.cloud/api/products/0c0e90f4-d9fa-4688-863c-cd04877011ee/availability"
            }
          }
        }
      },
      "sku" : "vino020",
      "salesPrice" : {
        "taxModel" : "NET",
        "currency" : "EUR",
        "amount" : 8.7,
        "derivedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 54.989,
          "taxRate" : 0.011
        }
      },
      "listPrice" : {
        "taxModel" : "NET",
        "currency" : "EUR",
        "amount" : 10.95,
        "derivedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 76.989,
          "taxRate" : 0.011
        }
      },
      "manufacturerPrice" : {
        "taxModel" : "NET",
        "currency" : "EUR",
        "amount" : 99.95,
        "derivedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 118.9405,
          "taxRate" : 0.19
        }
      },
      "onSale" : true,
      "tags" : [ "Bestseller", "Red Wine", "Sale" ],
      "productIdentifiers" : [ {
        "type" : "EAN",
        "value" : "9780134308135"
      } ],
      "visible" : true,
      "taxClass" : "REGULAR",
      "shippingWeight" : 100,
      "maxOrderQuantity" : 6,
      "shippingDimension" : {
        "length" : 1500,
        "width" : 1000,
        "height" : 2000
      },
      "refPrice" : {
        "refQuantity" : 1,
        "unit" : "LITER",
        "quantity" : 0.75,
        "price" : {
          "taxModel" : "NET",
          "currency" : "EUR",
          "amount" : 11.6,
          "derivedPrice" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 73.319,
            "taxRate" : 0.011
          }
        }
      },
      "shippingPeriod" : {
        "minDays" : 2,
        "maxDays" : null,
        "displayUnit" : "WEEKS"
      },
      "name" : "Rioja Castillo de Puerto (2013)",
      "description" : "Spain\nRioja Tempranillo",
      "manufacturer" : "Grape Vineyard",
      "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
      "_id" : "0c0e90f4-d9fa-4688-863c-cd04877011ee",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/0c0e90f4-d9fa-4688-863c-cd04877011ee"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/0c0e90f4-d9fa-4688-863c-cd04877011ee"
        },
        "availability" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/0c0e90f4-d9fa-4688-863c-cd04877011ee/availability"
        },
        "attributes" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/0c0e90f4-d9fa-4688-863c-cd04877011ee/attributes"
        },
        "attachments" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/0c0e90f4-d9fa-4688-863c-cd04877011ee/attachments"
        },
        "images" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/0c0e90f4-d9fa-4688-863c-cd04877011ee/images"
        },
        "amazon" : {
          "href" : "http://amazon/amazon-products/0c0e90f4-d9fa-4688-863c-cd04877011ee"
        },
        "google-shopping" : {
          "href" : "http://google-shopping/google-products/0c0e90f4-d9fa-4688-863c-cd04877011ee"
        },
        "default-image" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/0c0e90f4-d9fa-4688-863c-cd04877011ee/default-image"
        },
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998{&width,height,upscale}",
          "templated" : true
        },
        "default-image-metadata" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998&download=no"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products?page=0&size=20"
    },
    "search" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/search"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Create product

A POST request is used to create a product.

Required scopes

prod:c

Request body properties

Path Type Description Constraints

sku

String

The stock keeping unit (SKU) corresponding to the product.

Must not be empty

name

String

The name of the product.

Length must be between 0 and 255 inclusive

visible

Boolean

Indicates if the product is visible in the online shop. Can be true or false.

tags

Array

The tags assigned to a product.

salesPrice

Object

The reduced price of a product that is currently on offer.

Must match the shop’s tax model. Must not be null

salesPrice.amount

Number

The amount of the offer price.

salesPrice.currency

String

The currency of the offer price.

salesPrice.taxModel

String

The tax model of the offer price. Can be GROSS or NET.

listPrice

Object

The price of the product without any discounts.

listPrice.amount

Number

The amount of the list price.

listPrice.currency

String

The currency of the list price.

listPrice.taxModel

String

The tax model of the list price. Can be GROSS or NET.

listPrice

Object

The price of the product without any discounts.

manufacturerPrice

Object

The manufacturer’s suggested retail price of the product.

manufacturerPrice.amount

Number

The amount of the manufacturer’s suggested retail price.

manufacturerPrice.currency

String

The currency of the manufacturer’s suggested retail price.

manufacturerPrice.taxModel

String

The tax model of the manufacturer’s suggested retail price. Can be GROSS or NET.

name

String

The name of the product.

Length must be between 0 and 255 inclusive

description

String

The description of the product.

Length must be between 0 and 4095 inclusive

manufacturer

String

The manufacturer of the product.

Length must be between 0 and 255 inclusive

visible

Boolean

Indicates if the product is visible in the online shop. Can be true or false.

onSale

Boolean

Indicates if the product is on offer. Can be true or false.

productIdentifiers[].type

String

The product code to identify and classify the product. Can be EAN, UPC, ISBN, or MPN.

productIdentifiers[].value

String

The actual value of the product identifier.

essentialFeatures

String

The essential product properties of the product. Shown in the cart and checkout. In Germany mandatory field in online shops according to §312j Abs. 2 BGB (German Civil Code).

Length must be between 0 and 4095 inclusive

tags

Array

The tags assigned to a product.

taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

Must not be null

shippingWeight

Number

The weight of the product including packaging in g.

maxOrderQuantity

Number

Displays how often this product can be ordered at maximum in one order.

shippingPeriod.minDays

Number

The minimum required days for shipping.

shippingPeriod.maxDays

Number

The maximum required days for shipping.

shippingPeriod.displayUnit

String

The unit to show the shipping period. Use DAYS or WEEKS.

shippingDimension.length

Number

The length of the product including packaging in mm.

shippingDimension.width

Number

The width of the product including packaging in mm.

shippingDimension.height

Number

The height of the product including packaging in mm.

refPrice

Object

The reference price of a product.

refPrice.refQuantity

Number

The reference quantity of the product.

refPrice.quantity

Number

The quantity in the product.

refPrice.unit

String

The unit of the quantity.

refPrice.price

Null

The price information scaled to a standardised base unit, according to the German base price regulation “Preisangabenverordnung” (PAngV), e.g. 1 l = 1.20 EUR. Is null if no reference amount is specified for the product.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "sku" : "123456789-001",
  "name" : "Rioja Castillo de Puerto (2013)",
  "description" : "Spain\nRioja Tempranillo",
  "manufacturer" : "Grape Vineyard",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "tags" : [ "Bestseller", "Red Wine", "Sale" ],
  "productIdentifiers" : [ {
    "type" : "EAN",
    "value" : "9780134308135"
  } ],
  "salesPrice" : {
    "taxModel" : "NET",
    "amount" : 8.7,
    "currency" : "EUR"
  },
  "listPrice" : {
    "taxModel" : "NET",
    "amount" : 10.95,
    "currency" : "EUR"
  },
  "manufacturerPrice" : {
    "taxModel" : "NET",
    "amount" : 99.95,
    "currency" : "EUR"
  },
  "onSale" : true,
  "visible" : true,
  "taxClass" : "REGULAR",
  "shippingWeight" : 100,
  "maxOrderQuantity" : 6,
  "shippingDimension" : {
    "length" : 1500,
    "width" : 1000,
    "height" : 2000
  },
  "refPrice" : {
    "refQuantity" : 1,
    "unit" : "LITER",
    "quantity" : 0.75,
    "price" : null
  },
  "shippingPeriod" : {
    "minDays" : 2,
    "maxDays" : 4,
    "displayUnit" : "WEEKS"
  }
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/products/0c818feb-6caa-4831-ae7c-48de2a9857db
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 2937

{
  "_embedded" : {
    "availability" : {
      "availabilityState" : "IN_STOCK",
      "availableStock" : null,
      "stockThreshold" : null,
      "purchasable" : true,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/0c818feb-6caa-4831-ae7c-48de2a9857db/availability"
        }
      }
    }
  },
  "sku" : "123456789-001",
  "salesPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 8.7,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 9.57,
      "taxRate" : 0.1
    }
  },
  "listPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 10.95,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 12.045,
      "taxRate" : 0.1
    }
  },
  "manufacturerPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 99.95,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 109.945,
      "taxRate" : 0.1
    }
  },
  "onSale" : true,
  "tags" : [ "Bestseller", "Red Wine", "Sale" ],
  "productIdentifiers" : [ {
    "type" : "EAN",
    "value" : "9780134308135"
  } ],
  "visible" : true,
  "taxClass" : "REGULAR",
  "shippingWeight" : 100,
  "maxOrderQuantity" : 6,
  "shippingDimension" : {
    "length" : 1500,
    "width" : 1000,
    "height" : 2000
  },
  "refPrice" : {
    "refQuantity" : 1,
    "unit" : "LITER",
    "quantity" : 0.75,
    "price" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 11.6,
      "derivedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 12.76,
        "taxRate" : 0.1
      }
    }
  },
  "shippingPeriod" : {
    "minDays" : 2,
    "maxDays" : 4,
    "displayUnit" : "WEEKS"
  },
  "name" : "Rioja Castillo de Puerto (2013)",
  "description" : "Spain\nRioja Tempranillo",
  "manufacturer" : "Grape Vineyard",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "_id" : "0c818feb-6caa-4831-ae7c-48de2a9857db",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/0c818feb-6caa-4831-ae7c-48de2a9857db"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/0c818feb-6caa-4831-ae7c-48de2a9857db"
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/0c818feb-6caa-4831-ae7c-48de2a9857db/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/0c818feb-6caa-4831-ae7c-48de2a9857db/attributes"
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/0c818feb-6caa-4831-ae7c-48de2a9857db/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/0c818feb-6caa-4831-ae7c-48de2a9857db/images"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/0c818feb-6caa-4831-ae7c-48de2a9857db/default-image"
    }
  }
}

Show product details

A GET request is used to retrieve the details of a product.

Required scopes

prod:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/86eb6945-a927-4bf9-910d-edf0a372eb40' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

sku

String

The stock keeping unit (SKU) corresponding to the product.

name

String

The name of the product.

visible

Boolean

Indicates if the product is visible in the online shop. Can be true or false.

tags

Array

The tags assigned to a product.

salesPrice

Object

The reduced price of a product that is currently on offer.

salesPrice.amount

Number

The amount of the offer price.

salesPrice.currency

String

The currency of the offer price.

salesPrice.taxModel

String

The tax model of the offer price. Can be GROSS or NET.

listPrice

Object

The price of the product without any discounts.

listPrice.amount

Number

The amount of the list price.

listPrice.currency

String

The currency of the list price.

listPrice.taxModel

String

The tax model of the list price. Can be GROSS or NET.

listPrice

Object

The price of the product without any discounts.

manufacturerPrice

Object

The manufacturer’s suggested retail price of the product.

manufacturerPrice.amount

Number

The amount of the manufacturer’s suggested retail price.

manufacturerPrice.currency

String

The currency of the manufacturer’s suggested retail price.

manufacturerPrice.taxModel

String

The tax model of the manufacturer’s suggested retail price. Can be GROSS or NET.

_id

String

The immutable, unique identifier of the requested resource.

salesPrice.derivedPrice

Object

The calculated price with taxes applied (read-only).

listPrice.derivedPrice

Object

The calculated price with taxes applied (read-only).

manufacturerPrice.derivedPrice

Object

The calculated manufacturer’s suggested retail price with taxes applied (read-only).

name

String

The name of the product.

description

String

The description of the product.

manufacturer

String

The manufacturer of the product.

visible

Boolean

Indicates if the product is visible in the online shop. Can be true or false.

onSale

Boolean

Indicates if the product is on offer. Can be true or false.

productIdentifiers[].type

String

The product code to identify and classify the product. Can be EAN, UPC, ISBN, or MPN.

productIdentifiers[].value

String

The actual value of the product identifier.

essentialFeatures

String

The essential product properties of the product. Shown in the cart and checkout. In Germany mandatory field in online shops according to §312j Abs. 2 BGB (German Civil Code).

tags

Array

The tags assigned to a product.

taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

shippingWeight

Number

The weight of the product including packaging in g.

maxOrderQuantity

Number

Displays how often this product can be ordered at maximum in one order.

shippingPeriod.minDays

Number

The minimum required days for shipping.

shippingPeriod.maxDays

Null

The maximum required days for shipping.

shippingPeriod.displayUnit

String

The unit to show the shipping period. Use DAYS or WEEKS.

shippingDimension.length

Number

The length of the product including packaging in mm.

shippingDimension.width

Number

The width of the product including packaging in mm.

shippingDimension.height

Number

The height of the product including packaging in mm.

refPrice

Object

The reference price of a product.

refPrice.refQuantity

Number

The reference quantity of the product.

refPrice.quantity

Number

The quantity in the product.

refPrice.unit

String

The unit of the quantity.

refPrice.price

Object

The price information scaled to a standardised base unit, according to the German base price regulation “Preisangabenverordnung” (PAngV), e.g. 1 l = 1.20 EUR. Is null if no reference amount is specified for the product.

_embedded.availability

Object

The information about the availability of the product.

Links

Relation Description

product

The templated self link of the product. Current representation of the resource. See Hypermedia.

availability

The link to the information about product availability.

images

The link to the product image.

attachments

The product attachments resource.

default-image

The link to the default product image.

default-image-data

Download URL of the default image.

default-image-metadata

The URL to the image metadata of the default image.

google-shopping

The link to a product relation to Google Shopping.

amazon

The link to a product relation to Amazon.

attributes

The product properties resource.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 3574

{
  "_embedded" : {
    "availability" : {
      "availabilityState" : "IN_STOCK",
      "availableStock" : null,
      "stockThreshold" : null,
      "purchasable" : true,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/86eb6945-a927-4bf9-910d-edf0a372eb40/availability"
        }
      }
    }
  },
  "sku" : "vino020",
  "salesPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 8.7,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 54.989,
      "taxRate" : 0.011
    }
  },
  "listPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 10.95,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 76.989,
      "taxRate" : 0.011
    }
  },
  "manufacturerPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 99.95,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 118.9405,
      "taxRate" : 0.19
    }
  },
  "onSale" : true,
  "tags" : [ "Bestseller", "Red Wine", "Sale" ],
  "productIdentifiers" : [ {
    "type" : "EAN",
    "value" : "9780134308135"
  } ],
  "visible" : true,
  "taxClass" : "REGULAR",
  "shippingWeight" : 100,
  "maxOrderQuantity" : 6,
  "shippingDimension" : {
    "length" : 1500,
    "width" : 1000,
    "height" : 2000
  },
  "refPrice" : {
    "refQuantity" : 1,
    "unit" : "LITER",
    "quantity" : 0.75,
    "price" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 11.6,
      "derivedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 73.319,
        "taxRate" : 0.011
      }
    }
  },
  "shippingPeriod" : {
    "minDays" : 2,
    "maxDays" : null,
    "displayUnit" : "WEEKS"
  },
  "name" : "Rioja Castillo de Puerto (2013)",
  "description" : "Spain\nRioja Tempranillo",
  "manufacturer" : "Grape Vineyard",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "_id" : "86eb6945-a927-4bf9-910d-edf0a372eb40",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/86eb6945-a927-4bf9-910d-edf0a372eb40"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/86eb6945-a927-4bf9-910d-edf0a372eb40"
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/86eb6945-a927-4bf9-910d-edf0a372eb40/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/86eb6945-a927-4bf9-910d-edf0a372eb40/attributes"
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/86eb6945-a927-4bf9-910d-edf0a372eb40/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/86eb6945-a927-4bf9-910d-edf0a372eb40/images"
    },
    "amazon" : {
      "href" : "http://amazon/amazon-products/86eb6945-a927-4bf9-910d-edf0a372eb40"
    },
    "google-shopping" : {
      "href" : "http://google-shopping/google-products/86eb6945-a927-4bf9-910d-edf0a372eb40"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/86eb6945-a927-4bf9-910d-edf0a372eb40/default-image"
    },
    "default-image-data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998{&width,height,upscale}",
      "templated" : true
    },
    "default-image-metadata" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998&download=no"
    }
  }
}

Update product partially (json patch)

A PATCH request is used to update a product partially with json patch content type.

Required scopes

prod:u

Request body properties

Path Type Description

.[]

Array

A list of JSON Patch operations.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/ab5ade89-eeae-439e-b74e-74d4ff7e142a' -i -X PATCH \
    -H 'Content-Type: application/json-patch+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '[ {
  "op" : "test",
  "path" : "/name",
  "value" : "Rioja Castillo de Puerto (2013)"
}, {
  "op" : "replace",
  "path" : "/name",
  "value" : "patched name"
}, {
  "op" : "replace",
  "path" : "/manufacturer",
  "value" : "patched manufacturer"
}, {
  "op" : "add",
  "path" : "/tags/-",
  "value" : "new tag"
}, {
  "op" : "remove",
  "path" : "/productIdentifiers"
}, {
  "op" : "replace",
  "path" : "/salesPrice",
  "value" : {
    "taxModel" : "NET",
    "amount" : 9.0,
    "currency" : "EUR"
  }
} ]'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 2871

{
  "_embedded" : {
    "availability" : {
      "availabilityState" : "IN_STOCK",
      "availableStock" : null,
      "stockThreshold" : null,
      "purchasable" : true,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/ab5ade89-eeae-439e-b74e-74d4ff7e142a/availability"
        }
      }
    }
  },
  "sku" : "vino020",
  "salesPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 9,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 9.9,
      "taxRate" : 0.1
    }
  },
  "listPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 10.95,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 12.045,
      "taxRate" : 0.1
    }
  },
  "manufacturerPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 99.95,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 109.945,
      "taxRate" : 0.1
    }
  },
  "onSale" : true,
  "tags" : [ "Bestseller", "Red Wine", "Sale", "new tag" ],
  "productIdentifiers" : null,
  "visible" : true,
  "taxClass" : "REGULAR",
  "shippingWeight" : 100,
  "maxOrderQuantity" : 6,
  "shippingDimension" : {
    "length" : 1500,
    "width" : 1000,
    "height" : 2000
  },
  "refPrice" : {
    "refQuantity" : 1,
    "unit" : "LITER",
    "quantity" : 0.75,
    "price" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 12,
      "derivedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 13.2,
        "taxRate" : 0.1
      }
    }
  },
  "shippingPeriod" : {
    "minDays" : 2,
    "maxDays" : null,
    "displayUnit" : "WEEKS"
  },
  "name" : "patched name",
  "description" : "Spain\nRioja Tempranillo",
  "manufacturer" : "patched manufacturer",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "_id" : "ab5ade89-eeae-439e-b74e-74d4ff7e142a",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ab5ade89-eeae-439e-b74e-74d4ff7e142a"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ab5ade89-eeae-439e-b74e-74d4ff7e142a"
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ab5ade89-eeae-439e-b74e-74d4ff7e142a/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ab5ade89-eeae-439e-b74e-74d4ff7e142a/attributes"
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ab5ade89-eeae-439e-b74e-74d4ff7e142a/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ab5ade89-eeae-439e-b74e-74d4ff7e142a/images"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ab5ade89-eeae-439e-b74e-74d4ff7e142a/default-image"
    }
  }
}

Update product partially (json)

A PATCH request is used to update a product partially with json content type.

Required scopes

prod:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/7d9657de-faea-470a-a5f5-14768b13e91d' -i -X PATCH \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "name" : "patched name",
  "description" : "patched description. <p><br></p><blockquote> <ol><li><strong>\n<h1></h1><h6></h6><em><a href=\"http://example.com\" target=\"_blank\"><u>this is my test html</u></a>\n</em></strong> </li></ol> </blockquote>",
  "productIdentifiers" : null,
  "manufacturer" : "patched manufacturer"
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 3048

{
  "_embedded" : {
    "availability" : {
      "availabilityState" : "IN_STOCK",
      "availableStock" : null,
      "stockThreshold" : null,
      "purchasable" : true,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/7d9657de-faea-470a-a5f5-14768b13e91d/availability"
        }
      }
    }
  },
  "sku" : "vino020",
  "salesPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 8.7,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 9.57,
      "taxRate" : 0.1
    }
  },
  "listPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 10.95,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 12.045,
      "taxRate" : 0.1
    }
  },
  "manufacturerPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 99.95,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 109.945,
      "taxRate" : 0.1
    }
  },
  "onSale" : true,
  "tags" : [ "Bestseller", "Red Wine", "Sale" ],
  "productIdentifiers" : null,
  "visible" : true,
  "taxClass" : "REGULAR",
  "shippingWeight" : 100,
  "maxOrderQuantity" : 6,
  "shippingDimension" : {
    "length" : 1500,
    "width" : 1000,
    "height" : 2000
  },
  "refPrice" : {
    "refQuantity" : 1,
    "unit" : "LITER",
    "quantity" : 0.75,
    "price" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 11.6,
      "derivedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 12.76,
        "taxRate" : 0.1
      }
    }
  },
  "shippingPeriod" : {
    "minDays" : 2,
    "maxDays" : null,
    "displayUnit" : "WEEKS"
  },
  "name" : "patched name",
  "description" : "patched description. <p><br></p><blockquote> <ol><li><strong>\n<h1></h1><h6></h6><em><a href=\"http://example.com\" target=\"_blank\"><u>this is my test html</u></a>\n</em></strong> </li></ol> </blockquote>",
  "manufacturer" : "patched manufacturer",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "_id" : "7d9657de-faea-470a-a5f5-14768b13e91d",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d9657de-faea-470a-a5f5-14768b13e91d"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d9657de-faea-470a-a5f5-14768b13e91d"
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d9657de-faea-470a-a5f5-14768b13e91d/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d9657de-faea-470a-a5f5-14768b13e91d/attributes"
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d9657de-faea-470a-a5f5-14768b13e91d/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d9657de-faea-470a-a5f5-14768b13e91d/images"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d9657de-faea-470a-a5f5-14768b13e91d/default-image"
    }
  }
}

Delete product

A DELETE request is used to delete a product.

Required scopes

prod:d

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/f9c9aebd-7acf-49e4-9e1d-23ef009693a1' -i -X DELETE \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
X-Frame-Options: DENY

A search resource is used as an entry point for links to sub-resources offering dedicated product-related searches. Currently the following search options are offered:

Find existing attribute values

A GET request is used to search for a product by SKU.

Required scopes

prod:r

Request parameters

Parameter Description

sku

The stock keeping unit (SKU) corresponding to the product to search for.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/search/find-by-sku?sku=vino020' -i -X GET \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

sku

String

The stock keeping unit (SKU) corresponding to the product.

name

String

The name of the product.

visible

Boolean

Indicates if the product is visible in the online shop. Can be true or false.

tags

Array

The tags assigned to a product.

salesPrice

Object

The reduced price of a product that is currently on offer.

salesPrice.amount

Number

The amount of the offer price.

salesPrice.currency

String

The currency of the offer price.

salesPrice.taxModel

String

The tax model of the offer price. Can be GROSS or NET.

listPrice

Object

The price of the product without any discounts.

listPrice.amount

Number

The amount of the list price.

listPrice.currency

String

The currency of the list price.

listPrice.taxModel

String

The tax model of the list price. Can be GROSS or NET.

listPrice

Object

The price of the product without any discounts.

manufacturerPrice

Object

The manufacturer’s suggested retail price of the product.

manufacturerPrice.amount

Number

The amount of the manufacturer’s suggested retail price.

manufacturerPrice.currency

String

The currency of the manufacturer’s suggested retail price.

manufacturerPrice.taxModel

String

The tax model of the manufacturer’s suggested retail price. Can be GROSS or NET.

_id

String

The immutable, unique identifier of the requested resource.

salesPrice.derivedPrice

Object

The calculated price with taxes applied (read-only).

listPrice.derivedPrice

Object

The calculated price with taxes applied (read-only).

manufacturerPrice.derivedPrice

Object

The calculated manufacturer’s suggested retail price with taxes applied (read-only).

name

String

The name of the product.

description

String

The description of the product.

manufacturer

String

The manufacturer of the product.

visible

Boolean

Indicates if the product is visible in the online shop. Can be true or false.

onSale

Boolean

Indicates if the product is on offer. Can be true or false.

productIdentifiers[].type

String

The product code to identify and classify the product. Can be EAN, UPC, ISBN, or MPN.

productIdentifiers[].value

String

The actual value of the product identifier.

essentialFeatures

String

The essential product properties of the product. Shown in the cart and checkout. In Germany mandatory field in online shops according to §312j Abs. 2 BGB (German Civil Code).

tags

Array

The tags assigned to a product.

taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

shippingWeight

Number

The weight of the product including packaging in g.

maxOrderQuantity

Number

Displays how often this product can be ordered at maximum in one order.

shippingPeriod.minDays

Number

The minimum required days for shipping.

shippingPeriod.maxDays

Null

The maximum required days for shipping.

shippingPeriod.displayUnit

String

The unit to show the shipping period. Use DAYS or WEEKS.

shippingDimension.length

Number

The length of the product including packaging in mm.

shippingDimension.width

Number

The width of the product including packaging in mm.

shippingDimension.height

Number

The height of the product including packaging in mm.

refPrice

Object

The reference price of a product.

refPrice.refQuantity

Number

The reference quantity of the product.

refPrice.quantity

Number

The quantity in the product.

refPrice.unit

String

The unit of the quantity.

refPrice.price

Object

The price information scaled to a standardised base unit, according to the German base price regulation “Preisangabenverordnung” (PAngV), e.g. 1 l = 1.20 EUR. Is null if no reference amount is specified for the product.

_embedded.availability

Object

The information about the availability of the product.

Links

Relation Description

product

The templated self link of the product. Current representation of the resource. See Hypermedia.

availability

The link to the information about product availability.

images

The link to the product image.

attachments

The product attachments resource.

default-image

The link to the default product image.

default-image-data

Download URL of the default image.

default-image-metadata

The URL to the image metadata of the default image.

google-shopping

The link to a product relation to Google Shopping.

amazon

The link to a product relation to Amazon.

attributes

The product properties resource.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 3574

{
  "_embedded" : {
    "availability" : {
      "availabilityState" : "IN_STOCK",
      "availableStock" : null,
      "stockThreshold" : null,
      "purchasable" : true,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/1efafc16-aadf-4969-aca0-e8adab2e277a/availability"
        }
      }
    }
  },
  "sku" : "vino020",
  "salesPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 8.7,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 54.989,
      "taxRate" : 0.011
    }
  },
  "listPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 10.95,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 76.989,
      "taxRate" : 0.011
    }
  },
  "manufacturerPrice" : {
    "taxModel" : "NET",
    "currency" : "EUR",
    "amount" : 99.95,
    "derivedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 118.9405,
      "taxRate" : 0.19
    }
  },
  "onSale" : true,
  "tags" : [ "Bestseller", "Red Wine", "Sale" ],
  "productIdentifiers" : [ {
    "type" : "EAN",
    "value" : "9780134308135"
  } ],
  "visible" : true,
  "taxClass" : "REGULAR",
  "shippingWeight" : 100,
  "maxOrderQuantity" : 6,
  "shippingDimension" : {
    "length" : 1500,
    "width" : 1000,
    "height" : 2000
  },
  "refPrice" : {
    "refQuantity" : 1,
    "unit" : "LITER",
    "quantity" : 0.75,
    "price" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 11.6,
      "derivedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 73.319,
        "taxRate" : 0.011
      }
    }
  },
  "shippingPeriod" : {
    "minDays" : 2,
    "maxDays" : null,
    "displayUnit" : "WEEKS"
  },
  "name" : "Rioja Castillo de Puerto (2013)",
  "description" : "Spain\nRioja Tempranillo",
  "manufacturer" : "Grape Vineyard",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "_id" : "1efafc16-aadf-4969-aca0-e8adab2e277a",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1efafc16-aadf-4969-aca0-e8adab2e277a"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1efafc16-aadf-4969-aca0-e8adab2e277a"
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1efafc16-aadf-4969-aca0-e8adab2e277a/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1efafc16-aadf-4969-aca0-e8adab2e277a/attributes"
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1efafc16-aadf-4969-aca0-e8adab2e277a/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1efafc16-aadf-4969-aca0-e8adab2e277a/images"
    },
    "amazon" : {
      "href" : "http://amazon/amazon-products/1efafc16-aadf-4969-aca0-e8adab2e277a"
    },
    "google-shopping" : {
      "href" : "http://google-shopping/google-products/1efafc16-aadf-4969-aca0-e8adab2e277a"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1efafc16-aadf-4969-aca0-e8adab2e277a/default-image"
    },
    "default-image-data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998{&width,height,upscale}",
      "templated" : true
    },
    "default-image-metadata" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998&download=no"
    }
  }
}

Find used tags

A GET request is used to search used tags by a starting string. All strings are sorted by usage, starting with the biggest.

Required scopes

prod:r

Request parameters

Parameter Description

startsWith

The search tags starting with this string.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/search/tags?startsWith=aw' -i -X GET \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.tags

Array

The tags used with a product ordered by usage.

_links

Object

See Hypermedia

page

Object

See Pagination

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 383

{
  "_embedded" : {
    "tags" : [ {
      "tag" : "awe-inspiring",
      "count" : 1
    }, {
      "tag" : "awesome",
      "count" : 1
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/search/tags?startsWith=aw&page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

List product search meta-information

A GET request will list the product meta information.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/search' -i -X GET \
    -H 'Authorization: Bearer <Access token>'

Links

Relation Description

find-by-sku

The link to find products by SKU.

tags

The link to find products by tags. Ordered by number of usage.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 371

{
  "_links" : {
    "tags" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/search/tags?startsWith={startsWith}",
      "templated" : true
    },
    "find-by-sku" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/search/find-by-sku?sku={sku}",
      "templated" : true
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/search"
    }
  }
}

Show product details

A GET request is used to retrieve the details of a product.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/products/4b233d26-ed18-4939-992f-0c4f902075ec' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_id

String

The unique identifier of the product.

sku

String

The stock keeping unit (SKU) corresponding to the product.

name

String

The name of the product.

description

String

The description of the product.

salesPrice

Object

The price of the product.

listPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

manufacturerPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

onSale

Boolean

Indicates if the product is on offer. Can be true or false.

manufacturer

String

The manufacturer of the product.

essentialFeatures

String

The essential features of the product. Shown in the cart and checkout. In Germany mandatory field in online shops according to §312j Abs. 2 BGB (German Civil Code).

tags

Array

The tags assigned to a product.

shippingDimension

Object

The shipping dimensions of the product displayed in mm.

shippingDimension.length

Number

The length of the product including packaging in mm.

shippingDimension.width

Number

The width of the product including packaging in mm.

shippingDimension.height

Number

The height of the product including packaging in mm.

shippingPeriod

Object

The shipping period for this particular product.

attributes[]

Array

The product properties.

attributes[].key

String

The unique identifier of the product property.

attributes[].displayName

String

The displayed name of the product property.

attributes[].value

String

The value of the product property.

attributes[].format

Null

The format of the attribute value.

attributes[].formattedValue

String

The formatted value of the product property.

refPrice

Object

The price information scaled to a standardised base unit.

refPrice.refQuantity

Number

The reference quantity the product’s reference price is calculated on.

refPrice.quantity

Number

The actual quantity in the product.

refPrice.unit

String

The unit corresponding to the quanity.

refPrice.price

Object

The actual reference price.

availabilityState

String

The current availability state for the product. Can be IN_STOCK, LOW_STOCK, or OUT_OF_STOCK.

listPriceText

String

The text that comes along with the list price.

_links

Object

See Hypermedia

Links

Relation Description

default-image-data

A link relation to the default image URL. See also Hypermedia.

additional-image-data

A link relation to additional image URLs. See also Hypermedia.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 2448

{
  "_id" : "4b233d26-ed18-4939-992f-0c4f902075ec",
  "sku" : "vino020",
  "name" : "Rioja Castillo de Puerto (2013)",
  "salesPrice" : {
    "amount" : 8.7,
    "currency" : "EUR"
  },
  "listPrice" : {
    "amount" : 10.95,
    "currency" : "EUR"
  },
  "manufacturerPrice" : {
    "amount" : 99.95,
    "currency" : "EUR"
  },
  "onSale" : true,
  "listPriceText" : "Old Price",
  "shippingDimension" : {
    "length" : 1500,
    "width" : 1000,
    "height" : 2000
  },
  "refPrice" : {
    "refQuantity" : 1,
    "unit" : "LITER",
    "quantity" : 0.75,
    "price" : {
      "amount" : 11.6,
      "currency" : "EUR"
    }
  },
  "availabilityState" : "IN_STOCK",
  "description" : "Spain\nRioja Tempranillo",
  "manufacturer" : "Grape Vineyard",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "tags" : [ "Bestseller", "Red Wine", "Sale" ],
  "attributes" : [ {
    "key" : "flag",
    "value" : "usa",
    "displayName" : "flag",
    "format" : null,
    "formattedValue" : "usa"
  }, {
    "key" : "slug",
    "value" : "rioja",
    "displayName" : "slug",
    "format" : null,
    "formattedValue" : "rioja"
  }, {
    "key" : "type",
    "value" : "vine",
    "displayName" : "type",
    "format" : null,
    "formattedValue" : "vine"
  } ],
  "shippingPeriod" : {
    "minDays" : null,
    "maxDays" : 4,
    "displayUnit" : "WEEKS"
  },
  "_links" : {
    "default-image-data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-01.jpg?hash=e9a1ce5c0c6abfebec8fb1f6faf77dca7e6e7777{&width,height,upscale}",
      "templated" : true
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/4b233d26-ed18-4939-992f-0c4f902075ec"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/4b233d26-ed18-4939-992f-0c4f902075ec{?projection}",
      "templated" : true
    },
    "additional-image-data" : [ {
      "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-02.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998{&width,height,upscale}",
      "templated" : true
    }, {
      "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-03.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225999{&width,height,upscale}",
      "templated" : true
    }, {
      "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-04.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281226000{&width,height,upscale}",
      "templated" : true
    } ]
  }
}

Show enhanced view of product details

A GET request is used to retrieve enhanced details of a product.

Request parameters

Parameter Description

projection

The projection to apply in order to show an enhanced view of product details. Use enhancedProductProjection.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/products/3ff6c3a5-64c7-416d-a4c8-1a94c0ecd1ea?projection=enhancedProductProjection' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_id

String

The unique identifier of the product.

_indexedAt

String

The time of storing this document in the search index.

sku

String

The stock keeping unit (SKU) corresponding to the product.

salesPrice

Object

The price of the product.

listPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

manufacturerPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

onSale

Boolean

Indicates if the product is on offer. Can be true or false.

name

String

The name of the product.

description

String

The description of the product.

manufacturer

String

The manufacturer of the product.

essentialFeatures

String

The essential features of the product. Shown in the cart and checkout. In Germany mandatory field in online shops according to §312j Abs. 2 BGB (German Civil Code).

tags

Array

The tags assigned to a product.

shippingDimension

Object

The shipping dimensions of the product displayed in mm.

shippingDimension.length

Number

The length of the product including packaging in mm.

shippingDimension.width

Number

The width of the product including packaging in mm.

shippingDimension.height

Number

The height of the product including packaging in mm.

attributes

Array

The product properties.

refPrice

Object

The price information scaled to a standardised base unit.

refPrice.refQuantity

Number

The reference quantity the product’s reference price is calculated on.

refPrice.quantity

Number

The actual quantity in the product.

refPrice.unit

String

The unit corresponding to the quanity.

refPrice.price

Object

The actual reference price.

shippingPeriod

Object

The shipping period for this particular product.

availabilityState

String

The current availability state for the product. Can be IN_STOCK, LOW_STOCK, or OUT_OF_STOCK.

listPriceText

String

The text that comes along with the list price.

_links

Object

See Hypermedia

Links

Relation Description

default-image-data

A link relation to the default image URL. See also Hypermedia.

additional-image-data

A link relation to additional image URLs. See also Hypermedia.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 2492

{
  "_id" : "3ff6c3a5-64c7-416d-a4c8-1a94c0ecd1ea",
  "_indexedAt" : "2018-12-10T13:36:31.623",
  "sku" : "vino020",
  "name" : "Rioja Castillo de Puerto (2013)",
  "salesPrice" : {
    "amount" : 8.7,
    "currency" : "EUR"
  },
  "listPrice" : {
    "amount" : 10.95,
    "currency" : "EUR"
  },
  "manufacturerPrice" : {
    "amount" : 99.95,
    "currency" : "EUR"
  },
  "onSale" : true,
  "listPriceText" : "Old Price",
  "shippingDimension" : {
    "length" : 1500,
    "width" : 1000,
    "height" : 2000
  },
  "refPrice" : {
    "refQuantity" : 1,
    "unit" : "LITER",
    "quantity" : 0.75,
    "price" : {
      "amount" : 11.6,
      "currency" : "EUR"
    }
  },
  "availabilityState" : "IN_STOCK",
  "description" : "Spain\nRioja Tempranillo",
  "manufacturer" : "Grape Vineyard",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "tags" : [ "Bestseller", "Red Wine", "Sale" ],
  "attributes" : [ {
    "key" : "flag",
    "value" : "usa",
    "displayName" : "flag",
    "format" : null,
    "formattedValue" : "usa"
  }, {
    "key" : "slug",
    "value" : "rioja",
    "displayName" : "slug",
    "format" : null,
    "formattedValue" : "rioja"
  }, {
    "key" : "type",
    "value" : "vine",
    "displayName" : "type",
    "format" : null,
    "formattedValue" : "vine"
  } ],
  "shippingPeriod" : {
    "minDays" : null,
    "maxDays" : 4,
    "displayUnit" : "WEEKS"
  },
  "_links" : {
    "default-image-data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-01.jpg?hash=e9a1ce5c0c6abfebec8fb1f6faf77dca7e6e7777{&width,height,upscale}",
      "templated" : true
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/3ff6c3a5-64c7-416d-a4c8-1a94c0ecd1ea"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/3ff6c3a5-64c7-416d-a4c8-1a94c0ecd1ea{?projection}",
      "templated" : true
    },
    "additional-image-data" : [ {
      "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-02.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998{&width,height,upscale}",
      "templated" : true
    }, {
      "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-03.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225999{&width,height,upscale}",
      "templated" : true
    }, {
      "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-04.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281226000{&width,height,upscale}",
      "templated" : true
    } ]
  }
}

List products

A GET request is used to list all products.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/products' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_embedded.products[]._id

String

The unique identifier of the product.

_embedded.products[].sku

String

The stock keeping unit (SKU) corresponding to the product.

_embedded.products[].salesPrice

Object

The price of the product.

_embedded.products[].listPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

_embedded.products[].manufacturerPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

_embedded.products[].onSale

Boolean

Indicates if the product is on offer. Can be true or false.

_embedded.products[].name

String

The name of the product.

_embedded.products[].shippingDimension.length

Number

The length of the product including packaging in mm.

_embedded.products[].shippingDimension.width

Number

The width of the product including packaging in mm.

_embedded.products[].shippingDimension.height

Number

The height of the product including packaging in mm.

_embedded.products[]._links

Object

The links to receive further information related to the product.

_embedded.products[]._links.default-image-data.href

String

A link relation to the default image URL. See also Hypermedia.

_embedded.products[].refPrice

Object

The price information scaled to a standardised base unit.

_embedded.products[].refPrice.refQuantity

Number

The reference quantity the product’s reference price is calculated on.

_embedded.products[].refPrice.quantity

Number

The actual quantity in the product.

_embedded.products[].refPrice.unit

String

The unit corresponding to the quanity.

_embedded.products[].refPrice.price

Object

The actual reference price.

_embedded.products[].availabilityState

String

The current availability state for the product. Can be IN_STOCK, LOW_STOCK, or OUT_OF_STOCK.

_embedded.products[].listPriceText

String

The text that comes along with the list price.

_links

Object

See Hypermedia

page

Object

See Pagination

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 3634

{
  "_embedded" : {
    "products" : [ {
      "_id" : "915c2906-9568-438c-97d4-be085e41acd6",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "salesPrice" : {
        "amount" : 8.7,
        "currency" : "EUR"
      },
      "listPrice" : {
        "amount" : 10.95,
        "currency" : "EUR"
      },
      "manufacturerPrice" : {
        "amount" : 99.95,
        "currency" : "EUR"
      },
      "onSale" : true,
      "listPriceText" : "Old Price",
      "shippingDimension" : {
        "length" : 1500,
        "width" : 1000,
        "height" : 2000
      },
      "refPrice" : {
        "refQuantity" : 1,
        "unit" : "LITER",
        "quantity" : 0.75,
        "price" : {
          "amount" : 11.6,
          "currency" : "EUR"
        }
      },
      "availabilityState" : "IN_STOCK",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-01.jpg?hash=e9a1ce5c0c6abfebec8fb1f6faf77dca7e6e7777{&width,height,upscale}",
          "templated" : true
        },
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/915c2906-9568-438c-97d4-be085e41acd6"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/915c2906-9568-438c-97d4-be085e41acd6{?projection}",
          "templated" : true
        }
      }
    }, {
      "_id" : "669fbbf5-a66d-4601-805f-fd3e591e6c26",
      "sku" : "EB001",
      "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
      "salesPrice" : {
        "amount" : 4.95,
        "currency" : "EUR"
      },
      "listPrice" : null,
      "manufacturerPrice" : null,
      "onSale" : false,
      "listPriceText" : "Old Price",
      "shippingDimension" : {
        "length" : 19,
        "width" : 18,
        "height" : 17
      },
      "refPrice" : null,
      "availabilityState" : "IN_STOCK",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/669fbbf5-a66d-4601-805f-fd3e591e6c26"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/669fbbf5-a66d-4601-805f-fd3e591e6c26{?projection}",
          "templated" : true
        }
      }
    }, {
      "_id" : "73cb62a2-fc3f-462e-a366-e84f3ec4db95",
      "sku" : "sh-001",
      "name" : "Soft Walk Ultra - Nibok Men's",
      "salesPrice" : {
        "amount" : 89.0,
        "currency" : "EUR"
      },
      "listPrice" : {
        "amount" : 99.99,
        "currency" : "EUR"
      },
      "manufacturerPrice" : null,
      "onSale" : true,
      "listPriceText" : "Old Price",
      "shippingDimension" : {
        "length" : 80,
        "width" : 80,
        "height" : 40
      },
      "refPrice" : null,
      "availabilityState" : "IN_STOCK",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/nibok-men.jpg?hash=e9a1ce5c0c6abfebec8fb1f6faf77dca7e699999{&width,height,upscale}",
          "templated" : true
        },
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/73cb62a2-fc3f-462e-a366-e84f3ec4db95"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/73cb62a2-fc3f-462e-a366-e84f3ec4db95{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products?page=0&size=40"
    }
  },
  "page" : {
    "size" : 40,
    "totalElements" : 3,
    "totalPages" : 1,
    "number" : 0
  }
}

List products by tags

A GET request is used to search for products matching any tag of the list given by a client. The intention is to offer product search capabilities for the storefront.

Request parameters

Parameter Description

tag

The tags assigned to a product that MUST be matched for the search request.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/products/search/find-by-tags?tag=number0' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_embedded.products[]._id

String

The unique identifier of the product.

_embedded.products[].sku

String

The stock keeping unit (SKU) corresponding to the product.

_embedded.products[].salesPrice

Object

The price of the product.

_embedded.products[].listPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

_embedded.products[].manufacturerPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

_embedded.products[].onSale

Boolean

Indicates if the product is on offer. Can be true or false.

_embedded.products[].name

String

The name of the product.

_embedded.products[].shippingDimension.length

Number

The length of the product including packaging in mm.

_embedded.products[].shippingDimension.width

Number

The width of the product including packaging in mm.

_embedded.products[].shippingDimension.height

Number

The height of the product including packaging in mm.

_embedded.products[]._links

Object

The links to receive further information related to the product.

_embedded.products[]._links.default-image-data.href

String

A link relation to the default image URL. See also Hypermedia.

_embedded.products[].refPrice

Object

The price information scaled to a standardised base unit.

_embedded.products[].refPrice.refQuantity

Number

The reference quantity the product’s reference price is calculated on.

_embedded.products[].refPrice.quantity

Number

The actual quantity in the product.

_embedded.products[].refPrice.unit

String

The unit corresponding to the quanity.

_embedded.products[].refPrice.price

Object

The actual reference price.

_embedded.products[].availabilityState

String

The current availability state for the product. Can be IN_STOCK, LOW_STOCK, or OUT_OF_STOCK.

_embedded.products[].listPriceText

String

The text that comes along with the list price.

_links

Object

See Hypermedia

page

Object

See Pagination

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1672

{
  "_embedded" : {
    "products" : [ {
      "_id" : "0b8d663f-2f40-47cb-b5dd-175e7054a406",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "salesPrice" : {
        "amount" : 8.7,
        "currency" : "EUR"
      },
      "listPrice" : {
        "amount" : 10.95,
        "currency" : "EUR"
      },
      "manufacturerPrice" : {
        "amount" : 99.95,
        "currency" : "EUR"
      },
      "onSale" : true,
      "listPriceText" : "Old Price",
      "shippingDimension" : {
        "length" : 1500,
        "width" : 1000,
        "height" : 2000
      },
      "refPrice" : {
        "refQuantity" : 1,
        "unit" : "LITER",
        "quantity" : 0.75,
        "price" : {
          "amount" : 11.6,
          "currency" : "EUR"
        }
      },
      "availabilityState" : "IN_STOCK",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-01.jpg?hash=e9a1ce5c0c6abfebec8fb1f6faf77dca7e6e7777{&width,height,upscale}",
          "templated" : true
        },
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/0b8d663f-2f40-47cb-b5dd-175e7054a406"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/0b8d663f-2f40-47cb-b5dd-175e7054a406{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/search/find-by-tags?page=0&size=40&sort=createdAt,desc"
    }
  },
  "page" : {
    "size" : 40,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

List available tags

A GET request is used to list all available tags.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/products/search/find-available-tags' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_embedded.tags[].tag

String

The name of the tag.

_embedded.tags[].count

Number

Counts how often the tag appears in all products.

_links

Object

See Hypermedia

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 693

{
  "_embedded" : {
    "tags" : [ {
      "tag" : "Bestseller",
      "count" : 3
    }, {
      "tag" : "Casual",
      "count" : 1
    }, {
      "tag" : "High Protein",
      "count" : 1
    }, {
      "tag" : "Men",
      "count" : 1
    }, {
      "tag" : "Nibok",
      "count" : 1
    }, {
      "tag" : "Power Bar",
      "count" : 1
    }, {
      "tag" : "Red Wine",
      "count" : 1
    }, {
      "tag" : "Sale",
      "count" : 1
    }, {
      "tag" : "Shoes",
      "count" : 1
    }, {
      "tag" : "Sneakers",
      "count" : 1
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/search/find-available-tags"
    }
  }
}

List products by term

A GET request is used to search for products using a search query.

Request parameters

Parameter Description

query

The search term for the search request. If empty an unfiltered result is returned.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/products/search/find-by-search-term?query=search+snippet' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_embedded.products[]._id

String

The unique identifier of the product.

_embedded.products[].sku

String

The stock keeping unit (SKU) corresponding to the product.

_embedded.products[].salesPrice

Object

The price of the product.

_embedded.products[].listPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

_embedded.products[].manufacturerPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

_embedded.products[].onSale

Boolean

Indicates if the product is on offer. Can be true or false.

_embedded.products[].name

String

The name of the product.

_embedded.products[].shippingDimension.length

Number

The length of the product including packaging in mm.

_embedded.products[].shippingDimension.width

Number

The width of the product including packaging in mm.

_embedded.products[].shippingDimension.height

Number

The height of the product including packaging in mm.

_embedded.products[]._links

Object

The links to receive further information related to the product.

_embedded.products[]._links.default-image-data.href

String

A link relation to the default image URL. See also Hypermedia.

_embedded.products[].refPrice

Object

The price information scaled to a standardised base unit.

_embedded.products[].refPrice.refQuantity

Number

The reference quantity the product’s reference price is calculated on.

_embedded.products[].refPrice.quantity

Number

The actual quantity in the product.

_embedded.products[].refPrice.unit

String

The unit corresponding to the quanity.

_embedded.products[].refPrice.price

Object

The actual reference price.

_embedded.products[].availabilityState

String

The current availability state for the product. Can be IN_STOCK, LOW_STOCK, or OUT_OF_STOCK.

_embedded.products[].listPriceText

String

The text that comes along with the list price.

_links

Object

See Hypermedia

page

Object

See Pagination

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 2791

{
  "_embedded" : {
    "products" : [ {
      "_id" : "44113a1f-9a62-4a81-956c-40eb16dcaca1",
      "sku" : "sh-001",
      "name" : "Soft Walk Ultra - Nibok Men's",
      "salesPrice" : {
        "amount" : 89.0,
        "currency" : "EUR"
      },
      "listPrice" : {
        "amount" : 99.99,
        "currency" : "EUR"
      },
      "manufacturerPrice" : null,
      "onSale" : true,
      "listPriceText" : "Old Price",
      "shippingDimension" : {
        "length" : 80,
        "width" : 80,
        "height" : 40
      },
      "refPrice" : null,
      "availabilityState" : "IN_STOCK",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/nibok-men.jpg?hash=e9a1ce5c0c6abfebec8fb1f6faf77dca7e699999{&width,height,upscale}",
          "templated" : true
        },
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/44113a1f-9a62-4a81-956c-40eb16dcaca1"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/44113a1f-9a62-4a81-956c-40eb16dcaca1{?projection}",
          "templated" : true
        }
      }
    }, {
      "_id" : "d05b1bc5-d9a1-4fe6-84f1-5a3b21302997",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "salesPrice" : {
        "amount" : 8.7,
        "currency" : "EUR"
      },
      "listPrice" : {
        "amount" : 10.95,
        "currency" : "EUR"
      },
      "manufacturerPrice" : {
        "amount" : 99.95,
        "currency" : "EUR"
      },
      "onSale" : true,
      "listPriceText" : "Old Price",
      "shippingDimension" : {
        "length" : 1500,
        "width" : 1000,
        "height" : 2000
      },
      "refPrice" : {
        "refQuantity" : 1,
        "unit" : "LITER",
        "quantity" : 0.75,
        "price" : {
          "amount" : 11.6,
          "currency" : "EUR"
        }
      },
      "availabilityState" : "IN_STOCK",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-01.jpg?hash=e9a1ce5c0c6abfebec8fb1f6faf77dca7e6e7777{&width,height,upscale}",
          "templated" : true
        },
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/d05b1bc5-d9a1-4fe6-84f1-5a3b21302997"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/d05b1bc5-d9a1-4fe6-84f1-5a3b21302997{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/search/find-by-search-term?page=0&size=40"
    }
  },
  "page" : {
    "size" : 40,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

List products by category

A GET request is used to search for products using a category id.

Request parameters

Parameter Description

categoryId

The unique identifier of the category a product is assigned to. Can be used to query products.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/products/search/find-by-category?categoryId=36f5ee01-8f8c-4f1d-b9a7-721ffec7f9a7' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_embedded.products[]._id

String

The unique identifier of the product.

_embedded.products[].sku

String

The stock keeping unit (SKU) corresponding to the product.

_embedded.products[].salesPrice

Object

The price of the product.

_embedded.products[].listPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

_embedded.products[].manufacturerPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

_embedded.products[].onSale

Boolean

Indicates if the product is on offer. Can be true or false.

_embedded.products[].name

String

The name of the product.

_embedded.products[].shippingDimension.length

Number

The length of the product including packaging in mm.

_embedded.products[].shippingDimension.width

Number

The width of the product including packaging in mm.

_embedded.products[].shippingDimension.height

Number

The height of the product including packaging in mm.

_embedded.products[]._links

Object

The links to receive further information related to the product.

_embedded.products[]._links.default-image-data.href

String

A link relation to the default image URL. See also Hypermedia.

_embedded.products[].refPrice

Object

The price information scaled to a standardised base unit.

_embedded.products[].refPrice.refQuantity

Number

The reference quantity the product’s reference price is calculated on.

_embedded.products[].refPrice.quantity

Number

The actual quantity in the product.

_embedded.products[].refPrice.unit

String

The unit corresponding to the quanity.

_embedded.products[].refPrice.price

Object

The actual reference price.

_embedded.products[].availabilityState

String

The current availability state for the product. Can be IN_STOCK, LOW_STOCK, or OUT_OF_STOCK.

_embedded.products[].listPriceText

String

The text that comes along with the list price.

_links

Object

See Hypermedia

page

Object

See Pagination

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1704

{
  "_embedded" : {
    "products" : [ {
      "_id" : "14b689b9-b127-485a-bbf6-81e29ab34442",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "salesPrice" : {
        "amount" : 8.7,
        "currency" : "EUR"
      },
      "listPrice" : {
        "amount" : 10.95,
        "currency" : "EUR"
      },
      "manufacturerPrice" : {
        "amount" : 99.95,
        "currency" : "EUR"
      },
      "onSale" : true,
      "listPriceText" : "Old Price",
      "shippingDimension" : {
        "length" : 1500,
        "width" : 1000,
        "height" : 2000
      },
      "refPrice" : {
        "refQuantity" : 1,
        "unit" : "LITER",
        "quantity" : 0.75,
        "price" : {
          "amount" : 11.6,
          "currency" : "EUR"
        }
      },
      "availabilityState" : "IN_STOCK",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-01.jpg?hash=e9a1ce5c0c6abfebec8fb1f6faf77dca7e6e7777{&width,height,upscale}",
          "templated" : true
        },
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/14b689b9-b127-485a-bbf6-81e29ab34442"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/14b689b9-b127-485a-bbf6-81e29ab34442{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/search/find-by-category?categoryId=36f5ee01-8f8c-4f1d-b9a7-721ffec7f9a7&page=0&size=40"
    }
  },
  "page" : {
    "size" : 40,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

List products by query

A POST request is used to search for products using a query provided as request body.

Request body properties

Path Type Description

query

Object

The Elasticsearch query, see Search Request Query.

sort

String

The Elasticsearch sort, see Search Request Sort.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/products/search/find-by-query' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -d '{ "query": {"bool":{"filter":[{"term":{"tags":"number0"}},{"range":{"salesPrice.amount":{"lte":8.7}}},{"range":{"createdAt":{"gte":"now-1h"}}}]}}, "sort": "name"}'

Response body properties

Path Type Description

_embedded.products[]._id

String

The unique identifier of the product.

_embedded.products[].sku

String

The stock keeping unit (SKU) corresponding to the product.

_embedded.products[].salesPrice

Object

The price of the product.

_embedded.products[].listPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

_embedded.products[].manufacturerPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

_embedded.products[].onSale

Boolean

Indicates if the product is on offer. Can be true or false.

_embedded.products[].name

String

The name of the product.

_embedded.products[].shippingDimension.length

Number

The length of the product including packaging in mm.

_embedded.products[].shippingDimension.width

Number

The width of the product including packaging in mm.

_embedded.products[].shippingDimension.height

Number

The height of the product including packaging in mm.

_embedded.products[]._links

Object

The links to receive further information related to the product.

_embedded.products[]._links.default-image-data.href

String

A link relation to the default image URL. See also Hypermedia.

_embedded.products[].refPrice

Object

The price information scaled to a standardised base unit.

_embedded.products[].refPrice.refQuantity

Number

The reference quantity the product’s reference price is calculated on.

_embedded.products[].refPrice.quantity

Number

The actual quantity in the product.

_embedded.products[].refPrice.unit

String

The unit corresponding to the quanity.

_embedded.products[].refPrice.price

Object

The actual reference price.

_embedded.products[].availabilityState

String

The current availability state for the product. Can be IN_STOCK, LOW_STOCK, or OUT_OF_STOCK.

_embedded.products[].listPriceText

String

The text that comes along with the list price.

_links

Object

See Hypermedia

page

Object

See Pagination

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1653

{
  "_embedded" : {
    "products" : [ {
      "_id" : "2329a84d-7f78-4406-a93d-d990835b0e7b",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "salesPrice" : {
        "amount" : 8.7,
        "currency" : "EUR"
      },
      "listPrice" : {
        "amount" : 10.95,
        "currency" : "EUR"
      },
      "manufacturerPrice" : {
        "amount" : 99.95,
        "currency" : "EUR"
      },
      "onSale" : true,
      "listPriceText" : "Old Price",
      "shippingDimension" : {
        "length" : 1500,
        "width" : 1000,
        "height" : 2000
      },
      "refPrice" : {
        "refQuantity" : 1,
        "unit" : "LITER",
        "quantity" : 0.75,
        "price" : {
          "amount" : 11.6,
          "currency" : "EUR"
        }
      },
      "availabilityState" : "IN_STOCK",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/storage-api/images/rioja-01.jpg?hash=e9a1ce5c0c6abfebec8fb1f6faf77dca7e6e7777{&width,height,upscale}",
          "templated" : true
        },
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/2329a84d-7f78-4406-a93d-d990835b0e7b"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/2329a84d-7f78-4406-a93d-d990835b0e7b{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/search/find-by-query?page=0&size=40"
    }
  },
  "page" : {
    "size" : 40,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Example queries

A query for products having either tag cupcake or cake and a price greater or equal than 3.

{
  "query": {
    "bool": {
      "filter": [
        {
          "terms": {
            "tags": [
              "cupcake",
              "cake"
            ]
          }
        },
        {
          "range": {
            "salesPrice.amount": {
              "gte": 3
            }
          }
        }
      ]
    }
  }
}

A query for products having a custom integer attribute vol with a value less or equal than 14 and having either tag beer or wine.

{
  "query": {
    "bool": {
      "filter": [
        { "nested": {
            "path": "attributes",
            "query": {
              "bool": {
                "filter": [
                  { "term": { "attributes.name": "vol" } },
                  { "range": { "attributes.numericValue": { "lte": 14 } } }
                ]
              }
            }
          }
        },
        { "terms": { "tags": [ "beer", "wine" ] } }
      ]
    }
  }
}

A query for products having three custom attributes length, width and height each being less than 300.

{
  "query": {
    "bool": {
      "filter": [
        { "nested": {
            "path": "attributes",
            "query": {
              "bool": {
                "filter": [
                  { "term": { "attributes.name": "length" } },
                  { "range": { "attributes.numericValue": { "lt": 300 } } }
                ]
              }
            }
          }
        },
        { "nested": {
            "path": "attributes",
            "query": {
              "bool": {
                "filter": [
                  { "term": { "attributes.name": "width" } },
                  { "range": { "attributes.numericValue": { "lt": 300 } } }
                ]
              }
            }
          }
        },
        { "nested": {
            "path": "attributes",
            "query": {
              "bool": {
                "filter": [
                  { "term": { "attributes.name": "height" } },
                  { "range": { "attributes.numericValue": { "lt": 300 } } }
                ]
              }
            }
          }
        }
      ]
    }
  }
}

Product Attachments

List product attachments

A GET request is used to retrieve the attachments of a product.

Required scopes

prod:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/b8d9956b-01fd-48fb-ad07-475eb7c5834a/attachments' -i -X GET \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

page

Object

See Pagination

Links

Relation Description

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 2065

{
  "_embedded" : {
    "attachments" : [ {
      "mimeType" : "application/pdf",
      "length" : 1,
      "label" : "Handbuch",
      "_id" : "8e6d029c-a90c-473c-b068-a58a974e439f",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/b8d9956b-01fd-48fb-ad07-475eb7c5834a/attachments/8e6d029c-a90c-473c-b068-a58a974e439f"
        },
        "data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/attachments/1_my_attachment.pdf?hash=8a627f655c68f56dfbbf217ab7d5563281225801"
        },
        "metadata" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/attachments/1_my_attachment.pdf?hash=8a627f655c68f56dfbbf217ab7d5563281225801&download=no"
        },
        "attachment" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/b8d9956b-01fd-48fb-ad07-475eb7c5834a/attachments/8e6d029c-a90c-473c-b068-a58a974e439f"
        }
      }
    }, {
      "mimeType" : "application/pdf",
      "length" : 1,
      "label" : "Handbuch",
      "_id" : "a96be8b2-d8cb-4892-8740-29ed2316ac82",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/b8d9956b-01fd-48fb-ad07-475eb7c5834a/attachments/a96be8b2-d8cb-4892-8740-29ed2316ac82"
        },
        "data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/attachments/2_my_attachment.pdf?hash=8a627f655c68f56dfbbf217ab7d5563281225802"
        },
        "metadata" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/attachments/2_my_attachment.pdf?hash=8a627f655c68f56dfbbf217ab7d5563281225802&download=no"
        },
        "attachment" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/b8d9956b-01fd-48fb-ad07-475eb7c5834a/attachments/a96be8b2-d8cb-4892-8740-29ed2316ac82"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/b8d9956b-01fd-48fb-ad07-475eb7c5834a/attachments?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

Show product attachment details

A GET request is used to retrieve a single attachment of a product.

Required scopes

prod:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/7da0b9db-2423-488e-8422-7ac20428580b/attachments/52dda8c6-a4ad-4cfc-a4db-ca696b2a1822' -i -X GET \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_id

String

The immutable, unique identifier of the requested resource.

mimeType

String

The media type of the product attachment.

length

Number

The length of the product attachment.

label

String

The label of the product attachment.

_links

Object

See Hypermedia

Links

Relation Description

data

Absolute URI to retrieve the binary data.

metadata

Absolute URI to retrieve the metadata.

attachment

The templated self link of the product attachment. Current representation of the resource. See Hypermedia.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 803

{
  "mimeType" : "application/pdf",
  "length" : 1,
  "label" : "Handbuch",
  "_id" : "52dda8c6-a4ad-4cfc-a4db-ca696b2a1822",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7da0b9db-2423-488e-8422-7ac20428580b/attachments/52dda8c6-a4ad-4cfc-a4db-ca696b2a1822"
    },
    "data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/attachments/1_my_attachment.pdf?hash=8a627f655c68f56dfbbf217ab7d5563281225801"
    },
    "metadata" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/attachments/1_my_attachment.pdf?hash=8a627f655c68f56dfbbf217ab7d5563281225801&download=no"
    },
    "attachment" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7da0b9db-2423-488e-8422-7ac20428580b/attachments/52dda8c6-a4ad-4cfc-a4db-ca696b2a1822"
    }
  }
}

Add product attachment

A POST request is used to create an attachment and add it to a product.

Required scopes

prod:u

Request body properties

Path Type Description Constraints

dataUri

String

The templated relative download URL of the product attachment.

Must be a valid storage service URI (must contain a hash query parameter). Must not be null

mimeType

String

The media type of the product attachment.

Must not be null

length

Number

The length of the product attachment.

Must be greater than 1 and less than 9223372036854775807. Must not be null

label

String

The label of the product attachment.

Must not be null

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/882a6936-5418-4d92-859f-cbd99ecfe0f0/attachments' -i -X POST \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "mimeType" : "application/pdf",
  "length" : 1,
  "label" : "Handbuch",
  "dataUri" : "my_document_1.pdf?hash=8a627f655c68f56dfbbf217ab7d5563281225666"
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/products/882a6936-5418-4d92-859f-cbd99ecfe0f0/attachments/dfaaff3b-f435-4139-9950-b58e32bab540
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 799

{
  "mimeType" : "application/pdf",
  "length" : 1,
  "label" : "Handbuch",
  "_id" : "dfaaff3b-f435-4139-9950-b58e32bab540",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/882a6936-5418-4d92-859f-cbd99ecfe0f0/attachments/dfaaff3b-f435-4139-9950-b58e32bab540"
    },
    "data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/attachments/my_document_1.pdf?hash=8a627f655c68f56dfbbf217ab7d5563281225666"
    },
    "metadata" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/attachments/my_document_1.pdf?hash=8a627f655c68f56dfbbf217ab7d5563281225666&download=no"
    },
    "attachment" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/882a6936-5418-4d92-859f-cbd99ecfe0f0/attachments/dfaaff3b-f435-4139-9950-b58e32bab540"
    }
  }
}

Delete product attachment

A DELETE request is used to delete a product attachment.

Required scopes

prod:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/cc74dd53-0083-440d-8c20-6d73ca39b108/attachments/d87ee165-8c94-40d1-bed8-e99850a012fe' -i -X DELETE \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
X-Frame-Options: DENY

Product Attribute Definitions

Attribute definitions provide meta data for attributes. An attribute definition is a precondition to create product attributes

List product attribute definitions

A GET request will list the available product attribute definitions.

Required scopes

prad:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-attribute-definitions' -i -X GET \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

page

Object

See Pagination

_embedded.product-attribute-definitions[].key

String

(Optional) The key of the product attribute definition. Derived from displayName if not provided.

_embedded.product-attribute-definitions[].displayName

String

The displayed name of the product attribute.

_embedded.product-attribute-definitions[].type

String

The type of the product attribute definition. Can be STRING or NUMBER.

_embedded.product-attribute-definitions[].format

String

(Optional) A format pattern that is applied to the value of each attribute instance.

_embedded.product-attribute-definitions[]._links

Object

See Hypermedia

Links

Relation Description

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 731

{
  "_embedded" : {
    "product-attribute-definitions" : [ {
      "key" : "filling_capacity",
      "format" : "#,###.## ml",
      "type" : "NUMBER",
      "displayName" : "Filling Capacity",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/filling_capacity"
        },
        "product-attribute-definition" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/filling_capacity"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Show product attribute definition details

A GET request is used to retrieve a single attribute definition by name.

Required scopes

prad:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-attribute-definitions/filling_capacity' -i -X GET \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

key

String

(Optional) The key of the product attribute definition. Derived from displayName if not provided.

displayName

String

The displayed name of the product attribute.

type

String

The type of the product attribute definition. Can be STRING or NUMBER.

format

String

(Optional) A format pattern that is applied to the value of each attribute instance.

_links

Object

See Hypermedia

Links

Relation Description

product-attribute-definition

The templated self link of the product property definition. Current representation of the resource. See Hypermedia.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 384

{
  "key" : "filling_capacity",
  "format" : "#,###.## ml",
  "type" : "NUMBER",
  "displayName" : "Filling Capacity",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/filling_capacity"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/filling_capacity"
    }
  }
}

Create product attribute definition

A POST request is used to create an attribute definition.

Creating a number product attribute definition

Required scopes

prad:c

Request body properties

Path Type Description Constraints

key

String

(Optional) The key of the product attribute definition. Derived from displayName if not provided.

Length must be between 0 and 50 inclusive. Must match the regular expression [a-zA-Z:.0-9_\-]+. Must not be null

displayName

String

The displayed name of the product attribute.

Length must be between 0 and 255 inclusive. Must not be empty

type

String

The type of the product attribute definition. Can be STRING or NUMBER.

Must not be null

format

String

(Optional) A format pattern that is applied to the value of each attribute instance.

Length must be between 0 and 50 inclusive. Must be a valid pattern, see DecimalFormat API docs.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-attribute-definitions' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "key" : "filling_capacity",
  "type" : "NUMBER",
  "displayName" : "Filling Capacity",
  "format" : "#,###.## ml"
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/product-attribute-definitions/filling_capacity
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 384

{
  "key" : "filling_capacity",
  "format" : "#,###.## ml",
  "type" : "NUMBER",
  "displayName" : "Filling Capacity",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/filling_capacity"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/filling_capacity"
    }
  }
}
Creating a string product attribute definition

Required scopes

prad:c

Request body properties

Path Type Description Constraints

key

String

(Optional) The key of the product attribute definition. Derived from displayName if not provided.

Length must be between 0 and 50 inclusive. Must match the regular expression [a-zA-Z:.0-9_\-]+. Must not be null

displayName

String

The displayed name of the product attribute.

Length must be between 0 and 255 inclusive. Must not be empty

type

String

The type of the product attribute definition. Can be STRING or NUMBER.

Must not be null

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-attribute-definitions' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "key" : "colour",
  "type" : "STRING",
  "displayName" : "Colour"
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/product-attribute-definitions/colour
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 335

{
  "key" : "colour",
  "format" : null,
  "type" : "STRING",
  "displayName" : "Colour",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/colour"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/colour"
    }
  }
}

Delete a product attribute definition

A DELETE request is used to delete a product definition.

Required scopes

prad:d

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-attribute-definitions/colour' -i -X DELETE \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
X-Frame-Options: DENY

Product Availability

Show product availability details

A GET request is used to retrieve the availability of a product.

Required scopes

prda:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/5774a8da-dad4-4c38-9573-1ee2176802dc/availability' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Links

Relation Description

product

The templated self link of the product. Current representation of the resource. See Hypermedia.

disable-purchasability

The link to disable purchasability.

disable-stock-management

The link to disable the stock management.

adjust-available-stock

The link to adjust the available stock.

update-stock-threshold

The link to update the stock threshold.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1026

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : 20,
  "stockThreshold" : 2,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/5774a8da-dad4-4c38-9573-1ee2176802dc"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/5774a8da-dad4-4c38-9573-1ee2176802dc/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/5774a8da-dad4-4c38-9573-1ee2176802dc/availability/disable-purchasability"
    },
    "adjust-available-stock" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/5774a8da-dad4-4c38-9573-1ee2176802dc/availability/adjust-available-stock"
    },
    "update-stock-threshold" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/5774a8da-dad4-4c38-9573-1ee2176802dc/availability/update-stock-threshold"
    },
    "disable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/5774a8da-dad4-4c38-9573-1ee2176802dc/availability/disable-stock-management"
    }
  }
}

Enable stock management

A POST request is used to enable stock management for a product.

Required scopes

prda:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/d08c8670-1bcf-4db1-90cb-6bcb54607f88/availability/enable-stock-management' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{ "initialAvailableStock" : 100, "stockThreshold" : 2 }'

Example response

HTTP/1.1 200 OK
Location: https://api-shop.beyondshop.cloud/api/products/d08c8670-1bcf-4db1-90cb-6bcb54607f88/availability
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1027

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : 100,
  "stockThreshold" : 2,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d08c8670-1bcf-4db1-90cb-6bcb54607f88"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d08c8670-1bcf-4db1-90cb-6bcb54607f88/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d08c8670-1bcf-4db1-90cb-6bcb54607f88/availability/disable-purchasability"
    },
    "adjust-available-stock" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d08c8670-1bcf-4db1-90cb-6bcb54607f88/availability/adjust-available-stock"
    },
    "update-stock-threshold" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d08c8670-1bcf-4db1-90cb-6bcb54607f88/availability/update-stock-threshold"
    },
    "disable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d08c8670-1bcf-4db1-90cb-6bcb54607f88/availability/disable-stock-management"
    }
  }
}

Disable stock management

A POST request is used to disable stock management for a product.

Required scopes

prda:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/bc194789-eca0-4c3d-99e2-9b3b8e3576fe/availability/disable-stock-management' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Location: https://api-shop.beyondshop.cloud/api/products/bc194789-eca0-4c3d-99e2-9b3b8e3576fe/availability
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 701

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : null,
  "stockThreshold" : null,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bc194789-eca0-4c3d-99e2-9b3b8e3576fe"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bc194789-eca0-4c3d-99e2-9b3b8e3576fe/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bc194789-eca0-4c3d-99e2-9b3b8e3576fe/availability/disable-purchasability"
    },
    "enable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bc194789-eca0-4c3d-99e2-9b3b8e3576fe/availability/enable-stock-management"
    }
  }
}

Adjust stock level

A POST request is used to adjust the available stock of a product.

Required scopes

prda:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/ddba6c33-b53f-4140-8560-84135c473378/availability/adjust-available-stock' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{ "relativeAmount" : -1 }'

Example response

HTTP/1.1 200 OK
Location: https://api-shop.beyondshop.cloud/api/products/ddba6c33-b53f-4140-8560-84135c473378/availability
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1025

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : 9,
  "stockThreshold" : 2,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ddba6c33-b53f-4140-8560-84135c473378"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ddba6c33-b53f-4140-8560-84135c473378/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ddba6c33-b53f-4140-8560-84135c473378/availability/disable-purchasability"
    },
    "adjust-available-stock" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ddba6c33-b53f-4140-8560-84135c473378/availability/adjust-available-stock"
    },
    "update-stock-threshold" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ddba6c33-b53f-4140-8560-84135c473378/availability/update-stock-threshold"
    },
    "disable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ddba6c33-b53f-4140-8560-84135c473378/availability/disable-stock-management"
    }
  }
}

Update reserve stock

Reserve stock refers to an inventory level that indicates that a product needs to be reordered. A POST request is used to update this reserve stock by amending the stockThreshold value of a product.

Required scopes

prda:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/10b910c8-6287-4239-bf14-2fcfdf2cd7d5/availability/update-stock-threshold' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{ "stockThreshold" : 5 }'

Example response

HTTP/1.1 200 OK
Location: https://api-shop.beyondshop.cloud/api/products/10b910c8-6287-4239-bf14-2fcfdf2cd7d5/availability
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1026

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : 10,
  "stockThreshold" : 5,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/10b910c8-6287-4239-bf14-2fcfdf2cd7d5"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/10b910c8-6287-4239-bf14-2fcfdf2cd7d5/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/10b910c8-6287-4239-bf14-2fcfdf2cd7d5/availability/disable-purchasability"
    },
    "adjust-available-stock" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/10b910c8-6287-4239-bf14-2fcfdf2cd7d5/availability/adjust-available-stock"
    },
    "update-stock-threshold" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/10b910c8-6287-4239-bf14-2fcfdf2cd7d5/availability/update-stock-threshold"
    },
    "disable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/10b910c8-6287-4239-bf14-2fcfdf2cd7d5/availability/disable-stock-management"
    }
  }
}

Enable purchasability

A POST request is used to enable purchasability for a product.

Required scopes

prda:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/8fe49545-5fcc-411f-8f3c-9fe4fb3f8820/availability/enable-purchasability' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Location: https://api-shop.beyondshop.cloud/api/products/8fe49545-5fcc-411f-8f3c-9fe4fb3f8820/availability
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 701

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : null,
  "stockThreshold" : null,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/8fe49545-5fcc-411f-8f3c-9fe4fb3f8820"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/8fe49545-5fcc-411f-8f3c-9fe4fb3f8820/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/8fe49545-5fcc-411f-8f3c-9fe4fb3f8820/availability/disable-purchasability"
    },
    "enable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/8fe49545-5fcc-411f-8f3c-9fe4fb3f8820/availability/enable-stock-management"
    }
  }
}

Disable purchasability

A POST request is used to disable purchasability for a product.

Required scopes

prda:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/3686781d-879b-4365-9c5f-3bc7872f8d25/availability/disable-purchasability' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Location: https://api-shop.beyondshop.cloud/api/products/3686781d-879b-4365-9c5f-3bc7872f8d25/availability
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 705

{
  "availabilityState" : "NOT_AVAILABLE",
  "availableStock" : null,
  "stockThreshold" : null,
  "purchasable" : false,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/3686781d-879b-4365-9c5f-3bc7872f8d25"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/3686781d-879b-4365-9c5f-3bc7872f8d25/availability"
    },
    "enable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/3686781d-879b-4365-9c5f-3bc7872f8d25/availability/enable-purchasability"
    },
    "enable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/3686781d-879b-4365-9c5f-3bc7872f8d25/availability/enable-stock-management"
    }
  }
}

Custom Product Attributes

The attributes resource is used to manage additional user-defined attributes on any type supporting this facility.

Attribute types

These are the basic types supported by the API.

Type Description

STRING

String value (max. 4kb)

NUMBER

Double-precision floating number

Create product attribute

A POST request is used to create a product attribute, which defines the value of a certain product attribute definition for a specific product.

Creating a product attribute of type string

To create a product attribute of type string from an existing product attribute definition the latter’s key needs to be specified.

Required scopes

prat:c

Request body properties

Path Type Description Constraints

value

String

The value of the product attribute.

key

String

The key of the product attribute definition.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/10a250cf-d83b-45fa-812e-99cbb4495f45/attributes' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "key" : "colour",
  "value" : "Yellow"
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/products/10a250cf-d83b-45fa-812e-99cbb4495f45/attributes/colour
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 459

{
  "value" : "Yellow",
  "key" : "colour",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/10a250cf-d83b-45fa-812e-99cbb4495f45/attributes/colour"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/10a250cf-d83b-45fa-812e-99cbb4495f45"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/b71d9ed0-7aa4-4d23-ace7-e5a023abf425"
    }
  }
}
Creating a product attribute of type number

To create a product attribute of type number from an existing product attribute definition the latter’s key needs to be specified.

Required scopes

prat:c

Request body properties

Path Type Description Constraints

value

Number

The value of the product attribute.

key

String

The key of the product attribute definition.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/ee547c08-0d42-43ab-ab47-251364065d2f/attributes' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "key" : "filling_capacity",
  "value" : 5.9
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/products/ee547c08-0d42-43ab-ab47-251364065d2f/attributes/filling_capacity
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 474

{
  "value" : 5.9,
  "key" : "filling_capacity",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ee547c08-0d42-43ab-ab47-251364065d2f/attributes/filling_capacity"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ee547c08-0d42-43ab-ab47-251364065d2f"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/1971ffb2-a99f-456a-852a-46e5e93a9a34"
    }
  }
}
Retrieve a product attribute of type string

Required scopes

prat:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/f3704f72-04f2-4fc0-bd93-f5d91667fa43/attributes/key' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

key

String

The key of the product attribute definition.

value

String

The value of the product attribute.

_links

Object

See Hypermedia

Links

Relation Description

product-attribute-definition

The templated self link of the product property definition. Current representation of the resource. See Hypermedia.

product

The templated self link of the product. Current representation of the resource. See Hypermedia.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 450

{
  "value" : "red",
  "key" : "key",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/f3704f72-04f2-4fc0-bd93-f5d91667fa43/attributes/key"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/f3704f72-04f2-4fc0-bd93-f5d91667fa43"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/7d4e83cd-7089-4ad0-96e7-873ad6a3410c"
    }
  }
}
Retrieve a product attribute of type number

Required scopes

prat:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/b521b8e5-45f3-4198-bde5-76ea18974594/attributes/size' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

key

String

The key of the product attribute definition.

value

Number

The value of the product attribute.

_links

Object

See Hypermedia

Links

Relation Description

product-attribute-definition

The templated self link of the product property definition. Current representation of the resource. See Hypermedia.

product

The templated self link of the product. Current representation of the resource. See Hypermedia.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 450

{
  "value" : 5.0,
  "key" : "size",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/b521b8e5-45f3-4198-bde5-76ea18974594/attributes/size"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/b521b8e5-45f3-4198-bde5-76ea18974594"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/ce18f556-85d1-4ff2-a291-e08f02d7edbe"
    }
  }
}
Retrieve all product attributes for product

Required scopes

prat:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/b54931ec-8401-4481-bb34-1283ce45a7b5/attributes' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded

Object

The list of product attributes.

_links

Object

See Hypermedia

page

Object

See Pagination

Links

Relation Description

self

The product properties resource.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1328

{
  "_embedded" : {
    "attributes" : [ {
      "value" : "Jazz",
      "key" : "genre",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/b54931ec-8401-4481-bb34-1283ce45a7b5/attributes/genre"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/b54931ec-8401-4481-bb34-1283ce45a7b5"
        },
        "product-attribute-definition" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/9de619d7-096d-40f4-b6c9-0202d4d75dfd"
        }
      }
    }, {
      "value" : "red",
      "key" : "colour",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/b54931ec-8401-4481-bb34-1283ce45a7b5/attributes/colour"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/b54931ec-8401-4481-bb34-1283ce45a7b5"
        },
        "product-attribute-definition" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/ba89636a-1cbf-442a-99c1-7d779b3cee66"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/b54931ec-8401-4481-bb34-1283ce45a7b5/attributes?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}
Delete a product attribute

Required scopes

prat:d

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/3b3d6ec4-74a2-4c4b-b7b7-ed3b5dc3deaa/attributes/farbe' -i -X DELETE \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
X-Frame-Options: DENY

Product Images

List product images

A GET request is used to retrieve the images of a product.

Required scopes

prod:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/e9c7ad7a-ade7-47ca-9df4-186185c8dc71/images' -i -X GET \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Links

Relation Description

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1927

{
  "_embedded" : {
    "images" : [ {
      "_id" : "7d075de4-f6e3-49da-82b6-f441a1e4ef44",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/e9c7ad7a-ade7-47ca-9df4-186185c8dc71/images/7d075de4-f6e3-49da-82b6-f441a1e4ef44"
        },
        "data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998{&width,height,upscale}",
          "templated" : true
        },
        "metadata" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998&download=no"
        },
        "image" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/e9c7ad7a-ade7-47ca-9df4-186185c8dc71/images/7d075de4-f6e3-49da-82b6-f441a1e4ef44"
        }
      }
    }, {
      "_id" : "b9fff555-8324-4ab7-8858-1a961189e48e",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/e9c7ad7a-ade7-47ca-9df4-186185c8dc71/images/b9fff555-8324-4ab7-8858-1a961189e48e"
        },
        "data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-3.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225999{&width,height,upscale}",
          "templated" : true
        },
        "metadata" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-3.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225999&download=no"
        },
        "image" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/e9c7ad7a-ade7-47ca-9df4-186185c8dc71/images/b9fff555-8324-4ab7-8858-1a961189e48e"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/e9c7ad7a-ade7-47ca-9df4-186185c8dc71/images?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

Show product image details

A GET request is used to retrieve a single image of a product.

Required scopes

prod:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/cfbe0e47-57ce-4d54-bd2c-a0f978d329e7/images/c7c9c046-78f4-4723-ae8c-99414f3a7bfe' -i -X GET \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_id

String

The immutable, unique identifier of the requested resource.

_links

Object

See Hypermedia

Links

Relation Description

image

The link to the product image.

data

Download URL of the product image.

metadata

The URL to the image metadata of the product image.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 747

{
  "_id" : "c7c9c046-78f4-4723-ae8c-99414f3a7bfe",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/cfbe0e47-57ce-4d54-bd2c-a0f978d329e7/images/c7c9c046-78f4-4723-ae8c-99414f3a7bfe"
    },
    "data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998{&width,height,upscale}",
      "templated" : true
    },
    "metadata" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998&download=no"
    },
    "image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/cfbe0e47-57ce-4d54-bd2c-a0f978d329e7/images/c7c9c046-78f4-4723-ae8c-99414f3a7bfe"
    }
  }
}

Add product image

A POST request is used to create an image and add it to a product.

Required scopes

prod:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/ef6f686c-e030-4f01-aae4-76ab86f4229d/images' -i -X POST \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "dataUri" : "photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998"
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/products/ef6f686c-e030-4f01-aae4-76ab86f4229d/images/41390c74-731f-45ba-aef9-cc11850a59ec
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 747

{
  "_id" : "41390c74-731f-45ba-aef9-cc11850a59ec",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ef6f686c-e030-4f01-aae4-76ab86f4229d/images/41390c74-731f-45ba-aef9-cc11850a59ec"
    },
    "data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998{&width,height,upscale}",
      "templated" : true
    },
    "metadata" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/photostore-2.JPG?hash=8a627f655c68f56dfbbf217ab7d5563281225998&download=no"
    },
    "image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ef6f686c-e030-4f01-aae4-76ab86f4229d/images/41390c74-731f-45ba-aef9-cc11850a59ec"
    }
  }
}

Upload product image

A POST request is used to upload an image and add it to a product. The body of the request must contain the content of the image.

Required scopes

prod:u

Example request

$ curl --data-binary '@/home/epages/file.png' 'https://api-shop.beyondshop.cloud/api/products/4125b993-49fc-47c8-b9b3-76d8871e4e06/images?fileName=file.png' -X POST -H 'Content-Type: image/png' -H 'Authorization: Bearer <Access token>'

Request parameters

Parameter Description

fileName

The file name of the image.

Request header properties

Name Description

Content-Type

The content type of the image. Can be image/png, image/jpeg, or image/gif.

Response body properties

Path Type Description

_id

String

The immutable, unique identifier of the requested resource.

_links

Object

See Hypermedia

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/products/36fe64c9-60f7-453f-bcd0-5cd0c63c1ab5/images/c9f2e983-dbaa-4219-bdbf-3151e1e0b18b
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 735

{
  "_id" : "c9f2e983-dbaa-4219-bdbf-3151e1e0b18b",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/36fe64c9-60f7-453f-bcd0-5cd0c63c1ab5/images/c9f2e983-dbaa-4219-bdbf-3151e1e0b18b"
    },
    "data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/sample.png?hash=80d4ab42cfd7823b34e4ad406d9bc470d5d13298{&width,height,upscale}",
      "templated" : true
    },
    "metadata" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/sample.png?hash=80d4ab42cfd7823b34e4ad406d9bc470d5d13298&download=no"
    },
    "image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/36fe64c9-60f7-453f-bcd0-5cd0c63c1ab5/images/c9f2e983-dbaa-4219-bdbf-3151e1e0b18b"
    }
  }
}

Delete product image

A DELETE request is used to delete a product image.

Required scopes

prod:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/79105e48-c1cc-4899-b410-bf81b7051162/images/cf026aa8-e936-4416-a452-67ac25652f73' -i -X DELETE \
    -H 'Content-Type: application/hal+json' \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
X-Frame-Options: DENY

Assign product image as default image

A PUT request is used to assign a product image as the default image. The request contains a single URI of the image to assign.

Required scopes

prod:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/99d17e86-a53c-4b94-bef0-d0607d454d83/default-image' -i -X PUT \
    -H 'Content-Type: text/uri-list' \
    -H 'Accept: application/json' \
    -H 'Authorization: Bearer <Access token>' \
    -d 'http://localhost/products/images/0c02f626-27b0-4eb8-bc9c-76737995f535'

Example response

HTTP/1.1 204 No Content
X-Frame-Options: DENY

Product Settings

The product-settings resource is used to manage product related settings.

Show product settings

A GET request is used to retrieve the product settings.

Required scopes

prst:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-settings' -i -X GET \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

listPriceText

String

The text that comes along with the list price. Can be either labeling the original price, or deviations from that, such as e.g. a discount treatment or the recommended retail price.

_links

Object

See Hypermedia

Links

Relation Description

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 129

{
  "listPriceText" : "VAT",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-settings"
    }
  }
}

Update product settings (json patch)

A PATCH request is issued to update the product settings partially with json patch content type.

Required scopes

prst:u

Request body properties

Path Type Description

.[]

Array

A list of JSON Patch operations.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-settings' -i -X PATCH \
    -H 'Content-Type: application/json-patch+json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '[ {
  "op" : "replace",
  "path" : "/listPriceText",
  "value" : "Original Price"
} ]'

Response body properties

Path Type Description

listPriceText

String

The text that comes along with the list price. Can be either labeling the original price, or deviations from that, such as e.g. a discount treatment or the recommended retail price.

_links

Object

See Hypermedia

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 140

{
  "listPriceText" : "Original Price",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-settings"
    }
  }
}

Scopes

List scopes

A GET request will list all scopes in the system.

Required scopes

scop:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/scopes' -i -X GET \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.scopes

Array

All scopes granted by this role.

_links

Object

See Hypermedia

page

Object

See Pagination

Links

Relation Description

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1400

{
  "_embedded" : {
    "scopes" : [ {
      "name" : "ordr:u",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/scopes/6e1c774a-25f4-489e-8f60-f280a8c4b0e0"
        },
        "scope" : {
          "href" : "https://api-shop.beyondshop.cloud/api/scopes/6e1c774a-25f4-489e-8f60-f280a8c4b0e0{?projection}",
          "templated" : true
        }
      }
    }, {
      "name" : "prod:c",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/scopes/bdf258e8-ac7b-4cfa-8f65-53e0fcb030f9"
        },
        "scope" : {
          "href" : "https://api-shop.beyondshop.cloud/api/scopes/bdf258e8-ac7b-4cfa-8f65-53e0fcb030f9{?projection}",
          "templated" : true
        }
      }
    }, {
      "name" : "ordr:r",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/scopes/d7ed53eb-6a0b-498c-8570-cc894a1e519d"
        },
        "scope" : {
          "href" : "https://api-shop.beyondshop.cloud/api/scopes/d7ed53eb-6a0b-498c-8570-cc894a1e519d{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/scopes{?page,size,sort,projection}",
      "templated" : true
    },
    "profile" : {
      "href" : "https://api-shop.beyondshop.cloud/api/profile/scopes"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 3,
    "totalPages" : 1,
    "number" : 0
  }
}

Shipping Methods

The cart shipping method resources hold information on the shipping methods handled for a cart.

Set current cart shipping method

A PUT request is used to set the current shipping method of the cart.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/dfcd6e08-698d-44ce-880b-f9f083bd0933/shipping-methods/current' -i -X PUT \
    -H 'Content-Type: text/uri-list' \
    -H 'Accept: application/json' \
    -d 'https://api-shop.beyondshop.cloud/api/shipping-zones/b5272642-2084-4759-98db-2adc6eae0686/shipping-methods/3d7aaf34-ec67-46a7-a5b8-cca3b23c16f6'

Example response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 6459

{
  "_id" : "dfcd6e08-698d-44ce-880b-f9f083bd0933",
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 50
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "3d7aaf34-ec67-46a7-a5b8-cca3b23c16f6",
        "name" : "Express",
        "description" : "Shipping overnight, delivery on the next day.",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : {
          "currency" : "EUR",
          "amount" : 1000
        },
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 50
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/b5272642-2084-4759-98db-2adc6eae0686/shipping-methods/3d7aaf34-ec67-46a7-a5b8-cca3b23c16f6"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "eddd791a-e5d3-424b-8460-514320fc039c",
        "name" : "Converge",
        "description" : "Pay with Converge",
        "officialName" : "Converge",
        "officialDescription" : "Pay with Converge",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "ABSOLUTE",
          "absoluteValue" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 2
          },
          "percentageValue" : null
        },
        "position" : 1,
        "serviceableCountries" : [ "DE" ],
        "minimumOrderValue" : null,
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/eddd791a-e5d3-424b-8460-514320fc039c"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/eddd791a-e5d3-424b-8460-514320fc039c"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/eddd791a-e5d3-424b-8460-514320fc039c/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/eddd791a-e5d3-424b-8460-514320fc039c/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : null,
    "title" : "",
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "displayAddressLines" : [ "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "DEUTSCHLAND" ],
    "vatId" : "123456789",
    "taxNumber" : "123-34-6789",
    "birthDate" : "1985-03-20"
  },
  "shippingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : null,
    "title" : "",
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "Hinterhof",
    "postalCode" : "20999",
    "dependentLocality" : "Seevetal",
    "city" : "Alsterwasser",
    "country" : "DE",
    "state" : "Hamburg",
    "email" : "a.alsterh@example.com",
    "phone" : "(800) 555-0102",
    "mobile" : "(800) 555-0103",
    "displayAddressLines" : [ "Astrid Agnes Alster", "Alsterwasserweg 2", "Erdgeschoss", "Hinterhof", "Seevetal", "20999 Alsterwasser", "DEUTSCHLAND" ],
    "doorCode" : "0185"
  },
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 52
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 52
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 52
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : true,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : true
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/dfcd6e08-698d-44ce-880b-f9f083bd0933"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/dfcd6e08-698d-44ce-880b-f9f083bd0933/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/dfcd6e08-698d-44ce-880b-f9f083bd0933/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/dfcd6e08-698d-44ce-880b-f9f083bd0933/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/dfcd6e08-698d-44ce-880b-f9f083bd0933/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/dfcd6e08-698d-44ce-880b-f9f083bd0933/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/dfcd6e08-698d-44ce-880b-f9f083bd0933/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/dfcd6e08-698d-44ce-880b-f9f083bd0933/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/dfcd6e08-698d-44ce-880b-f9f083bd0933/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/dfcd6e08-698d-44ce-880b-f9f083bd0933/shipping-address"
    },
    "place-order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/dfcd6e08-698d-44ce-880b-f9f083bd0933/order"
    }
  }
}

Set cart shipping method to current default

A PUT request is used to set the shipping method to the current default shipping method. The default shipping method is the one with the highest priority of the applicable shipping methods.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/65ff7bf9-4124-457b-b1c5-015dd740c607/shipping-methods/default' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json'

Example response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 4758

{
  "_id" : "65ff7bf9-4124-457b-b1c5-015dd740c607",
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "_id" : "ac2c1c46-1106-437e-b894-c25f48bbc255",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/16b459e7-ff91-4d21-943c-f16bcdcc0220/shipping-methods/ac2c1c46-1106-437e-b894-c25f48bbc255"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "_id" : "9059eec6-f3b7-4643-a30a-0c6255b7894c",
        "name" : "Converge",
        "description" : "Pay with Converge",
        "officialName" : "Converge",
        "officialDescription" : "Pay with Converge",
        "taxClass" : "REGULAR",
        "discountOrFee" : {
          "type" : "ABSOLUTE",
          "absoluteValue" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 2
          },
          "percentageValue" : null
        },
        "position" : 1,
        "serviceableCountries" : [ "DE" ],
        "minimumOrderValue" : null,
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/9059eec6-f3b7-4643-a30a-0c6255b7894c"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/9059eec6-f3b7-4643-a30a-0c6255b7894c"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/9059eec6-f3b7-4643-a30a-0c6255b7894c/deactivate"
          },
          "payment-method-definition" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/9059eec6-f3b7-4643-a30a-0c6255b7894c/payment-method-definition"
          }
        }
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/65ff7bf9-4124-457b-b1c5-015dd740c607"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/65ff7bf9-4124-457b-b1c5-015dd740c607/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/65ff7bf9-4124-457b-b1c5-015dd740c607/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/65ff7bf9-4124-457b-b1c5-015dd740c607/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/65ff7bf9-4124-457b-b1c5-015dd740c607/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/65ff7bf9-4124-457b-b1c5-015dd740c607/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/65ff7bf9-4124-457b-b1c5-015dd740c607/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/65ff7bf9-4124-457b-b1c5-015dd740c607/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/65ff7bf9-4124-457b-b1c5-015dd740c607/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/65ff7bf9-4124-457b-b1c5-015dd740c607/shipping-address"
    }
  }
}

Show current cart shipping method details

A GET request is used to get the current shipping method. The shipping method type is documented here.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/c6e94457-1269-4840-88b6-cfb4602c3f85/shipping-methods/current' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 512

{
  "_id" : "f777a192-1675-4d0f-918b-9c43bc20e1c6",
  "name" : "Standard Shipping 2",
  "description" : "Standard Shipping",
  "taxClass" : "REGULAR",
  "position" : 0,
  "freeShippingValue" : null,
  "fixedPrice" : {
    "taxModel" : "GROSS",
    "currency" : "EUR",
    "amount" : 19.99
  },
  "weightBasedPrice" : null,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/009159dc-f626-48cf-9bec-03b4789065ce/shipping-methods/f777a192-1675-4d0f-918b-9c43bc20e1c6"
    }
  }
}

Show applicable cart shipping method details

A GET request is used to get the applicable shipping method of a cart. The shipping method type is documented here

The selectable field indicates if a shipping method is currently selectable. Non-selectable shipping methods are currently restricted because of rules that apply to a cart. Trying to set such a shipping method as the current one of the cart will fail.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/159d7134-ce6c-4bad-adef-ecb2db212abc/shipping-methods' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_embedded.shipping-methods[].selectable

Boolean

Indicates if the shipping method can be selected for the current cart. A shipping method can be become non-selectable if the cart is modified, so that the maximum weight for weight based price is exceeded. A cart with a non-selectable shipping method cannot be ordered.

_embedded.shipping-methods[].lineItemPrice

Object

The calculated price for this shipping method on the current cart.

_links

Object

See Hypermedia

_embedded.shipping-methods[]._embedded.shipping-method._id

String

The immutable, unique identifier of the requested resource.

_embedded.shipping-methods[]._embedded.shipping-method.weightBasedPrice

Null

The price depending on the package weight (optional).

_embedded.shipping-methods[]._embedded.shipping-method.freeShippingValue

Null

Once a customer reaches this amount (excluding payment fee) this shipping method is free of charge.

_embedded.shipping-methods[]._embedded.shipping-method.position

Number

The sorting position of the shipping method in the Commerce Cockpit in relation to other shipping methods.

_embedded.shipping-methods[]._embedded.shipping-method.name

String

The name of the shipping method.

_embedded.shipping-methods[]._embedded.shipping-method.description

String

The description of the shipping method.

_embedded.shipping-methods[]._embedded.shipping-method.taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

_embedded.shipping-methods[]._embedded.shipping-method.freeShippingValue

Null

Once a customer reaches this amount (excluding payment fee) this shipping method is free of charge.

_embedded.shipping-methods[]._embedded.shipping-method.fixedPrice

object

The fixed price for the shipping method irrespective of weight, dimensions, etc.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1065

{
  "_embedded" : {
    "shipping-methods" : [ {
      "lineItemPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 19.99
      },
      "selectable" : true,
      "_embedded" : {
        "shipping-method" : {
          "_id" : "fbaaaa7c-810c-47e4-82e8-860f8cfd3b60",
          "name" : "Standard Shipping 2",
          "description" : "Standard Shipping",
          "taxClass" : "REGULAR",
          "position" : 0,
          "freeShippingValue" : null,
          "fixedPrice" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 19.99
          },
          "weightBasedPrice" : null,
          "_links" : {
            "self" : {
              "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/4dfc8f94-a9b5-42d4-b234-c7c019d2c923/shipping-methods/fbaaaa7c-810c-47e4-82e8-860f8cfd3b60"
            }
          }
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/159d7134-ce6c-4bad-adef-ecb2db212abc/shipping-methods"
    }
  }
}

Shipping Zones

The shipping zone resources are used to get information about the shipping zones of a shop. Shipping zones hold shipping methods that are applicable inside a shipping zone.

Show shipping zone details

A GET request is used to retrieve the details of a shipping zone.

Required scopes

shpz:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/4cc24709-5917-4fad-8757-b4ca44eac253' -i -X GET \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_id

String

The immutable, unique identifier of the requested resource.

position

Number

The sorting position of the shipping zone in the Commerce Cockpit in relation to other shipping zones.

shippingMethods

Array

The shipping methods assigned to this shipping zone.

_links

Object

See Hypermedia

name

String

The name of the shipping zone.

serviceableCountries

Array

The list of countries this shipping zone applies to.

shippingMethods[]._id

String

The immutable, unique identifier of the requested resource.

shippingMethods[].weightBasedPrice

Null

The price depending on the package weight (optional).

shippingMethods[].freeShippingValue

Object

Once a customer reaches this amount (excluding payment fee) this shipping method is free of charge.

shippingMethods[].position

Number

The sorting position of the shipping method in the Commerce Cockpit in relation to other shipping methods.

shippingMethods[].name

String

The name of the shipping method.

shippingMethods[].description

String

The description of the shipping method.

shippingMethods[].taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

shippingMethods[].freeShippingValue

Object

Once a customer reaches this amount (excluding payment fee) this shipping method is free of charge.

shippingMethods[].fixedPrice

object

The fixed price for the shipping method irrespective of weight, dimensions, etc.

shippingMethods[]._links

Object

See Hypermedia

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1048

{
  "_id" : "4cc24709-5917-4fad-8757-b4ca44eac253",
  "name" : "BE-NL-LU",
  "serviceableCountries" : [ "NL", "BE", "LU" ],
  "position" : 2,
  "shippingMethods" : [ {
    "_id" : "638447e2-633a-4992-8311-d5d007b89f5f",
    "name" : "Standard Shipping 2",
    "description" : "Standard Shipping",
    "taxClass" : "REGULAR",
    "position" : 0,
    "freeShippingValue" : {
      "currency" : "EUR",
      "amount" : 400
    },
    "fixedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "weightBasedPrice" : null,
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/4cc24709-5917-4fad-8757-b4ca44eac253/shipping-methods/638447e2-633a-4992-8311-d5d007b89f5f"
      }
    }
  } ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/4cc24709-5917-4fad-8757-b4ca44eac253"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/4cc24709-5917-4fad-8757-b4ca44eac253/shipping-methods"
    }
  }
}

Create shipping zone

A POST request is used to create a shipping zone.

Required scopes

shpz:c

Request body properties

Path Type Description

name

String

The name of the shipping zone.

serviceableCountries

Array

The list of countries this shipping zone applies to.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "name" : "BE-NL-LU",
  "serviceableCountries" : [ "BE", "NL", "LU" ]
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/shipping-zones/ccff5f7f-cd2c-4372-a29a-ebbf55d27e86
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 449

{
  "_id" : "ccff5f7f-cd2c-4372-a29a-ebbf55d27e86",
  "name" : "BE-NL-LU",
  "serviceableCountries" : [ "NL", "BE", "LU" ],
  "position" : 2,
  "shippingMethods" : [ ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/ccff5f7f-cd2c-4372-a29a-ebbf55d27e86"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/ccff5f7f-cd2c-4372-a29a-ebbf55d27e86/shipping-methods"
    }
  }
}

Update shipping zone

A PUT request is used to update a shipping zone.

Required scopes

shpz:u

Request body properties

Path Type Description

name

String

The name of the shipping zone.

serviceableCountries

Array

The list of countries this shipping zone applies to.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/b28259fc-3963-41ee-b414-c648bf8ec000' -i -X PUT \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <Access token>' \
    -d '{
  "name" : "BENELUX region",
  "serviceableCountries" : [ "BE", "NL", "LU", "DE" ]
}'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1060

{
  "_id" : "b28259fc-3963-41ee-b414-c648bf8ec000",
  "name" : "BENELUX region",
  "serviceableCountries" : [ "NL", "DE", "BE", "LU" ],
  "position" : 2,
  "shippingMethods" : [ {
    "_id" : "e509971a-322a-4218-b187-7312e748392f",
    "name" : "Standard Shipping 2",
    "description" : "Standard Shipping",
    "taxClass" : "REGULAR",
    "position" : 0,
    "freeShippingValue" : {
      "currency" : "EUR",
      "amount" : 400
    },
    "fixedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "weightBasedPrice" : null,
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/b28259fc-3963-41ee-b414-c648bf8ec000/shipping-methods/e509971a-322a-4218-b187-7312e748392f"
      }
    }
  } ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/b28259fc-3963-41ee-b414-c648bf8ec000"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/b28259fc-3963-41ee-b414-c648bf8ec000/shipping-methods"
    }
  }
}

Delete shipping zone

A DELETE request is used to delete a shipping zone. You cannot delete the shipping zone if it contains the last shipping method of a shop.

Required scopes

shpz:d

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/0d48f43a-fe52-46f6-8b06-ac4eef4eacba' -i -X DELETE \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
X-Frame-Options: DENY

List shipping zones

A GET request is used to list all shipping zones in a paged manner.

Required scopes

shpz:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones' -i -X GET \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 2548

{
  "_embedded" : {
    "shipping-zones" : [ {
      "_id" : "9f8e3274-6ddb-497c-ade1-2669cf044bd0",
      "name" : "DE",
      "serviceableCountries" : [ "DE" ],
      "position" : 1,
      "shippingMethods" : [ {
        "_id" : "abdc8c9f-5d07-4ed5-a262-6592b6e4fa10",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/9f8e3274-6ddb-497c-ade1-2669cf044bd0/shipping-methods/abdc8c9f-5d07-4ed5-a262-6592b6e4fa10"
          }
        }
      } ],
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/9f8e3274-6ddb-497c-ade1-2669cf044bd0"
        },
        "shipping-methods" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/9f8e3274-6ddb-497c-ade1-2669cf044bd0/shipping-methods"
        }
      }
    }, {
      "_id" : "e37261a1-7b60-499b-91e6-1b6336e74547",
      "name" : "BE-NL-LU",
      "serviceableCountries" : [ "NL", "BE", "LU" ],
      "position" : 2,
      "shippingMethods" : [ {
        "_id" : "4aa0758b-98ef-4a17-8a64-6113ef25e46c",
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : {
          "currency" : "EUR",
          "amount" : 400
        },
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e37261a1-7b60-499b-91e6-1b6336e74547/shipping-methods/4aa0758b-98ef-4a17-8a64-6113ef25e46c"
          }
        }
      } ],
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e37261a1-7b60-499b-91e6-1b6336e74547"
        },
        "shipping-methods" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e37261a1-7b60-499b-91e6-1b6336e74547/shipping-methods"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

Sort shipping zones

A PUT request is used to sort the shipping zones. This is done by passing the self-links of the shipping zones in the desired order. The request must contain URIs for all shipping zones of the given page.

Required scopes

shpz:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones' -i -X PUT \
    -H 'Content-Type: text/uri-list' \
    -H 'Authorization: Bearer <Access token>' \
    -d 'https://api-shop.beyondshop.cloud/api/shipping-zones/4344a8a9-b004-4507-bc6a-b1c2cd73dee7
https://api-shop.beyondshop.cloud/api/shipping-zones/81e295e5-5103-423c-a244-6553061dbc98
https://api-shop.beyondshop.cloud/api/shipping-zones/b6fd17f7-ba1c-4433-85e6-66c25be24c54'

Example response

HTTP/1.1 204 No Content
Location: https://api-shop.beyondshop.cloud/api/shipping-zones
X-Frame-Options: DENY

Show details of shipping method in shipping zone

A GET request is used to retrieve the details of a shipping method.

Required scopes

shpz:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/443853c8-0759-471e-86af-dce65950fdcb/shipping-methods/19157f21-70ea-487e-afb6-64aad5405e53' -i -X GET \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

_id

String

The immutable, unique identifier of the requested resource.

weightBasedPrice

Null

The price depending on the package weight (optional).

freeShippingValue

Object

Once a customer reaches this amount (excluding payment fee) this shipping method is free of charge.

position

Number

The sorting position of the shipping method in the Commerce Cockpit in relation to other shipping methods.

name

String

The name of the shipping method.

description

String

The description of the shipping method.

taxClass

String

The tax class. Can be REGULAR, REDUCED, or EXEMPT.

freeShippingValue

Object

Once a customer reaches this amount (excluding payment fee) this shipping method is free of charge.

fixedPrice

object

The fixed price for the shipping method irrespective of weight, dimensions, etc.

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 556

{
  "_id" : "19157f21-70ea-487e-afb6-64aad5405e53",
  "name" : "Standard Shipping 2",
  "description" : "Standard Shipping",
  "taxClass" : "REGULAR",
  "position" : 0,
  "freeShippingValue" : {
    "currency" : "EUR",
    "amount" : 400
  },
  "fixedPrice" : {
    "taxModel" : "GROSS",
    "currency" : "EUR",
    "amount" : 19.99
  },
  "weightBasedPrice" : null,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/443853c8-0759-471e-86af-dce65950fdcb/shipping-methods/19157f21-70ea-487e-afb6-64aad5405e53"
    }
  }
}

Required scopes

shpz:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/b8a982d3-7ef2-4c4c-8853-9ed4a01c3f67/shipping-methods/789edcc3-501a-4a9e-94d6-e7a83f96504d' -i -X GET \
    -H 'Accept: application/hal+json' \
    -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

_id

String

The immutable, unique identifier of the requested resource.

weightBasedPrice

Null

The price depending on the package weight (optional).

freeShippingValue

Null

Once a customer reaches this amount (excluding payment fee) this shipping method is free of charge.