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

  • offer partial refunds if you’d like to offer refunds

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. But nevertheless, during the development or 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.

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 -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-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: 55

{
  "shopId" : "d26bdd77-05f7-451b-8433-9114d1ce6dd8"
}
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 creates a referralUri to redirect the merchant to a page where they can connect their account.

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 link to the referral page.

_links

Object

See Hypermedia

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: 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" : "1848e87b-e66d-423b-80f6-158cece86289",
    "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 link to the referral page.

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: 39

{
  "referralUri" : "http://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/0ae2bf87-b217-48db-a8e7-3d09704d5822' -i -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-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: 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. Here’s an overview of this 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 successUri, a cancelUri, and related cart and shop information. As a response to this POST request, the app needs to return an approvalUri. This approvalUri will then be returned to the storefront.

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.

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" : "f49e66b1-3eab-4f21-99e8-96f15acefecd",
    "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
    },
    "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
    },
    "grandTotal" : {
      "currency" : "EUR",
      "amount" : 20
    },
    "subtotal" : {
      "currency" : "EUR",
      "amount" : 20
    },
    "shippingTotal" : {
      "currency" : "EUR",
      "amount" : 0
    },
    "currency" : "EUR"
  },
  "shop" : {
    "name" : "Granny Pants"
  },
  "paymentId" : "4d4bb5c1-12d4-4625-b901-3c91de8637df",
  "shopId" : "2fcdb1f3-e8dd-4e8a-916d-4ff966831a97"
}'

Response body properties

Path Type Description

approvalUri

String

The URI to which the customer will be redirected after the approval of the payment.

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: 41

{
  "approvalUri" : "http://approve.me"
}
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. 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/af01cd74-3967-46ac-aa12-601a8f2d2974/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 customer will be redirected after the approval or cancelation of the payment.

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: 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

If the app informs the payment gateway that the customer canceled the payment, the payment gateway will provide the above-mentioned returnUri to which the customer will be redirected. 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/45edd76e-512d-4302-86b3-926118ed366a/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 customer will be redirected after the approval or cancelation of the payment.

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: 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.

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 response with the current status of the payment. If the status of 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/83054268-4117-4b3e-a054-751d047d6d2e/capture' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -d '{
  "shopId" : "728717d8-0d2e-4432-9a3e-6be44bd76c58"
}'

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: 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, CANCELED, APPROVED, CAPTURED, FAILED or CAPTURE_PENDING, depending on the former status of the payment.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payments/17adad56-2f70-4ee8-8393-8f85103f96f3/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, CANCELED, APPROVED, CAPTURED, FAILED or CAPTURE_PENDING, depending on the former status of the payment.

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: 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/4d068b56-b8a1-4cb8-af94-ad73d1d5aaeb/refund' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -d '{
  "shopId" : "d1be2807-e4e2-4f5c-8142-200c81eaf418",
  "refundAmount" : {
    "currency" : "EUR",
    "amount" : 10
  }
}'

Example response

HTTP/1.1 200 OK
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

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-03-29

New

2018-03-28

New

Add endpoint Replace single line item.

Authentication

Create a JsonWebToken from Authorization Code

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

Request parameters

Parameter Description

grant_type

OAuth2 grant type. Use authorization_code for authorization code flow

code

The authorization code.

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 '6216061b-acd3-4bdc-8e14-3023d858fc9e:b23o25gfbuhipirqlp354k5g3l' -X POST -d 'grant_type=authorization_code&code=JHorND'

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 to each request. Refer to RFC 7519.

refresh_token

String

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

Example response

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

{
  "access_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJzY29wZSI6WyJ1c2VyOnIiXSwidGVuYW50SWQiOjEzNSwiZXhwIjoxNTMyMDQ3NjI1LCJpYXQiOjE1MzIwMDQ0MjUsImp0aSI6IjhiMGM5OTQ1LTRlY2UtNDBlMi1iYjM2LTNiYmNkNDI5NjEyZiIsImNsaWVudF9pZCI6IjYyMTYwNjFiLWFjZDMtNGJkYy04ZTE0LTMwMjNkODU4ZmM5ZSJ9.EWuyxPUM3z6yUXG9M_3GW5EFE202dWv1Ls3CdqIS7PgX6p2zqD_-DHk7LByMZrPzoG46cQPV-Mym70ETQVjjh6ztXgL-cwgZX6fwoB6z7b29VUMB2PISH2jlCZVHVKdoB56mkvfWecPLuOKdxFLRBk4V5IAOB9yXd_ujhAyLgW76WVA3Y9o0VWQCunBw6qVvDOSXi07tgHh5B3K4tM_COZ7vdXoT3ds3IPi40KhCozO7mjidtdWL45N6yrdg6dR86BZaxyG7x5_tYRklkI1M1ea3wnpqCHahzS7UoHmRTWzOQgCtjIDny7kqs9zPQSsKxZsZYIoLCu0QXFKLnlHAvw",
  "token_type" : "bearer",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJzY29wZSI6WyJ1c2VyOnIiXSwiYXRpIjoiOGIwYzk5NDUtNGVjZS00MGUyLWJiMzYtM2JiY2Q0Mjk2MTJmIiwidGVuYW50SWQiOjEzNSwiaWF0IjoxNTMyMDA0NDI1LCJqdGkiOiJmNjZjY2JlNi0xNjliLTQ3NWEtODU0MC0zZjUyYjc0ZjVlNGUiLCJjbGllbnRfaWQiOiI2MjE2MDYxYi1hY2QzLTRiZGMtOGUxNC0zMDIzZDg1OGZjOWUifQ.lUqC8WOKQDVFSNBdIHLNEhceSlDNI0S17a_ZDYTMRP5G0I9AM2bt6dXlWbBdtAm9uPZ21o3hwd5enn9pI3QpNi4k82orvyri8bubc2WkrHT2f-gec1v6MTThfHocC_jUrkQjsKLoMnYncWc32ZPfY0hVyv-_Ewc2Ta0iXDhI3CpisgPkhf8YIVdxX-XE4T0vkvxl9p4ybl_CdJy2b72h_OHhew5-2JYR3MVCOTncB2HVmHU6slpdPth44UtWyIKg4SxxQa_ltn3N6pNCgQPBUdjYH7zagMEHtf1veD5IrIyzbT81Ef6SOf6-RnZ_FzeSkregjHSo0LaBZJw_V-0n4g",
  "expires_in" : 43199,
  "scope" : "user:r",
  "tenantId" : 135,
  "iat" : 1532004425,
  "jti" : "8b0c9945-4ece-40e2-bb36-3bbcd429612f"
}

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. Used to obtain additional access tokens to prolong the authorization to access resources. Use refresh_token here.

client_id

The client identifier issued to the client during the registration process. Refer to RFC 6749.

refresh_token

The token that can be used to obtain a renewed access token when the current token has expired.

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:bc32153b-cb26-4c2e-a444-75315866ee95' -X POST -d 'grant_type=refresh_token&client_id=sample-client&refresh_token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJ1c2VyX25hbWUiOiJ1c2VyIiwic2NvcGUiOlsicHJvZDpyYyJdLCJhdGkiOiI0Mjc3NDFlYy0yYWRkLTQyZWMtOWI1MS0yZjQ0ZWY2YTdkYjQiLCJ0ZW5hbnRJZCI6MTQzOCwiZXhwIjoxNTM0NTk2MzkzLCJpYXQiOjE1MzIwMDQzOTMsInVzZXJJZCI6IjIxMDIxYjJmLTllYjMtNDk3ZC1iMjY0LWQxZWY2NDk0YTNjZSIsImp0aSI6IjgyZTBiYmUyLTRmMTgtNDZkMi04MTdlLWIzMmFhZWEyZmZiYSIsImNsaWVudF9pZCI6InNhbXBsZS1jbGllbnQiLCJ1c2VybmFtZSI6InVzZXIifQ.jkTwifCEsIVopI_xC_Ts7jyONAvdMgolW7CAM-J0wFlH9M63-E3PZCPIlVIB-HOlHLSAkZvPwBLBlRjWTcKgx9sLtGvmCLxpbYrnOwg1NqNOumKXcLeXjIUNKZ1El-oj14-sS4hQIN6Ip7FR2PnoZu-CeBNQfmbLx6hvjI4rn-lSe9cI61PQq7xN0zH0g-MNNpZ2yx_aqHooyuu0vzZsUo7XYEO5josC672KMnSBgwAi_8fN2ucTUfnwDLx_Bd2GsVwJWZwnek8LertjnYJvn4zdL3Ye2A7TiEOB4h7O64pgrvPKRUGpat-WRsFxZE-NAsIBvNXVJMUZpwL2QL3Olg'

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 to each request. Refer to RFC 7519.

Example response

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

{
  "access_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJ1c2VyX25hbWUiOiJ1c2VyIiwic2NvcGUiOlsicHJvZDpyYyJdLCJ0ZW5hbnRJZCI6MTQzOCwiZXhwIjoxNTMyMjYzNTkzLCJpYXQiOjE1MzIwMDQzOTMsInVzZXJJZCI6IjIxMDIxYjJmLTllYjMtNDk3ZC1iMjY0LWQxZWY2NDk0YTNjZSIsImp0aSI6IjYyNDZlNjMyLWFlZTctNDk5ZC1hYTdkLTFhOTM4NTRkYjdkNyIsImNsaWVudF9pZCI6InNhbXBsZS1jbGllbnQiLCJ1c2VybmFtZSI6InVzZXIifQ.cMAqBMMOCjMncv3DNLWYcj62ekwr5Jiygsz5ujqdTdko6cl0-u8FvUWMKf4_Bw8TVr7xEW1G1Eiojpw5A3dAU93NeavIPFIfyf33VUgW6iLmDdEJpjk75OqQusWWqt7nxctglsAeYa1i33dhPrg7kifPqzqbE1AqXoNt03LVsu4oVb4axa4J0_bQpnscykvoE0d3rxw0mN-K4Ca1s60SaITdb9MdCvsKEWPhLM-WSoN8gVcvvVR77V89nkaPDW3UxfX4SprbZDQo-Ac4QKloavEPhYkQaqAl1-P51XI7fDEca6eD6daJuQklZeW-pZ3JMzqc7MbT9y1kh3NlLiX3Ig",
  "token_type" : "bearer",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJ1c2VyX25hbWUiOiJ1c2VyIiwic2NvcGUiOlsicHJvZDpyYyJdLCJhdGkiOiI2MjQ2ZTYzMi1hZWU3LTQ5OWQtYWE3ZC0xYTkzODU0ZGI3ZDciLCJ0ZW5hbnRJZCI6MTQzOCwiZXhwIjoxNTM0NTk2MzkzLCJpYXQiOjE1MzIwMDQzOTMsInVzZXJJZCI6IjIxMDIxYjJmLTllYjMtNDk3ZC1iMjY0LWQxZWY2NDk0YTNjZSIsImp0aSI6IjgyZTBiYmUyLTRmMTgtNDZkMi04MTdlLWIzMmFhZWEyZmZiYSIsImNsaWVudF9pZCI6InNhbXBsZS1jbGllbnQiLCJ1c2VybmFtZSI6InVzZXIifQ.E9sU1TNz3giwbPKeNCVwXeMKxi7OSQLjjsEugMFxlDT7Z9zFF39-ASFga4CCNw9ji50QlfzoV3krsv4PFCWvpv3TW9PTwjTFFSL-6A5wDZ8GbQrjU1Ea4V9HUpOQJH1VHWmE6soC7BzgH2lr6PmJl95d6fdSo4iGtUF_sJYheB595B49l9Uk7CyJEOZh5FO3_Yz0LnW7gswtKyKMHBNrKupTBBIoIuImrtj6mUOMP7aTiNNpLjWkqZD9yJO6vJR21aRV3eZevWtUbjsryY-jqrIM-Vas6x-rm5i2UXbVUqWPtlRXKMSMMY5-RX4wosVUE_ElFxxGbIaFMoUAu5R4wQ",
  "expires_in" : 259199,
  "scope" : "prod:rc",
  "tenantId" : 1438,
  "iat" : 1532004393,
  "userId" : "21021b2f-9eb3-497d-b264-d1ef6494a3ce",
  "username" : "user",
  "jti" : "6246e632-aee7-499d-aa7d-1a93854db7d7"
}

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. Used as an authorization grant to request access to protected resources. Use client_credentials for client credentials flow. Refer to RFC 6749.

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 'clientId1: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 to each request. Refer to RFC 7519.

Example response

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

{
  "access_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJzY29wZSI6WyJwcm9kOmNyIl0sInRlbmFudElkIjoxNDM4LCJleHAiOjE1MzIwNDc1OTYsImlhdCI6MTUzMjAwNDM5NiwianRpIjoiNTBmNzc4NDItMDNmZi00MjMzLWFlYjgtMjZiZDM2YWI1ODI0IiwiY2xpZW50X2lkIjoiY2xpZW50SWQxIn0.kP_er5ouR3XySkPeGT_MpXFRxshpKUlHksHaXuEj-VHKritqmYZmsOe9GzFAman-HuyvI6O6OlUtOYNVzOqQfO3z7MrCYnAK9LYTrwehZumk2chXAn4QcxuinGnUJmBDsyvyP4QxLfcqpCWE22r5SLfuQjS6tSYrHYy00HtOgnkxAlwyCwsylWZVjU6lSL8Ff7qKG6S4o6bnSua641YnS83Qqtwzj5_V8hKZ7Q9XGbVLRsWFmTD-OCCQ7NnRPW3Ee_0FgJEqBho89zRnDtkEu8rd1ZO6ccjWLXeiSp_V2G4LusfqNmrR31nO4gtmvugHH639G_MYB4w4HofCLeQsGw",
  "token_type" : "bearer",
  "expires_in" : 43199,
  "scope" : "prod:cr",
  "tenantId" : 1438,
  "iat" : 1532004396,
  "jti" : "50f77842-03ff-4233-aeb8-26bd36ab5824"
}

Carts

The carts resources is 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/a5012941-d6fa-4435-8fdf-4e57b4bfe208
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 4704

{
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_id" : "2ee9f998-dcbe-4cbe-ab1f-c1c9849b266b",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/02c79cae-25d5-46e2-918f-ff28f261cd38/shipping-methods/2ee9f998-dcbe-4cbe-ab1f-c1c9849b266b"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "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/ca0fb1cd-a730-422a-b798-bb205fb87a77"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/ca0fb1cd-a730-422a-b798-bb205fb87a77"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/ca0fb1cd-a730-422a-b798-bb205fb87a77/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/ca0fb1cd-a730-422a-b798-bb205fb87a77/payment-integration"
          }
        },
        "_id" : "ca0fb1cd-a730-422a-b798-bb205fb87a77"
      }
    }
  },
  "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
  },
  "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/a5012941-d6fa-4435-8fdf-4e57b4bfe208"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a5012941-d6fa-4435-8fdf-4e57b4bfe208/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a5012941-d6fa-4435-8fdf-4e57b4bfe208/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a5012941-d6fa-4435-8fdf-4e57b4bfe208/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a5012941-d6fa-4435-8fdf-4e57b4bfe208/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a5012941-d6fa-4435-8fdf-4e57b4bfe208/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a5012941-d6fa-4435-8fdf-4e57b4bfe208/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a5012941-d6fa-4435-8fdf-4e57b4bfe208/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a5012941-d6fa-4435-8fdf-4e57b4bfe208/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a5012941-d6fa-4435-8fdf-4e57b4bfe208/shipping-address"
    }
  },
  "_id" : "a5012941-d6fa-4435-8fdf-4e57b4bfe208"
}

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/1de597e1-0e21-4a2e-941d-95dc019c4647' -i -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.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

Download URL of the default image.

lineItems[].quantity.value

Number

The value of the quantity.

lineItems[].quantity.unit

String

The unit of the quantity.

lineItems[].quantityInt

Number

The value of the quantity.

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.

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.

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.

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 price 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.

Example response

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

{
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "1449c274-4c25-4dcd-a4a6-da12de179041",
    "_ref" : "f0864bc8-bbfb-420a-9ca7-82f52fcf71fd",
    "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
    "quantity" : {
      "value" : 1,
      "unit" : "PIECE"
    },
    "singleItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "_embedded" : {
      "product" : {
        "_id" : "f0864bc8-bbfb-420a-9ca7-82f52fcf71fd",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/f0864bc8-bbfb-420a-9ca7-82f52fcf71fd?locale=de-DE"
          },
          "default-image-data" : {
            "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
          }
        }
      }
    },
    "quantityInt" : 1,
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0.9405
    },
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/carts/1de597e1-0e21-4a2e-941d-95dc019c4647/line-items/1449c274-4c25-4dcd-a4a6-da12de179041"
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "shipping-method" : {
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_id" : "19fb4229-6ae3-42e7-9bc0-a376b5347442",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/45056d3a-be72-4562-b4ea-70d07b27fc79/shipping-methods/19fb4229-6ae3-42e7-9bc0-a376b5347442"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "payment-method" : {
        "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/a321be38-2f01-448c-9d89-8960a08450df"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/a321be38-2f01-448c-9d89-8960a08450df"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/a321be38-2f01-448c-9d89-8960a08450df/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/a321be38-2f01-448c-9d89-8960a08450df/payment-integration"
          }
        },
        "_id" : "a321be38-2f01-448c-9d89-8960a08450df"
      }
    }
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : null,
    "title" : "",
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser" ],
    "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" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser" ],
    "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
  },
  "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/1de597e1-0e21-4a2e-941d-95dc019c4647"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1de597e1-0e21-4a2e-941d-95dc019c4647/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1de597e1-0e21-4a2e-941d-95dc019c4647/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1de597e1-0e21-4a2e-941d-95dc019c4647/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1de597e1-0e21-4a2e-941d-95dc019c4647/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1de597e1-0e21-4a2e-941d-95dc019c4647/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1de597e1-0e21-4a2e-941d-95dc019c4647/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1de597e1-0e21-4a2e-941d-95dc019c4647/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1de597e1-0e21-4a2e-941d-95dc019c4647/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1de597e1-0e21-4a2e-941d-95dc019c4647/shipping-address"
    },
    "place-order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1de597e1-0e21-4a2e-941d-95dc019c4647/order"
    }
  },
  "_id" : "1de597e1-0e21-4a2e-941d-95dc019c4647"
}

Delete cart

A DELETE request is used to remove the cart.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/94580268-ccfe-4276-bec5-9c2522b1d753' -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.

marketingChannel

String

The marketing channel for this order.

marketingSubchannel

String

The marketing subchannel for this order.

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/1f1b3cf2-82aa-4180-9b2c-49ff9c3a4fc2/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}'

Example response

HTTP/1.1 202 Accepted
Location: https://api-shop.beyondshop.cloud/api/order/orders/search/find-by-cart-id?cartId=1f1b3cf2-82aa-4180-9b2c-49ff9c3a4fc2

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).

quantityInt

Number

The value of the quantity. A negative value reduces the line item quantity.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/8b7585e7-bdbd-4fe2-a851-909f20aeab23/line-items' -i -X POST -H 'Content-Type: application/json' -d '{"_type":"PRODUCT","_ref":"c78736cc-54f4-4d9f-a3d4-c47fa360ae6e","quantityInt":1}'

Example response

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

{
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "444ce85e-44c0-439c-adcb-28fe43f8e506",
    "_ref" : "c78736cc-54f4-4d9f-a3d4-c47fa360ae6e",
    "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
    "quantity" : {
      "value" : 1,
      "unit" : "PIECE"
    },
    "singleItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "_embedded" : {
      "product" : {
        "_id" : "c78736cc-54f4-4d9f-a3d4-c47fa360ae6e",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/c78736cc-54f4-4d9f-a3d4-c47fa360ae6e?locale=de-DE"
          },
          "default-image-data" : {
            "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
          }
        }
      }
    },
    "quantityInt" : 1,
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0.9405
    },
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/carts/8b7585e7-bdbd-4fe2-a851-909f20aeab23/line-items/444ce85e-44c0-439c-adcb-28fe43f8e506"
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "shipping-method" : {
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_id" : "6d42b56f-e14d-4247-b944-10021b06a8d3",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e3505067-ce2a-4977-89db-d2367bb753ac/shipping-methods/6d42b56f-e14d-4247-b944-10021b06a8d3"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "payment-method" : {
        "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/a9d56f27-6735-4da5-994e-c2c8de7b8051"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/a9d56f27-6735-4da5-994e-c2c8de7b8051"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/a9d56f27-6735-4da5-994e-c2c8de7b8051/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/a9d56f27-6735-4da5-994e-c2c8de7b8051/payment-integration"
          }
        },
        "_id" : "a9d56f27-6735-4da5-994e-c2c8de7b8051"
      }
    }
  },
  "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
  },
  "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/8b7585e7-bdbd-4fe2-a851-909f20aeab23"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8b7585e7-bdbd-4fe2-a851-909f20aeab23/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8b7585e7-bdbd-4fe2-a851-909f20aeab23/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8b7585e7-bdbd-4fe2-a851-909f20aeab23/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8b7585e7-bdbd-4fe2-a851-909f20aeab23/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8b7585e7-bdbd-4fe2-a851-909f20aeab23/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8b7585e7-bdbd-4fe2-a851-909f20aeab23/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8b7585e7-bdbd-4fe2-a851-909f20aeab23/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8b7585e7-bdbd-4fe2-a851-909f20aeab23/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8b7585e7-bdbd-4fe2-a851-909f20aeab23/shipping-address"
    }
  },
  "_id" : "8b7585e7-bdbd-4fe2-a851-909f20aeab23"
}

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).

quantityInt

Number

The value of the quantity. A negative value reduces the line item quantity.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/d7753fce-25a7-477a-99a9-c642151b65c3/line-items/04684d63-7533-4f2b-b31b-ccb5c6d68203' -i -X PUT -H 'Content-Type: application/json' -d '{"_type":"PRODUCT","_ref":"7faa5d5f-5b4d-4089-81cb-06df26b29291","quantityInt":2}'

Example response

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

{
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "04684d63-7533-4f2b-b31b-ccb5c6d68203",
    "_ref" : "7faa5d5f-5b4d-4089-81cb-06df26b29291",
    "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
    "quantity" : {
      "value" : 2,
      "unit" : "PIECE"
    },
    "singleItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 9.9
    },
    "_embedded" : {
      "product" : {
        "_id" : "7faa5d5f-5b4d-4089-81cb-06df26b29291",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/7faa5d5f-5b4d-4089-81cb-06df26b29291?locale=de-DE"
          },
          "default-image-data" : {
            "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
          }
        }
      }
    },
    "quantityInt" : 2,
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 1.881
    },
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/carts/d7753fce-25a7-477a-99a9-c642151b65c3/line-items/04684d63-7533-4f2b-b31b-ccb5c6d68203"
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "shipping-method" : {
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_id" : "80b7bf02-5eb4-48c8-8650-d7df4acc45ec",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/025b84a5-36f3-4aaf-9751-04e5151726f1/shipping-methods/80b7bf02-5eb4-48c8-8650-d7df4acc45ec"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "payment-method" : {
        "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/c9bc04c2-1d4b-4f8e-98ab-68d96af9a26e"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c9bc04c2-1d4b-4f8e-98ab-68d96af9a26e"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c9bc04c2-1d4b-4f8e-98ab-68d96af9a26e/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c9bc04c2-1d4b-4f8e-98ab-68d96af9a26e/payment-integration"
          }
        },
        "_id" : "c9bc04c2-1d4b-4f8e-98ab-68d96af9a26e"
      }
    }
  },
  "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
  },
  "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/d7753fce-25a7-477a-99a9-c642151b65c3"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/d7753fce-25a7-477a-99a9-c642151b65c3/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/d7753fce-25a7-477a-99a9-c642151b65c3/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/d7753fce-25a7-477a-99a9-c642151b65c3/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/d7753fce-25a7-477a-99a9-c642151b65c3/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/d7753fce-25a7-477a-99a9-c642151b65c3/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/d7753fce-25a7-477a-99a9-c642151b65c3/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/d7753fce-25a7-477a-99a9-c642151b65c3/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/d7753fce-25a7-477a-99a9-c642151b65c3/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/d7753fce-25a7-477a-99a9-c642151b65c3/shipping-address"
    }
  },
  "_id" : "d7753fce-25a7-477a-99a9-c642151b65c3"
}

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/9c482723-9c83-48b2-bb73-e5953c73cfc9/line-items' -i -X PUT -H 'Content-Type: application/json' -d '[{"_type":"PRODUCT","_ref":"6c69628d-ae3d-4caa-9609-66082f2f6c1e","quantityInt":1}]'

Example response

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

{
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "dd912a65-b599-404a-91eb-4cb0d57c3f8c",
    "_ref" : "6c69628d-ae3d-4caa-9609-66082f2f6c1e",
    "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
    "quantity" : {
      "value" : 1,
      "unit" : "PIECE"
    },
    "singleItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "_embedded" : {
      "product" : {
        "_id" : "6c69628d-ae3d-4caa-9609-66082f2f6c1e",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/6c69628d-ae3d-4caa-9609-66082f2f6c1e?locale=de-DE"
          },
          "default-image-data" : {
            "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
          }
        }
      }
    },
    "quantityInt" : 1,
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0.9405
    },
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/carts/9c482723-9c83-48b2-bb73-e5953c73cfc9/line-items/dd912a65-b599-404a-91eb-4cb0d57c3f8c"
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "shipping-method" : {
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_id" : "7107d1c4-389b-4bc3-ae62-e5d0bf4c0fc9",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2b51d2f3-42af-44c6-ae27-d4c33ceb8cab/shipping-methods/7107d1c4-389b-4bc3-ae62-e5d0bf4c0fc9"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "payment-method" : {
        "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/19713d5d-cc99-44ce-aa69-3cd18c02b23c"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/19713d5d-cc99-44ce-aa69-3cd18c02b23c"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/19713d5d-cc99-44ce-aa69-3cd18c02b23c/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/19713d5d-cc99-44ce-aa69-3cd18c02b23c/payment-integration"
          }
        },
        "_id" : "19713d5d-cc99-44ce-aa69-3cd18c02b23c"
      }
    }
  },
  "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
  },
  "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/9c482723-9c83-48b2-bb73-e5953c73cfc9"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/9c482723-9c83-48b2-bb73-e5953c73cfc9/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/9c482723-9c83-48b2-bb73-e5953c73cfc9/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/9c482723-9c83-48b2-bb73-e5953c73cfc9/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/9c482723-9c83-48b2-bb73-e5953c73cfc9/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/9c482723-9c83-48b2-bb73-e5953c73cfc9/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/9c482723-9c83-48b2-bb73-e5953c73cfc9/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/9c482723-9c83-48b2-bb73-e5953c73cfc9/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/9c482723-9c83-48b2-bb73-e5953c73cfc9/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/9c482723-9c83-48b2-bb73-e5953c73cfc9/shipping-address"
    }
  },
  "_id" : "9c482723-9c83-48b2-bb73-e5953c73cfc9"
}

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/be9affc9-6149-4fa0-9d1c-7ba1e701f510/line-items/b3ad486d-6801-4a18-86de-ea41ac182327' -i -X DELETE

Example response

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

{
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_id" : "8711c502-bb64-40f9-90ff-116df312811b",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/ddfe3545-4173-483c-9ab0-22d525d42932/shipping-methods/8711c502-bb64-40f9-90ff-116df312811b"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "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/b13b73df-a652-462c-9391-3e70a737ca36"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/b13b73df-a652-462c-9391-3e70a737ca36"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/b13b73df-a652-462c-9391-3e70a737ca36/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/b13b73df-a652-462c-9391-3e70a737ca36/payment-integration"
          }
        },
        "_id" : "b13b73df-a652-462c-9391-3e70a737ca36"
      }
    }
  },
  "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
  },
  "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/be9affc9-6149-4fa0-9d1c-7ba1e701f510"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be9affc9-6149-4fa0-9d1c-7ba1e701f510/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be9affc9-6149-4fa0-9d1c-7ba1e701f510/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be9affc9-6149-4fa0-9d1c-7ba1e701f510/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be9affc9-6149-4fa0-9d1c-7ba1e701f510/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be9affc9-6149-4fa0-9d1c-7ba1e701f510/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be9affc9-6149-4fa0-9d1c-7ba1e701f510/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be9affc9-6149-4fa0-9d1c-7ba1e701f510/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be9affc9-6149-4fa0-9d1c-7ba1e701f510/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/be9affc9-6149-4fa0-9d1c-7ba1e701f510/shipping-address"
    }
  },
  "_id" : "be9affc9-6149-4fa0-9d1c-7ba1e701f510"
}

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 for 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. Must not be empty

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/c233117a-ba53-4071-8373-cc0e9e6baa0f/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":"","postalCode":"20999","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: 5528

{
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_id" : "89a70db2-26fa-4077-836b-3fdafceea1bb",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/6d5e0270-9fad-411b-bfe3-12317a439c50/shipping-methods/89a70db2-26fa-4077-836b-3fdafceea1bb"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "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/a2214ca6-6ca4-4381-985e-bdef40094030"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/a2214ca6-6ca4-4381-985e-bdef40094030"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/a2214ca6-6ca4-4381-985e-bdef40094030/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/a2214ca6-6ca4-4381-985e-bdef40094030/payment-integration"
          }
        },
        "_id" : "a2214ca6-6ca4-4381-985e-bdef40094030"
      }
    }
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : null,
    "title" : "",
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser" ],
    "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
  },
  "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/c233117a-ba53-4071-8373-cc0e9e6baa0f"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c233117a-ba53-4071-8373-cc0e9e6baa0f/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c233117a-ba53-4071-8373-cc0e9e6baa0f/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c233117a-ba53-4071-8373-cc0e9e6baa0f/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c233117a-ba53-4071-8373-cc0e9e6baa0f/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c233117a-ba53-4071-8373-cc0e9e6baa0f/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c233117a-ba53-4071-8373-cc0e9e6baa0f/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c233117a-ba53-4071-8373-cc0e9e6baa0f/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c233117a-ba53-4071-8373-cc0e9e6baa0f/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c233117a-ba53-4071-8373-cc0e9e6baa0f/shipping-address"
    },
    "place-order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c233117a-ba53-4071-8373-cc0e9e6baa0f/order"
    }
  },
  "_id" : "c233117a-ba53-4071-8373-cc0e9e6baa0f"
}

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 for 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. Must not be empty

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/6a4cd924-97ab-40f4-83a2-0745fff4531c/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":"","postalCode":"20999","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: 5343

{
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_id" : "a89f7abf-95a8-4045-9f7e-7818bf9c15e2",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/6e8d2430-0b8d-429b-afd2-11c317507545/shipping-methods/a89f7abf-95a8-4045-9f7e-7818bf9c15e2"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "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/942c7829-a6ed-4c86-afb5-8c309b6ffd41"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/942c7829-a6ed-4c86-afb5-8c309b6ffd41"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/942c7829-a6ed-4c86-afb5-8c309b6ffd41/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/942c7829-a6ed-4c86-afb5-8c309b6ffd41/payment-integration"
          }
        },
        "_id" : "942c7829-a6ed-4c86-afb5-8c309b6ffd41"
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : null,
    "title" : "",
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser" ],
    "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
  },
  "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/6a4cd924-97ab-40f4-83a2-0745fff4531c"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/6a4cd924-97ab-40f4-83a2-0745fff4531c/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/6a4cd924-97ab-40f4-83a2-0745fff4531c/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/6a4cd924-97ab-40f4-83a2-0745fff4531c/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/6a4cd924-97ab-40f4-83a2-0745fff4531c/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/6a4cd924-97ab-40f4-83a2-0745fff4531c/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/6a4cd924-97ab-40f4-83a2-0745fff4531c/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/6a4cd924-97ab-40f4-83a2-0745fff4531c/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/6a4cd924-97ab-40f4-83a2-0745fff4531c/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/6a4cd924-97ab-40f4-83a2-0745fff4531c/shipping-address"
    }
  },
  "_id" : "6a4cd924-97ab-40f4-83a2-0745fff4531c"
}

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/e6f98bc9-c664-4113-bf0f-11406cb7bfdf/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/b716c17b-eb09-4dc3-b4f7-910b51bf365b'

Example response

HTTP/1.1 200 OK
Content-Type: application/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: 6368

{
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "86abec9e-5d22-411e-a7e6-20f9baa05003",
    "_ref" : "16c55a4c-0102-4629-96a5-accc43e4b027",
    "name" : "Power & Vanilla Coconut Protein Bar (Pack of 5)",
    "quantity" : {
      "value" : 1,
      "unit" : "PIECE"
    },
    "singleItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "lineItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 4.95
    },
    "_embedded" : {
      "product" : {
        "_id" : "16c55a4c-0102-4629-96a5-accc43e4b027",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/16c55a4c-0102-4629-96a5-accc43e4b027?locale=de-DE"
          },
          "default-image-data" : {
            "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
          }
        }
      }
    },
    "quantityInt" : 1,
    "lineItemTax" : {
      "taxClass" : "REGULAR",
      "taxRate" : 0.19,
      "currency" : "EUR",
      "amount" : 0.9405
    },
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/carts/e6f98bc9-c664-4113-bf0f-11406cb7bfdf/line-items/86abec9e-5d22-411e-a7e6-20f9baa05003"
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "shipping-method" : {
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_id" : "91a45699-8721-40a9-99c3-66daeddcc6bf",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/32021202-49ae-46ae-bae0-99c123c4c229/shipping-methods/91a45699-8721-40a9-99c3-66daeddcc6bf"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "NET",
      "currency" : "EUR",
      "amount" : 0.4988
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_embedded" : {
      "payment-method" : {
        "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" : [ "GB", "DE" ],
        "minimumOrderValue" : {
          "currency" : "EUR",
          "amount" : 20
        },
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/b716c17b-eb09-4dc3-b4f7-910b51bf365b"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/b716c17b-eb09-4dc3-b4f7-910b51bf365b"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/b716c17b-eb09-4dc3-b4f7-910b51bf365b/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/b716c17b-eb09-4dc3-b4f7-910b51bf365b/payment-integration"
          }
        },
        "_id" : "b716c17b-eb09-4dc3-b4f7-910b51bf365b"
      }
    }
  },
  "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
  },
  "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/e6f98bc9-c664-4113-bf0f-11406cb7bfdf"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/e6f98bc9-c664-4113-bf0f-11406cb7bfdf/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/e6f98bc9-c664-4113-bf0f-11406cb7bfdf/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/e6f98bc9-c664-4113-bf0f-11406cb7bfdf/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/e6f98bc9-c664-4113-bf0f-11406cb7bfdf/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/e6f98bc9-c664-4113-bf0f-11406cb7bfdf/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/e6f98bc9-c664-4113-bf0f-11406cb7bfdf/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/e6f98bc9-c664-4113-bf0f-11406cb7bfdf/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/e6f98bc9-c664-4113-bf0f-11406cb7bfdf/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/e6f98bc9-c664-4113-bf0f-11406cb7bfdf/shipping-address"
    }
  },
  "_id" : "e6f98bc9-c664-4113-bf0f-11406cb7bfdf"
}

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/198370cd-03e3-4e00-a390-5ca533615dfd/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-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: 4704

{
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_id" : "4859c514-2428-40f8-bf29-c10defcb6f69",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/6f2632e5-edec-496d-bdd5-91a08b485ee1/shipping-methods/4859c514-2428-40f8-bf29-c10defcb6f69"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "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/c208f2ff-d7eb-4fe3-b37b-92df32d51bbc"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c208f2ff-d7eb-4fe3-b37b-92df32d51bbc"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c208f2ff-d7eb-4fe3-b37b-92df32d51bbc/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c208f2ff-d7eb-4fe3-b37b-92df32d51bbc/payment-integration"
          }
        },
        "_id" : "c208f2ff-d7eb-4fe3-b37b-92df32d51bbc"
      }
    }
  },
  "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
  },
  "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/198370cd-03e3-4e00-a390-5ca533615dfd"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/198370cd-03e3-4e00-a390-5ca533615dfd/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/198370cd-03e3-4e00-a390-5ca533615dfd/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/198370cd-03e3-4e00-a390-5ca533615dfd/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/198370cd-03e3-4e00-a390-5ca533615dfd/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/198370cd-03e3-4e00-a390-5ca533615dfd/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/198370cd-03e3-4e00-a390-5ca533615dfd/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/198370cd-03e3-4e00-a390-5ca533615dfd/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/198370cd-03e3-4e00-a390-5ca533615dfd/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/198370cd-03e3-4e00-a390-5ca533615dfd/shipping-address"
    }
  },
  "_id" : "198370cd-03e3-4e00-a390-5ca533615dfd"
}

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/8cb1549e-2911-44a2-a4d2-6c575964e988/payment-methods/current' -i -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-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: 1127

{
  "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/3b992e5a-9933-4742-856e-12c348bab3dc"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3b992e5a-9933-4742-856e-12c348bab3dc"
    },
    "deactivate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3b992e5a-9933-4742-856e-12c348bab3dc/deactivate"
    },
    "payment-integration" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3b992e5a-9933-4742-856e-12c348bab3dc/payment-integration"
    }
  },
  "_id" : "3b992e5a-9933-4742-856e-12c348bab3dc"
}

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/c21def24-c005-419e-a413-85c0add2f954/payment-methods' -i -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 merchant administration 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-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: 1817

{
  "_embedded" : {
    "payment-methods" : [ {
      "lineItemPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 2
      },
      "selectable" : true,
      "_embedded" : {
        "payment-method" : {
          "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/5e01c8ed-db30-4d9a-97b6-31b3f37970b3"
            },
            "payment-method" : {
              "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/5e01c8ed-db30-4d9a-97b6-31b3f37970b3"
            },
            "deactivate-payment-method" : {
              "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/5e01c8ed-db30-4d9a-97b6-31b3f37970b3/deactivate"
            },
            "payment-integration" : {
              "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/5e01c8ed-db30-4d9a-97b6-31b3f37970b3/payment-integration"
            }
          },
          "_id" : "5e01c8ed-db30-4d9a-97b6-31b3f37970b3"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c21def24-c005-419e-a413-85c0add2f954/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 redirect URI if the payment authorization was not successful.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/d60a561d-fd9b-4e6a-978c-36e9eb1afc42/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. The client has to redirect to this URI to initiate the approval.

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: 48

{
  "approvalUri" : "http://some.com/approval"
}

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 redirect URI if the payment authorization was not successful.

customerComment

String

An optional comment from the customer regarding the order.

salesChannel

String

The sales channel for this order.

marketingChannel

String

The marketing channel for this order.

marketingSubchannel

String

The marketing subchannel for this order.

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/f80f45dd-17ac-486c-aab4-53fc7831c91e/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. The client has to redirect to this URI to initiate the approval.

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: 48

{
  "approvalUri" : "http://some.com/approval"
}

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/ae7bd13a-a75c-463e-b980-bdfc2190e25e/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/ba6eb626-7c73-45c6-8d37-39d5b730a886/shipping-methods/ea05fd22-f34c-456f-81a5-9f58c99db0e6'

Example response

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

{
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 50
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "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,
        "_id" : "ea05fd22-f34c-456f-81a5-9f58c99db0e6",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/ba6eb626-7c73-45c6-8d37-39d5b730a886/shipping-methods/ea05fd22-f34c-456f-81a5-9f58c99db0e6"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "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/30f21386-9061-4f88-ad89-89265472c4c7"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/30f21386-9061-4f88-ad89-89265472c4c7"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/30f21386-9061-4f88-ad89-89265472c4c7/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/30f21386-9061-4f88-ad89-89265472c4c7/payment-integration"
          }
        },
        "_id" : "30f21386-9061-4f88-ad89-89265472c4c7"
      }
    }
  },
  "billingAddress" : {
    "salutation" : "Mrs",
    "gender" : "FEMALE",
    "company" : null,
    "title" : "",
    "firstName" : "Astrid",
    "middleName" : "Agnes",
    "lastName" : "Alster",
    "street" : "Alsterwasserweg",
    "houseNumber" : "2",
    "street2" : "Erdgeschoss",
    "addressExtension" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser" ],
    "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" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser" ],
    "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
  },
  "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/ae7bd13a-a75c-463e-b980-bdfc2190e25e"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/ae7bd13a-a75c-463e-b980-bdfc2190e25e/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/ae7bd13a-a75c-463e-b980-bdfc2190e25e/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/ae7bd13a-a75c-463e-b980-bdfc2190e25e/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/ae7bd13a-a75c-463e-b980-bdfc2190e25e/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/ae7bd13a-a75c-463e-b980-bdfc2190e25e/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/ae7bd13a-a75c-463e-b980-bdfc2190e25e/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/ae7bd13a-a75c-463e-b980-bdfc2190e25e/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/ae7bd13a-a75c-463e-b980-bdfc2190e25e/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/ae7bd13a-a75c-463e-b980-bdfc2190e25e/shipping-address"
    },
    "place-order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/ae7bd13a-a75c-463e-b980-bdfc2190e25e/order"
    }
  },
  "_id" : "ae7bd13a-a75c-463e-b980-bdfc2190e25e"
}

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/c8f644be-9144-4b9f-b39d-22b41459e9d9/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-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: 4704

{
  "lineItems" : [ ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "shipping-method" : {
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_id" : "c3664f4d-b95e-470f-92f3-afa6a57de818",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/02e820aa-397a-4621-9c84-f7715b5f5927/shipping-methods/c3664f4d-b95e-470f-92f3-afa6a57de818"
          }
        }
      }
    }
  },
  "paymentLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2
    },
    "lineItemTaxes" : [ ],
    "_embedded" : {
      "payment-method" : {
        "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/c3cd53c5-7bd1-4d5c-95a8-f76bc3517e9b"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c3cd53c5-7bd1-4d5c-95a8-f76bc3517e9b"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c3cd53c5-7bd1-4d5c-95a8-f76bc3517e9b/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c3cd53c5-7bd1-4d5c-95a8-f76bc3517e9b/payment-integration"
          }
        },
        "_id" : "c3cd53c5-7bd1-4d5c-95a8-f76bc3517e9b"
      }
    }
  },
  "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
  },
  "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/c8f644be-9144-4b9f-b39d-22b41459e9d9"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c8f644be-9144-4b9f-b39d-22b41459e9d9/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c8f644be-9144-4b9f-b39d-22b41459e9d9/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c8f644be-9144-4b9f-b39d-22b41459e9d9/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c8f644be-9144-4b9f-b39d-22b41459e9d9/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c8f644be-9144-4b9f-b39d-22b41459e9d9/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c8f644be-9144-4b9f-b39d-22b41459e9d9/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c8f644be-9144-4b9f-b39d-22b41459e9d9/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c8f644be-9144-4b9f-b39d-22b41459e9d9/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c8f644be-9144-4b9f-b39d-22b41459e9d9/shipping-address"
    }
  },
  "_id" : "c8f644be-9144-4b9f-b39d-22b41459e9d9"
}

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/878944c8-3dd2-4029-860d-6ab62702d6fe/shipping-methods/current' -i -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-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: 512

{
  "name" : "Standard Shipping 2",
  "description" : "Standard Shipping",
  "taxClass" : "REGULAR",
  "position" : 0,
  "freeShippingValue" : null,
  "fixedPrice" : {
    "taxModel" : "GROSS",
    "currency" : "EUR",
    "amount" : 19.99
  },
  "weightBasedPrice" : null,
  "_id" : "ba765a4f-a527-42b7-862f-51172a3384c7",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/5e35c4e0-6ac9-4737-b604-2317dfe9f896/shipping-methods/ba765a4f-a527-42b7-862f-51172a3384c7"
    }
  }
}

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/d9ab6b91-0658-407a-ae77-c7f15a01709b/shipping-methods' -i -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.

_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.

_embedded.shipping-methods[]._embedded.shipping-method.fixedPrice

Object

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

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

Number

The sorting position of the shipping method in the merchant administration 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

description

_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.

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: 1065

{
  "_embedded" : {
    "shipping-methods" : [ {
      "lineItemPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 19.99
      },
      "selectable" : true,
      "_embedded" : {
        "shipping-method" : {
          "name" : "Standard Shipping 2",
          "description" : "Standard Shipping",
          "taxClass" : "REGULAR",
          "position" : 0,
          "freeShippingValue" : null,
          "fixedPrice" : {
            "taxModel" : "GROSS",
            "currency" : "EUR",
            "amount" : 19.99
          },
          "weightBasedPrice" : null,
          "_id" : "3502836d-c08a-447a-858a-d3dfeecb766e",
          "_links" : {
            "self" : {
              "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/f00be054-497d-4364-b448-c8bbe637904c/shipping-methods/3502836d-c08a-447a-858a-d3dfeecb766e"
            }
          }
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/d9ab6b91-0658-407a-ae77-c7f15a01709b/shipping-methods"
    }
  }
}

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 -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_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

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-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: 1431

{
  "_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" : "90198743-0509-4677-94a2-ac61ffb81004",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/90198743-0509-4677-94a2-ac61ffb81004"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/90198743-0509-4677-94a2-ac61ffb81004"
        }
      }
    }, {
      "name" : "Power Bars",
      "label" : "power-bar",
      "type" : "SMART",
      "query" : { "bool": { "filter": { "term": { "tags": "power-bar" }}}},
      "_id" : "037ff3b9-c284-45da-921b-9d26b8c9d873",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/037ff3b9-c284-45da-921b-9d26b8c9d873"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/037ff3b9-c284-45da-921b-9d26b8c9d873"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories{?page,size,sort}",
      "templated" : true
    },
    "profile" : {
      "href" : "https://api-shop.beyondshop.cloud/api/profile/categories"
    }
  },
  "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.

Must not be empty

label

String

The label of the product collection.

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/0eea1420-2fb0-487d-a180-3e73426ccf1c
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: 185

{
  "name" : "Power Bars",
  "label" : "power-bar",
  "type" : "SMART",
  "query" : {"bool":{"filter":{"term":{"tags":"power-bar"}}}},
  "_id" : "0eea1420-2fb0-487d-a180-3e73426ccf1c"
}

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/8f1065f3-e156-4d39-aef6-7a83bc20042d' -i -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 category. Current representation of the resource. See Hypermedia.

Example response

HTTP/1.1 200 OK
Last-Modified: Wed, 18 Jul 2018 12:05:17 GMT
ETag: "1"
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: 441

{
  "name" : "Power Bars",
  "label" : "power-bar",
  "type" : "SMART",
  "query" : { "bool": { "filter": { "term": { "tags": "power-bar" }}}},
  "_id" : "8f1065f3-e156-4d39-aef6-7a83bc20042d",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/8f1065f3-e156-4d39-aef6-7a83bc20042d"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/8f1065f3-e156-4d39-aef6-7a83bc20042d"
    }
  }
}

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.

Must not be empty

label

String

The label of the product collection.

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/706dfb94-3cd0-46e5-8fe0-a8f7e63d15d6' -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-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: 504

{
  "name" : "updated name",
  "label" : "power-bar",
  "type" : "MANUAL",
  "query" : {"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}},
  "_id" : "706dfb94-3cd0-46e5-8fe0-a8f7e63d15d6",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/706dfb94-3cd0-46e5-8fe0-a8f7e63d15d6"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/706dfb94-3cd0-46e5-8fe0-a8f7e63d15d6"
    }
  }
}

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/07bf86e0-97a4-41b3-9c8b-b6880452bb8c' -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
ETag: "2"
Last-Modified: Wed, 18 Jul 2018 12:05:29 GMT
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: 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" : "07bf86e0-97a4-41b3-9c8b-b6880452bb8c",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/07bf86e0-97a4-41b3-9c8b-b6880452bb8c"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/07bf86e0-97a4-41b3-9c8b-b6880452bb8c"
    }
  }
}

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/2925d797-c869-4a4b-b299-775a32a2efa3' -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
ETag: "2"
Last-Modified: Wed, 18 Jul 2018 12:05:33 GMT
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: 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" : "2925d797-c869-4a4b-b299-775a32a2efa3",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/2925d797-c869-4a4b-b299-775a32a2efa3"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/2925d797-c869-4a4b-b299-775a32a2efa3"
    }
  }
}

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/429bb499-2122-4f0d-b79d-2da30fa0f878' -i -X DELETE -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
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

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/8f1065f3-e156-4d39-aef6-7a83bc20042d' -i -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 category. Current representation of the resource. See Hypermedia.

Example response

HTTP/1.1 200 OK
Last-Modified: Wed, 18 Jul 2018 12:05:17 GMT
ETag: "1"
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: 441

{
  "name" : "Power Bars",
  "label" : "power-bar",
  "type" : "SMART",
  "query" : { "bool": { "filter": { "term": { "tags": "power-bar" }}}},
  "_id" : "8f1065f3-e156-4d39-aef6-7a83bc20042d",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/8f1065f3-e156-4d39-aef6-7a83bc20042d"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/8f1065f3-e156-4d39-aef6-7a83bc20042d"
    }
  }
}

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/62fcb4e7-0697-4a57-bbec-ed23e46ae655?projection=enhancedCategoryProjection' -i -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-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: 616

{
  "_id" : "62fcb4e7-0697-4a57-bbec-ed23e46ae655",
  "_indexedAt" : "2018-07-18T07:21:28.643",
  "type" : "SMART",
  "name" : "Power Bars",
  "label" : "power-bar",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/62fcb4e7-0697-4a57-bbec-ed23e46ae655"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/62fcb4e7-0697-4a57-bbec-ed23e46ae655{?projection}",
      "templated" : true
    },
    "products" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/62fcb4e7-0697-4a57-bbec-ed23e46ae655/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 -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_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

Object

See Hypermedia

page

Object

See Pagination

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: 1431

{
  "_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" : "90198743-0509-4677-94a2-ac61ffb81004",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/90198743-0509-4677-94a2-ac61ffb81004"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/90198743-0509-4677-94a2-ac61ffb81004"
        }
      }
    }, {
      "name" : "Power Bars",
      "label" : "power-bar",
      "type" : "SMART",
      "query" : { "bool": { "filter": { "term": { "tags": "power-bar" }}}},
      "_id" : "037ff3b9-c284-45da-921b-9d26b8c9d873",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/037ff3b9-c284-45da-921b-9d26b8c9d873"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/037ff3b9-c284-45da-921b-9d26b8c9d873"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories{?page,size,sort}",
      "templated" : true
    },
    "profile" : {
      "href" : "https://api-shop.beyondshop.cloud/api/profile/categories"
    }
  },
  "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/68c095fc-68aa-4422-8b35-8e431c26d90f/products' -i -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-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: 1685

{
  "_embedded" : {
    "products" : [ {
      "_id" : "0532cc04-5bd3-49f6-abb0-b6c96eea2783",
      "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/0532cc04-5bd3-49f6-abb0-b6c96eea2783"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/0532cc04-5bd3-49f6-abb0-b6c96eea2783{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/68c095fc-68aa-4422-8b35-8e431c26d90f/products?page=0&size=40&sort=id,asc"
    }
  },
  "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=88ed4df7-81c9-49eb-9b01-e07d0b3a0a45' -i -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-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: 1622

{
  "_embedded" : {
    "categories" : [ {
      "type" : "SMART",
      "name" : "category that loves everyone",
      "label" : null,
      "_id" : "191d63bc-1f19-4dd0-9648-f80cbaa9d891",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/191d63bc-1f19-4dd0-9648-f80cbaa9d891"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/191d63bc-1f19-4dd0-9648-f80cbaa9d891{?projection}",
          "templated" : true
        },
        "products" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/191d63bc-1f19-4dd0-9648-f80cbaa9d891/products"
        }
      }
    }, {
      "type" : "MANUAL",
      "name" : "category that matches product 1 in a complicated way",
      "label" : null,
      "_id" : "9e84ed01-5a48-4800-90fd-956bc4b43b7a",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/9e84ed01-5a48-4800-90fd-956bc4b43b7a"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/9e84ed01-5a48-4800-90fd-956bc4b43b7a{?projection}",
          "templated" : true
        },
        "products" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/9e84ed01-5a48-4800-90fd-956bc4b43b7a/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 -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-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: 572

{
  "type" : "SMART",
  "name" : "Power Bars",
  "label" : "power-bar",
  "_id" : "8e9aec6b-cf8a-420f-82f3-987554422d27",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/8e9aec6b-cf8a-420f-82f3-987554422d27"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/8e9aec6b-cf8a-420f-82f3-987554422d27{?projection}",
      "templated" : true
    },
    "products" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/8e9aec6b-cf8a-420f-82f3-987554422d27/products"
    }
  }
}

Google Shopping

Access Data

Create access data

The access data is required by the service to authenticate against Google Shopping.

Use a POST request to create access data.

Required scopes

gsad:c

Request body properties

Path Type Description Constraints

merchantId

String

The unique identifier for the Google account that the merchant uses for Google Shopping.

redirectUri

String

The URI to which the merchant will be redirected after the confirmation of the Google API access consent dialog.

Not a valid URI

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/access-data' -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>' -d '{
  "merchantId" : "1168736784",
  "redirectUri" : "http://2020.beyondshop.cloud/cockpit"
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/google-shopping/access-data/4d6991c1-7698-4747-99a4-281e0e2e3cc9
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: 425

{
  "authorizeUrl" : "https://google-auth.com/o/oauth2/auth?access_type=offline&client_id=32649939298-sh91tfd793vkuudkk34aliqeg8astose.apps.googleusercontent.com&redirect_uri=http://system.epages.works/api/google-shopping/nonce&response_type=code&scope=https://www.googleapis.com/auth/content+https://www.googleapis.com/auth/siteverification&state=28c005a1-952c-4ea8-9c85-9d53ec5efe99",
  "nonceExpirationDate" : 1531466116
}

Show access data details

Use a GET request to retrieve the access data details.

Required scopes

gsad:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/access-data' -i -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

merchantId

String

The unique identifier for the Google account that the merchant uses for Google Shopping.

tokenExpirationDate

Number

The expiration date of the access token. Displayed in seconds since the start of the Epoch. Refer to RFC 7519.

hasRefreshToken

Boolean

Indicates if a refresh token for the Google API is stored. Can be true or false.

hasAccessToken

Boolean

Indicates if an access token for the Google API is stored. Can be true or false.

_id

String

The immutable, unique identifier of the requested resource.

_links

Object

See Hypermedia

Links

Relation Description

access-data

The access data to authenticate with the Google Shopping API.

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: 465

{
  "merchantId" : "merchantId",
  "tokenExpirationDate" : 123456789,
  "_id" : "9648f121-f177-4a42-b4b3-d9536b7f2ee2",
  "hasAccessToken" : true,
  "hasRefreshToken" : true,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/access-data/9648f121-f177-4a42-b4b3-d9536b7f2ee2"
    },
    "access-data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/access-data{?page,size,sort}",
      "templated" : true
    }
  }
}

Update access data

Use a PUT request to update the access data.

Required scopes

gsad:u

Request body properties

Path Type Description Constraints

merchantId

String

The unique identifier for the Google account that the merchant uses for Google Shopping.

Must not be null

accessToken

String

The encoded access token retrieved from the Google Authorization Server to access the Google API.

refreshToken

String

The refresh token retrieved from the Google Authorization Server to obtain a renewed access token.

tokenExpirationDate

Number

The expiration date of the access token. Displayed in seconds since the start of the Epoch. Refer to RFC 7519.

Must be at least 0 and at most 9223372036854775807

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/access-data' -i -X PUT -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>' -d '{
  "merchantId" : "123456789",
  "refreshToken" : "your refresh token",
  "accessToken" : "my new access token",
  "tokenExpirationDate" : 123456789
}'

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: 464

{
  "merchantId" : "123456789",
  "tokenExpirationDate" : 123456789,
  "_id" : "087b53e1-8a20-4d85-83f5-da080781b86d",
  "hasAccessToken" : true,
  "hasRefreshToken" : true,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/access-data/087b53e1-8a20-4d85-83f5-da080781b86d"
    },
    "access-data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/access-data{?page,size,sort}",
      "templated" : true
    }
  }
}

Delete access data

Use a DELETE request to delete the access data.

Required scopes

gsad:d

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/access-data' -i -X DELETE -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
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

Products

In order to publish a product on Google Shopping (see Publish individual Google Shopping product or Publish a list of Google Shopping products) and make it available in the Merchant Center, first a Google Shopping product has to be created. Next, it has to be updated with further mandatory information, such as categoryId and visibility.

Create Google Shopping product

Use a POST request to create a Google Shopping product.

Required scopes

gspr:c

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/products' -i -X POST -H 'Content-Type: text/uri-list' -H 'Authorization: Bearer <Access token>' -d 'https://api-shop.beyondshop.cloud/api/products/05955525-03f4-4cbd-a069-b322b537384e
https://api-shop.beyondshop.cloud/api/products/88a743d0-544f-429c-98aa-a01eef4ec368
https://api-shop.beyondshop.cloud/api/products/0340d5d3-eeed-4ffb-a68c-37078fa4f21c
https://api-shop.beyondshop.cloud/api/products/b230ed14-119b-40f5-9a3c-b7c38d2d9ae5
https://api-shop.beyondshop.cloud/api/products/60da0503-c3d2-4aef-b34e-b69ca6d4fc2f
'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/google-shopping/products
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

List Google Shopping products

Use a GET request to retrieve a list of all Google Shopping products.

Required scopes

gspr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/products' -i -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_links

Object

See Hypermedia

page

Object

See Pagination

_embedded.products[].visible

Boolean

Indicates if the product is visible in Google Shopping. Can be true or false.

_embedded.products[].category

Number

The category number as defined in the Google taxonomy.

_embedded.products[].status

Object

The status of the product publication process.

_embedded.products[].status.type

String

The status type of the product publication process. Can be INCOMPLETE, READY_TO_PUBLISH, PENDING, ERROR, PUBLISHED or PUBLISHED_WITH_NOTIFICATIONS.

_embedded.products[].status.errorMessage

Null

The error message for an error that appears during the product publication process. Is null for INCOMPLETE, PENDING, PUBLISHED.

_embedded.products[].parentId

String

The unique identifier of the related original product.

_embedded.products[]._id

String

The immutable, unique identifier of the requested resource.

_embedded.products[]._links

Object

See Hypermedia

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: 3810

{
  "_embedded" : {
    "products" : [ {
      "visible" : true,
      "category" : 123456,
      "status" : {
        "type" : "INCOMPLETE",
        "errorMessage" : null
      },
      "_id" : "482008b3-2d09-4131-905f-894fcd33c0a3",
      "parentId" : "5da7c7c5-c5fa-4d39-869d-9f70b67fadf0",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/482008b3-2d09-4131-905f-894fcd33c0a3"
        },
        "products" : {
          "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products{?page,size,sort}",
          "templated" : true
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/5da7c7c5-c5fa-4d39-869d-9f70b67fadf0"
        }
      }
    }, {
      "visible" : true,
      "category" : 123456,
      "status" : {
        "type" : "INCOMPLETE",
        "errorMessage" : null
      },
      "_id" : "4f37a362-f645-4b0f-be69-47a7068d13ba",
      "parentId" : "8744c879-2dd9-4ca2-bfd1-bb6b2ed5a95f",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/4f37a362-f645-4b0f-be69-47a7068d13ba"
        },
        "products" : {
          "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products{?page,size,sort}",
          "templated" : true
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/8744c879-2dd9-4ca2-bfd1-bb6b2ed5a95f"
        }
      }
    }, {
      "visible" : true,
      "category" : 123456,
      "status" : {
        "type" : "INCOMPLETE",
        "errorMessage" : null
      },
      "_id" : "a38e56b1-237c-4f84-aee2-a2b9e60bdd17",
      "parentId" : "829cb54e-37ab-4d0d-b75f-d3aae4df327e",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/a38e56b1-237c-4f84-aee2-a2b9e60bdd17"
        },
        "products" : {
          "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products{?page,size,sort}",
          "templated" : true
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/829cb54e-37ab-4d0d-b75f-d3aae4df327e"
        }
      }
    }, {
      "visible" : true,
      "category" : 123456,
      "status" : {
        "type" : "INCOMPLETE",
        "errorMessage" : null
      },
      "_id" : "b6ba8b0f-61de-450d-9508-28e2449824a5",
      "parentId" : "6e29f07e-65f5-47ba-a0a4-4ccc87a049ed",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/b6ba8b0f-61de-450d-9508-28e2449824a5"
        },
        "products" : {
          "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products{?page,size,sort}",
          "templated" : true
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/6e29f07e-65f5-47ba-a0a4-4ccc87a049ed"
        }
      }
    }, {
      "visible" : true,
      "category" : 123456,
      "status" : {
        "type" : "INCOMPLETE",
        "errorMessage" : null
      },
      "_id" : "e5ca26c9-a341-46da-b7d8-ece11268d234",
      "parentId" : "4c1ce8d6-4d6e-49f8-b16d-38bce4cd637b",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/e5ca26c9-a341-46da-b7d8-ece11268d234"
        },
        "products" : {
          "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products{?page,size,sort}",
          "templated" : true
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/4c1ce8d6-4d6e-49f8-b16d-38bce4cd637b"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products{?page,size,sort}",
      "templated" : true
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 5,
    "totalPages" : 1,
    "number" : 0
  }
}

Show Google Shopping product details

Use a GET request to retrieve the details of a Google Shopping product.

Required scopes

gspr:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/products/8bf3da85-d9cd-4fa0-9dfb-7db0bd4fa926' -i -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

visible

Boolean

Indicates if the product is visible in Google Shopping. Can be true or false.

category

Number

The category number as defined in the Google taxonomy.

status

Object

The status of the product publication process.

status.type

String

The status type of the product publication process. Can be INCOMPLETE, READY_TO_PUBLISH, PENDING, ERROR, PUBLISHED or PUBLISHED_WITH_NOTIFICATIONS.

status.errorMessage

Null

The error message for an error that appears during the product publication process. Is null for INCOMPLETE, PENDING, PUBLISHED.

parentId

String

The unique identifier of the related original product.

_id

String

The immutable, unique identifier of the requested resource.

_links

Object

See Hypermedia

Links

Relation Description

product

The link to the original product.

products

The products that match a product to a Google offer.

publish

The link to publish a product on Google Shopping.

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: 760

{
  "visible" : true,
  "category" : 123456,
  "status" : {
    "type" : "READY_TO_PUBLISH",
    "errorMessage" : null
  },
  "_id" : "8bf3da85-d9cd-4fa0-9dfb-7db0bd4fa926",
  "parentId" : "e957d33b-00c6-4e2d-8070-b3d0336c1614",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/8bf3da85-d9cd-4fa0-9dfb-7db0bd4fa926"
    },
    "products" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products{?page,size,sort}",
      "templated" : true
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/e957d33b-00c6-4e2d-8070-b3d0336c1614"
    },
    "publish" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/8bf3da85-d9cd-4fa0-9dfb-7db0bd4fa926/publish"
    }
  }
}

Update Google Shopping product

Use a PUT request to update a Google Shopping product.

Required scopes

gspr:u

Request body properties

Path Type Description Constraints

visible

Boolean

Indicates if the product is visible in Google Shopping. Can be true or false.

category

Number

The category number as defined in the Google taxonomy.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/products/c3165988-2ac0-446c-af37-dd9d3d73ca81' -i -X PUT -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>' -d '{
  "category" : 111,
  "visible" : true
}'

Response body properties

Path Type Description

visible

Boolean

Indicates if the product is visible in Google Shopping. Can be true or false.

category

Number

The category number as defined in the Google taxonomy.

status

Object

The status of the product publication process.

status.type

String

The status type of the product publication process. Can be INCOMPLETE, READY_TO_PUBLISH, PENDING, ERROR, PUBLISHED or PUBLISHED_WITH_NOTIFICATIONS.

status.errorMessage

Null

The error message for an error that appears during the product publication process. Is null for INCOMPLETE, PENDING, PUBLISHED.

parentId

String

The unique identifier of the related original product.

_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-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: 757

{
  "visible" : true,
  "category" : 111,
  "status" : {
    "type" : "READY_TO_PUBLISH",
    "errorMessage" : null
  },
  "_id" : "c3165988-2ac0-446c-af37-dd9d3d73ca81",
  "parentId" : "4cf9f642-2f3a-4aad-8225-016e236372eb",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/c3165988-2ac0-446c-af37-dd9d3d73ca81"
    },
    "products" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products{?page,size,sort}",
      "templated" : true
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/4cf9f642-2f3a-4aad-8225-016e236372eb"
    },
    "publish" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/c3165988-2ac0-446c-af37-dd9d3d73ca81/publish"
    }
  }
}

Publish list of Google Shopping products

Once Google Shopping products have been created, they can be published on Google Shopping. After publication, the products are available in the Google Merchant Center. It can take up to two hours until the products are listed.

Use a POST request to publish a list of Google Shopping products.

Required scopes

gspr:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/products/publish' -i -X POST -H 'Content-Type: text/uri-list' -H 'Authorization: Bearer <Access token>' -d 'https://api-shop.beyondshop.cloud/api/google-shopping/products/50e76f37-b880-4b4b-83d8-065813725eff
https://api-shop.beyondshop.cloud/api/google-shopping/products/ca221bd5-2014-4037-be4f-2397188f4e24
https://api-shop.beyondshop.cloud/api/google-shopping/products/0df0aa4c-d9aa-4950-99db-3c409ec1361f
https://api-shop.beyondshop.cloud/api/google-shopping/products/03d2d7d9-fbb8-43ae-bbe3-559e54651096
https://api-shop.beyondshop.cloud/api/google-shopping/products/78f99849-34e4-4ab8-bdf1-95f1db0aae12
'

Example response

HTTP/1.1 202 Accepted
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

Publish individual Google Shopping product

Once a Google Shopping product has been created, it can be published on Google Shopping. After publication, the product is available in the Google Merchant Center. It can take up to two hours until the product is listed.

Use a POST request to publish an individual Google Shopping product.

Required scopes

gspr:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/products/5c15e5d2-ddc2-4133-9de6-00073ed1d954/publish' -i -X POST -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: 757

{
  "visible" : true,
  "category" : 123456,
  "status" : {
    "type" : "PUBLISHED",
    "errorMessage" : null
  },
  "_id" : "5c15e5d2-ddc2-4133-9de6-00073ed1d954",
  "parentId" : "61fd5562-26f0-4242-b5b8-3947cf82de36",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/5c15e5d2-ddc2-4133-9de6-00073ed1d954"
    },
    "products" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products{?page,size,sort}",
      "templated" : true
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/61fd5562-26f0-4242-b5b8-3947cf82de36"
    },
    "unpublish" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/5c15e5d2-ddc2-4133-9de6-00073ed1d954/unpublish"
    }
  }
}

Unpublish individual Google Shopping product

Use a POST request to unpublish a product from Google Shopping. Once unpublished, it will disappear from the Google Merchant Center, but will still be available with the READY_TO_PUBLISH status.

Required scopes

gspr:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/products/1df841eb-93a4-413c-b072-51e125bc72bb/unpublish' -i -X POST -H 'Content-Type: application/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: 760

{
  "visible" : true,
  "category" : 123456,
  "status" : {
    "type" : "READY_TO_PUBLISH",
    "errorMessage" : null
  },
  "_id" : "1df841eb-93a4-413c-b072-51e125bc72bb",
  "parentId" : "bc4dcc28-018a-442d-b3c5-aefb3194aab4",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/1df841eb-93a4-413c-b072-51e125bc72bb"
    },
    "products" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products{?page,size,sort}",
      "templated" : true
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bc4dcc28-018a-442d-b3c5-aefb3194aab4"
    },
    "publish" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/products/1df841eb-93a4-413c-b072-51e125bc72bb/publish"
    }
  }
}

Delete Google Shopping product

Use a DELETE request to delete a product from Google Shopping.

Required scopes

gspr:d

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/products/44be4dde-2479-4446-91ff-10a5fd3765fd' -i -X DELETE -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
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

Taxonomy

List taxonomy

The taxonomy contains the available Google categories to be assigned to a product to publish to Google.

Use a GET request to retrieve the current taxonomy from Google.

Request parameters

Parameter Description

locale

The locale determining the localization context, i.e. the language of the Google taxonomy.

Request header properties

Name Description

if-modified-since

The date of the last successful retrieval of the Google taxonomy. Optional. If not set the current version of the Google taxonomy is always returned.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/taxonomy?locale=de-DE' -i -H 'if-modified-since: Thu, 07 Dec 2016 01:00:57 GMT'

Response body properties

Path Type Description

_embedded.googleCategories

Array

The list of Google Shopping categories.

_embedded.googleCategories[].categoryId

Number

The Google Shopping category id.

_embedded.googleCategories[].categoryName

String

The Google Shopping category name.

_embedded.googleCategories[].children

Array

The subcategories of the Google Shopping category.

_links

Object

See Hypermedia

Example response

HTTP/1.1 200 OK
Last-Modified: Thu, 08 Dec 2016 01:00:57 GMT
Content-Type: application/json
Content-Length: 621

{
  "_embedded" : {
    "googleCategories" : [ {
      "categoryId" : 1,
      "categoryName" : "Category1",
      "children" : [ ]
    }, {
      "categoryId" : 2,
      "categoryName" : "Category2",
      "children" : [ ]
    }, {
      "categoryId" : 3,
      "categoryName" : "Category3",
      "children" : [ ]
    }, {
      "categoryId" : 4,
      "categoryName" : "Category4",
      "children" : [ ]
    }, {
      "categoryId" : 5,
      "categoryName" : "Category5",
      "children" : [ ]
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/google-shopping/taxonomy"
    }
  }
}

Site Verification Token

Retrieve site verification token

The site verification token required to verify that a shop really belongs to that specific merchant. The site verification token has to be available on the storefront, in order for Google to know that this site really belongs to the Google Shopping merchant.

Use a GET request to retrieve the site verification token.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/google-shopping/site-verification' -i

Response body properties

Path Type Description

token

String

The site verification token required to verify that a shop really belongs to that specific merchant.

Example response

HTTP/1.1 200 OK
Content-Type: application/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: 38

{
  "token" : "<verification token>"
}

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.

Such a configuration

  • 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 -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-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: 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-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: 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 updatable via 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-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: 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-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: 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 -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-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: 10932

{
  "_embedded" : {
    "orders" : [ {
      "_id" : "5b51139a-1ee6-4bff-bd26-6893eaa48aba",
      "createdAt" : "2018-07-19T12:01:58.734",
      "cartId" : "e9f4e8b4-ce75-48a6-94f6-0c841fe7f39c",
      "currency" : "EUR",
      "taxModel" : "GROSS",
      "taxable" : false,
      "testOrder" : false,
      "productLineItems" : [ {
        "product" : {
          "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",
          "_id" : "599f76e5-aa57-4f5a-b0ba-ba5e6cbe8aab",
          "_links" : {
            "default-image-data" : {
              "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
            }
          }
        },
        "quantity" : {
          "value" : 5,
          "unit" : "PIECE"
        },
        "quantityInt" : 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" : "2853e11c-69cc-450d-b9bb-51ecdbdbccf0"
      }, {
        "product" : {
          "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",
          "_id" : "01fa899b-564a-4999-9b07-6eac553bdde3",
          "_links" : {
            "default-image-data" : {
              "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
            }
          }
        },
        "quantity" : {
          "value" : 3,
          "unit" : "PIECE"
        },
        "quantityInt" : 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" : "cd261fa9-c49c-4bae-87d0-6fd6e2764465"
      } ],
      "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" : "",
        "postalCode" : "20999",
        "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", "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" : "",
        "postalCode" : "20999",
        "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", "20999 Alsterwasser", "Germany" ]
      },
      "paymentStatus" : "PENDING",
      "shippingStatus" : "UNSHIPPED",
      "canceled" : false,
      "orderNumber" : "10001",
      "customerComment" : null,
      "orderNote" : "not paid yet",
      "entryDate" : "2018-07-19T12:01:58.734",
      "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/5b51139a-1ee6-4bff-bd26-6893eaa48aba"
        },
        "order" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/5b51139a-1ee6-4bff-bd26-6893eaa48aba"
        },
        "order-note" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/5b51139a-1ee6-4bff-bd26-6893eaa48aba/order-note"
        },
        "processes" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/5b51139a-1ee6-4bff-bd26-6893eaa48aba/processes"
        },
        "events" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/5b51139a-1ee6-4bff-bd26-6893eaa48aba/events"
        },
        "cancel" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/5b51139a-1ee6-4bff-bd26-6893eaa48aba/cancel"
        },
        "create-invoice" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/5b51139a-1ee6-4bff-bd26-6893eaa48aba/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"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders?page=0&size=20"
    }
  },
  "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/32e5b126-9aa0-4981-a176-036ddd8764ae' -i -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/in another system.

entryDate

String

The date and time of the actual creation date 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.

orderNumber

String

The order number generated by the order service.

customerComment

Null

A comment from the customer regarding their order.

salesChannel

String

The sales channel of this order.

marketingChannel

String

The marketing channel of this order.

marketingSubchannel

String

The marketing subchannel of this order.

productLineItems[].quantity.value

Number

The value of the quantity for the product line item.

productLineItems[].quantity.unit

String

The unit corresponding to the quantity for the product line item.

productLineItems[].quantityInt

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 items of this product line item that are not yet dispatched.

productLineItems[].unshipped.amount

Null

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

productLineItems[].shipped.quantity

Number

The quantity of dispatched items of this product line item.

productLineItems[].shipped.amount

Null

The amount of the 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 the 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 the 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 the 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 the 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 total amount 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.

taxes

Array

The taxes grouped by tax class.

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-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: 9211

{
  "_id" : "32e5b126-9aa0-4981-a176-036ddd8764ae",
  "createdAt" : "2018-07-19T12:01:57.124",
  "cartId" : "a9904788-5c10-4674-8a75-7fb3ef6c5a8a",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "productLineItems" : [ {
    "product" : {
      "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",
      "_id" : "189b2c00-f25d-4cfd-b0f9-0c9552c0f8fa",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 5,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "68363b82-4c6d-444f-94ba-01735ddfe73b"
  }, {
    "product" : {
      "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",
      "_id" : "08216317-7496-485e-a7e7-18f47f15e1d2",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 3,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "eacbfbad-f3dd-410e-8347-bff4a53b8831"
  } ],
  "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" : "",
    "postalCode" : "20999",
    "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", "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" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser", "Germany" ]
  },
  "paymentStatus" : "PENDING",
  "shippingStatus" : "UNSHIPPED",
  "canceled" : false,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "entryDate" : "2018-07-19T12:01:57.124",
  "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/32e5b126-9aa0-4981-a176-036ddd8764ae"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/32e5b126-9aa0-4981-a176-036ddd8764ae"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/32e5b126-9aa0-4981-a176-036ddd8764ae/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/32e5b126-9aa0-4981-a176-036ddd8764ae/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/32e5b126-9aa0-4981-a176-036ddd8764ae/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/32e5b126-9aa0-4981-a176-036ddd8764ae/cancel"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/32e5b126-9aa0-4981-a176-036ddd8764ae/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=c62bf2de-71e6-4220-b9eb-cec79407d101' -i -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: 9211

{
  "_id" : "79aa2a00-53bd-4b27-afb9-b78c6bce5ef1",
  "createdAt" : "2018-07-19T12:01:48.955",
  "cartId" : "c62bf2de-71e6-4220-b9eb-cec79407d101",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "productLineItems" : [ {
    "product" : {
      "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",
      "_id" : "4392559b-d81a-4d11-b34b-e072c4e6009d",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 3,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "3e360816-3ff0-44d4-a0a4-7adf0d0191e0"
  }, {
    "product" : {
      "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",
      "_id" : "75560d49-012a-4749-97b4-c852cbacb83c",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 5,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "fd6e9608-1e08-43b1-b6b3-ebaba8f8a0ad"
  } ],
  "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" : "",
    "postalCode" : "20999",
    "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", "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" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser", "Germany" ]
  },
  "paymentStatus" : "PENDING",
  "shippingStatus" : "UNSHIPPED",
  "canceled" : false,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "entryDate" : "2018-07-19T12:01:48.955",
  "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/79aa2a00-53bd-4b27-afb9-b78c6bce5ef1"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/79aa2a00-53bd-4b27-afb9-b78c6bce5ef1"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/79aa2a00-53bd-4b27-afb9-b78c6bce5ef1/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/79aa2a00-53bd-4b27-afb9-b78c6bce5ef1/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/79aa2a00-53bd-4b27-afb9-b78c6bce5ef1/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/79aa2a00-53bd-4b27-afb9-b78c6bce5ef1/cancel"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/79aa2a00-53bd-4b27-afb9-b78c6bce5ef1/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/fb862c9f-78b4-4527-aa67-2b5fcdac206b/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-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: 7134

{
  "createdAt" : "2018-07-19T12:01:59.894",
  "cartId" : "79f929eb-1b39-4069-a3a0-4f2d3a1f2bd7",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "productLineItems" : [ {
    "quantity" : {
      "value" : 5,
      "unit" : "PIECE"
    },
    "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" : {
      "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",
      "_id" : "639ba7e4-944f-4d7b-b4f6-071144be8406",
      "_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
    },
    "quantityInt" : 5
  }, {
    "quantity" : {
      "value" : 3,
      "unit" : "PIECE"
    },
    "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" : {
      "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",
      "_id" : "c0806b34-7462-43b1-9300-246588e87b1e",
      "_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
    },
    "quantityInt" : 3
  } ],
  "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" : "",
    "postalCode" : "20999",
    "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", "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" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser", "Germany" ]
  },
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "invoicePdfUri" : null,
  "entryDate" : "2018-07-19T12:01:59.894",
  "marketingChannel" : "Google shopping",
  "marketingSubchannel" : "Some category",
  "salesChannel" : "Storefront",
  "totalReceived" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "totalRefunded" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "openAmount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "shippingStatus" : "UNSHIPPED",
  "paymentStatus" : "PENDING",
  "canceled" : false,
  "_id" : "fb862c9f-78b4-4527-aa67-2b5fcdac206b",
  "orderNumber" : "10001",
  "invoiceNumber" : "10001",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/fb862c9f-78b4-4527-aa67-2b5fcdac206b"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/fb862c9f-78b4-4527-aa67-2b5fcdac206b"
    }
  }
}

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/e73828c1-b7e4-42de-a50f-2b71f2e7de9d/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" : "",
    "postalCode" : "20999",
    "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", "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-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: 9219

{
  "_id" : "e73828c1-b7e4-42de-a50f-2b71f2e7de9d",
  "createdAt" : "2018-07-19T12:01:51.107",
  "cartId" : "39a8d6cb-6a3a-4820-9237-541726c704dd",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "productLineItems" : [ {
    "product" : {
      "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",
      "_id" : "b4235caa-342d-4d4a-8d31-dfa7a14c39f8",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 5,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "1666f125-f701-45d7-92bb-466b78161c9d"
  }, {
    "product" : {
      "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",
      "_id" : "60f63314-cda4-4f76-a08a-02c6ee88b3bc",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 3,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "cfe660c4-55e8-4a3d-bc24-927c8e538dc6"
  } ],
  "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" : "",
    "postalCode" : "20999",
    "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", "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" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser", "Germany" ]
  },
  "paymentStatus" : "PENDING",
  "shippingStatus" : "UNSHIPPED",
  "canceled" : false,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "entryDate" : "2018-07-19T12:01:51.107",
  "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/e73828c1-b7e4-42de-a50f-2b71f2e7de9d"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e73828c1-b7e4-42de-a50f-2b71f2e7de9d"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e73828c1-b7e4-42de-a50f-2b71f2e7de9d/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e73828c1-b7e4-42de-a50f-2b71f2e7de9d/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e73828c1-b7e4-42de-a50f-2b71f2e7de9d/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e73828c1-b7e4-42de-a50f-2b71f2e7de9d/cancel"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e73828c1-b7e4-42de-a50f-2b71f2e7de9d/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 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/5b6872b7-344a-4f13-91c8-b97086c02c06/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" : "",
    "postalCode" : "20999",
    "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", "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-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: 9219

{
  "_id" : "5b6872b7-344a-4f13-91c8-b97086c02c06",
  "createdAt" : "2018-07-19T12:01:54.712",
  "cartId" : "a1b94ed5-94bf-4d15-ad48-ffd3de7406cc",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "productLineItems" : [ {
    "product" : {
      "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",
      "_id" : "6024ac43-457b-4819-8772-8d9dc0d4b5a7",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 5,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "605702a1-578e-4b80-a44e-76d32fff8116"
  }, {
    "product" : {
      "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",
      "_id" : "5ec53951-e9c3-42ff-8308-95673a171277",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 3,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "bdb2476a-a7a5-4c39-b5c3-0c8dc008bbab"
  } ],
  "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" : "",
    "postalCode" : "20999",
    "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", "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" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser", "Germany" ]
  },
  "paymentStatus" : "PENDING",
  "shippingStatus" : "UNSHIPPED",
  "canceled" : false,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "entryDate" : "2018-07-19T12:01:54.712",
  "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/5b6872b7-344a-4f13-91c8-b97086c02c06"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5b6872b7-344a-4f13-91c8-b97086c02c06"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5b6872b7-344a-4f13-91c8-b97086c02c06/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5b6872b7-344a-4f13-91c8-b97086c02c06/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5b6872b7-344a-4f13-91c8-b97086c02c06/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5b6872b7-344a-4f13-91c8-b97086c02c06/cancel"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5b6872b7-344a-4f13-91c8-b97086c02c06/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"
    }
  }
}

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/ae792e34-8600-406b-a9dc-3ca72824774f/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-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: 9217

{
  "_id" : "ae792e34-8600-406b-a9dc-3ca72824774f",
  "createdAt" : "2018-07-19T12:02:04.298",
  "cartId" : "7538b03a-5a4c-4140-b9df-0e15ca05a685",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "productLineItems" : [ {
    "product" : {
      "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",
      "_id" : "107a3f27-9bd0-4954-ab84-210160798ab5",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 3,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "0ebe6cea-5bad-47f0-bba1-7924dfc03f3e"
  }, {
    "product" : {
      "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",
      "_id" : "4c77a590-3fdc-41fb-b02c-b41f7827a1ef",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 5,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "f7ba1db4-f2dd-4256-8d7a-007189ee1eee"
  } ],
  "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" : "",
    "postalCode" : "20999",
    "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", "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" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser", "Germany" ]
  },
  "paymentStatus" : "PENDING",
  "shippingStatus" : "UNSHIPPED",
  "canceled" : false,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "entryDate" : "2018-07-19T12:02:04.298",
  "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/ae792e34-8600-406b-a9dc-3ca72824774f"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/ae792e34-8600-406b-a9dc-3ca72824774f"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/ae792e34-8600-406b-a9dc-3ca72824774f/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/ae792e34-8600-406b-a9dc-3ca72824774f/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/ae792e34-8600-406b-a9dc-3ca72824774f/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/ae792e34-8600-406b-a9dc-3ca72824774f/cancel"
    },
    "retry-create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/ae792e34-8600-406b-a9dc-3ca72824774f/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"
    }
  }
}

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/f17d80e0-a2b9-4e1a-a6b0-f28dfe387733/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-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: 9370

{
  "_id" : "f17d80e0-a2b9-4e1a-a6b0-f28dfe387733",
  "createdAt" : "2018-07-19T12:01:55.854",
  "cartId" : "b6b9de72-ed89-49d6-baf3-9ee209821adb",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "productLineItems" : [ {
    "product" : {
      "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",
      "_id" : "2347ce3b-40a4-41fb-9a1b-34e1db483653",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 3,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "a8ae3af8-9908-47b7-b7c2-fba69ea5a245"
  }, {
    "product" : {
      "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",
      "_id" : "41239e90-f3cd-410c-9eac-26331a6ce6d4",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 5,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "c632f0e6-8d3e-4708-a573-23a55fe17faa"
  } ],
  "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" : "",
    "postalCode" : "20999",
    "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", "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" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser", "Germany" ]
  },
  "paymentStatus" : "PENDING",
  "shippingStatus" : "UNSHIPPED",
  "canceled" : false,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "entryDate" : "2018-07-19T12:01:55.854",
  "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/f17d80e0-a2b9-4e1a-a6b0-f28dfe387733"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/f17d80e0-a2b9-4e1a-a6b0-f28dfe387733"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/f17d80e0-a2b9-4e1a-a6b0-f28dfe387733/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/f17d80e0-a2b9-4e1a-a6b0-f28dfe387733/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/f17d80e0-a2b9-4e1a-a6b0-f28dfe387733/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/f17d80e0-a2b9-4e1a-a6b0-f28dfe387733/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/f17d80e0-a2b9-4e1a-a6b0-f28dfe387733/send-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"
    }
  }
}

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/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes' -i -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-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: 5237

{
  "_embedded" : {
    "refund-processes" : [ {
      "amount" : {
        "currency" : "EUR",
        "amount" : 19.98
      },
      "status" : "VOIDED",
      "completed" : true,
      "_id" : "6591c7cd-c51f-4871-906e-d32326d2cadd",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/refunds/6591c7cd-c51f-4871-906e-d32326d2cadd"
        },
        "refund-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/refunds/6591c7cd-c51f-4871-906e-d32326d2cadd"
        }
      }
    }, {
      "amount" : {
        "currency" : "EUR",
        "amount" : 39.96
      },
      "status" : "PENDING",
      "completed" : false,
      "_id" : "ece90660-768c-42ab-b8e6-1256e748431e",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/refunds/ece90660-768c-42ab-b8e6-1256e748431e"
        },
        "refund-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/refunds/ece90660-768c-42ab-b8e6-1256e748431e"
        },
        "mark-paid" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/refunds/ece90660-768c-42ab-b8e6-1256e748431e/mark-paid"
        }
      }
    } ],
    "cancel-processes" : [ {
      "lineItems" : [ {
        "productLineItemId" : "f2d1b912-c3b6-4b64-bcf3-cceb56d3036d",
        "quantity" : 2
      } ],
      "_id" : "57991987-935b-4589-9dca-3cd8d2eb60e9",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/cancelations/57991987-935b-4589-9dca-3cd8d2eb60e9"
        },
        "cancel-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/cancelations/57991987-935b-4589-9dca-3cd8d2eb60e9"
        }
      }
    } ],
    "shipping-processes" : [ {
      "status" : "SHIPPED",
      "trackingCode" : "lookAtMyTrackingCodeWow",
      "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
      "lineItems" : [ {
        "productLineItemId" : "f2d1b912-c3b6-4b64-bcf3-cceb56d3036d",
        "quantity" : 3
      } ],
      "_id" : "a40b3628-a1ae-4df6-9fb8-0ca47b4afe2a",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/shippings/a40b3628-a1ae-4df6-9fb8-0ca47b4afe2a"
        },
        "shipping-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/shippings/a40b3628-a1ae-4df6-9fb8-0ca47b4afe2a"
        },
        "mark-delivered" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/shippings/a40b3628-a1ae-4df6-9fb8-0ca47b4afe2a/mark-delivered"
        }
      }
    } ],
    "payment-processes" : [ {
      "amount" : {
        "currency" : "EUR",
        "amount" : 77.44
      },
      "status" : "PAID",
      "paymentId" : null,
      "completed" : true,
      "_id" : "f9b52a42-56f4-4c34-a61a-064b222ee11f",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/payments/f9b52a42-56f4-4c34-a61a-064b222ee11f"
        },
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/payments/f9b52a42-56f4-4c34-a61a-064b222ee11f"
        }
      }
    } ],
    "return-processes" : [ {
      "lineItems" : [ {
        "productLineItemId" : "f2d1b912-c3b6-4b64-bcf3-cceb56d3036d",
        "quantity" : 2,
        "status" : "RETURNED"
      } ],
      "_id" : "5c5835c9-c931-4892-8d88-f125d99ea533",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/returns/5c5835c9-c931-4892-8d88-f125d99ea533"
        },
        "return-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/returns/5c5835c9-c931-4892-8d88-f125d99ea533"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes"
    },
    "payment-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/payments"
    },
    "shipping-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/shippings"
    },
    "return-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/returns"
    },
    "cancel-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/processes/cancelations"
    },
    "refund-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/189586fe-2b54-4b4b-9988-3592a3eb24c2/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/db3279ee-13f9-401b-aa86-e5883868f6fe/processes/payments?page=0&size=20' -i -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 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" : "26f4f0a8-998e-48a3-9f85-b9ff695dbddb",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/db3279ee-13f9-401b-aa86-e5883868f6fe/processes/payments/26f4f0a8-998e-48a3-9f85-b9ff695dbddb"
        },
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/db3279ee-13f9-401b-aa86-e5883868f6fe/processes/payments/26f4f0a8-998e-48a3-9f85-b9ff695dbddb"
        },
        "mark-voided" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/db3279ee-13f9-401b-aa86-e5883868f6fe/processes/payments/26f4f0a8-998e-48a3-9f85-b9ff695dbddb/mark-voided"
        },
        "mark-paid" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/db3279ee-13f9-401b-aa86-e5883868f6fe/processes/payments/26f4f0a8-998e-48a3-9f85-b9ff695dbddb/mark-paid"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/db3279ee-13f9-401b-aa86-e5883868f6fe/processes/payments?page=0&size=20"
    },
    "payment-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/db3279ee-13f9-401b-aa86-e5883868f6fe/processes/payments"
    },
    "active" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/db3279ee-13f9-401b-aa86-e5883868f6fe/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/419b9a80-ff78-4956-bc42-36fc440bdb09/processes/payments/ee6164ae-d209-4b51-ae00-1cc2b7587ad6' -i -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 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" : "ee6164ae-d209-4b51-ae00-1cc2b7587ad6",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/419b9a80-ff78-4956-bc42-36fc440bdb09/processes/payments/ee6164ae-d209-4b51-ae00-1cc2b7587ad6"
    },
    "payment-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/419b9a80-ff78-4956-bc42-36fc440bdb09/processes/payments/ee6164ae-d209-4b51-ae00-1cc2b7587ad6"
    },
    "mark-voided" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/419b9a80-ff78-4956-bc42-36fc440bdb09/processes/payments/ee6164ae-d209-4b51-ae00-1cc2b7587ad6/mark-voided"
    },
    "mark-paid" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/419b9a80-ff78-4956-bc42-36fc440bdb09/processes/payments/ee6164ae-d209-4b51-ae00-1cc2b7587ad6/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/600cc79a-2aa1-4f65-936e-12ea1c6f05e5/processes/payments/active' -i -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" : "e2f3d253-bb64-44c5-adf8-66242b2d0ffa",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/600cc79a-2aa1-4f65-936e-12ea1c6f05e5/processes/payments/e2f3d253-bb64-44c5-adf8-66242b2d0ffa"
    },
    "payment-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/600cc79a-2aa1-4f65-936e-12ea1c6f05e5/processes/payments/e2f3d253-bb64-44c5-adf8-66242b2d0ffa"
    },
    "mark-voided" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/600cc79a-2aa1-4f65-936e-12ea1c6f05e5/processes/payments/e2f3d253-bb64-44c5-adf8-66242b2d0ffa/mark-voided"
    },
    "mark-paid" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/600cc79a-2aa1-4f65-936e-12ea1c6f05e5/processes/payments/e2f3d253-bb64-44c5-adf8-66242b2d0ffa/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/9b8c7621-8d6f-41b5-9725-ad04de94b185/processes/payments/74184261-d9fd-4549-879c-9dc582175240/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" : "74184261-d9fd-4549-879c-9dc582175240",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9b8c7621-8d6f-41b5-9725-ad04de94b185/processes/payments/74184261-d9fd-4549-879c-9dc582175240"
    },
    "payment-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9b8c7621-8d6f-41b5-9725-ad04de94b185/processes/payments/74184261-d9fd-4549-879c-9dc582175240"
    }
  }
}

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/a0a5cefa-d071-4590-8a61-dfed9c4626e6/processes/payments/d26fc708-38ef-42bc-b4a3-603920916ba9/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" : "d26fc708-38ef-42bc-b4a3-603920916ba9",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a0a5cefa-d071-4590-8a61-dfed9c4626e6/processes/payments/d26fc708-38ef-42bc-b4a3-603920916ba9"
    },
    "payment-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a0a5cefa-d071-4590-8a61-dfed9c4626e6/processes/payments/d26fc708-38ef-42bc-b4a3-603920916ba9"
    }
  }
}

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/eda2ef1d-cb9d-4587-9a11-2280aecc2648/processes/refunds?page=0&size=20' -i -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-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: 1360

{
  "_embedded" : {
    "refund-processes" : [ {
      "amount" : {
        "currency" : "EUR",
        "amount" : 19.98
      },
      "status" : "PENDING",
      "completed" : false,
      "_id" : "f93498fe-bac9-49bd-976b-08ca66a03b09",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/eda2ef1d-cb9d-4587-9a11-2280aecc2648/processes/refunds/f93498fe-bac9-49bd-976b-08ca66a03b09"
        },
        "refund-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/eda2ef1d-cb9d-4587-9a11-2280aecc2648/processes/refunds/f93498fe-bac9-49bd-976b-08ca66a03b09"
        },
        "mark-paid" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/eda2ef1d-cb9d-4587-9a11-2280aecc2648/processes/refunds/f93498fe-bac9-49bd-976b-08ca66a03b09/mark-paid"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/eda2ef1d-cb9d-4587-9a11-2280aecc2648/processes/refunds?page=0&size=20"
    },
    "refund-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/eda2ef1d-cb9d-4587-9a11-2280aecc2648/processes/refunds"
    },
    "active" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/eda2ef1d-cb9d-4587-9a11-2280aecc2648/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/e88c052b-7609-4e76-8b91-874b0bfd8cd5/processes/refunds/02511559-15e9-4ea9-a4bc-922343682a85' -i -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-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: 697

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 19.98
  },
  "status" : "PENDING",
  "completed" : false,
  "_id" : "02511559-15e9-4ea9-a4bc-922343682a85",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e88c052b-7609-4e76-8b91-874b0bfd8cd5/processes/refunds/02511559-15e9-4ea9-a4bc-922343682a85"
    },
    "refund-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e88c052b-7609-4e76-8b91-874b0bfd8cd5/processes/refunds/02511559-15e9-4ea9-a4bc-922343682a85"
    },
    "mark-paid" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e88c052b-7609-4e76-8b91-874b0bfd8cd5/processes/refunds/02511559-15e9-4ea9-a4bc-922343682a85/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/0575080f-16d2-4c71-bf50-25dc10750f31/processes/refunds/active' -i -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: 697

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 19.98
  },
  "status" : "PENDING",
  "completed" : false,
  "_id" : "47cc3473-24e0-4e16-b571-cb2844f8a585",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/0575080f-16d2-4c71-bf50-25dc10750f31/processes/refunds/47cc3473-24e0-4e16-b571-cb2844f8a585"
    },
    "refund-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/0575080f-16d2-4c71-bf50-25dc10750f31/processes/refunds/47cc3473-24e0-4e16-b571-cb2844f8a585"
    },
    "mark-paid" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/0575080f-16d2-4c71-bf50-25dc10750f31/processes/refunds/47cc3473-24e0-4e16-b571-cb2844f8a585/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 paid.

details.amount.currency

String

The currency of the amount paid.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/b6b7104c-af7a-43b2-8123-0442db83208d/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-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: 515

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 19.98
  },
  "status" : "PAID",
  "completed" : true,
  "_id" : "3c9f35cd-c5f9-4ad5-a61f-b90150284de8",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b6b7104c-af7a-43b2-8123-0442db83208d/processes/refunds/3c9f35cd-c5f9-4ad5-a61f-b90150284de8"
    },
    "refund-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b6b7104c-af7a-43b2-8123-0442db83208d/processes/refunds/3c9f35cd-c5f9-4ad5-a61f-b90150284de8"
    }
  }
}

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/bce11204-97bd-4611-9b19-26d358eb290b/processes/shippings?page=0&size=20' -i -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-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: 1597

{
  "_embedded" : {
    "shipping-processes" : [ {
      "status" : "PENDING",
      "trackingCode" : "lookAtMyTrackingCodeWow",
      "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
      "lineItems" : [ {
        "productLineItemId" : "0313bd35-cb0a-42d7-895a-c3d1baa967c2",
        "quantity" : 3
      } ],
      "_id" : "4e4a1141-578c-4fad-bd56-3fbeba0cb193",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/bce11204-97bd-4611-9b19-26d358eb290b/processes/shippings/4e4a1141-578c-4fad-bd56-3fbeba0cb193"
        },
        "shipping-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/bce11204-97bd-4611-9b19-26d358eb290b/processes/shippings/4e4a1141-578c-4fad-bd56-3fbeba0cb193"
        },
        "mark-shipped" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/bce11204-97bd-4611-9b19-26d358eb290b/processes/shippings/4e4a1141-578c-4fad-bd56-3fbeba0cb193/mark-shipped"
        },
        "mark-delivered" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/bce11204-97bd-4611-9b19-26d358eb290b/processes/shippings/4e4a1141-578c-4fad-bd56-3fbeba0cb193/mark-delivered"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/bce11204-97bd-4611-9b19-26d358eb290b/processes/shippings?page=0&size=20"
    },
    "shipping-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/bce11204-97bd-4611-9b19-26d358eb290b/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/74dc19a3-9110-45c2-bb4d-425ccc8f9d32/processes/shippings/69960baf-f0a3-4eb6-adea-3e5cacefe37c' -i -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-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: 1045

{
  "status" : "PENDING",
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "productLineItemId" : "e12c6568-fb57-46fc-a2e4-0ca21efc8c53",
    "quantity" : 3
  } ],
  "_id" : "69960baf-f0a3-4eb6-adea-3e5cacefe37c",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/74dc19a3-9110-45c2-bb4d-425ccc8f9d32/processes/shippings/69960baf-f0a3-4eb6-adea-3e5cacefe37c"
    },
    "shipping-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/74dc19a3-9110-45c2-bb4d-425ccc8f9d32/processes/shippings/69960baf-f0a3-4eb6-adea-3e5cacefe37c"
    },
    "mark-shipped" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/74dc19a3-9110-45c2-bb4d-425ccc8f9d32/processes/shippings/69960baf-f0a3-4eb6-adea-3e5cacefe37c/mark-shipped"
    },
    "mark-delivered" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/74dc19a3-9110-45c2-bb4d-425ccc8f9d32/processes/shippings/69960baf-f0a3-4eb6-adea-3e5cacefe37c/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/963917ec-4f41-4d0a-8d67-38b30e77d489/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" : "b14d459e-efaa-44ae-9bc1-b533f034b145"
  } ]
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/orders/963917ec-4f41-4d0a-8d67-38b30e77d489/processes/shippings/71c75466-3c85-4065-8a41-fdc44c1e5edb
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: 1045

{
  "status" : "PENDING",
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "productLineItemId" : "b14d459e-efaa-44ae-9bc1-b533f034b145",
    "quantity" : 3
  } ],
  "_id" : "71c75466-3c85-4065-8a41-fdc44c1e5edb",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/963917ec-4f41-4d0a-8d67-38b30e77d489/processes/shippings/71c75466-3c85-4065-8a41-fdc44c1e5edb"
    },
    "shipping-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/963917ec-4f41-4d0a-8d67-38b30e77d489/processes/shippings/71c75466-3c85-4065-8a41-fdc44c1e5edb"
    },
    "mark-shipped" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/963917ec-4f41-4d0a-8d67-38b30e77d489/processes/shippings/71c75466-3c85-4065-8a41-fdc44c1e5edb/mark-shipped"
    },
    "mark-delivered" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/963917ec-4f41-4d0a-8d67-38b30e77d489/processes/shippings/71c75466-3c85-4065-8a41-fdc44c1e5edb/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/b02d1469-65a1-4f9d-91eb-59c40957d000/processes/shippings/bbdd5029-3574-47d4-9b1f-77831e161329/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-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: 859

{
  "status" : "SHIPPED",
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "productLineItemId" : "cad38856-28a1-4436-a181-0886e2fafaf6",
    "quantity" : 3
  } ],
  "_id" : "bbdd5029-3574-47d4-9b1f-77831e161329",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b02d1469-65a1-4f9d-91eb-59c40957d000/processes/shippings/bbdd5029-3574-47d4-9b1f-77831e161329"
    },
    "shipping-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b02d1469-65a1-4f9d-91eb-59c40957d000/processes/shippings/bbdd5029-3574-47d4-9b1f-77831e161329"
    },
    "mark-delivered" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b02d1469-65a1-4f9d-91eb-59c40957d000/processes/shippings/bbdd5029-3574-47d4-9b1f-77831e161329/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/eab84b62-acba-4b15-9dd4-43ece98ad59b/processes/shippings/e8aa8466-33d3-4bea-a744-1439af31caaf/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-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: 671

{
  "status" : "DELIVERED",
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "productLineItemId" : "63226ff6-d03d-4a7f-9c20-56635054e005",
    "quantity" : 3
  } ],
  "_id" : "e8aa8466-33d3-4bea-a744-1439af31caaf",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/eab84b62-acba-4b15-9dd4-43ece98ad59b/processes/shippings/e8aa8466-33d3-4bea-a744-1439af31caaf"
    },
    "shipping-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/eab84b62-acba-4b15-9dd4-43ece98ad59b/processes/shippings/e8aa8466-33d3-4bea-a744-1439af31caaf"
    }
  }
}

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/6d7a9d80-47e7-4c2c-8ec7-9968600d1b67/processes/returns?page=0&size=20' -i -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.

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-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: 1058

{
  "_embedded" : {
    "return-processes" : [ {
      "lineItems" : [ {
        "productLineItemId" : "bab9e2b2-925f-4cbc-9a14-664466010c3f",
        "quantity" : 3,
        "status" : "RETURNED"
      } ],
      "_id" : "b5b56c6b-75eb-4d8a-8a20-3d14aad40b73",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/6d7a9d80-47e7-4c2c-8ec7-9968600d1b67/processes/returns/b5b56c6b-75eb-4d8a-8a20-3d14aad40b73"
        },
        "return-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/6d7a9d80-47e7-4c2c-8ec7-9968600d1b67/processes/returns/b5b56c6b-75eb-4d8a-8a20-3d14aad40b73"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/6d7a9d80-47e7-4c2c-8ec7-9968600d1b67/processes/returns?page=0&size=20"
    },
    "return-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/6d7a9d80-47e7-4c2c-8ec7-9968600d1b67/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/35e1ef7e-ec30-483e-b4ec-c9816ba57f93/processes/returns/2c8d1fd6-2746-4783-8b00-70134ac6692b' -i -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.

_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-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: 546

{
  "lineItems" : [ {
    "productLineItemId" : "66f77f60-1f83-43a0-ba47-b982944d4a28",
    "quantity" : 3,
    "status" : "RETURNED"
  } ],
  "_id" : "2c8d1fd6-2746-4783-8b00-70134ac6692b",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/35e1ef7e-ec30-483e-b4ec-c9816ba57f93/processes/returns/2c8d1fd6-2746-4783-8b00-70134ac6692b"
    },
    "return-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/35e1ef7e-ec30-483e-b4ec-c9816ba57f93/processes/returns/2c8d1fd6-2746-4783-8b00-70134ac6692b"
    }
  }
}

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.

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/fadbaecd-c7d4-48de-8cda-12ab2b5eb734/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" : "f7949180-617f-4b98-bee1-8972782b45ce",
    "status" : "RETURNED"
  } ]
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/orders/fadbaecd-c7d4-48de-8cda-12ab2b5eb734/processes/returns/e47cd0ca-6a2c-424e-9d19-4d27513ef339
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: 546

{
  "lineItems" : [ {
    "productLineItemId" : "f7949180-617f-4b98-bee1-8972782b45ce",
    "quantity" : 3,
    "status" : "RETURNED"
  } ],
  "_id" : "e47cd0ca-6a2c-424e-9d19-4d27513ef339",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/fadbaecd-c7d4-48de-8cda-12ab2b5eb734/processes/returns/e47cd0ca-6a2c-424e-9d19-4d27513ef339"
    },
    "return-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/fadbaecd-c7d4-48de-8cda-12ab2b5eb734/processes/returns/e47cd0ca-6a2c-424e-9d19-4d27513ef339"
    }
  }
}

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/c951eaea-16f6-4a9a-8d2b-815861440155/processes/cancelations?page=0&size=20' -i -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" : "fe99470d-5ca9-4ed7-b2e7-b8dd6f6cbe9d",
        "quantity" : 3
      } ],
      "_id" : "62901d59-c264-4e7b-959a-4df209813548",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/c951eaea-16f6-4a9a-8d2b-815861440155/processes/cancelations/62901d59-c264-4e7b-959a-4df209813548"
        },
        "cancel-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/c951eaea-16f6-4a9a-8d2b-815861440155/processes/cancelations/62901d59-c264-4e7b-959a-4df209813548"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/c951eaea-16f6-4a9a-8d2b-815861440155/processes/cancelations?page=0&size=20"
    },
    "cancel-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/c951eaea-16f6-4a9a-8d2b-815861440155/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/b1f6e39e-e780-4e70-b371-40cac5448c45/processes/cancelations/c1b7ed47-8db2-4763-a2aa-141cf237db0b' -i -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" : "f8b7adab-1e45-4d70-b9f2-59a57a9a1347",
    "quantity" : 3
  } ],
  "_id" : "c1b7ed47-8db2-4763-a2aa-141cf237db0b",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b1f6e39e-e780-4e70-b371-40cac5448c45/processes/cancelations/c1b7ed47-8db2-4763-a2aa-141cf237db0b"
    },
    "cancel-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b1f6e39e-e780-4e70-b371-40cac5448c45/processes/cancelations/c1b7ed47-8db2-4763-a2aa-141cf237db0b"
    }
  }
}

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/f729fa3f-404f-40b3-b6ef-bbb01b0ff5e5/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" : "dd319e63-538e-4d0f-b4f7-2f5023a7d08a"
  } ]
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/orders/f729fa3f-404f-40b3-b6ef-bbb01b0ff5e5/processes/cancelations/a8f8bb7a-fc92-48d9-a321-2f477254bdc3
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" : "dd319e63-538e-4d0f-b4f7-2f5023a7d08a",
    "quantity" : 3
  } ],
  "_id" : "a8f8bb7a-fc92-48d9-a321-2f477254bdc3",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/f729fa3f-404f-40b3-b6ef-bbb01b0ff5e5/processes/cancelations/a8f8bb7a-fc92-48d9-a321-2f477254bdc3"
    },
    "cancel-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/f729fa3f-404f-40b3-b6ef-bbb01b0ff5e5/processes/cancelations/a8f8bb7a-fc92-48d9-a321-2f477254bdc3"
    }
  }
}

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/01a44624-671f-4625-b0c1-8dafb20c936d/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: 9054

{
  "_id" : "01a44624-671f-4625-b0c1-8dafb20c936d",
  "createdAt" : "2018-07-19T12:01:23.469",
  "cartId" : "78977aa9-6d66-405f-ba50-69409183c891",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : true,
  "testOrder" : false,
  "productLineItems" : [ {
    "product" : {
      "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",
      "_id" : "2ed5d1d5-08c1-46ab-bb75-1243a2941638",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 0,
      "unit" : "PIECE"
    },
    "quantityInt" : 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
      }
    },
    "_id" : "3650a693-47dc-4e0f-8fd5-8524ba6950e7"
  }, {
    "product" : {
      "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",
      "_id" : "849cc306-030f-4c8b-bacc-0835c25db0d8",
      "_links" : {
        "default-image-data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/http:/your.image.hoster.com/randomimage.png"
        }
      }
    },
    "quantity" : {
      "value" : 0,
      "unit" : "PIECE"
    },
    "quantityInt" : 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" : "615ec0cf-eddd-4b9e-bca7-c37ad9dc014e"
  } ],
  "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" : "",
    "postalCode" : "20999",
    "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", "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" : "",
    "postalCode" : "20999",
    "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", "20999 Alsterwasser", "Germany" ]
  },
  "paymentStatus" : "REFUND_PENDING",
  "shippingStatus" : "SHIPPED",
  "canceled" : true,
  "orderNumber" : "10001",
  "customerComment" : null,
  "orderNote" : "not paid yet",
  "entryDate" : "2018-07-19T12:01:23.469",
  "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/01a44624-671f-4625-b0c1-8dafb20c936d"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/01a44624-671f-4625-b0c1-8dafb20c936d"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/01a44624-671f-4625-b0c1-8dafb20c936d/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/01a44624-671f-4625-b0c1-8dafb20c936d/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/01a44624-671f-4625-b0c1-8dafb20c936d/events"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/01a44624-671f-4625-b0c1-8dafb20c936d/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"
    }
  }
}

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/e0f0731e-9d32-4faa-b451-e4a566778d91/events' -i -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.order-events[].triggeredBy

Varies

The user or client that triggered the order event.

_embedded.order-events[].comment

Varies

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-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: 2109

{
  "_embedded" : {
    "order-events" : [ {
      "triggeredBy" : "user",
      "comment" : "comment",
      "createdAt" : "2018-07-19T11:59:35.768",
      "details" : {
        "paymentProcessId" : "7e661d2c-4f98-4cd5-a12e-eefcaa6d9568",
        "type" : "payment-voided"
      },
      "_links" : {
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/e0f0731e-9d32-4faa-b451-e4a566778d91/processes/payments/7e661d2c-4f98-4cd5-a12e-eefcaa6d9568"
        }
      }
    }, {
      "triggeredBy" : null,
      "comment" : null,
      "createdAt" : "2018-07-19T11:59:35.577",
      "details" : {
        "amount" : {
          "currency" : "EUR",
          "amount" : 0
        },
        "paymentId" : null,
        "paymentProcessId" : null,
        "type" : "payment-created"
      }
    }, {
      "triggeredBy" : "user",
      "comment" : "customer transfer",
      "createdAt" : "2018-07-19T11:59:35.26",
      "details" : {
        "amount" : {
          "currency" : "EUR",
          "amount" : 77.44
        },
        "paymentProcessId" : "9a4469fe-7afa-4eed-bbd3-bc87148751c8",
        "type" : "payment-paid"
      },
      "_links" : {
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/e0f0731e-9d32-4faa-b451-e4a566778d91/processes/payments/9a4469fe-7afa-4eed-bbd3-bc87148751c8"
        }
      }
    }, {
      "triggeredBy" : null,
      "comment" : null,
      "createdAt" : "2018-07-19T11:59:34.799",
      "details" : {
        "amount" : {
          "currency" : "EUR",
          "amount" : 77.44
        },
        "paymentId" : null,
        "paymentProcessId" : null,
        "type" : "payment-created"
      }
    }, {
      "triggeredBy" : null,
      "comment" : null,
      "createdAt" : "2018-07-19T11:59:34.598",
      "details" : {
        "type" : "order-created"
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e0f0731e-9d32-4faa-b451-e4a566778d91/events"
    }
  },
  "page" : {
    "size" : 10,
    "totalElements" : 5,
    "totalPages" : 1,
    "number" : 0
  }
}

Payment Methods

The payment-methods resources is used to get information about payment methods of this shop.

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/76d01977-5dbf-4714-9666-b61f5cac7f0a' -i -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 merchant administration 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).

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: 1575

{
  "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/76d01977-5dbf-4714-9666-b61f5cac7f0a"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/76d01977-5dbf-4714-9666-b61f5cac7f0a"
    },
    "integration-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/76d01977-5dbf-4714-9666-b61f5cac7f0a/deactivate"
    },
    "logo-details" : {
      "href" : "http://details-logo.com"
    },
    "logo-storefront" : {
      "href" : "http://storefront-logo.com"
    },
    "logo-tile" : {
      "href" : "http://tile-logo.com"
    },
    "logo-list" : {
      "href" : "http://list-logo.com"
    },
    "payment-integration" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/76d01977-5dbf-4714-9666-b61f5cac7f0a/payment-integration"
    }
  },
  "_id" : "76d01977-5dbf-4714-9666-b61f5cac7f0a"
}

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 -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-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: 2789

{
  "_embedded" : {
    "payment-methods" : [ {
      "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/0609ee91-297a-4f90-a257-6caec3f44a93"
        },
        "payment-method" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/0609ee91-297a-4f90-a257-6caec3f44a93"
        },
        "deactivate-payment-method" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/0609ee91-297a-4f90-a257-6caec3f44a93/deactivate"
        },
        "payment-integration" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/0609ee91-297a-4f90-a257-6caec3f44a93/payment-integration"
        }
      },
      "_id" : "0609ee91-297a-4f90-a257-6caec3f44a93"
    }, {
      "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" : [ "GB", "DE" ],
      "minimumOrderValue" : {
        "currency" : "EUR",
        "amount" : 20
      },
      "activated" : false,
      "activeLogoSet" : null,
      "onlinePayment" : false,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/90ba9a9c-df4f-486f-81fd-00caf95453da"
        },
        "payment-method" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/90ba9a9c-df4f-486f-81fd-00caf95453da"
        },
        "activate-payment-method" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/90ba9a9c-df4f-486f-81fd-00caf95453da/activate"
        },
        "payment-integration" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/90ba9a9c-df4f-486f-81fd-00caf95453da/payment-integration"
        }
      },
      "_id" : "90ba9a9c-df4f-486f-81fd-00caf95453da"
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

Create payment method

A POST request is used to create a payment method.

Required scopes

pymt:c

Request body properties

Path Type Description Constraints

officialName

String

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

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

officialDescription

String

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

Length must be between 0 and 4095 inclusive

name

String

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

Length must be between 0 and 225 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.

position

Number

The sorting position of the payment method in the merchant administration in relation to other payment methods.

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' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Authorization: Bearer <Access token>' -d '{
  "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
    }
  },
  "position" : 0,
  "serviceableCountries" : [ "DE", "GB" ],
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 19.99
  }
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/payment-methods/3ff666a4-2a29-40c1-b1f7-4a4e5cf0eade
Content-Type: application/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: 1220

{
  "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" : false,
  "activeLogoSet" : null,
  "onlinePayment" : false,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3ff666a4-2a29-40c1-b1f7-4a4e5cf0eade"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3ff666a4-2a29-40c1-b1f7-4a4e5cf0eade"
    },
    "activate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3ff666a4-2a29-40c1-b1f7-4a4e5cf0eade/activate"
    },
    "payment-integration" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/3ff666a4-2a29-40c1-b1f7-4a4e5cf0eade/payment-integration"
    }
  },
  "_id" : "3ff666a4-2a29-40c1-b1f7-4a4e5cf0eade"
}

Update payment method

A PUT request is used to update a payment method.

Required scopes

pymt:u

Request body properties

Path Type Description Constraints

officialName

String

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

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

officialDescription

String

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

Length must be between 0 and 4095 inclusive

name

String

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

Length must be between 0 and 225 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.

position

Number

The sorting position of the payment method in the merchant administration in relation to other payment methods.

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/c642a278-d625-4606-82b2-42013c796f80' -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",
  "officialName" : "Converge",
  "officialDescription" : "Pay with Converge",
  "taxClass" : "REGULAR",
  "discountOrFee" : {
    "type" : "ABSOLUTE",
    "absoluteValue" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 2.0
    }
  },
  "position" : 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-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: 1174

{
  "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/c642a278-d625-4606-82b2-42013c796f80"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c642a278-d625-4606-82b2-42013c796f80"
    },
    "deactivate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c642a278-d625-4606-82b2-42013c796f80/deactivate"
    },
    "payment-integration" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c642a278-d625-4606-82b2-42013c796f80/payment-integration"
    }
  },
  "_id" : "c642a278-d625-4606-82b2-42013c796f80"
}

Delete payment method

A DELETE request is used to delete a payment method.

Required scopes

pymt:d

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-methods/ac42af32-0b9e-49c9-96bb-2f0fe7550cc0' -i -X DELETE -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
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

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/f2356610-a5ce-42bf-ac36-2367dc43008b
https://api-shop.beyondshop.cloud/api/payment-methods/83fd1c3b-96bb-411c-b42f-de07db9fb17d
https://api-shop.beyondshop.cloud/api/payment-methods/21825122-7b96-41aa-9643-3d037ba2f850
https://api-shop.beyondshop.cloud/api/payment-methods/dd1702d8-d76f-424f-87f1-88fd29b9123f'

Example response

HTTP/1.1 204 No Content
Location: https://api-shop.beyondshop.cloud/api/payment-methods
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

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/1921c2f0-21dc-46a1-a9e1-7f743309f7c2/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-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: 1223

{
  "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" : [ "GB", "DE" ],
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 19.99
  },
  "activated" : true,
  "activeLogoSet" : null,
  "onlinePayment" : false,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/1921c2f0-21dc-46a1-a9e1-7f743309f7c2"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/1921c2f0-21dc-46a1-a9e1-7f743309f7c2"
    },
    "deactivate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/1921c2f0-21dc-46a1-a9e1-7f743309f7c2/deactivate"
    },
    "payment-integration" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/1921c2f0-21dc-46a1-a9e1-7f743309f7c2/payment-integration"
    }
  },
  "_id" : "1921c2f0-21dc-46a1-a9e1-7f743309f7c2"
}

Dectivate a payment method

Required scopes

pymt:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-methods/013a3c37-b306-45ca-be50-368aa20fce95/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-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: 1238

{
  "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" : [ "GB", "DE" ],
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 19.99
  },
  "activated" : false,
  "activeLogoSet" : null,
  "onlinePayment" : false,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/013a3c37-b306-45ca-be50-368aa20fce95"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/013a3c37-b306-45ca-be50-368aa20fce95"
    },
    "activate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/013a3c37-b306-45ca-be50-368aa20fce95/activate"
    },
    "payment-integration" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/013a3c37-b306-45ca-be50-368aa20fce95/payment-integration"
    }
  },
  "_id" : "013a3c37-b306-45ca-be50-368aa20fce95"
}

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?locale=en-GB' -i -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.products[].name

String

The name of the product.

_embedded.products[].sku

String

The stock keeping unit (SKU) corresponding to the product.

_embedded.products[].visible

Boolean

Indicates if the product is visible in the online shop. Can be true or false.

_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 manufacturer’s suggested retail price of the product.

_embedded.products[]._embedded.availability

Object

The information about the availability of the product.

_embedded.products[]._id

String

The immutable, unique identifier of the requested resource.

_links

Object

See Hypermedia

page

Object

See Pagination

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-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: 3433

{
  "_embedded" : {
    "products" : [ {
      "_id" : "202c031a-d8d8-4ba7-96d8-d56c435ee2f0",
      "sku" : "vino020",
      "name" : "Rioja Castillo de Puerto (2013)",
      "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
        }
      },
      "visible" : true,
      "_embedded" : {
        "availability" : {
          "availabilityState" : "IN_STOCK",
          "availableStock" : 20,
          "stockThreshold" : 2,
          "purchasable" : true,
          "_links" : {
            "self" : {
              "href" : "https://api-shop.beyondshop.cloud/api/products/202c031a-d8d8-4ba7-96d8-d56c435ee2f0/availability"
            }
          }
        }
      },
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/202c031a-d8d8-4ba7-96d8-d56c435ee2f0"
        },
        "self-localized" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/202c031a-d8d8-4ba7-96d8-d56c435ee2f0?locale=en-GB"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/202c031a-d8d8-4ba7-96d8-d56c435ee2f0{?locale}",
          "templated" : true
        },
        "attributes" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/202c031a-d8d8-4ba7-96d8-d56c435ee2f0/attributes{?locale}",
          "templated" : true
        },
        "attachments" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/202c031a-d8d8-4ba7-96d8-d56c435ee2f0/attachments"
        },
        "images" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/202c031a-d8d8-4ba7-96d8-d56c435ee2f0/images"
        },
        "amazon" : {
          "href" : "http://amazon/amazon-products/202c031a-d8d8-4ba7-96d8-d56c435ee2f0"
        },
        "google-shopping" : {
          "href" : "http://google-shopping/google-products/202c031a-d8d8-4ba7-96d8-d56c435ee2f0"
        },
        "default-image" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/202c031a-d8d8-4ba7-96d8-d56c435ee2f0/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.

Size must be between 0 and 255 inclusive

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.

salesPrice

Object

The price of the product.

Must match the shop’s tax model. Must not be null

salesPrice.amount

Number

Th amount of the sales price.

salesPrice.currency

String

The currency of the sales price.

salesPrice.taxModel

String

The tax model of the sales price. Can be GROSS or NET.

listPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

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.

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.

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.

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.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?locale=en-GB' -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/ec307c9c-9c0a-402a-ab2a-a925ef31696c
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: 2671

{
  "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"
  },
  "attributes" : [ ],
  "description" : "Spain\nRioja Tempranillo",
  "manufacturer" : "Grape Vineyard",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "name" : "Rioja Castillo de Puerto (2013)",
  "_id" : "ec307c9c-9c0a-402a-ab2a-a925ef31696c",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ec307c9c-9c0a-402a-ab2a-a925ef31696c"
    },
    "self-localized" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ec307c9c-9c0a-402a-ab2a-a925ef31696c?locale=en-GB"
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ec307c9c-9c0a-402a-ab2a-a925ef31696c/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ec307c9c-9c0a-402a-ab2a-a925ef31696c/attributes{?locale}",
      "templated" : true
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ec307c9c-9c0a-402a-ab2a-a925ef31696c/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ec307c9c-9c0a-402a-ab2a-a925ef31696c/images"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ec307c9c-9c0a-402a-ab2a-a925ef31696c/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/fab0c9c3-2704-4d6b-a735-5de14a80808b?locale=en-GB' -i -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.

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.

salesPrice

Object

The price of the product.

salesPrice.amount

Number

Th amount of the sales price.

salesPrice.currency

String

The currency of the sales price.

salesPrice.taxModel

String

The tax model of the sales price. Can be GROSS or NET.

listPrice

Object

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

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.

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.

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.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.

_id

String

The immutable, unique identifier of the requested resource.

attributes

Array

The list of product attributes.

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).

_links

Object

See Hypermedia

Links

Relation Description

product

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

self-localized

The templated self link to the product with the relevant localized parameters. See Hypermedia.

availability

The link to the information about product availability.

images

The link to the product image.

attributes

The product properties resource

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.

Example response

HTTP/1.1 200 OK
Last-Modified: Wed, 18 Jul 2018 12:07:17 GMT
ETag: "2"
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: 3821

{
  "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"
  },
  "attributes" : [ {
    "namespace" : "custom",
    "name" : "type",
    "locale" : "en-GB",
    "type" : "STRING",
    "value" : "vine"
  }, {
    "namespace" : "mbo",
    "name" : "flag",
    "locale" : "en-GB",
    "type" : "STRING",
    "value" : "usa"
  }, {
    "namespace" : "seo",
    "name" : "slug",
    "locale" : "en-GB",
    "type" : "STRING",
    "value" : "rioja"
  } ],
  "description" : "Spain\nRioja Tempranillo",
  "manufacturer" : "Grape Vineyard",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "name" : "Rioja Castillo de Puerto (2013)",
  "_id" : "fab0c9c3-2704-4d6b-a735-5de14a80808b",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/fab0c9c3-2704-4d6b-a735-5de14a80808b"
    },
    "self-localized" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/fab0c9c3-2704-4d6b-a735-5de14a80808b?locale=en-GB"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/fab0c9c3-2704-4d6b-a735-5de14a80808b{?locale}",
      "templated" : true
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/fab0c9c3-2704-4d6b-a735-5de14a80808b/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/fab0c9c3-2704-4d6b-a735-5de14a80808b/attributes{?locale}",
      "templated" : true
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/fab0c9c3-2704-4d6b-a735-5de14a80808b/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/fab0c9c3-2704-4d6b-a735-5de14a80808b/images"
    },
    "amazon" : {
      "href" : "http://amazon/amazon-products/fab0c9c3-2704-4d6b-a735-5de14a80808b"
    },
    "google-shopping" : {
      "href" : "http://google-shopping/google-products/fab0c9c3-2704-4d6b-a735-5de14a80808b"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/fab0c9c3-2704-4d6b-a735-5de14a80808b/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/efc248c1-5e7f-4fca-a872-29b83257e8a8?locale=en-GB' -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
ETag: "3"
Last-Modified: Wed, 18 Jul 2018 12:07:08 GMT
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: 3117

{
  "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" : [ ],
  "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"
  },
  "attributes" : [ {
    "namespace" : "custom",
    "name" : "type",
    "locale" : "en-GB",
    "type" : "STRING",
    "value" : "vine"
  }, {
    "namespace" : "mbo",
    "name" : "flag",
    "locale" : "en-GB",
    "type" : "STRING",
    "value" : "usa"
  }, {
    "namespace" : "seo",
    "name" : "slug",
    "locale" : "en-GB",
    "type" : "STRING",
    "value" : "rioja"
  } ],
  "description" : "Spain\nRioja Tempranillo",
  "manufacturer" : "patched manufacturer",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "name" : "patched name",
  "_id" : "efc248c1-5e7f-4fca-a872-29b83257e8a8",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/efc248c1-5e7f-4fca-a872-29b83257e8a8"
    },
    "self-localized" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/efc248c1-5e7f-4fca-a872-29b83257e8a8?locale=en-GB"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/efc248c1-5e7f-4fca-a872-29b83257e8a8{?locale}",
      "templated" : true
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/efc248c1-5e7f-4fca-a872-29b83257e8a8/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/efc248c1-5e7f-4fca-a872-29b83257e8a8/attributes{?locale}",
      "templated" : true
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/efc248c1-5e7f-4fca-a872-29b83257e8a8/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/efc248c1-5e7f-4fca-a872-29b83257e8a8/images"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/efc248c1-5e7f-4fca-a872-29b83257e8a8/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/561c97c8-986e-4ef4-81c5-9f6cab98f564?locale=en-GB' -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
ETag: "3"
Last-Modified: Wed, 18 Jul 2018 12:07:15 GMT
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: 3294

{
  "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" : [ ],
  "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"
  },
  "attributes" : [ {
    "namespace" : "custom",
    "name" : "type",
    "locale" : "en-GB",
    "type" : "STRING",
    "value" : "vine"
  }, {
    "namespace" : "mbo",
    "name" : "flag",
    "locale" : "en-GB",
    "type" : "STRING",
    "value" : "usa"
  }, {
    "namespace" : "seo",
    "name" : "slug",
    "locale" : "en-GB",
    "type" : "STRING",
    "value" : "rioja"
  } ],
  "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.",
  "name" : "patched name",
  "_id" : "561c97c8-986e-4ef4-81c5-9f6cab98f564",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/561c97c8-986e-4ef4-81c5-9f6cab98f564"
    },
    "self-localized" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/561c97c8-986e-4ef4-81c5-9f6cab98f564?locale=en-GB"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/561c97c8-986e-4ef4-81c5-9f6cab98f564{?locale}",
      "templated" : true
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/561c97c8-986e-4ef4-81c5-9f6cab98f564/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/561c97c8-986e-4ef4-81c5-9f6cab98f564/attributes{?locale}",
      "templated" : true
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/561c97c8-986e-4ef4-81c5-9f6cab98f564/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/561c97c8-986e-4ef4-81c5-9f6cab98f564/images"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/561c97c8-986e-4ef4-81c5-9f6cab98f564/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/b638cf26-97d6-48b6-82a8-5e8a7258523f' -i -X DELETE -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
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

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 the attribute values that already exist for an attribute name. This is intended to be able to offer autosuggestion functionality when adding custom attributes to a product.

Required scopes

prod:r

Request parameters

Parameter Description

namespace

The attribute namespace to search in. If omitted, the namespace 'custom' is used.

attributeName

The attribute name to get values for.

query

The search query. A LIKE query is issued with this query as the search prefix.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/search/find-attribute-string-values?namespace=seo&attributeName=slug&query=ri' -i -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.attributes

Array

The list of product attributes.

_links

Object

See Hypermedia

Links

Relation Description

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: 353

{
  "_embedded" : {
    "attributes" : [ {
      "attributeType" : "STRING",
      "stringValue" : "rioja",
      "numericValue" : null,
      "attributeValue" : "rioja"
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/search/find-attribute-string-values?namespace=seo&attributeName=slug&query=ri"
    }
  }
}

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 -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-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: 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 -H 'Authorization: Bearer <Access token>'

Links

Relation Description

find-by-sku

The link to find products by SKU.

find-attribute-string-values

The link to search existing attribute values for a given attribute name and search string.

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: 577

{
  "_links" : {
    "tags" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/search/tags{?startsWith,page,size,sort}",
      "templated" : true
    },
    "find-by-sku" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/search/find-by-sku{?sku}",
      "templated" : true
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/search"
    },
    "find-attribute-string-values" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/search/find-attribute-string-values{?namespace,attributeName,query,page,size,sort}",
      "templated" : true
    }
  }
}

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/f9235dde-6a74-4c69-be3c-989ab344d5f0' -i -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. Identified by a qualified name consisting of namespace and name.

attributes[].namespace

String

The namespace of the product property. Groups all attribute names belonging to the same application in order to prevent name clashes. Example: a SEO app uses the namespace seo, whereas an Enterprise Management System uses ems. Both applications can use the same product property name, e.g. category by using another namespace. Examples: seo:category, ems:category.

attributes[].name

String

The name 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-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: 2529

{
  "_id" : "f9235dde-6a74-4c69-be3c-989ab344d5f0",
  "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" : [ {
    "namespace" : "custom",
    "name" : "type",
    "value" : "vine",
    "displayName" : "type",
    "format" : null,
    "formattedValue" : "vine"
  }, {
    "namespace" : "mbo",
    "name" : "flag",
    "value" : "usa",
    "displayName" : "flag",
    "format" : null,
    "formattedValue" : "usa"
  }, {
    "namespace" : "seo",
    "name" : "slug",
    "value" : "rioja",
    "displayName" : "slug",
    "format" : null,
    "formattedValue" : "rioja"
  } ],
  "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/f9235dde-6a74-4c69-be3c-989ab344d5f0"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/f9235dde-6a74-4c69-be3c-989ab344d5f0{?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/588f57bc-ff7d-4c5d-a5b4-db5a20938c4b?projection=enhancedProductProjection' -i -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. Identified by a qualified name consisting of namespace and name.

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-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: 2573

{
  "_id" : "588f57bc-ff7d-4c5d-a5b4-db5a20938c4b",
  "_indexedAt" : "2018-07-18T07:20:20.042",
  "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" : [ {
    "namespace" : "custom",
    "name" : "type",
    "value" : "vine",
    "displayName" : "type",
    "format" : null,
    "formattedValue" : "vine"
  }, {
    "namespace" : "mbo",
    "name" : "flag",
    "value" : "usa",
    "displayName" : "flag",
    "format" : null,
    "formattedValue" : "usa"
  }, {
    "namespace" : "seo",
    "name" : "slug",
    "value" : "rioja",
    "displayName" : "slug",
    "format" : null,
    "formattedValue" : "rioja"
  } ],
  "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/588f57bc-ff7d-4c5d-a5b4-db5a20938c4b"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/588f57bc-ff7d-4c5d-a5b4-db5a20938c4b{?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 -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

Varies

The list price of the product, also known as the manufacturer’s suggested retail price or recommended retail price.

_embedded.products[].manufacturerPrice

Varies

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

Varies

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-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: 3634

{
  "_embedded" : {
    "products" : [ {
      "_id" : "d41666b5-41aa-4bbb-80b6-928aa56dfede",
      "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/d41666b5-41aa-4bbb-80b6-928aa56dfede"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/d41666b5-41aa-4bbb-80b6-928aa56dfede{?projection}",
          "templated" : true
        }
      }
    }, {
      "_id" : "f4c8b160-0b3b-462e-a056-113ccec158b7",
      "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/f4c8b160-0b3b-462e-a056-113ccec158b7"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/f4c8b160-0b3b-462e-a056-113ccec158b7{?projection}",
          "templated" : true
        }
      }
    }, {
      "_id" : "c6a06ec4-2fc0-42e8-bc57-570da92a9668",
      "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/c6a06ec4-2fc0-42e8-bc57-570da92a9668"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/c6a06ec4-2fc0-42e8-bc57-570da92a9668{?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 -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-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: 1684

{
  "_embedded" : {
    "products" : [ {
      "_id" : "385adf37-0c5f-48d2-b79c-e9c77319017c",
      "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/385adf37-0c5f-48d2-b79c-e9c77319017c"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/385adf37-0c5f-48d2-b79c-e9c77319017c{?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&sort=id,asc"
    }
  },
  "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 -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-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: 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 -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

Varies

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

Varies

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-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: 2803

{
  "_embedded" : {
    "products" : [ {
      "_id" : "3be0fb4d-5623-4ea8-8ff4-dbdb9ca63f2b",
      "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/3be0fb4d-5623-4ea8-8ff4-dbdb9ca63f2b"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/3be0fb4d-5623-4ea8-8ff4-dbdb9ca63f2b{?projection}",
          "templated" : true
        }
      }
    }, {
      "_id" : "50114a9b-9f4f-4262-8955-3e1343597eb9",
      "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/50114a9b-9f4f-4262-8955-3e1343597eb9"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/50114a9b-9f4f-4262-8955-3e1343597eb9{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/search/find-by-search-term?page=0&size=40&sort=id,asc"
    }
  },
  "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=80e44731-2df4-488c-a6a7-5a40aa2f8d01' -i -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-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: 1716

{
  "_embedded" : {
    "products" : [ {
      "_id" : "b66ed736-dd77-4bdc-89f5-ebf9c7fa86e4",
      "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/b66ed736-dd77-4bdc-89f5-ebf9c7fa86e4"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/b66ed736-dd77-4bdc-89f5-ebf9c7fa86e4{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/search/find-by-category?categoryId=80e44731-2df4-488c-a6a7-5a40aa2f8d01&page=0&size=40&sort=id,asc"
    }
  },
  "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-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: 1653

{
  "_embedded" : {
    "products" : [ {
      "_id" : "6fb73a11-ab27-46dd-ba21-b9696cd5cb29",
      "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/6fb73a11-ab27-46dd-ba21-b9696cd5cb29"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/6fb73a11-ab27-46dd-ba21-b9696cd5cb29{?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/47b42e21-e994-43e9-9201-8e32def5533d/attachments' -i -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-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: 2065

{
  "_embedded" : {
    "attachments" : [ {
      "mimeType" : "application/pdf",
      "length" : 1,
      "label" : "Handbuch",
      "_id" : "b496fcf1-81e8-42bc-a973-e899395a6b1e",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/47b42e21-e994-43e9-9201-8e32def5533d/attachments/b496fcf1-81e8-42bc-a973-e899395a6b1e"
        },
        "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/47b42e21-e994-43e9-9201-8e32def5533d/attachments/b496fcf1-81e8-42bc-a973-e899395a6b1e"
        }
      }
    }, {
      "mimeType" : "application/pdf",
      "length" : 1,
      "label" : "Handbuch",
      "_id" : "66315cd7-4331-40ab-91d8-3922435a436d",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/47b42e21-e994-43e9-9201-8e32def5533d/attachments/66315cd7-4331-40ab-91d8-3922435a436d"
        },
        "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/47b42e21-e994-43e9-9201-8e32def5533d/attachments/66315cd7-4331-40ab-91d8-3922435a436d"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/47b42e21-e994-43e9-9201-8e32def5533d/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/bd5dc5ea-7a2a-44d7-be21-679056eed428/attachments/ccf45711-4d7c-4427-a7f4-4753a84432fa' -i -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-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: 803

{
  "mimeType" : "application/pdf",
  "length" : 1,
  "label" : "Handbuch",
  "_id" : "ccf45711-4d7c-4427-a7f4-4753a84432fa",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bd5dc5ea-7a2a-44d7-be21-679056eed428/attachments/ccf45711-4d7c-4427-a7f4-4753a84432fa"
    },
    "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/bd5dc5ea-7a2a-44d7-be21-679056eed428/attachments/ccf45711-4d7c-4427-a7f4-4753a84432fa"
    }
  }
}

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/bd003294-1bd2-4e17-a7f5-7bbc7a61f89e/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/bd003294-1bd2-4e17-a7f5-7bbc7a61f89e/attachments/1b799d2e-c113-41bc-b476-231338635996
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: 799

{
  "mimeType" : "application/pdf",
  "length" : 1,
  "label" : "Handbuch",
  "_id" : "1b799d2e-c113-41bc-b476-231338635996",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bd003294-1bd2-4e17-a7f5-7bbc7a61f89e/attachments/1b799d2e-c113-41bc-b476-231338635996"
    },
    "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/bd003294-1bd2-4e17-a7f5-7bbc7a61f89e/attachments/1b799d2e-c113-41bc-b476-231338635996"
    }
  }
}

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/faf825e9-17f9-4068-ba65-fdd4611b3638/attachments/50856c3b-3900-49be-87fe-f7bb4d6eb789' -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-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

Product Attribute Definitions

Attribute definitions provide meta data for attributes. An attribute definition is a precondition to create custom attributes

List product attribute definitions

A GET request will list the available product attribute definitions.

Required scopes

prad:r

Request parameters

Parameter Description

locale

The locale determining the localization context, e.g. the locale to retrieve the display name. Optional. Defaults to the shop locale.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-attribute-definitions?locale=en-US' -i -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.product-attribute-definitions

Array

The list of product attribute definitions.

page

Object

See Pagination

_links

Object

See Hypermedia

Links

Relation Description

search

The link to product property definiton search endpoints.

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: 1062

{
  "_embedded" : {
    "product-attribute-definitions" : [ {
      "name" : "colour",
      "namespace" : "custom",
      "format" : null,
      "type" : "STRING",
      "displayName" : "Color",
      "_id" : "b91ea98a-8bfa-400c-9e1f-13ebd249d0ea",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/b91ea98a-8bfa-400c-9e1f-13ebd249d0ea"
        },
        "product-attribute-definition" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/b91ea98a-8bfa-400c-9e1f-13ebd249d0ea"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions{?page,size,sort}",
      "templated" : true
    },
    "profile" : {
      "href" : "https://api-shop.beyondshop.cloud/api/profile/product-attribute-definitions"
    },
    "search" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/search"
    }
  },
  "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 id.

Required scopes

prad:r

Request parameters

Parameter Description

locale

The locale determining the localization context, e.g. the locale to retrieve the display name. Optional. Defaults to the shop locale.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-attribute-definitions/aed2bb2c-fe7d-4a37-b630-5745bf6f4003?locale=en-US' -i -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.

namespace

String

The namespace of the product attribute definition.

name

String

The name of the product attribute definition.

type

String

The type of the product attribute definition. Optional. Defaults to STRING.

format

Null

(Optional) A format pattern that is applied to the value of each attribute instance.

displayName

String

The displayed name 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.

Example response

HTTP/1.1 200 OK
Last-Modified: Wed, 18 Jul 2018 12:06:31 GMT
ETag: "1"
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: 471

{
  "name" : "colour",
  "namespace" : "custom",
  "format" : null,
  "type" : "STRING",
  "displayName" : "Color",
  "_id" : "aed2bb2c-fe7d-4a37-b630-5745bf6f4003",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/aed2bb2c-fe7d-4a37-b630-5745bf6f4003"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/aed2bb2c-fe7d-4a37-b630-5745bf6f4003"
    }
  }
}

Create product attribute definition

A POST request is used to create an attribute definition.

Required scopes

prad:c

Request parameters

Parameter Description

locale

The locale determining the localization context, e.g. the locale to retrieve the display name. Optional. Defaults to the shop locale.

Request body properties

Path Type Description Constraints

namespace

String

The namespace of the product attribute definition.

Must not be null

name

String

The name of the product attribute definition.

Must not be null

displayName

String

The displayed name of the product attribute.

type

String

The type of the product attribute definition. Optional. Defaults to STRING.

Must not be null

format

String

(Optional) A format pattern that is applied to the value of each attribute instance.

Format pattern is not applicable for decimal numbers

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-attribute-definitions?locale=en-US' -i -X POST -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d '{"namespace":"custom","name":"filling_capacity","type":"NUMBER","displayName":"Filling Capacity","format":"#,###.## ml"}'

Example response

HTTP/1.1 201 Created
ETag: "1"
Last-Modified: Wed, 18 Jul 2018 12:06:35 GMT
Location: https://api-shop.beyondshop.cloud/api/product-attribute-definitions/ac451f3c-09d6-4c7b-acd9-6e0ebe25597b
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: 501

{
  "name" : "filling_capacity",
  "namespace" : "custom",
  "format" : "#,###.## ml",
  "type" : "NUMBER",
  "displayName" : "Filling Capacity",
  "_id" : "ac451f3c-09d6-4c7b-acd9-6e0ebe25597b",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/ac451f3c-09d6-4c7b-acd9-6e0ebe25597b"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/ac451f3c-09d6-4c7b-acd9-6e0ebe25597b"
    }
  }
}

Delete product attribute definition

A DELETE request is used to delete a product attribute definition. Only attribute definitions that are not used in any product can be deleted.

Required scopes

prad:d

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-attribute-definitions/c519010d-9cb5-4be2-8284-400b907575fd' -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-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

Update product attribute definition

A PATCH request is used to update a product attribute definition. The namespace, name, and type fields cannot be changed. The displayName that is updated depends on the locale parameter.

Required scopes

prad:u

Request parameters

Parameter Description

locale

The locale determining the localization context, e.g. the locale to retrieve the display name. Optional. Defaults to the shop locale.

Request body properties

Path Type Description

displayName

String

The displayed name of the product attribute.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-attribute-definitions/b591006f-8de3-45bc-838e-09a00bb0a4ee?locale=en-US' -i -X PATCH -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d '{"displayName":"Color of the item"}'

Example response

HTTP/1.1 200 OK
ETag: "2"
Last-Modified: Wed, 18 Jul 2018 12:06:26 GMT
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: 483

{
  "name" : "colour",
  "namespace" : "custom",
  "format" : null,
  "type" : "STRING",
  "displayName" : "Color of the item",
  "_id" : "b591006f-8de3-45bc-838e-09a00bb0a4ee",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/b591006f-8de3-45bc-838e-09a00bb0a4ee"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/b591006f-8de3-45bc-838e-09a00bb0a4ee"
    }
  }
}

A search resource is used as entry point for links to sub-resources offering attribute definition searches. Currently the following search options are offered:

Find existing attribute definitions by namespace and name

A GET request is used to search for an attribute definition by namespace and name.

Required scopes

prad:r

Request parameters

Parameter Description

namespace

The attribute namespace to search in. If omitted, the namespace 'custom' is used.

name

The name of the product attribute definition.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-attribute-definitions/search/find-by-namespace-and-name?namespace=custom&name=colour' -i -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Last-Modified: Wed, 18 Jul 2018 12:06:28 GMT
ETag: "1"
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: 471

{
  "name" : "colour",
  "namespace" : "custom",
  "format" : null,
  "type" : "STRING",
  "displayName" : "Color",
  "_id" : "df1f721b-e081-497f-bb90-70c220be1095",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/df1f721b-e081-497f-bb90-70c220be1095"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/df1f721b-e081-497f-bb90-70c220be1095"
    }
  }
}

Find existing attribute definitions by namespace and query

A GET request is used to search for an attribute definition that already exists by namespace and prefix of the name.

Required scopes

prad:r

Request parameters

Parameter Description

namespace

The attribute namespace to search in. If omitted, the namespace 'custom' is used.

query

The search query. A LIKE query is issued with this query as the search prefix.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-attribute-definitions/search/find-by-namespace-and-query?namespace=custom&query=col' -i -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.product-attribute-definitions

Array

The list of product attribute definitions.

_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-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: 888

{
  "_embedded" : {
    "product-attribute-definitions" : [ {
      "name" : "colour",
      "namespace" : "custom",
      "format" : null,
      "type" : "STRING",
      "displayName" : "Color",
      "_id" : "552672e0-334a-4f01-8525-7d6bcba710dc",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/552672e0-334a-4f01-8525-7d6bcba710dc"
        },
        "product-attribute-definition" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/552672e0-334a-4f01-8525-7d6bcba710dc"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/search/find-by-namespace-and-query?namespace=custom&query=col&page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

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/1c3d6ac2-d2c4-40f9-a04f-6e718cac6c24/availability?locale=en-GB' -i -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

availableStock

Number

The number of products available in stock.

stockThreshold

Number

Inventory level that indicates that the product needs to be reordered.

purchasable

Boolean

Indicates if a product can be purchased. Can be true or false.

availabilityState

String

The current availability state of the product. If the related product is not in a purchasable availability state, it will be NOT_AVAILABLE. If the stock level is equal or lower than this value, the availability state is LOW_STOCK. Can be IN_STOCK, LOW_STOCK, NOT_AVAILABLE or OUT_OF_STOCK.

_links

Object

See Hypermedia

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-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: 1026

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : 20,
  "stockThreshold" : 2,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1c3d6ac2-d2c4-40f9-a04f-6e718cac6c24"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1c3d6ac2-d2c4-40f9-a04f-6e718cac6c24/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1c3d6ac2-d2c4-40f9-a04f-6e718cac6c24/availability/disable-purchasability"
    },
    "adjust-available-stock" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1c3d6ac2-d2c4-40f9-a04f-6e718cac6c24/availability/adjust-available-stock"
    },
    "update-stock-threshold" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1c3d6ac2-d2c4-40f9-a04f-6e718cac6c24/availability/update-stock-threshold"
    },
    "disable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1c3d6ac2-d2c4-40f9-a04f-6e718cac6c24/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/02d33db5-03b8-4a3b-9c9a-a1e7d6de62f9/availability/enable-stock-management?locale=en-US' -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/02d33db5-03b8-4a3b-9c9a-a1e7d6de62f9/availability
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: 1027

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : 100,
  "stockThreshold" : 2,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/02d33db5-03b8-4a3b-9c9a-a1e7d6de62f9"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/02d33db5-03b8-4a3b-9c9a-a1e7d6de62f9/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/02d33db5-03b8-4a3b-9c9a-a1e7d6de62f9/availability/disable-purchasability"
    },
    "adjust-available-stock" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/02d33db5-03b8-4a3b-9c9a-a1e7d6de62f9/availability/adjust-available-stock"
    },
    "update-stock-threshold" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/02d33db5-03b8-4a3b-9c9a-a1e7d6de62f9/availability/update-stock-threshold"
    },
    "disable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/02d33db5-03b8-4a3b-9c9a-a1e7d6de62f9/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/47355a83-c823-472b-991e-39c628a6ae9d/availability/disable-stock-management' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d 'locale=en-GB'

Example response

HTTP/1.1 200 OK
Location: https://api-shop.beyondshop.cloud/api/products/47355a83-c823-472b-991e-39c628a6ae9d/availability
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: 701

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : null,
  "stockThreshold" : null,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/47355a83-c823-472b-991e-39c628a6ae9d"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/47355a83-c823-472b-991e-39c628a6ae9d/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/47355a83-c823-472b-991e-39c628a6ae9d/availability/disable-purchasability"
    },
    "enable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/47355a83-c823-472b-991e-39c628a6ae9d/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/570476c4-5e8b-4309-a559-a9cf59fceb5a/availability/adjust-available-stock?locale=en-GB' -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/570476c4-5e8b-4309-a559-a9cf59fceb5a/availability
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: 1025

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : 9,
  "stockThreshold" : 2,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/570476c4-5e8b-4309-a559-a9cf59fceb5a"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/570476c4-5e8b-4309-a559-a9cf59fceb5a/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/570476c4-5e8b-4309-a559-a9cf59fceb5a/availability/disable-purchasability"
    },
    "adjust-available-stock" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/570476c4-5e8b-4309-a559-a9cf59fceb5a/availability/adjust-available-stock"
    },
    "update-stock-threshold" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/570476c4-5e8b-4309-a559-a9cf59fceb5a/availability/update-stock-threshold"
    },
    "disable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/570476c4-5e8b-4309-a559-a9cf59fceb5a/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/da0586c2-fc7b-495e-ad82-21d4efd7a384/availability/update-stock-threshold?locale=en-GB' -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/da0586c2-fc7b-495e-ad82-21d4efd7a384/availability
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: 1026

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : 10,
  "stockThreshold" : 5,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/da0586c2-fc7b-495e-ad82-21d4efd7a384"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/da0586c2-fc7b-495e-ad82-21d4efd7a384/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/da0586c2-fc7b-495e-ad82-21d4efd7a384/availability/disable-purchasability"
    },
    "adjust-available-stock" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/da0586c2-fc7b-495e-ad82-21d4efd7a384/availability/adjust-available-stock"
    },
    "update-stock-threshold" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/da0586c2-fc7b-495e-ad82-21d4efd7a384/availability/update-stock-threshold"
    },
    "disable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/da0586c2-fc7b-495e-ad82-21d4efd7a384/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/6a21635f-957c-416c-8423-84ceb648387a/availability/enable-purchasability' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d 'locale=en-GB'

Example response

HTTP/1.1 200 OK
Location: https://api-shop.beyondshop.cloud/api/products/6a21635f-957c-416c-8423-84ceb648387a/availability
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: 701

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : null,
  "stockThreshold" : null,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/6a21635f-957c-416c-8423-84ceb648387a"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/6a21635f-957c-416c-8423-84ceb648387a/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/6a21635f-957c-416c-8423-84ceb648387a/availability/disable-purchasability"
    },
    "enable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/6a21635f-957c-416c-8423-84ceb648387a/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/19246550-9cd5-4987-a420-7f98c3a5a866/availability/disable-purchasability' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d 'locale=en-GB'

Example response

HTTP/1.1 200 OK
Location: https://api-shop.beyondshop.cloud/api/products/19246550-9cd5-4987-a420-7f98c3a5a866/availability
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: 705

{
  "availabilityState" : "NOT_AVAILABLE",
  "availableStock" : null,
  "stockThreshold" : null,
  "purchasable" : false,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/19246550-9cd5-4987-a420-7f98c3a5a866"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/19246550-9cd5-4987-a420-7f98c3a5a866/availability"
    },
    "enable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/19246550-9cd5-4987-a420-7f98c3a5a866/availability/enable-purchasability"
    },
    "enable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/19246550-9cd5-4987-a420-7f98c3a5a866/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

BOOLEAN

Boolean value (true,false)

STRING

String value (max. 4kb)

LONG

Long integer

DOUBLE

Double-precision floating number

DATE_TIME

Date and time without timezone information (UTC)

MONEY

Money value

DATA

Byte array

Localization

All attributes can be localized, so that you can assign one specific value per attribute name and locale. If you want non-localized attributes, just use an empty locale (""), which is equivalent to the "root locale".

Custom attributes

Request parameters for custom attributes endpoints

Parameter Description

locale

Optional LocaleCode parameter

Response structure for custom attributes endpoints

Path Type Description

_embedded.attributes[].namespace

String

Namespace

_embedded.attributes[].name

String

Name

_embedded.attributes[].locale

String

Locale

_embedded.attributes[].value

Boolean

Value

_embedded.attributes[].type

String

Type

Create custom product attribute

Required scopes

prod:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/82ce7f38-40ae-483a-849d-7765836852d7/attributes' -i -X POST -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d '{"namespace":"my_test_namespace111","name":"my_test_attr_name111","locale":"en_US","type":"STRING","value":"my_test_string_value"}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/products/82ce7f38-40ae-483a-849d-7765836852d7/attributes
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

List custom product attributes

To receive product custom attributes list optional locale parameter can be specified.

Required scopes

prod:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2/attributes?locale=de-DE' -i -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.attributes[].namespace

String

The namespace of the product attribute.

_embedded.attributes[].name

String

The name of the product attribute.

_embedded.attributes[].locale

String

The locale of the product attribute.

_embedded.attributes[].value

Varies

The value of the product attribute.

_embedded.attributes[].type

String

The type of the product attribute.

_links

Object

See Hypermedia

page

Object

See Pagination

Links

Relation Description

owner

The link to the owner of the product.

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: 3286

{
  "_embedded" : {
    "attributes" : [ {
      "namespace" : "_dummy_namespace",
      "name" : "_dummy_attr_different_locale",
      "locale" : "de-DE",
      "type" : "STRING",
      "value" : "attrappe-produkt",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2/attributes/_dummy_namespace/_dummy_attr_different_locale?locale=de-DE"
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2"
        }
      }
    }, {
      "namespace" : "_dummy_namespace",
      "name" : "_dummy_attr_undefined_locale",
      "locale" : "",
      "type" : "NUMBER",
      "value" : 42.0,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2/attributes/_dummy_namespace/_dummy_attr_undefined_locale?locale="
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2"
        }
      }
    }, {
      "namespace" : "mbo",
      "name" : "flag",
      "locale" : "",
      "type" : "NUMBER",
      "value" : 42.0,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2/attributes/mbo/flag?locale="
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2"
        }
      }
    }, {
      "namespace" : "namespace_seo",
      "name" : "attr_different_locale",
      "locale" : "de-DE",
      "type" : "STRING",
      "value" : "mein-produkt",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2/attributes/namespace_seo/attr_different_locale?locale=de-DE"
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2"
        }
      }
    }, {
      "namespace" : "namespace_seo",
      "name" : "attr_undefined_locale",
      "locale" : "",
      "type" : "NUMBER",
      "value" : 42.0,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2/attributes/namespace_seo/attr_undefined_locale?locale="
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2"
        }
      }
    }, {
      "namespace" : "seo",
      "name" : "slug",
      "locale" : "de-DE",
      "type" : "STRING",
      "value" : "mein-produkt",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2/attributes/seo/slug?locale=de-DE"
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2/attributes?locale=de-DE"
    },
    "owner" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/93c87412-8d03-485b-8025-b454176bccb2"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 6,
    "totalPages" : 1,
    "number" : 0
  }
}

List custom product attributes by namespace

Required scopes

prod:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/22e696d9-46bb-4b21-99aa-43eb289bdbfc/attributes/seo?locale=en-GB' -i -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.attributes[].namespace

String

The namespace of the product attribute.

_embedded.attributes[].name

String

The name of the product attribute.

_embedded.attributes[].locale

String

The locale of the product attribute.

_embedded.attributes[].value

String

The value of the product attribute.

_embedded.attributes[].type

String

The type of the product attribute.

_links

Object

See Hypermedia

page

Object

See Pagination

Links

Relation Description

owner

The link to the owner of the product.

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: 854

{
  "_embedded" : {
    "attributes" : [ {
      "namespace" : "seo",
      "name" : "slug",
      "locale" : "en-GB",
      "type" : "STRING",
      "value" : "my-product",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/22e696d9-46bb-4b21-99aa-43eb289bdbfc/attributes/seo/slug?locale=en-GB"
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/22e696d9-46bb-4b21-99aa-43eb289bdbfc"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/22e696d9-46bb-4b21-99aa-43eb289bdbfc/attributes?locale=en-GB"
    },
    "owner" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/22e696d9-46bb-4b21-99aa-43eb289bdbfc"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

List custom product attributes by namespace and attribute name

Required scopes

prod:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/381869d5-8b7a-4845-98fb-e2fa0a40f37f/attributes/namespace_seo/attr_different_locale?locale=de-DE' -i -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

_embedded.attributes[].namespace

String

The namespace of the product attribute.

_embedded.attributes[].name

String

The name of the product attribute.

_embedded.attributes[].locale

String

The locale of the product attribute.

_embedded.attributes[].value

String

The value of the product attribute.

_embedded.attributes[].type

String

The type of the product attribute.

_links

Object

See Hypermedia

page

Object

See Pagination

Links

Relation Description

owner

The link to the owner of the product.

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: 946

{
  "_embedded" : {
    "attributes" : [ {
      "namespace" : "namespace_seo",
      "name" : "attr_different_locale",
      "locale" : "de-DE",
      "type" : "STRING",
      "value" : "mein-produkt",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/381869d5-8b7a-4845-98fb-e2fa0a40f37f/attributes/namespace_seo/attr_different_locale?locale=de-DE"
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/381869d5-8b7a-4845-98fb-e2fa0a40f37f"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/381869d5-8b7a-4845-98fb-e2fa0a40f37f/attributes/namespace_seo/attr_different_locale?locale=de-DE"
    },
    "owner" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/381869d5-8b7a-4845-98fb-e2fa0a40f37f"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Delete custom product attribute

Required scopes

prod:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/41be6e2d-7427-4b22-abd9-2729f8100232/attributes/seo/slug' -i -X DELETE -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
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

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/d133f699-34b7-469d-a414-be00d864ffe8/images' -i -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-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: 1927

{
  "_embedded" : {
    "images" : [ {
      "_id" : "2a5ba99b-ddab-4293-a2a6-7a2f15f0067c",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/d133f699-34b7-469d-a414-be00d864ffe8/images/2a5ba99b-ddab-4293-a2a6-7a2f15f0067c"
        },
        "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/d133f699-34b7-469d-a414-be00d864ffe8/images/2a5ba99b-ddab-4293-a2a6-7a2f15f0067c"
        }
      }
    }, {
      "_id" : "94e50a4b-bf9d-40ac-b147-446b63bdb01a",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/d133f699-34b7-469d-a414-be00d864ffe8/images/94e50a4b-bf9d-40ac-b147-446b63bdb01a"
        },
        "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/d133f699-34b7-469d-a414-be00d864ffe8/images/94e50a4b-bf9d-40ac-b147-446b63bdb01a"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d133f699-34b7-469d-a414-be00d864ffe8/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/d98b3492-1a26-420a-b01c-7b0a2f427c8a/images/836a9537-470c-4eb7-a270-39b4ae75ccd8' -i -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-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: 747

{
  "_id" : "836a9537-470c-4eb7-a270-39b4ae75ccd8",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d98b3492-1a26-420a-b01c-7b0a2f427c8a/images/836a9537-470c-4eb7-a270-39b4ae75ccd8"
    },
    "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/d98b3492-1a26-420a-b01c-7b0a2f427c8a/images/836a9537-470c-4eb7-a270-39b4ae75ccd8"
    }
  }
}

Add product image

A POST request is used to create an image 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 image.

Must be a valid storage service URI (must contain a hash query parameter). Must not be null

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/70b510a8-513c-45a0-8cbe-4d43ef136c39/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/70b510a8-513c-45a0-8cbe-4d43ef136c39/images/9141629a-cbc3-4d62-b459-8ee6a143fddc
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: 747

{
  "_id" : "9141629a-cbc3-4d62-b459-8ee6a143fddc",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/70b510a8-513c-45a0-8cbe-4d43ef136c39/images/9141629a-cbc3-4d62-b459-8ee6a143fddc"
    },
    "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/70b510a8-513c-45a0-8cbe-4d43ef136c39/images/9141629a-cbc3-4d62-b459-8ee6a143fddc"
    }
  }
}

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/d222952d-e73c-4851-924e-145c7c7a9134/images/31db7c83-e4a5-46ea-a0ec-cdd1693d6558' -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-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

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/f9a82e47-3795-4630-a6d5-238b0f693ac1/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/9284f944-a4ce-4408-856f-0fb6375fe354'

Example response

HTTP/1.1 204 No Content
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

Shipping Zones

The shipping zones resource is used to get information about 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/2538e75e-2925-440e-a504-12cda71cede7' -i -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 merchant administration 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.

shippingMethods[].fixedPrice

Object

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

shippingMethods[].position

Number

The sorting position of the shipping method in the merchant administration in relation to other shipping methods.

shippingMethods[].name

String

The name of the shipping method.

shippingMethods[].description

String

description

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.

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: 1048

{
  "name" : "BE-NL-LU",
  "serviceableCountries" : [ "BE", "NL", "LU" ],
  "position" : 2,
  "shippingMethods" : [ {
    "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,
    "_id" : "1c3ac3a8-9c11-469f-a5bb-7ba7d5bfd6a7",
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2538e75e-2925-440e-a504-12cda71cede7/shipping-methods/1c3ac3a8-9c11-469f-a5bb-7ba7d5bfd6a7"
      }
    }
  } ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2538e75e-2925-440e-a504-12cda71cede7"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2538e75e-2925-440e-a504-12cda71cede7/shipping-methods"
    }
  },
  "_id" : "2538e75e-2925-440e-a504-12cda71cede7"
}

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/5211eace-c84b-46bf-acdb-9ce33b9c0436
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: 449

{
  "name" : "BE-NL-LU",
  "serviceableCountries" : [ "NL", "BE", "LU" ],
  "position" : 2,
  "shippingMethods" : [ ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/5211eace-c84b-46bf-acdb-9ce33b9c0436"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/5211eace-c84b-46bf-acdb-9ce33b9c0436/shipping-methods"
    }
  },
  "_id" : "5211eace-c84b-46bf-acdb-9ce33b9c0436"
}

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/c8b18637-f12b-45c4-a618-c3944bd3284c' -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-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: 1060

{
  "name" : "BENELUX region",
  "serviceableCountries" : [ "NL", "DE", "LU", "BE" ],
  "position" : 2,
  "shippingMethods" : [ {
    "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,
    "_id" : "217c7bb2-85b9-4d3b-80f5-f0ff8e250fe7",
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/c8b18637-f12b-45c4-a618-c3944bd3284c/shipping-methods/217c7bb2-85b9-4d3b-80f5-f0ff8e250fe7"
      }
    }
  } ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/c8b18637-f12b-45c4-a618-c3944bd3284c"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/c8b18637-f12b-45c4-a618-c3944bd3284c/shipping-methods"
    }
  },
  "_id" : "c8b18637-f12b-45c4-a618-c3944bd3284c"
}

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/6f07c2d6-a3a8-431a-91d9-eb3266195904' -i -X DELETE -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
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

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 -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: 2548

{
  "_embedded" : {
    "shipping-zones" : [ {
      "name" : "DE",
      "serviceableCountries" : [ "DE" ],
      "position" : 1,
      "shippingMethods" : [ {
        "name" : "Standard Shipping 2",
        "description" : "Standard Shipping",
        "taxClass" : "REGULAR",
        "position" : 0,
        "freeShippingValue" : null,
        "fixedPrice" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 19.99
        },
        "weightBasedPrice" : null,
        "_id" : "af1077e5-2067-43db-b562-169a7e7e3f46",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2123c019-bc7f-4dde-9edb-f20948bf4009/shipping-methods/af1077e5-2067-43db-b562-169a7e7e3f46"
          }
        }
      } ],
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2123c019-bc7f-4dde-9edb-f20948bf4009"
        },
        "shipping-methods" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2123c019-bc7f-4dde-9edb-f20948bf4009/shipping-methods"
        }
      },
      "_id" : "2123c019-bc7f-4dde-9edb-f20948bf4009"
    }, {
      "name" : "BE-NL-LU",
      "serviceableCountries" : [ "BE", "NL", "LU" ],
      "position" : 2,
      "shippingMethods" : [ {
        "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,
        "_id" : "478c901e-7d0b-4236-8a30-010610851321",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/4a6286f5-b8f8-4f98-be69-9c6ef5fc4995/shipping-methods/478c901e-7d0b-4236-8a30-010610851321"
          }
        }
      } ],
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/4a6286f5-b8f8-4f98-be69-9c6ef5fc4995"
        },
        "shipping-methods" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/4a6286f5-b8f8-4f98-be69-9c6ef5fc4995/shipping-methods"
        }
      },
      "_id" : "4a6286f5-b8f8-4f98-be69-9c6ef5fc4995"
    } ]
  },
  "_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/e235a264-aeef-4c38-8712-2a2523d0805b
https://api-shop.beyondshop.cloud/api/shipping-zones/02d324af-c575-475c-9255-86195b943ee1
https://api-shop.beyondshop.cloud/api/shipping-zones/e0e325b6-1254-4e59-9b07-44e805a9ec84'

Example response

HTTP/1.1 204 No Content
Location: https://api-shop.beyondshop.cloud/api/shipping-zones
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

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/988de009-a9ba-43ef-ae97-95d18ba6d041/shipping-methods/07dc3c72-f3a6-4d05-9073-7543862858d1' -i -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.

fixedPrice

Object

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

position

Number

The sorting position of the shipping method in the merchant administration in relation to other shipping methods.

name

String

The name of the shipping method.

description

String

description

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.

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: 556

{
  "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,
  "_id" : "07dc3c72-f3a6-4d05-9073-7543862858d1",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/988de009-a9ba-43ef-ae97-95d18ba6d041/shipping-methods/07dc3c72-f3a6-4d05-9073-7543862858d1"
    }
  }
}

Required scopes

shpz:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/905bf271-f9df-44ba-a527-a17dc6656a33/shipping-methods/97d03f37-263c-432a-acfd-ce8723f7d2be' -i -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.

fixedPrice

Object

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

position

Number

The sorting position of the shipping method in the merchant administration in relation to other shipping methods.

name

String

The name of the shipping method.

description

String

description

taxClass

String

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

freeShippingValue

Null

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

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: 512

{
  "name" : "Standard Shipping 2",
  "description" : "Standard Shipping",
  "taxClass" : "REGULAR",
  "position" : 0,
  "freeShippingValue" : null,
  "fixedPrice" : {
    "taxModel" : "GROSS",
    "currency" : "EUR",
    "amount" : 19.99
  },
  "weightBasedPrice" : null,
  "_id" : "97d03f37-263c-432a-acfd-ce8723f7d2be",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/905bf271-f9df-44ba-a527-a17dc6656a33/shipping-methods/97d03f37-263c-432a-acfd-ce8723f7d2be"
    }
  }
}

Create shipping method in shipping zone

A POST request is used to create a shipping method in a shipping zone.

Required scopes

shpz:u

Request body properties

Path Type Description

name

String

The name of the shipping method.

description

String

description

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 request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/be3f7653-aec0-4684-ac55-afc72e23d76f/shipping-methods' -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>' -d '{
  "name" : "Standard Shipping 2",
  "description" : "Standard Shipping",
  "taxClass" : "REGULAR",
  "freeShippingValue" : {
    "taxModel" : "GROSS",
    "currency" : "EUR",
    "amount" : 400
  },
  "fixedPrice" : {
    "taxModel" : "GROSS",
    "currency" : "EUR",
    "amount" : "19.99"
  }
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/shipping-zones/be3f7653-aec0-4684-ac55-afc72e23d76f/shipping-methods/6b583991-3f29-4130-a8ac-b8ff27329a16
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: 1580

{
  "name" : "DE",
  "serviceableCountries" : [ "DE" ],
  "position" : 1,
  "shippingMethods" : [ {
    "name" : "Standard Shipping 2",
    "description" : "Standard Shipping",
    "taxClass" : "REGULAR",
    "position" : 0,
    "freeShippingValue" : null,
    "fixedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "weightBasedPrice" : null,
    "_id" : "9317c52a-9fa4-47dc-8506-111afd00c2cf",
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/be3f7653-aec0-4684-ac55-afc72e23d76f/shipping-methods/9317c52a-9fa4-47dc-8506-111afd00c2cf"
      }
    }
  }, {
    "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,
    "_id" : "6b583991-3f29-4130-a8ac-b8ff27329a16",
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/be3f7653-aec0-4684-ac55-afc72e23d76f/shipping-methods/6b583991-3f29-4130-a8ac-b8ff27329a16"
      }
    }
  } ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/be3f7653-aec0-4684-ac55-afc72e23d76f"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/be3f7653-aec0-4684-ac55-afc72e23d76f/shipping-methods"
    }
  },
  "_id" : "be3f7653-aec0-4684-ac55-afc72e23d76f"
}

Request body properties

Path Type Description

name

String

The name of the shipping method.

description

String

description

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.

weightBasedPrice

Object

The price depending on the package weight.

weightBasedPrice.unlimitedWeightPrice

Object

The price for the package if its weight exceeds the highest weight threshold. If this value is not available, the shipping method is not applicable.

weightBasedPrice.weightPriceThresholds

Array

A list of package prices that are valid up to the respective maximum weight.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/2e47a2e0-893d-4829-b15d-1ad2f7e936aa/shipping-methods' -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>' -d '{
  "name" : "Standard Shipping 2",
  "description" : "Standard Shipping",
  "taxClass" : "REGULAR",
  "freeShippingValue" : {
    "taxModel" : "GROSS",
    "currency" : "EUR",
    "amount" : 400
  },
  "weightBasedPrice" : {
    "weightPriceThresholds" : [ {
      "maxWeight" : 1000,
      "price" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 4
      }
    }, {
      "maxWeight" : 5000,
      "price" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 9
      }
    } ],
    "unlimitedWeightPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 34
    }
  }
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/shipping-zones/2e47a2e0-893d-4829-b15d-1ad2f7e936aa/shipping-methods/ec76fb26-cdf8-41d8-a7f4-0f4db45da54e
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: 1968

{
  "name" : "DE",
  "serviceableCountries" : [ "DE" ],
  "position" : 1,
  "shippingMethods" : [ {
    "name" : "Standard Shipping 2",
    "description" : "Standard Shipping",
    "taxClass" : "REGULAR",
    "position" : 0,
    "freeShippingValue" : null,
    "fixedPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 19.99
    },
    "weightBasedPrice" : null,
    "_id" : "72e025dd-020c-4e80-b0b4-83b02409c84b",
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2e47a2e0-893d-4829-b15d-1ad2f7e936aa/shipping-methods/72e025dd-020c-4e80-b0b4-83b02409c84b"
      }
    }
  }, {
    "name" : "Standard Shipping 2",
    "description" : "Standard Shipping",
    "taxClass" : "REGULAR",
    "position" : 0,
    "freeShippingValue" : {
      "currency" : "EUR",
      "amount" : 400
    },
    "fixedPrice" : null,
    "weightBasedPrice" : {
      "weightPriceThresholds" : [ {
        "maxWeight" : 1000,
        "price" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 4
        }
      }, {
        "maxWeight" : 5000,
        "price" : {
          "taxModel" : "GROSS",
          "currency" : "EUR",
          "amount" : 9
        }
      } ],
      "unlimitedWeightPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 34
      }
    },
    "_id" : "ec76fb26-cdf8-41d8-a7f4-0f4db45da54e",
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2e47a2e0-893d-4829-b15d-1ad2f7e936aa/shipping-methods/ec76fb26-cdf8-41d8-a7f4-0f4db45da54e"
      }
    }
  } ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2e47a2e0-893d-4829-b15d-1ad2f7e936aa"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2e47a2e0-893d-4829-b15d-1ad2f7e936aa/shipping-methods"
    }
  },
  "_id" : "2e47a2e0-893d-4829-b15d-1ad2f7e936aa"
}

Delete shipping method in shipping zone

A DELETE request is used to delete a shipping method in a shipping zone. You cannot delete the last shipping method of a shop.

Required scopes

shpz:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/beccca84-0659-4d13-aecb-351341d7c491/shipping-methods/b021a9bd-a533-4368-a29f-3aae66fe1035' -i -X DELETE -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: 449

{
  "name" : "BE-NL-LU",
  "serviceableCountries" : [ "BE", "NL", "LU" ],
  "position" : 2,
  "shippingMethods" : [ ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/beccca84-0659-4d13-aecb-351341d7c491"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/beccca84-0659-4d13-aecb-351341d7c491/shipping-methods"
    }
  },
  "_id" : "beccca84-0659-4d13-aecb-351341d7c491"
}

List shipping methods of shipping zone

A GET request is used to list all shipping-methods of a shipping zone in a paged manner.

Required scopes

shpz:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/bb6bc7f5-cadb-47e4-b069-1a074724e342/shipping-methods' -i -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: 847

{
  "_embedded" : {
    "shipping-methods" : [ {
      "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,
      "_id" : "353f2e8f-ac42-4895-aa87-506dae3ca472",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/bb6bc7f5-cadb-47e4-b069-1a074724e342/shipping-methods/353f2e8f-ac42-4895-aa87-506dae3ca472"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/bb6bc7f5-cadb-47e4-b069-1a074724e342/shipping-methods"
    }
  }
}

Sort shipping methods in shipping zone

A PUT request is used to sort the shipping methods inside a shipping zone. This is done by passing the self-links of the shipping methods in the desired order. The request must contain URIs for all shipping methods of this shipping zone.

Required scopes

shpz:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/d1ec8af2-7846-4da1-bee3-5a3a142e9551/shipping-methods' -i -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: 3405

{
  "_embedded" : {
    "shipping-methods" : [ {
      "name" : "Standard Shipping 2-1",
      "description" : "Standard Shipping",
      "taxClass" : "REGULAR",
      "position" : 0,
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 2
      },
      "weightBasedPrice" : null,
      "_id" : "8c181882-b735-4b6e-a6c7-6946cede9132",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/d1ec8af2-7846-4da1-bee3-5a3a142e9551/shipping-methods/8c181882-b735-4b6e-a6c7-6946cede9132"
        }
      }
    }, {
      "name" : "Standard Shipping 2-2",
      "description" : "Standard Shipping",
      "taxClass" : "REGULAR",
      "position" : 1,
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 2
      },
      "weightBasedPrice" : null,
      "_id" : "e73bc048-188f-420f-9f84-ca7c3865c4b6",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/d1ec8af2-7846-4da1-bee3-5a3a142e9551/shipping-methods/e73bc048-188f-420f-9f84-ca7c3865c4b6"
        }
      }
    }, {
      "name" : "Standard Shipping 2-4",
      "description" : "Standard Shipping",
      "taxClass" : "REGULAR",
      "position" : 2,
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 2
      },
      "weightBasedPrice" : null,
      "_id" : "199fee7b-1768-4b1f-a765-95158c828686",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/d1ec8af2-7846-4da1-bee3-5a3a142e9551/shipping-methods/199fee7b-1768-4b1f-a765-95158c828686"
        }
      }
    }, {
      "name" : "Standard Shipping 2-0",
      "description" : "Standard Shipping",
      "taxClass" : "REGULAR",
      "position" : 3,
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 2
      },
      "weightBasedPrice" : null,
      "_id" : "91e53cf1-212e-4aa2-8008-d434c62572c1",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/d1ec8af2-7846-4da1-bee3-5a3a142e9551/shipping-methods/91e53cf1-212e-4aa2-8008-d434c62572c1"
        }
      }
    }, {
      "name" : "Standard Shipping 2-3",
      "description" : "Standard Shipping",
      "taxClass" : "REGULAR",
      "position" : 4,
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 2
      },
      "weightBasedPrice" : null,
      "_id" : "9bd68a5f-9163-4ccc-af92-781ee0600723",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/d1ec8af2-7846-4da1-bee3-5a3a142e9551/shipping-methods/9bd68a5f-9163-4ccc-af92-781ee0600723"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/d1ec8af2-7846-4da1-bee3-5a3a142e9551/shipping-methods"
    }
  }
}

Find serviceable countries

A GET request is used to find the serviceable countries.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/search/find-all-serviceable-countries' -i -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_embedded.countryCodes

Array

The list of country codes that products can be shipped to.

_links

Object

See Hypermedia

page

Object

See Pagination

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: 428

{
  "_embedded" : {
    "countryCodes" : [ {
      "countryCode" : "BE"
    }, {
      "countryCode" : "LU"
    }, {
      "countryCode" : "NL"
    }, {
      "countryCode" : "DE"
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/search/find-all-serviceable-countries"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 4,
    "totalPages" : 1,
    "number" : 0
  }
}

Shop

Show address details

A GET request is used to retrieve the details of a shop’s address.

Required scopes

shad:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop/address' -i -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

company

String

The company name related to the shop.

firstName

String

The first name of the shop owner.

lastName

String

The last name of the shop owner.

street

String

The street of the shop address.

street2

String

Additional street field for the shop address.

city

String

The city of the shop address.

postalCode

String

The postal code of the shop address.

country

String

The country of the shop address (cannot be changed).

state

String

The state of the shop address.

phone

String

The phone number of the shop owner.

fax

String

The fax number of the shop owner.

email

String

The email address of the shop owner.

_links

Object

See Hypermedia

Links

Relation Description

address

The link to the address resource.

owner

The link to the parent shop resource.

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: 577

{
  "company" : "Mixed products Inc.",
  "firstName" : "Beryl",
  "lastName" : "Mannar",
  "email" : "bm@example.com",
  "phone" : "+441632960166",
  "fax" : "+441632960830",
  "street" : "Malevo Drive",
  "street2" : "c/o Mr Ceming",
  "postalCode" : "WC1D 8DU",
  "city" : "Minessace",
  "country" : "GB",
  "state" : "Essence",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/address"
    },
    "address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/address"
    },
    "owner" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop"
    }
  }
}

Update address partially (json patch)

A PATCH request is used to update a shop’s address partially with json patch content type.

Required scopes

shad:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop/address' -i -X PATCH -H 'Content-Type: application/json-patch+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d '[ {
  "op" : "replace",
  "path" : "/city",
  "value" : "Barcelona"
} ]'

Response body properties

Path Type Description

company

String

The company name related to the shop.

firstName

String

The first name of the shop owner.

lastName

String

The last name of the shop owner.

street

String

The street of the shop address.

street2

String

Additional street field for the shop address.

city

String

The city of the shop address.

postalCode

String

The postal code of the shop address.

country

String

The country of the shop address (cannot be changed).

state

String

The state of the shop address.

phone

String

The phone number of the shop owner.

fax

String

The fax number of the shop owner.

email

String

The email address of the shop owner.

_links

Object

See Hypermedia

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: 577

{
  "company" : "Mixed products Inc.",
  "firstName" : "Beryl",
  "lastName" : "Mannar",
  "email" : "bm@example.com",
  "phone" : "+441632960166",
  "fax" : "+441632960830",
  "street" : "Malevo Drive",
  "street2" : "c/o Mr Ceming",
  "postalCode" : "WC1D 8DU",
  "city" : "Barcelona",
  "country" : "GB",
  "state" : "Essence",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/address"
    },
    "address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/address"
    },
    "owner" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop"
    }
  }
}

Update address with tenant context (json)

A PATCH request is used to patch a shop’s address partially partially with json content type.

Required scopes

shad:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop/address' -i -X PATCH -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d '{
  "city" : "Barcelona"
}'

Response body properties

Path Type Description

company

String

The company name related to the shop.

firstName

String

The first name of the shop owner.

lastName

String

The last name of the shop owner.

street

String

The street of the shop address.

street2

String

Additional street field for the shop address.

city