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

Response body properties

Path Type Description

shopId

String

The unique identifier of the shop.

Example response

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

{
  "shopId" : "968c5f6d-0a1c-4496-89db-7fa1cf1940fe"
}
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-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" : "05990d6c-98ea-4739-9b57-086bb2b00896",
    "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-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/410ebf88-0569-413f-b7cb-a8d6eaa6013a' -i -X GET \
    -H 'Accept: application/hal+json'

Response body properties

Path Type Description

ready

Boolean

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

details

Object

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

Example response

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

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

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

Payment flow

The payment flow can be triggered in two different steps:

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

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

It’s up to you to decide which option you would like to choose for your payment app. The general payment flow stays the same. 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 paymentId as well as 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" : "eb322892-f38a-4e18-9bb7-3f211cc3468f",
    "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" : "4b7bb9f3-f2f7-46ec-b7e3-26d258a24b0a",
  "shopId" : "11d7663d-37f3-41e2-abc1-c462bb358655"
}'

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-Frame-Options: DENY
Content-Length: 41

{
  "approvalUri" : "http://approve.me"
}

If the app doesn’t return an approvalUri, an error will be displayed to the customer and they need to choose a different payment method.

2. Approve a payment

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

2a. Successful payment

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

Required scopes

paym:m

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payments/761cda06-ac5e-4557-aa11-da53ebf5ccf6/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-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

It is also possible, that a payment is not successful, e.g. if the customer canceled the payment or an error occurred on the app side. In these cases, the app informs the payment gateway that the payment is canceled. The payment gateway will then provide a returnUri to which the customer will be redirected by the app. In case of a canceled payment, the returnUri is the cancelUri as shown below:

Required scopes

paym:m

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payments/6f16fd33-6965-4668-ba38-f3359fde8393/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-Frame-Options: DENY
Content-Length: 71

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

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

2c. Failed payment

If the payment app runs into an error situation when processing payment approval or cancellation, it can also fail the payment.

In case of such a failure the payment app can call the fail endpoint of the payment gateway with or without error information to obtain a return URI.

Required scopes

paym:m

Example request

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

Response body properties

Path Type Description

returnUri

String

The URI to which the 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-Frame-Options: DENY
Content-Length: 278

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

The 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/d528645e-1c3a-4c3b-924d-84deafa57c78/capture' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -d '{
  "shopId" : "faff9af6-a093-495e-b89a-cc8c317c593b"
}'

Example response

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

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

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

Required scopes

paym:m

Request body properties

Path Type Description

paymentStatus

String

The status of the payment. Can be one of PENDING, 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/fae16756-0a84-4ed2-9633-983e1c374dec/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-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/572323f1-fc0d-4405-8253-8fca475ecdb5/refund' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/hal+json' \
    -d '{
  "shopId" : "f505e9ef-2378-44d7-9d8e-5f24eb2090d0",
  "refundAmount" : {
    "currency" : "EUR",
    "amount" : 10
  }
}'

Example response

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

Support

Any questions left? Get in touch with us!

Explore more

Need more ideas? Here we go:

Social Commerce

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

Portal Engines

Add products to price comparison or shopping portals.

Shipping

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

Accounting

Allow our merchants to manage and process orders.

Legal Service

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

Basic POS/Marketplace

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

Sales Analytics

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

Image Service

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

Advanced POS/Marketplace

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

CRM and Newsletters

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

Enterprise Management Systems (EMS)

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

Basic Storefront Apps

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

API Reference

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

Change Log

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

2018-08-28

New

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

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

Add open and close shop endpoints.

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

2018-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 client_credentials for client credentials flow, authorization_code for authorization code flow, and refresh_token to refresh an access token.

refresh_token

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

code

The authorization code. Required for the authorization_code grant type.

Request header properties

Name Description

Authorization

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

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/oauth/token' -i -u '370eb4f4-ec75-4243-ac0f-6d7845eb9364:2baobj7rbnlpkop3ffjbndm45u' -X POST -d 'grant_type=authorization_code&code=QZOg2Q'

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
Content-Type: application/json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1480

{
  "access_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJzY29wZSI6WyJ1c2VyOnIiXSwidGVuYW50SWQiOjEzNSwiZXhwIjoxNTM3ODE5OTQ0LCJpYXQiOjE1Mzc3NzY3NDQsImp0aSI6IjY4NGRlZWQ0LWZkNzAtNDgyMy1iM2Y0LTA0M2NhM2NkZjY3MCIsImNsaWVudF9pZCI6IjM3MGViNGY0LWVjNzUtNDI0My1hYzBmLTZkNzg0NWViOTM2NCJ9.WWmiOcGiUgX32U1uvFS6LYVbl4lRzP9LMvbXUvCmTsqldA0yoaHF5SdD3X5-dUv_oaBU1EnFAR0xQsTzmzRKphSAbZRIqrOuLnzG4HTkRyLil19UkVd-_dC_dWZHrq4uLD7UCp3MK7nf5qB_ju-pv9m9jZ74Mt38cnaoN90kr6gkJmmDvbA_flb7Km-FOIMkH4Rd3DgqIRbMQTjsFiTLN3nybEyM-UOwPwYlwuxMoP3plUHOYLlxoFURzORUgc7Fo1gW7Q15m-SZdqekJawYxP8P8bbWCLL3ayBnt4mc5E6GVTH3VMqFlGQaiFap7rzPBBH6mHjrWMaBrMIhvu_WTw",
  "token_type" : "bearer",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJzY29wZSI6WyJ1c2VyOnIiXSwiYXRpIjoiNjg0ZGVlZDQtZmQ3MC00ODIzLWIzZjQtMDQzY2EzY2RmNjcwIiwidGVuYW50SWQiOjEzNSwiaWF0IjoxNTM3Nzc2NzQ0LCJqdGkiOiI2OTUzZTJiZC0xMTYyLTQyODctOWJjNS01NTYyMWE0MThkOTAiLCJjbGllbnRfaWQiOiIzNzBlYjRmNC1lYzc1LTQyNDMtYWMwZi02ZDc4NDVlYjkzNjQifQ.OuDiyQSUo8NiSPi-qqyQhgRWHmWsS_-ExlZ33pcL2QD7qfxUKozHYNlVpxLemud4IKwVBMSMBVf03ClhKOTy2KeMJH2jMIV1wmiUm5vmuVFSzuu7bq8ae1LnlPCjDb2rCvtFXiwZPTiq8ckdJW5fpsbsFMuDmOpUNHO0SipPOzPwSBa9Esl8g2MnDpKVHnRNhfoBRJ420WsJ6-CBi3VMPq8PbxhQ92RKB927cgtBP3IlhyNZFczgPTv_CtRoq7kLSXMJqQBCVXUdlVvLUx3dUJmqCb1EYtSWi08c5bJn92tag3_HKAPKGKft3eB5pB_4mGP6-isRjIpNAC9X8wdwqQ",
  "expires_in" : 43199,
  "scope" : "user:r",
  "tenantId" : 135,
  "iat" : 1537776744,
  "jti" : "684deed4-fd70-4823-b3f4-043ca3cdf670"
}

Create a JsonWebToken from Refresh Token

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

Request parameters

Parameter Description

grant_type

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

refresh_token

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

code

The authorization code. Required for the authorization_code grant type.

Request header properties

Name Description

Authorization

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

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/oauth/token' -i -u 'sample-client:a775acb1-ed22-410f-8ff3-2e2a62fe7e6d' -X POST -d 'grant_type=refresh_token&refresh_token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJ1c2VyX25hbWUiOiJ1c2VyIiwic2NvcGUiOlsicHJvZDpyYyJdLCJhdGkiOiJmMDUyNTdiYS00MzIxLTQ5NjctODUxZi1iNzU0YjcxMGIyOTMiLCJ0ZW5hbnRJZCI6MTQzOCwiZXhwIjoxNTQwMzY4NzE5LCJpYXQiOjE1Mzc3NzY3MTksInVzZXJJZCI6ImVhYzU2ODRiLWQzNDEtNDY0Mi05YjJhLWY2MDdhNjFjNjY4ZiIsImp0aSI6IjhiZWExN2NkLWMxN2ItNDM1Ny04ZDVhLTY5MjE1ZDdlMmYxOCIsImNsaWVudF9pZCI6InNhbXBsZS1jbGllbnQiLCJ1c2VybmFtZSI6InVzZXIifQ.FBZU0c-F_jxWcsngVRnoPE-DvVT2UvM5_aNomIhVhgMkHmqzf22XB3Apgwzic3M_9QAaDHmLZ9dKVeZOR5UxYOPE4zUsI20mKJrK0iizh0Lcw_aB0or_9uulsbRmZFdvY-xyV7opMbg_SXjm0iFqnl1r9JM0p5kDtqkAOq7DtSrgayEMDlPjsDCOx14n5YggQjOnyBvfYfblVQbPwmqzrm1KMsPCjzFo8XiQGHJK31Ez7K67V1NCXH9LXnoyDiJwFJhoYFCf_sVQtvp6RDw3wkpeEJihuu1kBBg1PcfP2DUMNKilC8L0R7KLyYV0Wl-A6fRvGgCUZfK_PgXEljtxwA'

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
Content-Type: application/json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1753

{
  "access_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJ1c2VyX25hbWUiOiJ1c2VyIiwic2NvcGUiOlsicHJvZDpyYyJdLCJ0ZW5hbnRJZCI6MTQzOCwiZXhwIjoxNTM4MDM1OTE5LCJpYXQiOjE1Mzc3NzY3MTksInVzZXJJZCI6ImVhYzU2ODRiLWQzNDEtNDY0Mi05YjJhLWY2MDdhNjFjNjY4ZiIsImp0aSI6Ijg1YTAzZDQzLWM0MjAtNGUwNi1iZWJkLWU0MjE1NTVlYjFkMyIsImNsaWVudF9pZCI6InNhbXBsZS1jbGllbnQiLCJ1c2VybmFtZSI6InVzZXIifQ.M-jjVgM_cpL0BhiVZNqhpDvYPRh-Rbt51pSIoz5b5rdu0k05JosoJoaN5KA7eMH_YI7ve5ceLTtYe0QcHh5Z8PDgFUg9vpe5mjN9k1WUTcgRgaJ3cO1SbYMuRI960BrQUmGoW6UwAr7BszLD3OAQhuVJEvc5mn9fOJeVFAzoiA2RhH2Jq6NHLX8s4UAYDleW7_qKt_tpgC5MXTSWK6Cjk0pwd0g_EL09LXmnWNLzrbuZyzNjPVCnZ9bddKbd23FVCC9DxU_MEJ9x1wI752LiIXlzdurnBobLUGCIKC3BixXrhgUeYN_1YdJwYu6Jst7kbrrtaFSn2Lekh01nUnOOeA",
  "token_type" : "bearer",
  "refresh_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJ1c2VyX25hbWUiOiJ1c2VyIiwic2NvcGUiOlsicHJvZDpyYyJdLCJhdGkiOiI4NWEwM2Q0My1jNDIwLTRlMDYtYmViZC1lNDIxNTU1ZWIxZDMiLCJ0ZW5hbnRJZCI6MTQzOCwiZXhwIjoxNTQwMzY4NzE5LCJpYXQiOjE1Mzc3NzY3MTksInVzZXJJZCI6ImVhYzU2ODRiLWQzNDEtNDY0Mi05YjJhLWY2MDdhNjFjNjY4ZiIsImp0aSI6IjhiZWExN2NkLWMxN2ItNDM1Ny04ZDVhLTY5MjE1ZDdlMmYxOCIsImNsaWVudF9pZCI6InNhbXBsZS1jbGllbnQiLCJ1c2VybmFtZSI6InVzZXIifQ.Om2NYXXHv7i05RlDLzKAlvZ7hUxa6vGPCZLTQjCGOIzw8xnyUtDvGrcsaJ_03b9KYn_hElU-cSpd-cTBUzFUHgZFFy0Dx-z5ouYNtwueZhgWvs5KN4689xaGV6sv7uNs7Yfgy4WGi8YCdGWEHeQU9Bf1RdNhbQpqo-fzLihQg892bMfC-SjRotVWOszWqYPz63BpsTO70QXcxXV4mCneTsSp_BRqTDVeLsD9N7yxhTV0ORf4kg0p_6zOM89rPPgA2s9_viGuovxI8hOAY6AB5Rbf6vGIj0Q-caxuzAsal7V2Z-8qOOXbsZw-MB9RdWHTkxezmDNM4-son5909Gf__A",
  "expires_in" : 259199,
  "scope" : "prod:rc",
  "tenantId" : 1438,
  "iat" : 1537776719,
  "userId" : "eac5684b-d341-4642-9b2a-f607a61c668f",
  "username" : "user",
  "jti" : "85a03d43-c420-4e06-bebd-e421555eb1d3"
}

Create a JsonWebToken from Client Credentials

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

Request parameters

Parameter Description

grant_type

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

refresh_token

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

code

The authorization code. Required for the authorization_code grant type.

Request header properties

Name Description

Authorization

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

Example request

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

Response body properties

Path Type Description

access_token

String

The encoded JsonWebToken to access the resource.

tenantId

Number

The unique identifier of the tenant.

token_type

String

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

iat

Number

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

expires_in

Number

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

scope

String

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

jti

String

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

Example response

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

{
  "access_token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJzY29wZSI6WyJwcm9kOmNyIl0sInRlbmFudElkIjoxNDM4LCJleHAiOjE1Mzc4MTk5MjAsImlhdCI6MTUzNzc3NjcyMCwianRpIjoiZDZlZTkzZjUtMzkzOC00Mjc2LWI3MTEtOWM5MzZiY2MyNzMzIiwiY2xpZW50X2lkIjoiY2xpZW50SWQtMSJ9.CnOEhmHG1hMsP1C1JjPAhBJRkHUhxKwus1JLNidG90n-kkOa_Ri_59GZNeKIB57J8r586aUse-Dhtk4H2Inan6vNRPIl7n1G1AXwiWdLmqge-I5VcySBKfmQv2wvGj5mOO6HSfC_uHXIV2vGIunDgylp6QXFOKp6EITHBLTWzn1KCPpBAFMQqOgh8ScD9O0TyafCQMkB-Incs90EnGmpF8CAJxWfLXPSSYI_EDVMJI95TurZGcS_lzTP0BMGKnfUS71XdpTZFzPMJJZnspxnHiM-eEyqP7Spq2K5ms8hBfGV1oUdHFagvtnVdfW1zVlLtNAW7N3tfNbEbo4gorl7cw",
  "token_type" : "bearer",
  "expires_in" : 43199,
  "scope" : "prod:cr",
  "tenantId" : 1438,
  "iat" : 1537776720,
  "jti" : "d6ee93f5-3938-4276-b711-9c936bcc2733"
}

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/529e5c1e-fa2a-4928-8f96-5db4833eadc6
Content-Type: application/hal+json;charset=UTF-8
Content-Length: 4746

{
  "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" : "024facfe-a62a-494a-bb15-60dd174d16a6",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/185a86f1-86f7-43d0-8cc1-05719e31e4a9/shipping-methods/024facfe-a62a-494a-bb15-60dd174d16a6"
          }
        }
      }
    }
  },
  "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/d20c9ee8-ddcc-436f-b869-4fa48d0bb996"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/d20c9ee8-ddcc-436f-b869-4fa48d0bb996"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/d20c9ee8-ddcc-436f-b869-4fa48d0bb996/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/d20c9ee8-ddcc-436f-b869-4fa48d0bb996/payment-integration"
          }
        },
        "_id" : "d20c9ee8-ddcc-436f-b869-4fa48d0bb996"
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/529e5c1e-fa2a-4928-8f96-5db4833eadc6"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/529e5c1e-fa2a-4928-8f96-5db4833eadc6/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/529e5c1e-fa2a-4928-8f96-5db4833eadc6/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/529e5c1e-fa2a-4928-8f96-5db4833eadc6/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/529e5c1e-fa2a-4928-8f96-5db4833eadc6/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/529e5c1e-fa2a-4928-8f96-5db4833eadc6/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/529e5c1e-fa2a-4928-8f96-5db4833eadc6/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/529e5c1e-fa2a-4928-8f96-5db4833eadc6/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/529e5c1e-fa2a-4928-8f96-5db4833eadc6/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/529e5c1e-fa2a-4928-8f96-5db4833eadc6/shipping-address"
    }
  },
  "_id" : "529e5c1e-fa2a-4928-8f96-5db4833eadc6"
}

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/fa693d11-4dca-4a1b-825b-e7dec670b40e' -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.

mustAcceptTermsAndConditions

Boolean

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

weight

Number

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

checkoutState.readyToOrder

Boolean

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

checkoutState.shippingMethodValid

Boolean

Indicates if the shipping method for this cart is valid.

checkoutState.shippingMethodSelectable

Boolean

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

checkoutState.paymentMethodValid

Boolean

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

checkoutState.paymentMethodSelectable

Boolean

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

checkoutState.billingAddressSet

Boolean

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

checkoutState.priceValidToOrder

Boolean

Indicates if the cart 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: 7957

{
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "b97ca766-91c2-44a7-8b3b-356677816802",
    "_ref" : "b485800b-1a56-45cc-a479-b88da14bf17b",
    "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" : "b485800b-1a56-45cc-a479-b88da14bf17b",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/b485800b-1a56-45cc-a479-b88da14bf17b?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/fa693d11-4dca-4a1b-825b-e7dec670b40e/line-items/b97ca766-91c2-44a7-8b3b-356677816802"
      }
    }
  } ],
  "shippingLineItem" : {
    "lineItemPrice" : {
      "taxModel" : "GROSS",
      "currency" : "EUR",
      "amount" : 50
    },
    "lineItemTaxes" : [ {
      "taxClass" : "REGULAR",
      "taxRate" : 0.0,
      "currency" : "EUR",
      "amount" : 0
    } ],
    "_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" : "2568f643-b72f-4083-bd7b-aab2d0a6d33c",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/8690edc3-d076-4930-b761-3d47f62ae4e2/shipping-methods/2568f643-b72f-4083-bd7b-aab2d0a6d33c"
          }
        }
      }
    }
  },
  "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/23f852b3-8e7a-42b3-a968-d5686c2a0c9a"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/23f852b3-8e7a-42b3-a968-d5686c2a0c9a"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/23f852b3-8e7a-42b3-a968-d5686c2a0c9a/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/23f852b3-8e7a-42b3-a968-d5686c2a0c9a/payment-integration"
          }
        },
        "_id" : "23f852b3-8e7a-42b3-a968-d5686c2a0c9a"
      }
    }
  },
  "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" : 56.95
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 56.95
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 56.95
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.0,
    "currency" : "EUR",
    "amount" : 0
  } ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 190,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : true,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : true
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/fa693d11-4dca-4a1b-825b-e7dec670b40e"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/fa693d11-4dca-4a1b-825b-e7dec670b40e/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/fa693d11-4dca-4a1b-825b-e7dec670b40e/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/fa693d11-4dca-4a1b-825b-e7dec670b40e/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/fa693d11-4dca-4a1b-825b-e7dec670b40e/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/fa693d11-4dca-4a1b-825b-e7dec670b40e/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/fa693d11-4dca-4a1b-825b-e7dec670b40e/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/fa693d11-4dca-4a1b-825b-e7dec670b40e/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/fa693d11-4dca-4a1b-825b-e7dec670b40e/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/fa693d11-4dca-4a1b-825b-e7dec670b40e/shipping-address"
    },
    "place-order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/fa693d11-4dca-4a1b-825b-e7dec670b40e/order"
    }
  },
  "_id" : "fa693d11-4dca-4a1b-825b-e7dec670b40e"
}

Delete cart

A DELETE request is used to remove the cart.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/c6020c88-8670-4633-9fcd-2dce38d92958' -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.

termsAndConditionsExplicitlyAccepted

Boolean

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

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/carts/80697338-38a2-4e1e-bdff-4c68bb7f8ce1/order' -i -X POST -H 'Content-Type: application/json' -d '{"customerComment": "send it fast please",
  "salesChannel": "DifferentChannel",
  "marketingChannel": "Google",
  "marketingSubchannel": "Search page 2",
  "testOrder": false,
  "termsAndConditionsExplicitlyAccepted": true
}'

Example response

HTTP/1.1 202 Accepted
Location: https://api-shop.beyondshop.cloud/api/order/orders/search/find-by-cart-id?cartId=80697338-38a2-4e1e-bdff-4c68bb7f8ce1

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/8e67d34a-b7a7-409a-8164-21fa8156ade5/line-items' -i -X POST -H 'Content-Type: application/json' -d '{"_type":"PRODUCT","_ref":"1fba55d3-51fe-4473-bc66-692672930e5a","quantityInt":1}'

Example response

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

{
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "722530c7-249f-46ba-ad9f-9388030f81a4",
    "_ref" : "1fba55d3-51fe-4473-bc66-692672930e5a",
    "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" : "1fba55d3-51fe-4473-bc66-692672930e5a",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/1fba55d3-51fe-4473-bc66-692672930e5a?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/8e67d34a-b7a7-409a-8164-21fa8156ade5/line-items/722530c7-249f-46ba-ad9f-9388030f81a4"
      }
    }
  } ],
  "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" : "b087ddaf-bfec-4ec0-87a3-2ee951adf580",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/a4b48119-d6f0-444c-905e-99b1c61eed78/shipping-methods/b087ddaf-bfec-4ec0-87a3-2ee951adf580"
          }
        }
      }
    }
  },
  "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/fc6c71db-1197-4ba6-88d2-748e8e2e2010"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/fc6c71db-1197-4ba6-88d2-748e8e2e2010"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/fc6c71db-1197-4ba6-88d2-748e8e2e2010/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/fc6c71db-1197-4ba6-88d2-748e8e2e2010/payment-integration"
          }
        },
        "_id" : "fc6c71db-1197-4ba6-88d2-748e8e2e2010"
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 4.95
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.0,
    "currency" : "EUR",
    "amount" : 0
  } ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 190,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8e67d34a-b7a7-409a-8164-21fa8156ade5"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8e67d34a-b7a7-409a-8164-21fa8156ade5/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8e67d34a-b7a7-409a-8164-21fa8156ade5/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8e67d34a-b7a7-409a-8164-21fa8156ade5/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8e67d34a-b7a7-409a-8164-21fa8156ade5/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8e67d34a-b7a7-409a-8164-21fa8156ade5/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8e67d34a-b7a7-409a-8164-21fa8156ade5/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8e67d34a-b7a7-409a-8164-21fa8156ade5/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8e67d34a-b7a7-409a-8164-21fa8156ade5/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/8e67d34a-b7a7-409a-8164-21fa8156ade5/shipping-address"
    }
  },
  "_id" : "8e67d34a-b7a7-409a-8164-21fa8156ade5"
}

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/b1764380-1250-4438-9a93-ee51e72f259e/line-items/b582e1bc-51db-48a5-ae40-992b4918ae7c' -i -X PUT -H 'Content-Type: application/json' -d '{"_type":"PRODUCT","_ref":"b4b94779-c152-4b6b-a696-525662d38da3","quantityInt":2}'

Example response

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

{
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "b582e1bc-51db-48a5-ae40-992b4918ae7c",
    "_ref" : "b4b94779-c152-4b6b-a696-525662d38da3",
    "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" : "b4b94779-c152-4b6b-a696-525662d38da3",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/b4b94779-c152-4b6b-a696-525662d38da3?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/b1764380-1250-4438-9a93-ee51e72f259e/line-items/b582e1bc-51db-48a5-ae40-992b4918ae7c"
      }
    }
  } ],
  "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" : "9ea1f6d9-4886-48fb-b16b-1ddd804d56c7",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/422ce8ea-0c37-4bcc-851c-c493805520b0/shipping-methods/9ea1f6d9-4886-48fb-b16b-1ddd804d56c7"
          }
        }
      }
    }
  },
  "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/bc60245d-5348-4188-b34c-0a8e4d7da29e"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/bc60245d-5348-4188-b34c-0a8e4d7da29e"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/bc60245d-5348-4188-b34c-0a8e4d7da29e/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/bc60245d-5348-4188-b34c-0a8e4d7da29e/payment-integration"
          }
        },
        "_id" : "bc60245d-5348-4188-b34c-0a8e4d7da29e"
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 9.9
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 31.89
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 31.89
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 31.89
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.0,
    "currency" : "EUR",
    "amount" : 0
  } ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 380,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b1764380-1250-4438-9a93-ee51e72f259e"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b1764380-1250-4438-9a93-ee51e72f259e/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b1764380-1250-4438-9a93-ee51e72f259e/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b1764380-1250-4438-9a93-ee51e72f259e/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b1764380-1250-4438-9a93-ee51e72f259e/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b1764380-1250-4438-9a93-ee51e72f259e/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b1764380-1250-4438-9a93-ee51e72f259e/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b1764380-1250-4438-9a93-ee51e72f259e/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b1764380-1250-4438-9a93-ee51e72f259e/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b1764380-1250-4438-9a93-ee51e72f259e/shipping-address"
    }
  },
  "_id" : "b1764380-1250-4438-9a93-ee51e72f259e"
}

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/a186304f-c3a0-44a9-8c7c-70214297e3b5/line-items' -i -X PUT -H 'Content-Type: application/json' -d '[{"_type":"PRODUCT","_ref":"ae787900-fb4a-416e-8a0b-0dd898f0cbe5","quantityInt":1}]'

Example response

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

{
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "af7316d7-f0b8-4bbc-be85-a108a3de3515",
    "_ref" : "ae787900-fb4a-416e-8a0b-0dd898f0cbe5",
    "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" : "ae787900-fb4a-416e-8a0b-0dd898f0cbe5",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/ae787900-fb4a-416e-8a0b-0dd898f0cbe5?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/a186304f-c3a0-44a9-8c7c-70214297e3b5/line-items/af7316d7-f0b8-4bbc-be85-a108a3de3515"
      }
    }
  } ],
  "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" : "de2ea11e-c599-4afd-8cd6-f3a600d1ccb5",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/a17987c6-eedd-4029-a9f9-50996cf6a4c7/shipping-methods/de2ea11e-c599-4afd-8cd6-f3a600d1ccb5"
          }
        }
      }
    }
  },
  "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/f2f50cd0-1b9a-4ed1-80dd-691f3c709e71"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/f2f50cd0-1b9a-4ed1-80dd-691f3c709e71"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/f2f50cd0-1b9a-4ed1-80dd-691f3c709e71/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/f2f50cd0-1b9a-4ed1-80dd-691f3c709e71/payment-integration"
          }
        },
        "_id" : "f2f50cd0-1b9a-4ed1-80dd-691f3c709e71"
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 4.95
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 26.94
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.0,
    "currency" : "EUR",
    "amount" : 0
  } ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 190,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a186304f-c3a0-44a9-8c7c-70214297e3b5"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a186304f-c3a0-44a9-8c7c-70214297e3b5/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a186304f-c3a0-44a9-8c7c-70214297e3b5/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a186304f-c3a0-44a9-8c7c-70214297e3b5/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a186304f-c3a0-44a9-8c7c-70214297e3b5/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a186304f-c3a0-44a9-8c7c-70214297e3b5/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a186304f-c3a0-44a9-8c7c-70214297e3b5/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a186304f-c3a0-44a9-8c7c-70214297e3b5/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a186304f-c3a0-44a9-8c7c-70214297e3b5/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/a186304f-c3a0-44a9-8c7c-70214297e3b5/shipping-address"
    }
  },
  "_id" : "a186304f-c3a0-44a9-8c7c-70214297e3b5"
}

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/5d4bc45b-0ebd-4ffb-a4c9-e1c8fa7b946a/line-items/d6845f69-b356-49c4-9e7a-2dc054e2ed45' -i -X DELETE

Example response

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

{
  "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" : "9a5ca40e-7325-40dc-ae3f-60110be79351",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/0a173af4-0371-4836-9901-bf5befcf6a10/shipping-methods/9a5ca40e-7325-40dc-ae3f-60110be79351"
          }
        }
      }
    }
  },
  "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/90752500-96d1-466f-9ba3-5a3b2b040f66"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/90752500-96d1-466f-9ba3-5a3b2b040f66"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/90752500-96d1-466f-9ba3-5a3b2b040f66/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/90752500-96d1-466f-9ba3-5a3b2b040f66/payment-integration"
          }
        },
        "_id" : "90752500-96d1-466f-9ba3-5a3b2b040f66"
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5d4bc45b-0ebd-4ffb-a4c9-e1c8fa7b946a"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5d4bc45b-0ebd-4ffb-a4c9-e1c8fa7b946a/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5d4bc45b-0ebd-4ffb-a4c9-e1c8fa7b946a/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5d4bc45b-0ebd-4ffb-a4c9-e1c8fa7b946a/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5d4bc45b-0ebd-4ffb-a4c9-e1c8fa7b946a/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5d4bc45b-0ebd-4ffb-a4c9-e1c8fa7b946a/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5d4bc45b-0ebd-4ffb-a4c9-e1c8fa7b946a/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5d4bc45b-0ebd-4ffb-a4c9-e1c8fa7b946a/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5d4bc45b-0ebd-4ffb-a4c9-e1c8fa7b946a/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/5d4bc45b-0ebd-4ffb-a4c9-e1c8fa7b946a/shipping-address"
    }
  },
  "_id" : "5d4bc45b-0ebd-4ffb-a4c9-e1c8fa7b946a"
}

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/1298f42b-c9e0-4d4e-9f3f-803e91304a35/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: 5570

{
  "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" : "5cab2cc6-016f-459d-9ae2-f2bc3de9a581",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/32d9918d-f1cf-49e9-9121-9bfd1f68b99d/shipping-methods/5cab2cc6-016f-459d-9ae2-f2bc3de9a581"
          }
        }
      }
    }
  },
  "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/d82ca280-8acd-4823-8fd4-dfaeed091a4d"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/d82ca280-8acd-4823-8fd4-dfaeed091a4d"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/d82ca280-8acd-4823-8fd4-dfaeed091a4d/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/d82ca280-8acd-4823-8fd4-dfaeed091a4d/payment-integration"
          }
        },
        "_id" : "d82ca280-8acd-4823-8fd4-dfaeed091a4d"
      }
    }
  },
  "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
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : true,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : true
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1298f42b-c9e0-4d4e-9f3f-803e91304a35"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1298f42b-c9e0-4d4e-9f3f-803e91304a35/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1298f42b-c9e0-4d4e-9f3f-803e91304a35/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1298f42b-c9e0-4d4e-9f3f-803e91304a35/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1298f42b-c9e0-4d4e-9f3f-803e91304a35/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1298f42b-c9e0-4d4e-9f3f-803e91304a35/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1298f42b-c9e0-4d4e-9f3f-803e91304a35/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1298f42b-c9e0-4d4e-9f3f-803e91304a35/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1298f42b-c9e0-4d4e-9f3f-803e91304a35/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1298f42b-c9e0-4d4e-9f3f-803e91304a35/shipping-address"
    },
    "place-order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/1298f42b-c9e0-4d4e-9f3f-803e91304a35/order"
    }
  },
  "_id" : "1298f42b-c9e0-4d4e-9f3f-803e91304a35"
}

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/f1db4ce4-b156-46f3-80ac-603411b0eb98/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: 5385

{
  "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" : "8b2dbcd8-ba17-4c73-95b2-3713ff82babd",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2f03d23f-96d9-466c-b47d-e305e3d114a8/shipping-methods/8b2dbcd8-ba17-4c73-95b2-3713ff82babd"
          }
        }
      }
    }
  },
  "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/44ac7347-b272-4709-86b5-892821cd0840"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/44ac7347-b272-4709-86b5-892821cd0840"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/44ac7347-b272-4709-86b5-892821cd0840/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/44ac7347-b272-4709-86b5-892821cd0840/payment-integration"
          }
        },
        "_id" : "44ac7347-b272-4709-86b5-892821cd0840"
      }
    }
  },
  "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
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/f1db4ce4-b156-46f3-80ac-603411b0eb98"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/f1db4ce4-b156-46f3-80ac-603411b0eb98/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/f1db4ce4-b156-46f3-80ac-603411b0eb98/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/f1db4ce4-b156-46f3-80ac-603411b0eb98/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/f1db4ce4-b156-46f3-80ac-603411b0eb98/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/f1db4ce4-b156-46f3-80ac-603411b0eb98/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/f1db4ce4-b156-46f3-80ac-603411b0eb98/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/f1db4ce4-b156-46f3-80ac-603411b0eb98/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/f1db4ce4-b156-46f3-80ac-603411b0eb98/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/f1db4ce4-b156-46f3-80ac-603411b0eb98/shipping-address"
    }
  },
  "_id" : "f1db4ce4-b156-46f3-80ac-603411b0eb98"
}

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/b879ac3f-8a7a-4302-8e39-9fd03177a385/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/ff59eea4-559f-40ad-ab67-7265f7a0d1ff'

Example response

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

{
  "lineItems" : [ {
    "_type" : "PRODUCT",
    "_id" : "bc6a2578-a658-433e-b8de-899c89fca3b0",
    "_ref" : "523a1f33-a476-43eb-9b27-c93c202a43a3",
    "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" : "523a1f33-a476-43eb-9b27-c93c202a43a3",
        "sku" : "EB001",
        "essentialFeatures" : "Preservative-free. No added sweeteners. Vegan.",
        "_links" : {
          "product" : {
            "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/523a1f33-a476-43eb-9b27-c93c202a43a3?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/b879ac3f-8a7a-4302-8e39-9fd03177a385/line-items/bc6a2578-a658-433e-b8de-899c89fca3b0"
      }
    }
  } ],
  "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" : "6b40e9e8-49bd-4b2c-bc4a-c1ad293886df",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/a91e2ce6-992f-44bf-b1e2-7dff92d3e8c2/shipping-methods/6b40e9e8-49bd-4b2c-bc4a-c1ad293886df"
          }
        }
      }
    }
  },
  "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" : [ "DE", "GB" ],
        "minimumOrderValue" : {
          "currency" : "EUR",
          "amount" : 20
        },
        "activated" : true,
        "activeLogoSet" : null,
        "onlinePayment" : false,
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/ff59eea4-559f-40ad-ab67-7265f7a0d1ff"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/ff59eea4-559f-40ad-ab67-7265f7a0d1ff"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/ff59eea4-559f-40ad-ab67-7265f7a0d1ff/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/ff59eea4-559f-40ad-ab67-7265f7a0d1ff/payment-integration"
          }
        },
        "_id" : "ff59eea4-559f-40ad-ab67-7265f7a0d1ff"
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 4.95
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 25.4388
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 25.4388
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 25.4388
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ {
    "taxClass" : "REGULAR",
    "taxRate" : 0.0,
    "currency" : "EUR",
    "amount" : 0
  } ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 190,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : false,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b879ac3f-8a7a-4302-8e39-9fd03177a385"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b879ac3f-8a7a-4302-8e39-9fd03177a385/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b879ac3f-8a7a-4302-8e39-9fd03177a385/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b879ac3f-8a7a-4302-8e39-9fd03177a385/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b879ac3f-8a7a-4302-8e39-9fd03177a385/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b879ac3f-8a7a-4302-8e39-9fd03177a385/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b879ac3f-8a7a-4302-8e39-9fd03177a385/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b879ac3f-8a7a-4302-8e39-9fd03177a385/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b879ac3f-8a7a-4302-8e39-9fd03177a385/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/b879ac3f-8a7a-4302-8e39-9fd03177a385/shipping-address"
    }
  },
  "_id" : "b879ac3f-8a7a-4302-8e39-9fd03177a385"
}

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/3178a806-9926-4842-9421-95de5641c297/payment-methods/default' -i -X PUT -H 'Content-Type: application/json' -H 'Accept: application/json'

Example response

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

{
  "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" : "e8737cc2-457a-4381-9950-7a9e904fbcbf",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/58ed6c51-7278-49f0-baf5-9f2e3ce0e68e/shipping-methods/e8737cc2-457a-4381-9950-7a9e904fbcbf"
          }
        }
      }
    }
  },
  "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/7ddafc54-f860-4f41-b803-c02fc452f247"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7ddafc54-f860-4f41-b803-c02fc452f247"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7ddafc54-f860-4f41-b803-c02fc452f247/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/7ddafc54-f860-4f41-b803-c02fc452f247/payment-integration"
          }
        },
        "_id" : "7ddafc54-f860-4f41-b803-c02fc452f247"
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/3178a806-9926-4842-9421-95de5641c297"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/3178a806-9926-4842-9421-95de5641c297/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/3178a806-9926-4842-9421-95de5641c297/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/3178a806-9926-4842-9421-95de5641c297/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/3178a806-9926-4842-9421-95de5641c297/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/3178a806-9926-4842-9421-95de5641c297/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/3178a806-9926-4842-9421-95de5641c297/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/3178a806-9926-4842-9421-95de5641c297/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/3178a806-9926-4842-9421-95de5641c297/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/3178a806-9926-4842-9421-95de5641c297/shipping-address"
    }
  },
  "_id" : "3178a806-9926-4842-9421-95de5641c297"
}

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/197a38db-a44f-4368-8429-6d59e4bb1ef0/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-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/a80df761-f0bd-41cb-833f-955cf6514af1"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/a80df761-f0bd-41cb-833f-955cf6514af1"
    },
    "deactivate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/a80df761-f0bd-41cb-833f-955cf6514af1/deactivate"
    },
    "payment-integration" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/a80df761-f0bd-41cb-833f-955cf6514af1/payment-integration"
    }
  },
  "_id" : "a80df761-f0bd-41cb-833f-955cf6514af1"
}

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/6dd0e8bb-ac53-4440-a880-e3fe50bbbb44/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-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/8cf6c7cf-4b4c-46d0-b10b-bbebba15e669"
            },
            "payment-method" : {
              "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/8cf6c7cf-4b4c-46d0-b10b-bbebba15e669"
            },
            "deactivate-payment-method" : {
              "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/8cf6c7cf-4b4c-46d0-b10b-bbebba15e669/deactivate"
            },
            "payment-integration" : {
              "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/8cf6c7cf-4b4c-46d0-b10b-bbebba15e669/payment-integration"
            }
          },
          "_id" : "8cf6c7cf-4b4c-46d0-b10b-bbebba15e669"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/6dd0e8bb-ac53-4440-a880-e3fe50bbbb44/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/4e845716-8af7-44f7-8b72-b3a6dfbcc5a4/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-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/7a80a436-d648-4ec3-8716-2f612de888f4/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-Frame-Options: DENY
Content-Length: 48

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

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

_links

Object

See Hypermedia

page

Object

See Pagination

_embedded.categories[]._id

String

The immutable, unique identifier of the requested resource.

_embedded.categories[].name

String

The name of the product collection.

_embedded.categories[].label

String

The label of the product collection.

_embedded.categories[].type

String

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

_embedded.categories[].query

Object

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

Links

Relation Description

Example response

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

{
  "_embedded" : {
    "categories" : [ {
      "name" : "Corner Shop",
      "label" : "corner-shop",
      "type" : "MANUAL",
      "query" : {"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}},
      "_id" : "cc77190b-6005-44bd-a78e-6e64622bb7b5",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/cc77190b-6005-44bd-a78e-6e64622bb7b5"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/cc77190b-6005-44bd-a78e-6e64622bb7b5"
        }
      }
    }, {
      "name" : "Power Bars",
      "label" : "power-bar",
      "type" : "SMART",
      "query" : { "bool": { "filter": { "term": { "tags": "power-bar" }}}},
      "_id" : "1857209f-a848-47fc-96d8-9aaeaa1c7562",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/1857209f-a848-47fc-96d8-9aaeaa1c7562"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/1857209f-a848-47fc-96d8-9aaeaa1c7562"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

Create category

A POST request is used to create a category.

Required scopes

catg:c

Request body properties

Path Type Description Constraints

name

String

The name of the product collection.

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

label

String

The label of the product collection.

Length must be between 0 and 255 inclusive

type

String

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

Must not be null

query

Object

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

Must not be null

Example request

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

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/categories/a8155c01-f367-4863-b704-ee0584c9556f
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 432

{
  "name" : "Power Bars",
  "label" : "power-bar",
  "type" : "SMART",
  "query" : {"bool":{"filter":{"term":{"tags":"power-bar"}}}},
  "_id" : "a8155c01-f367-4863-b704-ee0584c9556f",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/a8155c01-f367-4863-b704-ee0584c9556f"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/a8155c01-f367-4863-b704-ee0584c9556f"
    }
  }
}

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/9913e9a6-89fc-4afa-94bd-fa8e1ccd2ffa' -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
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 441

{
  "name" : "Power Bars",
  "label" : "power-bar",
  "type" : "SMART",
  "query" : { "bool": { "filter": { "term": { "tags": "power-bar" }}}},
  "_id" : "9913e9a6-89fc-4afa-94bd-fa8e1ccd2ffa",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/9913e9a6-89fc-4afa-94bd-fa8e1ccd2ffa"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/9913e9a6-89fc-4afa-94bd-fa8e1ccd2ffa"
    }
  }
}

Update all category properties

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

Required scopes

catg:u

Request body properties

Path Type Description Constraints

name

String

The name of the product collection.

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

label

String

The label of the product collection.

Length must be between 0 and 255 inclusive

type

String

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

Must not be null

query

Object

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

Must not be null

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/categories/5ca1c95d-852d-4f99-9594-5da929b507ce' -i -X PUT -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d '{"name":"updated name","label":"updated-name","type":"MANUAL","query":{"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}}}'

Response body properties

Path Type Description

name

String

The name of the product collection.

label

String

The label of the product collection.

type

String

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

query

Object

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

_id

String

The immutable, unique identifier of the requested resource.

_links

Object

See Hypermedia

Example response

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

{
  "name" : "updated name",
  "label" : "updated-name",
  "type" : "MANUAL",
  "query" : {"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}},
  "_id" : "5ca1c95d-852d-4f99-9594-5da929b507ce",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/5ca1c95d-852d-4f99-9594-5da929b507ce"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/5ca1c95d-852d-4f99-9594-5da929b507ce"
    }
  }
}

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/4c11172d-f1c6-4cbd-a1e8-fefb1439eeae' -i -X PATCH -H 'Content-Type: application/json-patch+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d '[{"op":"test","path":"/name","value":"Power Bars"},{"op":"replace","path":"/name","value":"patched name"},{"op":"replace","path":"/type","value":"MANUAL"},{"op":"replace","path":"/query","value":{"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}}}]'

Example response

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

{
  "name" : "patched name",
  "label" : "power-bar",
  "type" : "MANUAL",
  "query" : {"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}},
  "_id" : "4c11172d-f1c6-4cbd-a1e8-fefb1439eeae",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/4c11172d-f1c6-4cbd-a1e8-fefb1439eeae"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/4c11172d-f1c6-4cbd-a1e8-fefb1439eeae"
    }
  }
}

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/d5c4f44a-c81f-4ff6-a52e-ac73f3f8417b' -i -X PATCH -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d '{"name":"patched name","type":"MANUAL","query":{"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}}}'

Example response

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

{
  "name" : "patched name",
  "label" : "power-bar",
  "type" : "MANUAL",
  "query" : {"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}},
  "_id" : "d5c4f44a-c81f-4ff6-a52e-ac73f3f8417b",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/d5c4f44a-c81f-4ff6-a52e-ac73f3f8417b"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/d5c4f44a-c81f-4ff6-a52e-ac73f3f8417b"
    }
  }
}

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/c4b3ef2a-1d82-48bf-94eb-7a4050348cde' -i -X DELETE -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

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

Show product category details

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

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/categories/9913e9a6-89fc-4afa-94bd-fa8e1ccd2ffa' -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
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 441

{
  "name" : "Power Bars",
  "label" : "power-bar",
  "type" : "SMART",
  "query" : { "bool": { "filter": { "term": { "tags": "power-bar" }}}},
  "_id" : "9913e9a6-89fc-4afa-94bd-fa8e1ccd2ffa",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/9913e9a6-89fc-4afa-94bd-fa8e1ccd2ffa"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories/9913e9a6-89fc-4afa-94bd-fa8e1ccd2ffa"
    }
  }
}

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/c30cb370-63dc-4092-817c-91cd010e0a9b?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-Frame-Options: DENY
Content-Length: 616

{
  "_id" : "c30cb370-63dc-4092-817c-91cd010e0a9b",
  "_indexedAt" : "2018-09-18T07:31:43.991",
  "type" : "SMART",
  "name" : "Power Bars",
  "label" : "power-bar",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/c30cb370-63dc-4092-817c-91cd010e0a9b"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/c30cb370-63dc-4092-817c-91cd010e0a9b{?projection}",
      "templated" : true
    },
    "products" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/c30cb370-63dc-4092-817c-91cd010e0a9b/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

_links

Object

See Hypermedia

page

Object

See Pagination

_embedded.categories[]._id

String

The immutable, unique identifier of the requested resource.

_embedded.categories[].name

String

The name of the product collection.

_embedded.categories[].label

String

The label of the product collection.

_embedded.categories[].type

String

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

_embedded.categories[].query

Object

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

Example response

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

{
  "_embedded" : {
    "categories" : [ {
      "name" : "Corner Shop",
      "label" : "corner-shop",
      "type" : "MANUAL",
      "query" : {"bool":{"filter":[{"terms":{"id":["6c449297-65fc-41aa-a49c-68a3561b33e5","6c449297-65fc-41aa-a49c-68a3561b33e6"]}}]}},
      "_id" : "cc77190b-6005-44bd-a78e-6e64622bb7b5",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/cc77190b-6005-44bd-a78e-6e64622bb7b5"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/cc77190b-6005-44bd-a78e-6e64622bb7b5"
        }
      }
    }, {
      "name" : "Power Bars",
      "label" : "power-bar",
      "type" : "SMART",
      "query" : { "bool": { "filter": { "term": { "tags": "power-bar" }}}},
      "_id" : "1857209f-a848-47fc-96d8-9aaeaa1c7562",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/1857209f-a848-47fc-96d8-9aaeaa1c7562"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/categories/1857209f-a848-47fc-96d8-9aaeaa1c7562"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/categories?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 2,
    "totalPages" : 1,
    "number" : 0
  }
}

List products

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

For the response body properties see category list structure.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-view/categories/c495a017-14cb-4105-a2df-b72c27af0e4d/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-Frame-Options: DENY
Content-Length: 1685

{
  "_embedded" : {
    "products" : [ {
      "_id" : "c38298c8-0240-44a8-a7a1-99de026f811a",
      "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/c38298c8-0240-44a8-a7a1-99de026f811a"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/c38298c8-0240-44a8-a7a1-99de026f811a{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/c495a017-14cb-4105-a2df-b72c27af0e4d/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=9e0eff1a-b76f-4b42-94d3-bf5f3519f49f' -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-Frame-Options: DENY
Content-Length: 1622

{
  "_embedded" : {
    "categories" : [ {
      "type" : "SMART",
      "name" : "category that loves everyone",
      "label" : null,
      "_id" : "398e3170-b8f4-4a41-931d-a6ebfe889c34",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/398e3170-b8f4-4a41-931d-a6ebfe889c34"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/398e3170-b8f4-4a41-931d-a6ebfe889c34{?projection}",
          "templated" : true
        },
        "products" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/398e3170-b8f4-4a41-931d-a6ebfe889c34/products"
        }
      }
    }, {
      "type" : "MANUAL",
      "name" : "category that matches product 1 in a complicated way",
      "label" : null,
      "_id" : "38a56cfe-336b-4941-8b3d-27eb8b836380",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/38a56cfe-336b-4941-8b3d-27eb8b836380"
        },
        "category" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/38a56cfe-336b-4941-8b3d-27eb8b836380{?projection}",
          "templated" : true
        },
        "products" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/38a56cfe-336b-4941-8b3d-27eb8b836380/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-Frame-Options: DENY
Content-Length: 572

{
  "type" : "SMART",
  "name" : "Power Bars",
  "label" : "power-bar",
  "_id" : "76417d2f-6a46-4b4a-9fc4-8abbf0780fc4",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/76417d2f-6a46-4b4a-9fc4-8abbf0780fc4"
    },
    "category" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/76417d2f-6a46-4b4a-9fc4-8abbf0780fc4{?projection}",
      "templated" : true
    },
    "products" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/categories/76417d2f-6a46-4b4a-9fc4-8abbf0780fc4/products"
    }
  }
}

Checkout

List checkout settings

A GET request is used to retrieve the checkout settings.

Required scopes

cset:r

Example request

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

Links

Relation Description

Example response

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

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

Update checkout settings

A PUT request is used to update the checkout settings.

Required scopes

cset:u

Request body properties

Path Type Description

minimumOrderValue.currency

String

The currency of the minimal order value of this shop.

minimumOrderValue.amount

Number

The amount of the minimal order value of this shop.

mustAcceptTermsAndConditions

Boolean

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

Example request

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

Example response

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

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

Orders

Order number configuration

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

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

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-Frame-Options: DENY
Content-Length: 195

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

Update complete order number configuration

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

Required scopes

ordn:u

Request body properties

Path Type Description Constraints

stringPrefix

String

prefix attached to all order numbers

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

nextNumericSuffix

Number

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

Must be greater than 0 and less than 9223372036854775807

numericSuffixLength

Number

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

Must be greater than 0 and less than 20

Example request

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

Example response

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

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

Update order number configuration partially

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

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

All fields 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-Frame-Options: DENY
Content-Length: 205

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

Required scopes

ordn:u

Example request

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

Example response

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

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

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

List orders

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

Required scopes

ordr:r

Example request

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

Response body properties

Path Type Description

_embedded.orders[]

Array

The list of orders as documented in Show order details.

_links

Object

See Hypermedia

page

Object

See Pagination

Example response

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

{
  "_embedded" : {
    "orders" : [ {
      "_id" : "2d810f4a-9dd3-4d07-8b00-5c8e43e4cd82",
      "createdAt" : "2018-09-10T14:37:20.89",
      "cartId" : "b1d99f5f-f335-4d1f-80b2-2a76b91c7604",
      "currency" : "EUR",
      "taxModel" : "GROSS",
      "taxable" : false,
      "testOrder" : false,
      "termsAndConditionsExplicitlyAccepted" : 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" : "6deb16a9-6110-4ee1-8c71-94f9d6200af0",
          "_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" : "1c588f90-1813-4f51-bcfc-ced3af71da67"
      }, {
        "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" : "70580410-e5c3-4dc1-9c57-c885ad549275",
          "_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" : "9a2fbca9-eaf1-47b2-917d-23bc185010b5"
      } ],
      "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-09-10T14:37:20.89",
      "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/2d810f4a-9dd3-4d07-8b00-5c8e43e4cd82"
        },
        "order" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/2d810f4a-9dd3-4d07-8b00-5c8e43e4cd82"
        },
        "order-note" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/2d810f4a-9dd3-4d07-8b00-5c8e43e4cd82/order-note"
        },
        "processes" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/2d810f4a-9dd3-4d07-8b00-5c8e43e4cd82/processes"
        },
        "events" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/2d810f4a-9dd3-4d07-8b00-5c8e43e4cd82/events"
        },
        "cancel" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/2d810f4a-9dd3-4d07-8b00-5c8e43e4cd82/cancel"
        },
        "create-invoice" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/2d810f4a-9dd3-4d07-8b00-5c8e43e4cd82/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/4e8719a0-90db-4ad7-b111-e774ed1b0f95' -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.

termsAndConditionsExplicitlyAccepted

Boolean

Indicates if the customer explicitly accepted the shop’s terms and conditions before ordering. 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-Frame-Options: DENY
Content-Length: 9261

{
  "_id" : "4e8719a0-90db-4ad7-b111-e774ed1b0f95",
  "createdAt" : "2018-09-10T14:37:19.378",
  "cartId" : "849a93e6-f9d6-4233-aebf-49f6e679ee25",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : 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" : "bd2c9ce6-35bd-43db-a0bb-d6da2eec0b3a",
      "_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" : "7b0db696-fa70-4dfb-a927-8d5f7f95b5dd"
  }, {
    "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" : "850fcd17-f22d-40d2-88a5-d4c9078e80af",
      "_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" : "95e230c7-ba90-42a1-ae90-1dfd45608e48"
  } ],
  "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-09-10T14:37:19.378",
  "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/4e8719a0-90db-4ad7-b111-e774ed1b0f95"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/4e8719a0-90db-4ad7-b111-e774ed1b0f95"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/4e8719a0-90db-4ad7-b111-e774ed1b0f95/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/4e8719a0-90db-4ad7-b111-e774ed1b0f95/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/4e8719a0-90db-4ad7-b111-e774ed1b0f95/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/4e8719a0-90db-4ad7-b111-e774ed1b0f95/cancel"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/4e8719a0-90db-4ad7-b111-e774ed1b0f95/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=53227520-ef68-431d-aa13-19881ff3abd3' -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-Frame-Options: DENY
Content-Length: 9261

{
  "_id" : "2e074fda-564d-4c1b-9581-b11f2c231f3a",
  "createdAt" : "2018-09-10T14:37:10.852",
  "cartId" : "53227520-ef68-431d-aa13-19881ff3abd3",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : 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" : "c43148a9-97c9-45f9-b197-27ee4121ef9c",
      "_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" : "c45cb8b1-c779-43f2-9d42-860f38613d0a"
  }, {
    "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" : "9eb617e0-ccb7-4090-9492-052b67f193bc",
      "_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" : "f39d9b36-7d52-45e8-92aa-e02c79dc7015"
  } ],
  "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-09-10T14:37:10.852",
  "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/2e074fda-564d-4c1b-9581-b11f2c231f3a"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/2e074fda-564d-4c1b-9581-b11f2c231f3a"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/2e074fda-564d-4c1b-9581-b11f2c231f3a/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/2e074fda-564d-4c1b-9581-b11f2c231f3a/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/2e074fda-564d-4c1b-9581-b11f2c231f3a/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/2e074fda-564d-4c1b-9581-b11f2c231f3a/cancel"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/2e074fda-564d-4c1b-9581-b11f2c231f3a/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/a8ac9c49-a893-470a-9738-6226c8521f33/order-note' -i -X PUT -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>' -d '{
  "orderNote" : "not paid yet"
}'

Example response

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

{
  "createdAt" : "2018-09-10T14:37:22.145",
  "cartId" : "6c0c074d-0260-4681-ae9f-ce5889568cd1",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : 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" : "aef91253-fb8e-4d7c-b41f-863d873430bf",
      "_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" : "5321ebb5-0dfa-4889-9015-ff523d519730",
      "_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-09-10T14:37:22.145",
  "marketingChannel" : "Google shopping",
  "marketingSubchannel" : "Some category",
  "salesChannel" : "Storefront",
  "totalReceived" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "totalRefunded" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "openAmount" : {
    "currency" : "EUR",
    "amount" : 77.44
  },
  "paymentStatus" : "PENDING",
  "canceled" : false,
  "shippingStatus" : "UNSHIPPED",
  "_id" : "a8ac9c49-a893-470a-9738-6226c8521f33",
  "orderNumber" : "10001",
  "invoiceNumber" : "10001",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a8ac9c49-a893-470a-9738-6226c8521f33"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a8ac9c49-a893-470a-9738-6226c8521f33"
    }
  }
}

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/e0cfbbd8-1e1c-4137-bd93-c6d047757b96/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-Frame-Options: DENY
Content-Length: 9267

{
  "_id" : "e0cfbbd8-1e1c-4137-bd93-c6d047757b96",
  "createdAt" : "2018-09-10T14:37:12.95",
  "cartId" : "19323f2d-d0aa-4c08-b61c-225ddc2f6f68",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : 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" : "b4c35319-b293-4ea4-8764-37585580afb5",
      "_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" : "3a971cd0-17d8-43f6-99db-42c381391ba7"
  }, {
    "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" : "642dda02-dcae-44bf-8d79-99ec0910ae9c",
      "_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" : "73081333-8a2a-40b8-816c-a606ddcecf3a"
  } ],
  "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-09-10T14:37:12.95",
  "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/e0cfbbd8-1e1c-4137-bd93-c6d047757b96"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e0cfbbd8-1e1c-4137-bd93-c6d047757b96"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e0cfbbd8-1e1c-4137-bd93-c6d047757b96/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e0cfbbd8-1e1c-4137-bd93-c6d047757b96/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e0cfbbd8-1e1c-4137-bd93-c6d047757b96/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e0cfbbd8-1e1c-4137-bd93-c6d047757b96/cancel"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/e0cfbbd8-1e1c-4137-bd93-c6d047757b96/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/5498c3a8-a281-47ed-b2ee-dda260ffa636/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-Frame-Options: DENY
Content-Length: 9269

{
  "_id" : "5498c3a8-a281-47ed-b2ee-dda260ffa636",
  "createdAt" : "2018-09-10T14:37:17.074",
  "cartId" : "ce5f4c62-a515-4251-bb75-2af9ed8bc80e",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : 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" : "372827d4-444e-42bb-bef3-700a3152342b",
      "_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" : "970707de-76b6-4ca9-bfa9-49d37a238c25"
  }, {
    "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" : "0686ccb4-a664-4463-bb76-7cfbabc596b7",
      "_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" : "e0351ef7-2e2c-48a9-89ab-15c56e1367a7"
  } ],
  "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-09-10T14:37:17.074",
  "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/5498c3a8-a281-47ed-b2ee-dda260ffa636"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5498c3a8-a281-47ed-b2ee-dda260ffa636"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5498c3a8-a281-47ed-b2ee-dda260ffa636/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5498c3a8-a281-47ed-b2ee-dda260ffa636/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5498c3a8-a281-47ed-b2ee-dda260ffa636/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5498c3a8-a281-47ed-b2ee-dda260ffa636/cancel"
    },
    "create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5498c3a8-a281-47ed-b2ee-dda260ffa636/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/6b4f60c9-1838-47f3-b460-a9723d1282e3/create-invoice' -i -X POST -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

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

{
  "_id" : "6b4f60c9-1838-47f3-b460-a9723d1282e3",
  "createdAt" : "2018-09-10T14:37:26.805",
  "cartId" : "950fcc43-d38e-4ac9-9d88-d3c1894b10c8",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : 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" : "652b35d7-58b8-4691-9be0-961a4c22da2a",
      "_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" : "2ac8e90c-8d28-4101-a72f-7682a8936f6f"
  }, {
    "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" : "8198ac01-2463-445a-b5a3-06c3ed09ea5c",
      "_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" : "346987e7-3aea-4efe-bfff-9a2df5382f22"
  } ],
  "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-09-10T14:37:26.805",
  "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/6b4f60c9-1838-47f3-b460-a9723d1282e3"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/6b4f60c9-1838-47f3-b460-a9723d1282e3"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/6b4f60c9-1838-47f3-b460-a9723d1282e3/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/6b4f60c9-1838-47f3-b460-a9723d1282e3/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/6b4f60c9-1838-47f3-b460-a9723d1282e3/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/6b4f60c9-1838-47f3-b460-a9723d1282e3/cancel"
    },
    "retry-create-invoice" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/6b4f60c9-1838-47f3-b460-a9723d1282e3/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/178cd602-b6eb-44e8-be90-b5ccffd99b72/send-invoice' -i -X POST -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

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

{
  "_id" : "178cd602-b6eb-44e8-be90-b5ccffd99b72",
  "createdAt" : "2018-09-10T14:37:18.356",
  "cartId" : "42748b11-207f-4702-9d61-ae6cf35ce986",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : false,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : 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" : "bd1f1ae2-e205-4de8-8673-07df06e8bd86",
      "_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" : "09be97e9-cb76-4f8a-8455-f5705f314914"
  }, {
    "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" : "98be13f6-bd01-4400-91d2-381edcadd12a",
      "_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" : "aca6338b-1514-4117-8777-e2a68b750114"
  } ],
  "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-09-10T14:37:18.356",
  "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/178cd602-b6eb-44e8-be90-b5ccffd99b72"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/178cd602-b6eb-44e8-be90-b5ccffd99b72"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/178cd602-b6eb-44e8-be90-b5ccffd99b72/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/178cd602-b6eb-44e8-be90-b5ccffd99b72/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/178cd602-b6eb-44e8-be90-b5ccffd99b72/events"
    },
    "cancel" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/178cd602-b6eb-44e8-be90-b5ccffd99b72/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/178cd602-b6eb-44e8-be90-b5ccffd99b72/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/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/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-Frame-Options: DENY
Content-Length: 5273

{
  "_embedded" : {
    "refund-processes" : [ {
      "amount" : {
        "currency" : "EUR",
        "amount" : 19.98
      },
      "status" : "VOIDED",
      "completed" : true,
      "_id" : "cfb016bc-74e3-4e46-9b73-3dffeac1573d",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/refunds/cfb016bc-74e3-4e46-9b73-3dffeac1573d"
        },
        "refund-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/refunds/cfb016bc-74e3-4e46-9b73-3dffeac1573d"
        }
      }
    }, {
      "amount" : {
        "currency" : "EUR",
        "amount" : 39.96
      },
      "status" : "PENDING",
      "completed" : false,
      "_id" : "245960be-49e8-436a-841e-49302cebb567",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/refunds/245960be-49e8-436a-841e-49302cebb567"
        },
        "refund-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/refunds/245960be-49e8-436a-841e-49302cebb567"
        },
        "mark-paid" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/refunds/245960be-49e8-436a-841e-49302cebb567/mark-paid"
        }
      }
    } ],
    "cancel-processes" : [ {
      "lineItems" : [ {
        "productLineItemId" : "db85fedd-86f0-4f3b-bcc8-f1df1746791c",
        "quantity" : 2
      } ],
      "_id" : "a7977f1d-255e-4a53-a728-3289d7405c69",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/cancelations/a7977f1d-255e-4a53-a728-3289d7405c69"
        },
        "cancel-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/cancelations/a7977f1d-255e-4a53-a728-3289d7405c69"
        }
      }
    } ],
    "shipping-processes" : [ {
      "status" : "SHIPPED",
      "trackingCode" : "lookAtMyTrackingCodeWow",
      "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
      "lineItems" : [ {
        "productLineItemId" : "db85fedd-86f0-4f3b-bcc8-f1df1746791c",
        "quantity" : 3
      } ],
      "_id" : "1114b390-dc3f-4f29-9635-be5bae6c337b",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/shippings/1114b390-dc3f-4f29-9635-be5bae6c337b"
        },
        "shipping-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/shippings/1114b390-dc3f-4f29-9635-be5bae6c337b"
        },
        "mark-delivered" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/shippings/1114b390-dc3f-4f29-9635-be5bae6c337b/mark-delivered"
        }
      }
    } ],
    "payment-processes" : [ {
      "amount" : {
        "currency" : "EUR",
        "amount" : 77.44
      },
      "status" : "PAID",
      "paymentId" : null,
      "completed" : true,
      "_id" : "364e32b1-b291-4db2-a650-257b74e98871",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/payments/364e32b1-b291-4db2-a650-257b74e98871"
        },
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/payments/364e32b1-b291-4db2-a650-257b74e98871"
        }
      }
    } ],
    "return-processes" : [ {
      "lineItems" : [ {
        "productLineItemId" : "db85fedd-86f0-4f3b-bcc8-f1df1746791c",
        "quantity" : 2,
        "status" : "RETURNED"
      } ],
      "shippingPriceRefund" : null,
      "_id" : "d353bfa5-30f3-4a5c-8fdf-319b60b282f8",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/returns/d353bfa5-30f3-4a5c-8fdf-319b60b282f8"
        },
        "return-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/returns/d353bfa5-30f3-4a5c-8fdf-319b60b282f8"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes"
    },
    "payment-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/payments"
    },
    "shipping-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/shippings"
    },
    "return-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/returns"
    },
    "cancel-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/processes/cancelations"
    },
    "refund-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/cce6bc41-f8b0-4a3b-a4eb-72f26a92ddb6/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/b4d9f45a-5b9c-44f4-8844-08e75819d501/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" : "a9d38d1b-8a54-4f57-a39c-7ca52e70405a",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/b4d9f45a-5b9c-44f4-8844-08e75819d501/processes/payments/a9d38d1b-8a54-4f57-a39c-7ca52e70405a"
        },
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/b4d9f45a-5b9c-44f4-8844-08e75819d501/processes/payments/a9d38d1b-8a54-4f57-a39c-7ca52e70405a"
        },
        "mark-voided" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/b4d9f45a-5b9c-44f4-8844-08e75819d501/processes/payments/a9d38d1b-8a54-4f57-a39c-7ca52e70405a/mark-voided"
        },
        "mark-paid" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/b4d9f45a-5b9c-44f4-8844-08e75819d501/processes/payments/a9d38d1b-8a54-4f57-a39c-7ca52e70405a/mark-paid"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b4d9f45a-5b9c-44f4-8844-08e75819d501/processes/payments?page=0&size=20"
    },
    "payment-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b4d9f45a-5b9c-44f4-8844-08e75819d501/processes/payments"
    },
    "active" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b4d9f45a-5b9c-44f4-8844-08e75819d501/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/2f66c649-bde4-4c4e-816c-301c4a9eac1f/processes/payments/32a220c1-0e1e-4aa6-a135-36c3223d64cd' -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" : "32a220c1-0e1e-4aa6-a135-36c3223d64cd",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/2f66c649-bde4-4c4e-816c-301c4a9eac1f/processes/payments/32a220c1-0e1e-4aa6-a135-36c3223d64cd"
    },
    "payment-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/2f66c649-bde4-4c4e-816c-301c4a9eac1f/processes/payments/32a220c1-0e1e-4aa6-a135-36c3223d64cd"
    },
    "mark-voided" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/2f66c649-bde4-4c4e-816c-301c4a9eac1f/processes/payments/32a220c1-0e1e-4aa6-a135-36c3223d64cd/mark-voided"
    },
    "mark-paid" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/2f66c649-bde4-4c4e-816c-301c4a9eac1f/processes/payments/32a220c1-0e1e-4aa6-a135-36c3223d64cd/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/0017f03c-87d7-46d2-938c-05e18e8af39c/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" : "04eedfa4-dea9-4a6d-92e1-b1b59656621a",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/0017f03c-87d7-46d2-938c-05e18e8af39c/processes/payments/04eedfa4-dea9-4a6d-92e1-b1b59656621a"
    },
    "payment-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/0017f03c-87d7-46d2-938c-05e18e8af39c/processes/payments/04eedfa4-dea9-4a6d-92e1-b1b59656621a"
    },
    "mark-voided" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/0017f03c-87d7-46d2-938c-05e18e8af39c/processes/payments/04eedfa4-dea9-4a6d-92e1-b1b59656621a/mark-voided"
    },
    "mark-paid" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/0017f03c-87d7-46d2-938c-05e18e8af39c/processes/payments/04eedfa4-dea9-4a6d-92e1-b1b59656621a/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/cbefb9bf-c990-4f5e-8a13-1aae89dbd9b9/processes/payments/181db17d-606f-4ac5-8827-c47ae650f1fc/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" : "181db17d-606f-4ac5-8827-c47ae650f1fc",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/cbefb9bf-c990-4f5e-8a13-1aae89dbd9b9/processes/payments/181db17d-606f-4ac5-8827-c47ae650f1fc"
    },
    "payment-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/cbefb9bf-c990-4f5e-8a13-1aae89dbd9b9/processes/payments/181db17d-606f-4ac5-8827-c47ae650f1fc"
    }
  }
}

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/80b6d3ae-2783-4172-a8c6-852275a50766/processes/payments/0168fb73-c239-4b6c-b610-4f26a081d19f/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" : "0168fb73-c239-4b6c-b610-4f26a081d19f",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/80b6d3ae-2783-4172-a8c6-852275a50766/processes/payments/0168fb73-c239-4b6c-b610-4f26a081d19f"
    },
    "payment-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/80b6d3ae-2783-4172-a8c6-852275a50766/processes/payments/0168fb73-c239-4b6c-b610-4f26a081d19f"
    }
  }
}

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/f1d67d58-e11c-42aa-871b-0ef9cb680da3/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-Frame-Options: DENY
Content-Length: 1360

{
  "_embedded" : {
    "refund-processes" : [ {
      "amount" : {
        "currency" : "EUR",
        "amount" : 19.98
      },
      "status" : "PENDING",
      "completed" : false,
      "_id" : "8f288d6d-83f2-41b9-9484-464730ab0105",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/f1d67d58-e11c-42aa-871b-0ef9cb680da3/processes/refunds/8f288d6d-83f2-41b9-9484-464730ab0105"
        },
        "refund-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/f1d67d58-e11c-42aa-871b-0ef9cb680da3/processes/refunds/8f288d6d-83f2-41b9-9484-464730ab0105"
        },
        "mark-paid" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/f1d67d58-e11c-42aa-871b-0ef9cb680da3/processes/refunds/8f288d6d-83f2-41b9-9484-464730ab0105/mark-paid"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/f1d67d58-e11c-42aa-871b-0ef9cb680da3/processes/refunds?page=0&size=20"
    },
    "refund-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/f1d67d58-e11c-42aa-871b-0ef9cb680da3/processes/refunds"
    },
    "active" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/f1d67d58-e11c-42aa-871b-0ef9cb680da3/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/3c5fbbe8-9c21-458a-b186-9506344bb070/processes/refunds/669ed6a1-c879-4ec3-a0e1-6c1496a485e3' -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-Frame-Options: DENY
Content-Length: 697

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 19.98
  },
  "status" : "PENDING",
  "completed" : false,
  "_id" : "669ed6a1-c879-4ec3-a0e1-6c1496a485e3",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/3c5fbbe8-9c21-458a-b186-9506344bb070/processes/refunds/669ed6a1-c879-4ec3-a0e1-6c1496a485e3"
    },
    "refund-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/3c5fbbe8-9c21-458a-b186-9506344bb070/processes/refunds/669ed6a1-c879-4ec3-a0e1-6c1496a485e3"
    },
    "mark-paid" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/3c5fbbe8-9c21-458a-b186-9506344bb070/processes/refunds/669ed6a1-c879-4ec3-a0e1-6c1496a485e3/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/c96819f6-54a4-4d17-b46d-ac6af172b436/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-Frame-Options: DENY
Content-Length: 697

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 19.98
  },
  "status" : "PENDING",
  "completed" : false,
  "_id" : "419e1d92-3de2-4155-bde7-f859da58e1a4",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/c96819f6-54a4-4d17-b46d-ac6af172b436/processes/refunds/419e1d92-3de2-4155-bde7-f859da58e1a4"
    },
    "refund-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/c96819f6-54a4-4d17-b46d-ac6af172b436/processes/refunds/419e1d92-3de2-4155-bde7-f859da58e1a4"
    },
    "mark-paid" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/c96819f6-54a4-4d17-b46d-ac6af172b436/processes/refunds/419e1d92-3de2-4155-bde7-f859da58e1a4/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/b684ee57-a1f7-4e31-9074-0d50b4991658/processes/refunds/active/mark-paid' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d '{
  "comment" : "comment",
  "details" : {
    "amount" : {
      "currency" : "EUR",
      "amount" : 19.98
    }
  }
}'

Example response

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

{
  "amount" : {
    "currency" : "EUR",
    "amount" : 19.98
  },
  "status" : "PAID",
  "completed" : true,
  "_id" : "c92a0994-768b-4728-8e18-bcfa8dc7dd33",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b684ee57-a1f7-4e31-9074-0d50b4991658/processes/refunds/c92a0994-768b-4728-8e18-bcfa8dc7dd33"
    },
    "refund-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b684ee57-a1f7-4e31-9074-0d50b4991658/processes/refunds/c92a0994-768b-4728-8e18-bcfa8dc7dd33"
    }
  }
}

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/a4eba792-b87c-4c9f-b621-dda0288431f8/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-Frame-Options: DENY
Content-Length: 1597

{
  "_embedded" : {
    "shipping-processes" : [ {
      "status" : "PENDING",
      "trackingCode" : "lookAtMyTrackingCodeWow",
      "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
      "lineItems" : [ {
        "productLineItemId" : "e3bd2d8e-c7b0-46e6-a646-a07b28311d6c",
        "quantity" : 3
      } ],
      "_id" : "cc7043d2-f5b3-4188-9f91-cc9f1dddc6dd",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/a4eba792-b87c-4c9f-b621-dda0288431f8/processes/shippings/cc7043d2-f5b3-4188-9f91-cc9f1dddc6dd"
        },
        "shipping-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/a4eba792-b87c-4c9f-b621-dda0288431f8/processes/shippings/cc7043d2-f5b3-4188-9f91-cc9f1dddc6dd"
        },
        "mark-shipped" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/a4eba792-b87c-4c9f-b621-dda0288431f8/processes/shippings/cc7043d2-f5b3-4188-9f91-cc9f1dddc6dd/mark-shipped"
        },
        "mark-delivered" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/a4eba792-b87c-4c9f-b621-dda0288431f8/processes/shippings/cc7043d2-f5b3-4188-9f91-cc9f1dddc6dd/mark-delivered"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a4eba792-b87c-4c9f-b621-dda0288431f8/processes/shippings?page=0&size=20"
    },
    "shipping-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a4eba792-b87c-4c9f-b621-dda0288431f8/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/9e74981e-b0b9-4b52-ba6b-8f62d097aa8d/processes/shippings/8b932025-62c9-4acb-bbaa-38c6bb6d511a' -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-Frame-Options: DENY
Content-Length: 1045

{
  "status" : "PENDING",
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "productLineItemId" : "5fd849cf-c315-44ff-89b0-99409f740502",
    "quantity" : 3
  } ],
  "_id" : "8b932025-62c9-4acb-bbaa-38c6bb6d511a",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9e74981e-b0b9-4b52-ba6b-8f62d097aa8d/processes/shippings/8b932025-62c9-4acb-bbaa-38c6bb6d511a"
    },
    "shipping-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9e74981e-b0b9-4b52-ba6b-8f62d097aa8d/processes/shippings/8b932025-62c9-4acb-bbaa-38c6bb6d511a"
    },
    "mark-shipped" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9e74981e-b0b9-4b52-ba6b-8f62d097aa8d/processes/shippings/8b932025-62c9-4acb-bbaa-38c6bb6d511a/mark-shipped"
    },
    "mark-delivered" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/9e74981e-b0b9-4b52-ba6b-8f62d097aa8d/processes/shippings/8b932025-62c9-4acb-bbaa-38c6bb6d511a/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/ead8eac8-22ee-4659-ad41-1d7eb048815f/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" : "109f41da-c892-418f-8317-bec4c929fa76"
  } ]
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/orders/ead8eac8-22ee-4659-ad41-1d7eb048815f/processes/shippings/dc01a6e5-2e75-471c-aea0-f8d8b06f8369
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1045

{
  "status" : "PENDING",
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "productLineItemId" : "109f41da-c892-418f-8317-bec4c929fa76",
    "quantity" : 3
  } ],
  "_id" : "dc01a6e5-2e75-471c-aea0-f8d8b06f8369",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/ead8eac8-22ee-4659-ad41-1d7eb048815f/processes/shippings/dc01a6e5-2e75-471c-aea0-f8d8b06f8369"
    },
    "shipping-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/ead8eac8-22ee-4659-ad41-1d7eb048815f/processes/shippings/dc01a6e5-2e75-471c-aea0-f8d8b06f8369"
    },
    "mark-shipped" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/ead8eac8-22ee-4659-ad41-1d7eb048815f/processes/shippings/dc01a6e5-2e75-471c-aea0-f8d8b06f8369/mark-shipped"
    },
    "mark-delivered" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/ead8eac8-22ee-4659-ad41-1d7eb048815f/processes/shippings/dc01a6e5-2e75-471c-aea0-f8d8b06f8369/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/b752efb5-121d-4ee4-91ed-9c861c2bde1e/processes/shippings/17c4c1b8-d878-40fa-8c47-fa511c8356f8/mark-shipped' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d '{
  "comment" : "This needs to be done fast!",
  "sendMail" : true,
  "details" : {
    "trackingCode" : "lookAtMyTrackingCodeWow",
    "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow"
  }
}'

Example response

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

{
  "status" : "SHIPPED",
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "productLineItemId" : "e0f83701-c837-4ed2-ab5f-2c4dfe3af837",
    "quantity" : 3
  } ],
  "_id" : "17c4c1b8-d878-40fa-8c47-fa511c8356f8",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b752efb5-121d-4ee4-91ed-9c861c2bde1e/processes/shippings/17c4c1b8-d878-40fa-8c47-fa511c8356f8"
    },
    "shipping-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b752efb5-121d-4ee4-91ed-9c861c2bde1e/processes/shippings/17c4c1b8-d878-40fa-8c47-fa511c8356f8"
    },
    "mark-delivered" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/b752efb5-121d-4ee4-91ed-9c861c2bde1e/processes/shippings/17c4c1b8-d878-40fa-8c47-fa511c8356f8/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/93783d28-86ca-4ecd-abe2-1604a07a1df2/processes/shippings/5806296b-4243-40c5-b347-a33332520857/mark-delivered' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d '{
  "comment" : "comment"
}'

Example response

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

{
  "status" : "DELIVERED",
  "trackingCode" : "lookAtMyTrackingCodeWow",
  "trackingLink" : "http://tracking.is/fun?code=lookAtMyTrackingCodeWow",
  "lineItems" : [ {
    "productLineItemId" : "3a201c73-80d8-4234-b93f-70aa62695c23",
    "quantity" : 3
  } ],
  "_id" : "5806296b-4243-40c5-b347-a33332520857",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/93783d28-86ca-4ecd-abe2-1604a07a1df2/processes/shippings/5806296b-4243-40c5-b347-a33332520857"
    },
    "shipping-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/93783d28-86ca-4ecd-abe2-1604a07a1df2/processes/shippings/5806296b-4243-40c5-b347-a33332520857"
    }
  }
}

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/05186da9-37e2-46b2-a37f-c9842c43feba/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.

_embedded.return-processes[].shippingPriceRefund.currency

String

The currency of the price for the shipping line item.

_embedded.return-processes[].shippingPriceRefund.amount

Number

The price for the shipping line item to be refunded.

page

Object

See Pagination

Links

Relation Description

return-processes

The link to all return processes of the order.

Example response

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

{
  "_embedded" : {
    "return-processes" : [ {
      "lineItems" : [ {
        "productLineItemId" : "d7f1ef44-22a7-44a6-9971-d6471a08a45d",
        "quantity" : 3,
        "status" : "RETURNED"
      } ],
      "shippingPriceRefund" : {
        "currency" : "EUR",
        "amount" : 19.99
      },
      "_id" : "7e1adbef-1672-4d1d-9d5c-cb8e16e4eaed",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/05186da9-37e2-46b2-a37f-c9842c43feba/processes/returns/7e1adbef-1672-4d1d-9d5c-cb8e16e4eaed"
        },
        "return-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/05186da9-37e2-46b2-a37f-c9842c43feba/processes/returns/7e1adbef-1672-4d1d-9d5c-cb8e16e4eaed"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/05186da9-37e2-46b2-a37f-c9842c43feba/processes/returns?page=0&size=20"
    },
    "return-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/05186da9-37e2-46b2-a37f-c9842c43feba/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/768e2e33-7277-4b0c-a957-6f977b26ab67/processes/returns/bf51021d-00cf-4ff9-bb71-ad776b6a1c8c' -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.

shippingPriceRefund.currency

String

The currency of the price for the shipping line item.

shippingPriceRefund.amount

Number

The price for the shipping line item to be refunded.

_links

Object

See Hypermedia

Links

Relation Description

return-process

The link to the current return process.

Example response

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

{
  "lineItems" : [ {
    "productLineItemId" : "917ff496-efac-4fd7-b3df-abfba1006d45",
    "quantity" : 3,
    "status" : "RETURNED"
  } ],
  "shippingPriceRefund" : {
    "currency" : "EUR",
    "amount" : 19.99
  },
  "_id" : "bf51021d-00cf-4ff9-bb71-ad776b6a1c8c",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/768e2e33-7277-4b0c-a957-6f977b26ab67/processes/returns/bf51021d-00cf-4ff9-bb71-ad776b6a1c8c"
    },
    "return-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/768e2e33-7277-4b0c-a957-6f977b26ab67/processes/returns/bf51021d-00cf-4ff9-bb71-ad776b6a1c8c"
    }
  }
}

Create return processes

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

Required scopes

rtpr:c

Request body properties

Path Type Description

comment

String

The comment to this status change.

lineItems[].productLineItemId

String

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

lineItems[].quantity

Number

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

shippingPriceRefund.currency

String

The currency of the price for the shipping line item.

shippingPriceRefund.amount

Number

The price for the shipping line item to be refunded.

lineItems[].status

String

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

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/orders/f45690a0-85cc-4644-8d05-6e46aa451ec6/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" : "b2c496e1-8c6d-4ab2-87a5-0cc605b6ad88",
    "status" : "RETURNED"
  } ],
  "shippingPriceRefund" : {
    "currency" : "EUR",
    "amount" : 19.99
  }
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/orders/f45690a0-85cc-4644-8d05-6e46aa451ec6/processes/returns/ae23d19f-9881-4cc0-9475-8d4f9b0977ca
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 624

{
  "lineItems" : [ {
    "productLineItemId" : "b2c496e1-8c6d-4ab2-87a5-0cc605b6ad88",
    "quantity" : 3,
    "status" : "RETURNED"
  } ],
  "shippingPriceRefund" : {
    "currency" : "EUR",
    "amount" : 19.99
  },
  "_id" : "ae23d19f-9881-4cc0-9475-8d4f9b0977ca",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/f45690a0-85cc-4644-8d05-6e46aa451ec6/processes/returns/ae23d19f-9881-4cc0-9475-8d4f9b0977ca"
    },
    "return-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/f45690a0-85cc-4644-8d05-6e46aa451ec6/processes/returns/ae23d19f-9881-4cc0-9475-8d4f9b0977ca"
    }
  }
}

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/a4d9b449-a4a7-495f-a877-a7fc86aeaa0e/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" : "2b441ac4-f18a-4177-8df2-7b66a5051641",
        "quantity" : 3
      } ],
      "_id" : "b0ba0691-c05c-4f54-bc5a-4ce3fce5f92d",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/a4d9b449-a4a7-495f-a877-a7fc86aeaa0e/processes/cancelations/b0ba0691-c05c-4f54-bc5a-4ce3fce5f92d"
        },
        "cancel-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/a4d9b449-a4a7-495f-a877-a7fc86aeaa0e/processes/cancelations/b0ba0691-c05c-4f54-bc5a-4ce3fce5f92d"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a4d9b449-a4a7-495f-a877-a7fc86aeaa0e/processes/cancelations?page=0&size=20"
    },
    "cancel-processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/a4d9b449-a4a7-495f-a877-a7fc86aeaa0e/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/4776ce07-9592-4517-b87a-2addb95b67c7/processes/cancelations/6add8ba3-470d-42b8-96a8-7cf52d2c30e8' -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" : "f9c0ed80-e064-4171-8cca-f37c2881cefb",
    "quantity" : 3
  } ],
  "_id" : "6add8ba3-470d-42b8-96a8-7cf52d2c30e8",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/4776ce07-9592-4517-b87a-2addb95b67c7/processes/cancelations/6add8ba3-470d-42b8-96a8-7cf52d2c30e8"
    },
    "cancel-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/4776ce07-9592-4517-b87a-2addb95b67c7/processes/cancelations/6add8ba3-470d-42b8-96a8-7cf52d2c30e8"
    }
  }
}

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/af4c749e-d0b1-4065-8d03-a64821b21d34/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" : "ffef90eb-c771-42df-acd9-a7bf156e3e6e"
  } ]
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/orders/af4c749e-d0b1-4065-8d03-a64821b21d34/processes/cancelations/21bea8e6-de41-496a-a474-28c97be7760b
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" : "ffef90eb-c771-42df-acd9-a7bf156e3e6e",
    "quantity" : 3
  } ],
  "_id" : "21bea8e6-de41-496a-a474-28c97be7760b",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/af4c749e-d0b1-4065-8d03-a64821b21d34/processes/cancelations/21bea8e6-de41-496a-a474-28c97be7760b"
    },
    "cancel-process" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/af4c749e-d0b1-4065-8d03-a64821b21d34/processes/cancelations/21bea8e6-de41-496a-a474-28c97be7760b"
    }
  }
}

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/22235808-5cbe-4504-91f2-dfa98f0df36f/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: 8971

{
  "_id" : "22235808-5cbe-4504-91f2-dfa98f0df36f",
  "createdAt" : "2018-09-10T14:36:42.869",
  "cartId" : "ec42b821-9c24-43c9-9cde-0ff4e4305cde",
  "currency" : "EUR",
  "taxModel" : "GROSS",
  "taxable" : true,
  "testOrder" : false,
  "termsAndConditionsExplicitlyAccepted" : 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" : "ab96b4c3-594f-468f-92da-859d1564476d",
      "_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" : "6ac66dce-4bf9-4b5e-a986-b0fab05fb7ca"
  }, {
    "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" : "6c9eb5f3-721a-46fc-a467-478e98666489",
      "_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" : "94189687-b5c2-4361-b257-aba3ecbb6bc7"
  } ],
  "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-09-10T14:36:42.869",
  "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/22235808-5cbe-4504-91f2-dfa98f0df36f"
    },
    "order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/22235808-5cbe-4504-91f2-dfa98f0df36f"
    },
    "order-note" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/22235808-5cbe-4504-91f2-dfa98f0df36f/order-note"
    },
    "processes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/22235808-5cbe-4504-91f2-dfa98f0df36f/processes"
    },
    "events" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/22235808-5cbe-4504-91f2-dfa98f0df36f/events"
    },
    "right-of-withdrawal-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    },
    "terms-and-conditions-pdf" : {
      "href" : "https://api-shop.beyondshop.cloud/api/pdf-storage/attachments/some.pdf?hash=23213"
    }
  }
}

List order 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/5a5e534f-6be2-4f31-8690-ee8409634421/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-Frame-Options: DENY
Content-Length: 2107

{
  "_embedded" : {
    "order-events" : [ {
      "triggeredBy" : "user",
      "comment" : "comment",
      "createdAt" : "2018-09-10T14:34:51.6",
      "details" : {
        "paymentProcessId" : "85e8f5a8-eefe-4216-a633-a2673f4b1a19",
        "type" : "payment-voided"
      },
      "_links" : {
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/5a5e534f-6be2-4f31-8690-ee8409634421/processes/payments/85e8f5a8-eefe-4216-a633-a2673f4b1a19"
        }
      }
    }, {
      "triggeredBy" : null,
      "comment" : null,
      "createdAt" : "2018-09-10T14:34:51.41",
      "details" : {
        "amount" : {
          "currency" : "EUR",
          "amount" : 0
        },
        "paymentId" : null,
        "paymentProcessId" : null,
        "type" : "payment-created"
      }
    }, {
      "triggeredBy" : "user",
      "comment" : "customer transfer",
      "createdAt" : "2018-09-10T14:34:51.223",
      "details" : {
        "amount" : {
          "currency" : "EUR",
          "amount" : 77.44
        },
        "paymentProcessId" : "ca25b57a-da98-42dc-b9b5-9ce9f957e438",
        "type" : "payment-paid"
      },
      "_links" : {
        "payment-process" : {
          "href" : "https://api-shop.beyondshop.cloud/api/orders/5a5e534f-6be2-4f31-8690-ee8409634421/processes/payments/ca25b57a-da98-42dc-b9b5-9ce9f957e438"
        }
      }
    }, {
      "triggeredBy" : null,
      "comment" : null,
      "createdAt" : "2018-09-10T14:34:50.844",
      "details" : {
        "amount" : {
          "currency" : "EUR",
          "amount" : 77.44
        },
        "paymentId" : null,
        "paymentProcessId" : null,
        "type" : "payment-created"
      }
    }, {
      "triggeredBy" : null,
      "comment" : null,
      "createdAt" : "2018-09-10T14:34:50.772",
      "details" : {
        "type" : "order-created"
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/orders/5a5e534f-6be2-4f31-8690-ee8409634421/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/ce8caf80-67f5-4f52-a1cb-d6e1e42607cd' -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-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/ce8caf80-67f5-4f52-a1cb-d6e1e42607cd"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/ce8caf80-67f5-4f52-a1cb-d6e1e42607cd"
    },
    "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/ce8caf80-67f5-4f52-a1cb-d6e1e42607cd/deactivate"
    },
    "logo-storefront" : {
      "href" : "http://storefront-logo.com"
    },
    "logo-list" : {
      "href" : "http://list-logo.com"
    },
    "logo-details" : {
      "href" : "http://details-logo.com"
    },
    "logo-tile" : {
      "href" : "http://tile-logo.com"
    },
    "payment-integration" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/ce8caf80-67f5-4f52-a1cb-d6e1e42607cd/payment-integration"
    }
  },
  "_id" : "ce8caf80-67f5-4f52-a1cb-d6e1e42607cd"
}

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-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/345e14ff-db4d-4c54-a4eb-abce4545a286"
        },
        "payment-method" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/345e14ff-db4d-4c54-a4eb-abce4545a286"
        },
        "deactivate-payment-method" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/345e14ff-db4d-4c54-a4eb-abce4545a286/deactivate"
        },
        "payment-integration" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/345e14ff-db4d-4c54-a4eb-abce4545a286/payment-integration"
        }
      },
      "_id" : "345e14ff-db4d-4c54-a4eb-abce4545a286"
    }, {
      "name" : "Credit Card",
      "description" : "Pay with CreditCard",
      "officialName" : "Credit Card",
      "officialDescription" : "Pay with CreditCard",
      "taxClass" : "REGULAR",
      "discountOrFee" : {
        "type" : "PERCENTAGE",
        "absoluteValue" : null,
        "percentageValue" : 0.02
      },
      "position" : 2,
      "serviceableCountries" : [ "DE", "GB" ],
      "minimumOrderValue" : {
        "currency" : "EUR",
        "amount" : 20
      },
      "activated" : false,
      "activeLogoSet" : null,
      "onlinePayment" : false,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c4eb3dd4-44b0-49f3-941d-534941a1664a"
        },
        "payment-method" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c4eb3dd4-44b0-49f3-941d-534941a1664a"
        },
        "activate-payment-method" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c4eb3dd4-44b0-49f3-941d-534941a1664a/activate"
        },
        "payment-integration" : {
          "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c4eb3dd4-44b0-49f3-941d-534941a1664a/payment-integration"
        }
      },
      "_id" : "c4eb3dd4-44b0-49f3-941d-534941a1664a"
    } ]
  },
  "_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/188cc922-ef58-4514-bf3a-4e5702168d6d
Content-Type: application/json;charset=UTF-8
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/188cc922-ef58-4514-bf3a-4e5702168d6d"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/188cc922-ef58-4514-bf3a-4e5702168d6d"
    },
    "activate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/188cc922-ef58-4514-bf3a-4e5702168d6d/activate"
    },
    "payment-integration" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/188cc922-ef58-4514-bf3a-4e5702168d6d/payment-integration"
    }
  },
  "_id" : "188cc922-ef58-4514-bf3a-4e5702168d6d"
}

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/54e79518-62f7-44fe-938c-d6dc277e2626' -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-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/54e79518-62f7-44fe-938c-d6dc277e2626"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/54e79518-62f7-44fe-938c-d6dc277e2626"
    },
    "deactivate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/54e79518-62f7-44fe-938c-d6dc277e2626/deactivate"
    },
    "payment-integration" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/54e79518-62f7-44fe-938c-d6dc277e2626/payment-integration"
    }
  },
  "_id" : "54e79518-62f7-44fe-938c-d6dc277e2626"
}

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/3b9c87ca-53dc-4956-8d65-7566301f36a5' -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-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/00f8f727-0d10-4e60-bb5a-ce28a26b31d1
https://api-shop.beyondshop.cloud/api/payment-methods/4fd5f164-8a1b-445c-a600-c44b732f005a
https://api-shop.beyondshop.cloud/api/payment-methods/f27d37bc-3b7e-4e1c-aa0e-75484e3f3a85
https://api-shop.beyondshop.cloud/api/payment-methods/06aefe45-f10e-43f5-ab34-ef180a42ff61'

Example response

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

Activate a payment method

A POST request is used to activate a payment method.

Required scopes

pymt:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-methods/c7a9d03b-cf7c-4e39-a0d6-f1cba58b8d8b/activate' -i -X POST -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 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" : [ "DE", "GB" ],
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 19.99
  },
  "activated" : true,
  "activeLogoSet" : null,
  "onlinePayment" : false,
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c7a9d03b-cf7c-4e39-a0d6-f1cba58b8d8b"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c7a9d03b-cf7c-4e39-a0d6-f1cba58b8d8b"
    },
    "deactivate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c7a9d03b-cf7c-4e39-a0d6-f1cba58b8d8b/deactivate"
    },
    "payment-integration" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/c7a9d03b-cf7c-4e39-a0d6-f1cba58b8d8b/payment-integration"
    }
  },
  "_id" : "c7a9d03b-cf7c-4e39-a0d6-f1cba58b8d8b"
}

Dectivate a payment method

Required scopes

pymt:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/payment-methods/6377de69-2ec5-49a9-9e24-0db0b238edf3/deactivate' -i -X POST -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 200 OK
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 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" : [ "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/6377de69-2ec5-49a9-9e24-0db0b238edf3"
    },
    "payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/6377de69-2ec5-49a9-9e24-0db0b238edf3"
    },
    "activate-payment-method" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/6377de69-2ec5-49a9-9e24-0db0b238edf3/activate"
    },
    "payment-integration" : {
      "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/6377de69-2ec5-49a9-9e24-0db0b238edf3/payment-integration"
    }
  },
  "_id" : "6377de69-2ec5-49a9-9e24-0db0b238edf3"
}

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

_links

Object

See Hypermedia

page

Object

See Pagination

_embedded.products[].sku

String

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

_embedded.products[].name

String

The name of the product.

_embedded.products[].visible

Boolean

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

_embedded.products[].tags

Array

The tags assigned to a product.

_embedded.products[].salesPrice

Object

The reduced price of a product that is currently on offer.

_embedded.products[].salesPrice.amount

Number

The amount of the sales price.

_embedded.products[].salesPrice.currency

String

The currency of the sales price.

_embedded.products[].salesPrice.taxModel

String

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

_embedded.products[].listPrice

Object

The price of the product without any discounts.

_embedded.products[].listPrice.amount

Number

The amount of the list price.

_embedded.products[].listPrice.currency

String

The currency of the list price.

_embedded.products[].listPrice.taxModel

String

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

_embedded.products[].listPrice

Object

The price of the product without any discounts.

_embedded.products[].manufacturerPrice

Object

The manufacturer’s suggested retail price of the product.

_embedded.products[].manufacturerPrice.amount

Number

The amount of the manufacturer’s suggested retail price.

_embedded.products[].manufacturerPrice.currency

String

The currency of the manufacturer’s suggested retail price.

_embedded.products[].manufacturerPrice.taxModel

String

The tax model of the manufacturer’s suggested retail price. Can be GROSS or NET.

_embedded.products[]._id

String

The immutable, unique identifier of the requested resource.

_embedded.products[].salesPrice.derivedPrice

Object

The calculated price with taxes applied (read-only).

_embedded.products[].listPrice.derivedPrice

Object

The calculated price with taxes applied (read-only).

_embedded.products[].manufacturerPrice.derivedPrice

Object

The calculated manufacturer’s suggested retail price with taxes applied (read-only).

_embedded.products[]._embedded.availability

Object

The information about the availability of the product.

Links

Relation Description

search

The link to product search endpoints.

Example response

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

{
  "_embedded" : {
    "products" : [ {
      "_id" : "30bce27b-537d-4ab5-9282-8c154fa315a0",
      "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/30bce27b-537d-4ab5-9282-8c154fa315a0/availability"
            }
          }
        }
      },
      "tags" : [ "Bestseller", "Red Wine", "Sale" ],
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/30bce27b-537d-4ab5-9282-8c154fa315a0"
        },
        "self-localized" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/30bce27b-537d-4ab5-9282-8c154fa315a0?locale=en-GB"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/30bce27b-537d-4ab5-9282-8c154fa315a0{?locale}",
          "templated" : true
        },
        "attributes" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/30bce27b-537d-4ab5-9282-8c154fa315a0/attributes{?locale}",
          "templated" : true
        },
        "attachments" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/30bce27b-537d-4ab5-9282-8c154fa315a0/attachments"
        },
        "images" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/30bce27b-537d-4ab5-9282-8c154fa315a0/images"
        },
        "amazon" : {
          "href" : "http://amazon/amazon-products/30bce27b-537d-4ab5-9282-8c154fa315a0"
        },
        "google-shopping" : {
          "href" : "http://google-shopping/google-products/30bce27b-537d-4ab5-9282-8c154fa315a0"
        },
        "default-image" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/30bce27b-537d-4ab5-9282-8c154fa315a0/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

visible

Boolean

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

tags

Array

The tags assigned to a product.

salesPrice

Object

The reduced price of a product that is currently on offer.

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

salesPrice.amount

Number

The amount of the 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 price of the product without any discounts.

listPrice.amount

Number

The amount of the list price.

listPrice.currency

String

The currency of the list price.

listPrice.taxModel

String

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

listPrice

Object

The price of the product without any discounts.

manufacturerPrice

Object

The manufacturer’s suggested retail price of the product.

manufacturerPrice.amount

Number

The amount of the manufacturer’s suggested retail price.

manufacturerPrice.currency

String

The currency of the manufacturer’s suggested retail price.

manufacturerPrice.taxModel

String

The tax model of the manufacturer’s suggested retail price. Can be GROSS or NET.

name

String

The name of the product.

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.

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/2bb30286-2f63-4de6-94c7-f0bc2d9c9671
Content-Type: application/hal+json;charset=UTF-8
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"
  },
  "manufacturer" : "Grape Vineyard",
  "description" : "Spain\nRioja Tempranillo",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "attributes" : [ ],
  "name" : "Rioja Castillo de Puerto (2013)",
  "_id" : "2bb30286-2f63-4de6-94c7-f0bc2d9c9671",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/2bb30286-2f63-4de6-94c7-f0bc2d9c9671"
    },
    "self-localized" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/2bb30286-2f63-4de6-94c7-f0bc2d9c9671?locale=en-GB"
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/2bb30286-2f63-4de6-94c7-f0bc2d9c9671/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/2bb30286-2f63-4de6-94c7-f0bc2d9c9671/attributes{?locale}",
      "templated" : true
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/2bb30286-2f63-4de6-94c7-f0bc2d9c9671/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/2bb30286-2f63-4de6-94c7-f0bc2d9c9671/images"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/2bb30286-2f63-4de6-94c7-f0bc2d9c9671/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/c7e4383e-1714-4482-a80d-6f4be254ada2?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.

visible

Boolean

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

tags

Array

The tags assigned to a product.

salesPrice

Object

The reduced price of a product that is currently on offer.

salesPrice.amount

Number

The amount of the 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 price of the product without any discounts.

listPrice.amount

Number

The amount of the list price.

listPrice.currency

String

The currency of the list price.

listPrice.taxModel

String

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

listPrice

Object

The price of the product without any discounts.

manufacturerPrice

Object

The manufacturer’s suggested retail price of the product.

manufacturerPrice.amount

Number

The amount of the manufacturer’s suggested retail price.

manufacturerPrice.currency

String

The currency of the manufacturer’s suggested retail price.

manufacturerPrice.taxModel

String

The tax model of the manufacturer’s suggested retail price. Can be GROSS or NET.

_id

String

The immutable, unique identifier of the requested resource.

salesPrice.derivedPrice

Object

The calculated price with taxes applied (read-only).

listPrice.derivedPrice

Object

The calculated price with taxes applied (read-only).

manufacturerPrice.derivedPrice

Object

The calculated manufacturer’s suggested retail price with taxes applied (read-only).

name

String

The name of the product.

description

String

The description of the product.

manufacturer

String

The manufacturer of the product.

visible

Boolean

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

onSale

Boolean

Indicates if the product is on offer. Can be true or false.

productIdentifiers[].type

String

The product code to identify and classify the product. Can be EAN, UPC, ISBN, or MPN.

productIdentifiers[].value

String

The actual value of the product identifier.

essentialFeatures

String

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

tags

Array

The tags assigned to a product.

taxClass

String

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

shippingWeight

Number

The weight of the product including packaging in g.

maxOrderQuantity

Number

Displays how often this product can be ordered at maximum in one order.

shippingPeriod.minDays

Number

The minimum required days for shipping.

shippingPeriod.maxDays

Null

The maximum required days for shipping.

shippingPeriod.displayUnit

String

The unit to show the shipping period. Use DAYS or WEEKS.

shippingDimension.length

Number

The length of the product including packaging in mm.

shippingDimension.width

Number

The width of the product including packaging in mm.

shippingDimension.height

Number

The height of the product including packaging in mm.

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

attributes

Array

The list of product attributes.

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: Fri, 21 Sep 2018 09:12:48 GMT
ETag: "2"
Content-Type: application/hal+json;charset=UTF-8
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"
  },
  "manufacturer" : "Grape Vineyard",
  "description" : "Spain\nRioja Tempranillo",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "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"
  } ],
  "name" : "Rioja Castillo de Puerto (2013)",
  "_id" : "c7e4383e-1714-4482-a80d-6f4be254ada2",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/c7e4383e-1714-4482-a80d-6f4be254ada2"
    },
    "self-localized" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/c7e4383e-1714-4482-a80d-6f4be254ada2?locale=en-GB"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/c7e4383e-1714-4482-a80d-6f4be254ada2{?locale}",
      "templated" : true
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/c7e4383e-1714-4482-a80d-6f4be254ada2/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/c7e4383e-1714-4482-a80d-6f4be254ada2/attributes{?locale}",
      "templated" : true
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/c7e4383e-1714-4482-a80d-6f4be254ada2/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/c7e4383e-1714-4482-a80d-6f4be254ada2/images"
    },
    "amazon" : {
      "href" : "http://amazon/amazon-products/c7e4383e-1714-4482-a80d-6f4be254ada2"
    },
    "google-shopping" : {
      "href" : "http://google-shopping/google-products/c7e4383e-1714-4482-a80d-6f4be254ada2"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/c7e4383e-1714-4482-a80d-6f4be254ada2/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/7d83840a-9507-442c-9b89-b8c6287a310e?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: Fri, 21 Sep 2018 09:12:34 GMT
Content-Type: application/hal+json;charset=UTF-8
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"
  },
  "manufacturer" : "patched manufacturer",
  "description" : "Spain\nRioja Tempranillo",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "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"
  } ],
  "name" : "patched name",
  "_id" : "7d83840a-9507-442c-9b89-b8c6287a310e",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d83840a-9507-442c-9b89-b8c6287a310e"
    },
    "self-localized" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d83840a-9507-442c-9b89-b8c6287a310e?locale=en-GB"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d83840a-9507-442c-9b89-b8c6287a310e{?locale}",
      "templated" : true
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d83840a-9507-442c-9b89-b8c6287a310e/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d83840a-9507-442c-9b89-b8c6287a310e/attributes{?locale}",
      "templated" : true
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d83840a-9507-442c-9b89-b8c6287a310e/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d83840a-9507-442c-9b89-b8c6287a310e/images"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/7d83840a-9507-442c-9b89-b8c6287a310e/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/b58b89ba-a04b-45f3-9eed-5876a650b6c8?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: Fri, 21 Sep 2018 09:12:45 GMT
Content-Type: application/hal+json;charset=UTF-8
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"
  },
  "manufacturer" : "patched manufacturer",
  "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>",
  "essentialFeatures" : "Dry. 12% alcohol. Best vine variety.",
  "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"
  } ],
  "name" : "patched name",
  "_id" : "b58b89ba-a04b-45f3-9eed-5876a650b6c8",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/b58b89ba-a04b-45f3-9eed-5876a650b6c8"
    },
    "self-localized" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/b58b89ba-a04b-45f3-9eed-5876a650b6c8?locale=en-GB"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/b58b89ba-a04b-45f3-9eed-5876a650b6c8{?locale}",
      "templated" : true
    },
    "availability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/b58b89ba-a04b-45f3-9eed-5876a650b6c8/availability"
    },
    "attributes" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/b58b89ba-a04b-45f3-9eed-5876a650b6c8/attributes{?locale}",
      "templated" : true
    },
    "attachments" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/b58b89ba-a04b-45f3-9eed-5876a650b6c8/attachments"
    },
    "images" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/b58b89ba-a04b-45f3-9eed-5876a650b6c8/images"
    },
    "default-image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/b58b89ba-a04b-45f3-9eed-5876a650b6c8/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/d15100be-16f7-4785-b83f-241ac58eb753' -i -X DELETE -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

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

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

Find existing attribute values

A GET request is used to search for 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-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-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/b5395593-88b7-4201-b416-f08ca84f7bdb' -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-Frame-Options: DENY
Content-Length: 2529

{
  "_id" : "b5395593-88b7-4201-b416-f08ca84f7bdb",
  "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/b5395593-88b7-4201-b416-f08ca84f7bdb"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/b5395593-88b7-4201-b416-f08ca84f7bdb{?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/af83182d-10a5-42f7-8e34-cad4a55e59f1?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-Frame-Options: DENY
Content-Length: 2573

{
  "_id" : "af83182d-10a5-42f7-8e34-cad4a55e59f1",
  "_indexedAt" : "2018-09-18T07:30:23.158",
  "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/af83182d-10a5-42f7-8e34-cad4a55e59f1"
    },
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/af83182d-10a5-42f7-8e34-cad4a55e59f1{?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-Frame-Options: DENY
Content-Length: 3634

{
  "_embedded" : {
    "products" : [ {
      "_id" : "a9a0b011-a365-44db-8d64-2b7e22bb29d0",
      "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/a9a0b011-a365-44db-8d64-2b7e22bb29d0"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/a9a0b011-a365-44db-8d64-2b7e22bb29d0{?projection}",
          "templated" : true
        }
      }
    }, {
      "_id" : "927fae25-974c-4fe7-9170-11b5b7c6813c",
      "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/927fae25-974c-4fe7-9170-11b5b7c6813c"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/927fae25-974c-4fe7-9170-11b5b7c6813c{?projection}",
          "templated" : true
        }
      }
    }, {
      "_id" : "46bfb97f-f8a0-4e9a-b52d-55dd5916ba5a",
      "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/46bfb97f-f8a0-4e9a-b52d-55dd5916ba5a"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/46bfb97f-f8a0-4e9a-b52d-55dd5916ba5a{?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-Frame-Options: DENY
Content-Length: 1684

{
  "_embedded" : {
    "products" : [ {
      "_id" : "65956dc3-4418-42c7-aa2d-97e8e6ea4f5a",
      "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/65956dc3-4418-42c7-aa2d-97e8e6ea4f5a"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/65956dc3-4418-42c7-aa2d-97e8e6ea4f5a{?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-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-Frame-Options: DENY
Content-Length: 2803

{
  "_embedded" : {
    "products" : [ {
      "_id" : "32719992-f6fb-4c09-9ec1-fe91600d5d80",
      "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/32719992-f6fb-4c09-9ec1-fe91600d5d80"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/32719992-f6fb-4c09-9ec1-fe91600d5d80{?projection}",
          "templated" : true
        }
      }
    }, {
      "_id" : "4e734415-e51b-40dc-9f36-81005c8dfa83",
      "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/4e734415-e51b-40dc-9f36-81005c8dfa83"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/4e734415-e51b-40dc-9f36-81005c8dfa83{?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=ada1af8c-3027-466a-9c88-e00cc5a2583a' -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-Frame-Options: DENY
Content-Length: 1716

{
  "_embedded" : {
    "products" : [ {
      "_id" : "ce41183e-9313-4419-a393-4204407394dc",
      "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/ce41183e-9313-4419-a393-4204407394dc"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/ce41183e-9313-4419-a393-4204407394dc{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/search/find-by-category?categoryId=ada1af8c-3027-466a-9c88-e00cc5a2583a&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-Frame-Options: DENY
Content-Length: 1653

{
  "_embedded" : {
    "products" : [ {
      "_id" : "7eda4fb9-8cde-4b29-aaf9-54681f8bd6f5",
      "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/7eda4fb9-8cde-4b29-aaf9-54681f8bd6f5"
        },
        "product" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-view/products/7eda4fb9-8cde-4b29-aaf9-54681f8bd6f5{?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/62f60dd1-1c59-4c23-83db-233e64e22ca1/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-Frame-Options: DENY
Content-Length: 2065

{
  "_embedded" : {
    "attachments" : [ {
      "mimeType" : "application/pdf",
      "length" : 1,
      "label" : "Handbuch",
      "_id" : "36cd91f6-58d6-4adf-aee7-875adc20d0ee",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/62f60dd1-1c59-4c23-83db-233e64e22ca1/attachments/36cd91f6-58d6-4adf-aee7-875adc20d0ee"
        },
        "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/62f60dd1-1c59-4c23-83db-233e64e22ca1/attachments/36cd91f6-58d6-4adf-aee7-875adc20d0ee"
        }
      }
    }, {
      "mimeType" : "application/pdf",
      "length" : 1,
      "label" : "Handbuch",
      "_id" : "4c8557d0-dd56-4e6e-af00-3b0bb0359fb1",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/62f60dd1-1c59-4c23-83db-233e64e22ca1/attachments/4c8557d0-dd56-4e6e-af00-3b0bb0359fb1"
        },
        "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/62f60dd1-1c59-4c23-83db-233e64e22ca1/attachments/4c8557d0-dd56-4e6e-af00-3b0bb0359fb1"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/62f60dd1-1c59-4c23-83db-233e64e22ca1/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/1223ef92-152c-4120-beff-524bfd8fc800/attachments/bf3204f8-8ed3-4edd-aef1-aa80ffc3cb2a' -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-Frame-Options: DENY
Content-Length: 803

{
  "mimeType" : "application/pdf",
  "length" : 1,
  "label" : "Handbuch",
  "_id" : "bf3204f8-8ed3-4edd-aef1-aa80ffc3cb2a",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1223ef92-152c-4120-beff-524bfd8fc800/attachments/bf3204f8-8ed3-4edd-aef1-aa80ffc3cb2a"
    },
    "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/1223ef92-152c-4120-beff-524bfd8fc800/attachments/bf3204f8-8ed3-4edd-aef1-aa80ffc3cb2a"
    }
  }
}

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/3ae6ed74-6c1b-4229-9320-625e8f635ef3/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/3ae6ed74-6c1b-4229-9320-625e8f635ef3/attachments/24e56e8a-abee-42b6-811d-0a33a504c70d
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 799

{
  "mimeType" : "application/pdf",
  "length" : 1,
  "label" : "Handbuch",
  "_id" : "24e56e8a-abee-42b6-811d-0a33a504c70d",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/3ae6ed74-6c1b-4229-9320-625e8f635ef3/attachments/24e56e8a-abee-42b6-811d-0a33a504c70d"
    },
    "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/3ae6ed74-6c1b-4229-9320-625e8f635ef3/attachments/24e56e8a-abee-42b6-811d-0a33a504c70d"
    }
  }
}

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/d205c8a1-f655-44a0-af86-0d9e40349a79/attachments/b91214d7-1e34-4b68-b292-600f5b59ec83' -i -X DELETE -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

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

Product Attribute Definitions

Attribute definitions provide meta data for attributes. An attribute definition is a precondition to create 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-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.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-Frame-Options: DENY
Content-Length: 1063

{
  "_embedded" : {
    "product-attribute-definitions" : [ {
      "name" : "colour",
      "namespace" : "custom",
      "format" : null,
      "type" : "STRING",
      "displayName" : "Colour",
      "_id" : "c7619d14-934b-41a2-820d-fd9032042415",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/c7619d14-934b-41a2-820d-fd9032042415"
        },
        "product-attribute-definition" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/c7619d14-934b-41a2-820d-fd9032042415"
        }
      }
    } ]
  },
  "_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/cc76f088-99a6-4442-9c25-3254537053c8?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

_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: Fri, 21 Sep 2018 09:11:43 GMT
ETag: "1"
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 472

{
  "name" : "colour",
  "namespace" : "custom",
  "format" : null,
  "type" : "STRING",
  "displayName" : "Colour",
  "_id" : "cc76f088-99a6-4442-9c25-3254537053c8",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/cc76f088-99a6-4442-9c25-3254537053c8"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/cc76f088-99a6-4442-9c25-3254537053c8"
    }
  }
}

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-GB' -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: Fri, 21 Sep 2018 09:11:49 GMT
Location: https://api-shop.beyondshop.cloud/api/product-attribute-definitions/427fbafe-5dde-414f-8961-56a14614916d
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 501

{
  "name" : "filling_capacity",
  "namespace" : "custom",
  "format" : "#,###.## ml",
  "type" : "NUMBER",
  "displayName" : "Filling Capacity",
  "_id" : "427fbafe-5dde-414f-8961-56a14614916d",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/427fbafe-5dde-414f-8961-56a14614916d"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/427fbafe-5dde-414f-8961-56a14614916d"
    }
  }
}

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/544942cd-e589-4e9a-97a3-7afb5a1bf01d' -i -X DELETE -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

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

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/f3472315-33dd-4965-958c-cff05b7e5afd?locale=en-GB' -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: Fri, 21 Sep 2018 09:11:37 GMT
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 483

{
  "name" : "colour",
  "namespace" : "custom",
  "format" : null,
  "type" : "STRING",
  "displayName" : "Color of the item",
  "_id" : "f3472315-33dd-4965-958c-cff05b7e5afd",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/f3472315-33dd-4965-958c-cff05b7e5afd"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/f3472315-33dd-4965-958c-cff05b7e5afd"
    }
  }
}

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: Fri, 21 Sep 2018 09:11:40 GMT
ETag: "1"
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 472

{
  "name" : "colour",
  "namespace" : "custom",
  "format" : null,
  "type" : "STRING",
  "displayName" : "Colour",
  "_id" : "ead776df-dbb4-461b-a2d3-4f03b2260e7f",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/ead776df-dbb4-461b-a2d3-4f03b2260e7f"
    },
    "product-attribute-definition" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/ead776df-dbb4-461b-a2d3-4f03b2260e7f"
    }
  }
}

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-Frame-Options: DENY
Content-Length: 889

{
  "_embedded" : {
    "product-attribute-definitions" : [ {
      "name" : "colour",
      "namespace" : "custom",
      "format" : null,
      "type" : "STRING",
      "displayName" : "Colour",
      "_id" : "135a8ee6-c4bc-48ce-8c22-e6b7ce992fdc",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/135a8ee6-c4bc-48ce-8c22-e6b7ce992fdc"
        },
        "product-attribute-definition" : {
          "href" : "https://api-shop.beyondshop.cloud/api/product-attribute-definitions/135a8ee6-c4bc-48ce-8c22-e6b7ce992fdc"
        }
      }
    } ]
  },
  "_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/599bae7c-0066-4da7-9737-e4b78e58e751/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-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/599bae7c-0066-4da7-9737-e4b78e58e751"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/599bae7c-0066-4da7-9737-e4b78e58e751/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/599bae7c-0066-4da7-9737-e4b78e58e751/availability/disable-purchasability"
    },
    "adjust-available-stock" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/599bae7c-0066-4da7-9737-e4b78e58e751/availability/adjust-available-stock"
    },
    "update-stock-threshold" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/599bae7c-0066-4da7-9737-e4b78e58e751/availability/update-stock-threshold"
    },
    "disable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/599bae7c-0066-4da7-9737-e4b78e58e751/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/d4b1d0b8-c389-426c-9d09-7be0e4ee4cdd/availability/enable-stock-management?locale=en-GB' -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/d4b1d0b8-c389-426c-9d09-7be0e4ee4cdd/availability
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1027

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : 100,
  "stockThreshold" : 2,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d4b1d0b8-c389-426c-9d09-7be0e4ee4cdd"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d4b1d0b8-c389-426c-9d09-7be0e4ee4cdd/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d4b1d0b8-c389-426c-9d09-7be0e4ee4cdd/availability/disable-purchasability"
    },
    "adjust-available-stock" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d4b1d0b8-c389-426c-9d09-7be0e4ee4cdd/availability/adjust-available-stock"
    },
    "update-stock-threshold" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d4b1d0b8-c389-426c-9d09-7be0e4ee4cdd/availability/update-stock-threshold"
    },
    "disable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/d4b1d0b8-c389-426c-9d09-7be0e4ee4cdd/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/6cbb1c12-22e8-46ee-a8ae-08e0ad832f77/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/6cbb1c12-22e8-46ee-a8ae-08e0ad832f77/availability
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 701

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : null,
  "stockThreshold" : null,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/6cbb1c12-22e8-46ee-a8ae-08e0ad832f77"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/6cbb1c12-22e8-46ee-a8ae-08e0ad832f77/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/6cbb1c12-22e8-46ee-a8ae-08e0ad832f77/availability/disable-purchasability"
    },
    "enable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/6cbb1c12-22e8-46ee-a8ae-08e0ad832f77/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/bee2535b-920a-4823-ab88-30c349919508/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/bee2535b-920a-4823-ab88-30c349919508/availability
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1025

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : 9,
  "stockThreshold" : 2,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bee2535b-920a-4823-ab88-30c349919508"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bee2535b-920a-4823-ab88-30c349919508/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bee2535b-920a-4823-ab88-30c349919508/availability/disable-purchasability"
    },
    "adjust-available-stock" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bee2535b-920a-4823-ab88-30c349919508/availability/adjust-available-stock"
    },
    "update-stock-threshold" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bee2535b-920a-4823-ab88-30c349919508/availability/update-stock-threshold"
    },
    "disable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bee2535b-920a-4823-ab88-30c349919508/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/ca00ba1c-a8c0-4c0b-8fdb-4733b1842f9e/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/ca00ba1c-a8c0-4c0b-8fdb-4733b1842f9e/availability
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 1026

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : 10,
  "stockThreshold" : 5,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ca00ba1c-a8c0-4c0b-8fdb-4733b1842f9e"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ca00ba1c-a8c0-4c0b-8fdb-4733b1842f9e/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ca00ba1c-a8c0-4c0b-8fdb-4733b1842f9e/availability/disable-purchasability"
    },
    "adjust-available-stock" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ca00ba1c-a8c0-4c0b-8fdb-4733b1842f9e/availability/adjust-available-stock"
    },
    "update-stock-threshold" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ca00ba1c-a8c0-4c0b-8fdb-4733b1842f9e/availability/update-stock-threshold"
    },
    "disable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/ca00ba1c-a8c0-4c0b-8fdb-4733b1842f9e/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/04790f79-a6af-43b5-a8de-8c8e6b6e024b/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/04790f79-a6af-43b5-a8de-8c8e6b6e024b/availability
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 701

{
  "availabilityState" : "IN_STOCK",
  "availableStock" : null,
  "stockThreshold" : null,
  "purchasable" : true,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/04790f79-a6af-43b5-a8de-8c8e6b6e024b"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/04790f79-a6af-43b5-a8de-8c8e6b6e024b/availability"
    },
    "disable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/04790f79-a6af-43b5-a8de-8c8e6b6e024b/availability/disable-purchasability"
    },
    "enable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/04790f79-a6af-43b5-a8de-8c8e6b6e024b/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/e0c2e2ec-2324-4994-a7d8-d949f99373a0/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/e0c2e2ec-2324-4994-a7d8-d949f99373a0/availability
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 705

{
  "availabilityState" : "NOT_AVAILABLE",
  "availableStock" : null,
  "stockThreshold" : null,
  "purchasable" : false,
  "_links" : {
    "product" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/e0c2e2ec-2324-4994-a7d8-d949f99373a0"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/e0c2e2ec-2324-4994-a7d8-d949f99373a0/availability"
    },
    "enable-purchasability" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/e0c2e2ec-2324-4994-a7d8-d949f99373a0/availability/enable-purchasability"
    },
    "enable-stock-management" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/e0c2e2ec-2324-4994-a7d8-d949f99373a0/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/5afa96f7-cf7b-422d-b30c-0cc1ae0aaec7/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_GB","type":"STRING","value":"my_test_string_value"}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/products/5afa96f7-cf7b-422d-b30c-0cc1ae0aaec7/attributes
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/bc22b0d7-32cf-4c75-a492-9e89709be385/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

_links

Object

See Hypermedia

page

Object

See Pagination

_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

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-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/bc22b0d7-32cf-4c75-a492-9e89709be385/attributes/_dummy_namespace/_dummy_attr_different_locale?locale=de-DE"
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/bc22b0d7-32cf-4c75-a492-9e89709be385"
        }
      }
    }, {
      "namespace" : "_dummy_namespace",
      "name" : "_dummy_attr_undefined_locale",
      "locale" : "",
      "type" : "NUMBER",
      "value" : 42.0,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/bc22b0d7-32cf-4c75-a492-9e89709be385/attributes/_dummy_namespace/_dummy_attr_undefined_locale?locale="
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/bc22b0d7-32cf-4c75-a492-9e89709be385"
        }
      }
    }, {
      "namespace" : "mbo",
      "name" : "flag",
      "locale" : "",
      "type" : "NUMBER",
      "value" : 42.0,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/bc22b0d7-32cf-4c75-a492-9e89709be385/attributes/mbo/flag?locale="
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/bc22b0d7-32cf-4c75-a492-9e89709be385"
        }
      }
    }, {
      "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/bc22b0d7-32cf-4c75-a492-9e89709be385/attributes/namespace_seo/attr_different_locale?locale=de-DE"
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/bc22b0d7-32cf-4c75-a492-9e89709be385"
        }
      }
    }, {
      "namespace" : "namespace_seo",
      "name" : "attr_undefined_locale",
      "locale" : "",
      "type" : "NUMBER",
      "value" : 42.0,
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/bc22b0d7-32cf-4c75-a492-9e89709be385/attributes/namespace_seo/attr_undefined_locale?locale="
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/bc22b0d7-32cf-4c75-a492-9e89709be385"
        }
      }
    }, {
      "namespace" : "seo",
      "name" : "slug",
      "locale" : "de-DE",
      "type" : "STRING",
      "value" : "mein-produkt",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/bc22b0d7-32cf-4c75-a492-9e89709be385/attributes/seo/slug?locale=de-DE"
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/bc22b0d7-32cf-4c75-a492-9e89709be385"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bc22b0d7-32cf-4c75-a492-9e89709be385/attributes?locale=de-DE"
    },
    "owner" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/bc22b0d7-32cf-4c75-a492-9e89709be385"
    }
  },
  "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/3397d00a-48ee-4c2f-96f5-1386198d86f0/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

_links

Object

See Hypermedia

page

Object

See Pagination

_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

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-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/3397d00a-48ee-4c2f-96f5-1386198d86f0/attributes/seo/slug?locale=en-GB"
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/3397d00a-48ee-4c2f-96f5-1386198d86f0"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/3397d00a-48ee-4c2f-96f5-1386198d86f0/attributes?locale=en-GB"
    },
    "owner" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/3397d00a-48ee-4c2f-96f5-1386198d86f0"
    }
  },
  "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/575b548a-d7db-48ab-a15b-279dd9a719f4/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

_links

Object

See Hypermedia

page

Object

See Pagination

_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

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-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/575b548a-d7db-48ab-a15b-279dd9a719f4/attributes/namespace_seo/attr_different_locale?locale=de-DE"
        },
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/575b548a-d7db-48ab-a15b-279dd9a719f4"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/575b548a-d7db-48ab-a15b-279dd9a719f4/attributes/namespace_seo/attr_different_locale?locale=de-DE"
    },
    "owner" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/575b548a-d7db-48ab-a15b-279dd9a719f4"
    }
  },
  "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/b2e6b668-2a2c-4929-8fe8-92b722cea319/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-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/2f0a6cef-a62b-4c4a-89ee-8922ee79bbbd/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-Frame-Options: DENY
Content-Length: 1927

{
  "_embedded" : {
    "images" : [ {
      "_id" : "7904d4c9-3a36-46f3-a95f-491fa684211e",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/2f0a6cef-a62b-4c4a-89ee-8922ee79bbbd/images/7904d4c9-3a36-46f3-a95f-491fa684211e"
        },
        "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/2f0a6cef-a62b-4c4a-89ee-8922ee79bbbd/images/7904d4c9-3a36-46f3-a95f-491fa684211e"
        }
      }
    }, {
      "_id" : "261c9c9e-b0ce-4a7f-918c-7e5124bdd276",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/products/2f0a6cef-a62b-4c4a-89ee-8922ee79bbbd/images/261c9c9e-b0ce-4a7f-918c-7e5124bdd276"
        },
        "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/2f0a6cef-a62b-4c4a-89ee-8922ee79bbbd/images/261c9c9e-b0ce-4a7f-918c-7e5124bdd276"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/2f0a6cef-a62b-4c4a-89ee-8922ee79bbbd/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/1910bd09-24a0-4ab1-a545-246ae9a2a7b6/images/4f04315f-8a00-4b9f-9c6e-c4d87995bde7' -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-Frame-Options: DENY
Content-Length: 747

{
  "_id" : "4f04315f-8a00-4b9f-9c6e-c4d87995bde7",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/1910bd09-24a0-4ab1-a545-246ae9a2a7b6/images/4f04315f-8a00-4b9f-9c6e-c4d87995bde7"
    },
    "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/1910bd09-24a0-4ab1-a545-246ae9a2a7b6/images/4f04315f-8a00-4b9f-9c6e-c4d87995bde7"
    }
  }
}

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/3e4d8868-3446-4d9c-8086-68be88f69c61/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/3e4d8868-3446-4d9c-8086-68be88f69c61/images/57dc353e-7aef-4fed-9b29-54ffcf294d9a
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 747

{
  "_id" : "57dc353e-7aef-4fed-9b29-54ffcf294d9a",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/3e4d8868-3446-4d9c-8086-68be88f69c61/images/57dc353e-7aef-4fed-9b29-54ffcf294d9a"
    },
    "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/3e4d8868-3446-4d9c-8086-68be88f69c61/images/57dc353e-7aef-4fed-9b29-54ffcf294d9a"
    }
  }
}

Upload product image

A POST request is used to upload an image and add it to a product. The body of the request must contain the content of the image.

Required scopes

prod:u

Example request

$ curl --data-binary '@/home/epages/file.png' 'https://api-shop.beyondshop.cloud/api/products/4125b993-49fc-47c8-b9b3-76d8871e4e06/images?fileName=file.png' -X POST -H 'Content-Type: image/png' -H 'Authorization: Bearer <Access token>'

Request parameters

Parameter Description

fileName

The image’s file name

Request header properties

Name Description

Content-Type

The image’s Content Type. Can be image/png, image/jpeg or image/gif

Response body properties

Path Type Description

_id

String

The immutable, unique identifier of the requested resource.

_links

Object

See Hypermedia

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/products/cfd4c4a5-f486-43dd-82b8-27f8c76406fc/images/5a8da5b9-584e-487f-8042-0b9a20356cec
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 735

{
  "_id" : "5a8da5b9-584e-487f-8042-0b9a20356cec",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/cfd4c4a5-f486-43dd-82b8-27f8c76406fc/images/5a8da5b9-584e-487f-8042-0b9a20356cec"
    },
    "data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/sample.png?hash=80d4ab42cfd7823b34e4ad406d9bc470d5d13298{&width,height,upscale}",
      "templated" : true
    },
    "metadata" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/sample.png?hash=80d4ab42cfd7823b34e4ad406d9bc470d5d13298&download=no"
    },
    "image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/products/cfd4c4a5-f486-43dd-82b8-27f8c76406fc/images/5a8da5b9-584e-487f-8042-0b9a20356cec"
    }
  }
}

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/500123a7-ec9d-4868-a035-39a52c401c2c/images/1437c48d-41e8-4f84-8581-c82b2016adcc' -i -X DELETE -H 'Content-Type: application/hal+json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>'

Example response

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

Assign product image as default image

A PUT request is used to assign a product image as the default image. The request contains a single URI of the image to assign.

Required scopes

prod:u

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/products/76fc0efd-fff1-44dc-a924-1eb49e913b35/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/f3c277cc-9f5d-4974-b3a9-244fcd2a4b2d'

Example response

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

Product Settings

The product-settings resource is used to manage product related settings.

Show product settings

A GET request is used to retrieve the product settings.

Required scopes

prst:r

Example request

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

Response body properties

Path Type Description

listPriceText

String

The text that comes along with the list price. Can be either labeling the original price, or deviations from that, such as e.g. a discount treatment or the recommended retail price.

_links

Object

See Hypermedia

Links

Relation Description

Example response

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

{
  "listPriceText" : "VAT",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-settings"
    }
  }
}

Update product settings (json patch)

A PATCH request is issued to update the product settings partially with json patch content type.

Required scopes

prst:u

Request body properties

Path Type Description

.[]

Array

A list of JSON Patch operations.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/product-settings' -i -X PATCH -H 'Content-Type: application/json-patch+json' -H 'Authorization: Bearer <Access token>' -d '[ {
  "op" : "replace",
  "path" : "/listPriceText",
  "value" : "Original Price"
} ]'

Response body properties

Path Type Description

listPriceText

String

The text that comes along with the list price. Can be either labeling the original price, or deviations from that, such as e.g. a discount treatment or the recommended retail price.

_links

Object

See Hypermedia

Example response

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

{
  "listPriceText" : "Original Price",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/product-settings"
    }
  }
}

Scopes

List scopes

A GET request will list all scopes in the system.

Required scopes

scop:r

Example request

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

Response body properties

Path Type Description

_embedded.scopes

Array

All scopes granted by this role.

_links

Object

See Hypermedia

page

Object

See Pagination

Links

Relation Description

Example response

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

{
  "_embedded" : {
    "scopes" : [ {
      "name" : "ordr:r",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/scopes/1a6363f7-e97c-416d-821e-9a5a0be4ea87"
        },
        "scope" : {
          "href" : "https://api-shop.beyondshop.cloud/api/scopes/1a6363f7-e97c-416d-821e-9a5a0be4ea87{?projection}",
          "templated" : true
        }
      }
    }, {
      "name" : "ordr:u",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/scopes/93e591c8-04ee-40b9-b0bf-928f966a5149"
        },
        "scope" : {
          "href" : "https://api-shop.beyondshop.cloud/api/scopes/93e591c8-04ee-40b9-b0bf-928f966a5149{?projection}",
          "templated" : true
        }
      }
    }, {
      "name" : "prod:c",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/scopes/d1ea37da-c643-4120-a788-786ba21887af"
        },
        "scope" : {
          "href" : "https://api-shop.beyondshop.cloud/api/scopes/d1ea37da-c643-4120-a788-786ba21887af{?projection}",
          "templated" : true
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/scopes{?page,size,sort,projection}",
      "templated" : true
    },
    "profile" : {
      "href" : "https://api-shop.beyondshop.cloud/api/profile/scopes"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 3,
    "totalPages" : 1,
    "number" : 0
  }
}

Shipping Methods

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/098d35ec-b327-4442-a77f-738b1115b88f/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/aa4efc15-0aa5-49c1-bc61-5734b7aaa7ce/shipping-methods/946e9591-ddfc-447e-974c-59ea70c2f25e'

Example response

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

{
  "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" : "946e9591-ddfc-447e-974c-59ea70c2f25e",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/aa4efc15-0aa5-49c1-bc61-5734b7aaa7ce/shipping-methods/946e9591-ddfc-447e-974c-59ea70c2f25e"
          }
        }
      }
    }
  },
  "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/b3e59e5c-37e8-4db3-ab3b-c63415294176"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/b3e59e5c-37e8-4db3-ab3b-c63415294176"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/b3e59e5c-37e8-4db3-ab3b-c63415294176/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/b3e59e5c-37e8-4db3-ab3b-c63415294176/payment-integration"
          }
        },
        "_id" : "b3e59e5c-37e8-4db3-ab3b-c63415294176"
      }
    }
  },
  "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
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : true,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : true
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/098d35ec-b327-4442-a77f-738b1115b88f"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/098d35ec-b327-4442-a77f-738b1115b88f/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/098d35ec-b327-4442-a77f-738b1115b88f/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/098d35ec-b327-4442-a77f-738b1115b88f/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/098d35ec-b327-4442-a77f-738b1115b88f/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/098d35ec-b327-4442-a77f-738b1115b88f/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/098d35ec-b327-4442-a77f-738b1115b88f/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/098d35ec-b327-4442-a77f-738b1115b88f/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/098d35ec-b327-4442-a77f-738b1115b88f/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/098d35ec-b327-4442-a77f-738b1115b88f/shipping-address"
    },
    "place-order" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/098d35ec-b327-4442-a77f-738b1115b88f/order"
    }
  },
  "_id" : "098d35ec-b327-4442-a77f-738b1115b88f"
}

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/c3a1a8ac-4231-4853-bc46-9cdc8789be03/shipping-methods/default' -i -X PUT -H 'Content-Type: application/json' -H 'Accept: application/json'

Example response

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

{
  "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" : "16250318-6295-4075-bb1f-bb4a43cf9a0f",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2ae42282-ee5d-4669-9e75-4c0d3cefafcb/shipping-methods/16250318-6295-4075-bb1f-bb4a43cf9a0f"
          }
        }
      }
    }
  },
  "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/087f6dae-6788-469a-9ba3-0b9b794e6031"
          },
          "payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/087f6dae-6788-469a-9ba3-0b9b794e6031"
          },
          "deactivate-payment-method" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/087f6dae-6788-469a-9ba3-0b9b794e6031/deactivate"
          },
          "payment-integration" : {
            "href" : "https://api-shop.beyondshop.cloud/api/payment-methods/087f6dae-6788-469a-9ba3-0b9b794e6031/payment-integration"
          }
        },
        "_id" : "087f6dae-6788-469a-9ba3-0b9b794e6031"
      }
    }
  },
  "billingAddress" : null,
  "shippingAddress" : null,
  "subtotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "grandTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "balanceDue" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "netTotal" : {
    "currency" : "EUR",
    "amount" : 21.99
  },
  "taxTotal" : {
    "currency" : "EUR",
    "amount" : 0
  },
  "taxes" : [ ],
  "taxable" : true,
  "minimumOrderValue" : {
    "currency" : "EUR",
    "amount" : 12
  },
  "mustAcceptTermsAndConditions" : false,
  "weight" : 0,
  "checkoutState" : {
    "shippingMethodValid" : true,
    "shippingMethodSelectable" : true,
    "paymentMethodValid" : true,
    "paymentMethodSelectable" : true,
    "billingAddressSet" : false,
    "priceValidToOrder" : true,
    "paymentTransactionStatus" : "NO_APPROVAL_NEEDED",
    "readyToOrder" : false
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c3a1a8ac-4231-4853-bc46-9cdc8789be03"
    },
    "line-items" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c3a1a8ac-4231-4853-bc46-9cdc8789be03/line-items"
    },
    "shipping-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c3a1a8ac-4231-4853-bc46-9cdc8789be03/shipping-methods"
    },
    "shipping-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c3a1a8ac-4231-4853-bc46-9cdc8789be03/shipping-methods/default"
    },
    "shipping-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c3a1a8ac-4231-4853-bc46-9cdc8789be03/shipping-methods/current"
    },
    "payment-method-available" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c3a1a8ac-4231-4853-bc46-9cdc8789be03/payment-methods"
    },
    "payment-method-default" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c3a1a8ac-4231-4853-bc46-9cdc8789be03/payment-methods/default"
    },
    "payment-method-current" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c3a1a8ac-4231-4853-bc46-9cdc8789be03/payment-methods/current"
    },
    "billing-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c3a1a8ac-4231-4853-bc46-9cdc8789be03/billing-address"
    },
    "shipping-address" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/c3a1a8ac-4231-4853-bc46-9cdc8789be03/shipping-address"
    }
  },
  "_id" : "c3a1a8ac-4231-4853-bc46-9cdc8789be03"
}

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/9adfb085-8416-46af-b2ca-cb680b6e22b5/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-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" : "70d530de-5e94-48c3-ba70-205514164272",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/3959c0f1-fb55-40e2-a697-86e08eadbdab/shipping-methods/70d530de-5e94-48c3-ba70-205514164272"
    }
  }
}

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/dc181cd5-2fde-401c-8eb9-736f7024e31a/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-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" : "16f71766-82c9-4e2f-9a0b-8a88416d5052",
          "_links" : {
            "self" : {
              "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/cb5a1d11-f961-4146-8230-b5dae21446f7/shipping-methods/16f71766-82c9-4e2f-9a0b-8a88416d5052"
            }
          }
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/carts/dc181cd5-2fde-401c-8eb9-736f7024e31a/shipping-methods"
    }
  }
}

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/ca5f42af-28ef-4eb1-b109-8f931ea49a62' -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-Frame-Options: DENY
Content-Length: 1048

{
  "name" : "BE-NL-LU",
  "serviceableCountries" : [ "NL", "BE", "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" : "5507e8b3-e9da-42ba-8daf-ee1faead38ef",
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/ca5f42af-28ef-4eb1-b109-8f931ea49a62/shipping-methods/5507e8b3-e9da-42ba-8daf-ee1faead38ef"
      }
    }
  } ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/ca5f42af-28ef-4eb1-b109-8f931ea49a62"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/ca5f42af-28ef-4eb1-b109-8f931ea49a62/shipping-methods"
    }
  },
  "_id" : "ca5f42af-28ef-4eb1-b109-8f931ea49a62"
}

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/f9317fc1-2b75-4600-a7f4-700aae45f6ca
Content-Type: application/hal+json;charset=UTF-8
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/f9317fc1-2b75-4600-a7f4-700aae45f6ca"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/f9317fc1-2b75-4600-a7f4-700aae45f6ca/shipping-methods"
    }
  },
  "_id" : "f9317fc1-2b75-4600-a7f4-700aae45f6ca"
}

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/e1d0022f-6a31-4b92-b6ef-ed2af2dbff5d' -i -X PUT -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>' -d '{
  "name" : "BENELUX region",
  "serviceableCountries" : [ "BE", "NL", "LU", "DE" ]
}'

Example response

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

{
  "name" : "BENELUX region",
  "serviceableCountries" : [ "DE", "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" : "702e4d5e-31c4-4d48-bda7-bda4311760cd",
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e1d0022f-6a31-4b92-b6ef-ed2af2dbff5d/shipping-methods/702e4d5e-31c4-4d48-bda7-bda4311760cd"
      }
    }
  } ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e1d0022f-6a31-4b92-b6ef-ed2af2dbff5d"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e1d0022f-6a31-4b92-b6ef-ed2af2dbff5d/shipping-methods"
    }
  },
  "_id" : "e1d0022f-6a31-4b92-b6ef-ed2af2dbff5d"
}

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/08bcffd4-7997-481d-b1a0-c4c5889255ee' -i -X DELETE -H 'Authorization: Bearer <Access token>'

Example response

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

List shipping zones

A GET request is used to list all shipping zones in a paged manner.

Required scopes

shpz:r

Example request

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

Example response

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

{
  "_embedded" : {
    "shipping-zones" : [ {
      "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" : "37b47348-a0e7-45a0-81e6-4de1ddc41f41",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/484177ab-7964-4da7-ba57-8c6f4c0b2a5b/shipping-methods/37b47348-a0e7-45a0-81e6-4de1ddc41f41"
          }
        }
      } ],
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/484177ab-7964-4da7-ba57-8c6f4c0b2a5b"
        },
        "shipping-methods" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/484177ab-7964-4da7-ba57-8c6f4c0b2a5b/shipping-methods"
        }
      },
      "_id" : "484177ab-7964-4da7-ba57-8c6f4c0b2a5b"
    }, {
      "name" : "BE-NL-LU",
      "serviceableCountries" : [ "NL", "BE", "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" : "0d0f9270-a9f4-4399-a441-af11ba6180f6",
        "_links" : {
          "self" : {
            "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/6da37cb7-153b-420e-a7ef-61adfb6f4781/shipping-methods/0d0f9270-a9f4-4399-a441-af11ba6180f6"
          }
        }
      } ],
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/6da37cb7-153b-420e-a7ef-61adfb6f4781"
        },
        "shipping-methods" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/6da37cb7-153b-420e-a7ef-61adfb6f4781/shipping-methods"
        }
      },
      "_id" : "6da37cb7-153b-420e-a7ef-61adfb6f4781"
    } ]
  },
  "_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/40a67e72-2b0a-40de-9d1c-992c3319ae42
https://api-shop.beyondshop.cloud/api/shipping-zones/5be90517-b367-45cf-aeb8-397fcdf43899
https://api-shop.beyondshop.cloud/api/shipping-zones/41c746c8-844e-4eee-86b2-c866f9777d2b'

Example response

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

Show details of shipping method in shipping zone

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

Required scopes

shpz:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/5bb6025c-3b4c-4441-8b25-a350d9f047d9/shipping-methods/e93c9a1f-f8e4-4123-a682-1834a2ab8a24' -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-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" : "e93c9a1f-f8e4-4123-a682-1834a2ab8a24",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/5bb6025c-3b4c-4441-8b25-a350d9f047d9/shipping-methods/e93c9a1f-f8e4-4123-a682-1834a2ab8a24"
    }
  }
}

Required scopes

shpz:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shipping-zones/0251d6ae-1183-4184-9640-fc5e67393d2e/shipping-methods/f4175ba5-849a-406e-a6c2-f5643be1092e' -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-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" : "f4175ba5-849a-406e-a6c2-f5643be1092e",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/0251d6ae-1183-4184-9640-fc5e67393d2e/shipping-methods/f4175ba5-849a-406e-a6c2-f5643be1092e"
    }
  }
}

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/d09bf814-53e9-4ecc-9b36-6da9e37d3e3d/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/d09bf814-53e9-4ecc-9b36-6da9e37d3e3d/shipping-methods/e41053ad-1dba-4077-a985-98ef4332a66b
Content-Type: application/hal+json;charset=UTF-8
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" : "d181d39d-12b1-40e0-a6ea-e3809ac808a2",
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/d09bf814-53e9-4ecc-9b36-6da9e37d3e3d/shipping-methods/d181d39d-12b1-40e0-a6ea-e3809ac808a2"
      }
    }
  }, {
    "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" : "e41053ad-1dba-4077-a985-98ef4332a66b",
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/d09bf814-53e9-4ecc-9b36-6da9e37d3e3d/shipping-methods/e41053ad-1dba-4077-a985-98ef4332a66b"
      }
    }
  } ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/d09bf814-53e9-4ecc-9b36-6da9e37d3e3d"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/d09bf814-53e9-4ecc-9b36-6da9e37d3e3d/shipping-methods"
    }
  },
  "_id" : "d09bf814-53e9-4ecc-9b36-6da9e37d3e3d"
}

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/12829225-2ce1-49e3-ad6d-f915ae8b1674/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/12829225-2ce1-49e3-ad6d-f915ae8b1674/shipping-methods/22d683f7-97ec-48e8-bba7-18e6012bbfc6
Content-Type: application/hal+json;charset=UTF-8
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" : "4e620950-d804-44c7-960b-2ed98a5bb240",
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/12829225-2ce1-49e3-ad6d-f915ae8b1674/shipping-methods/4e620950-d804-44c7-960b-2ed98a5bb240"
      }
    }
  }, {
    "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" : "22d683f7-97ec-48e8-bba7-18e6012bbfc6",
    "_links" : {
      "self" : {
        "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/12829225-2ce1-49e3-ad6d-f915ae8b1674/shipping-methods/22d683f7-97ec-48e8-bba7-18e6012bbfc6"
      }
    }
  } ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/12829225-2ce1-49e3-ad6d-f915ae8b1674"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/12829225-2ce1-49e3-ad6d-f915ae8b1674/shipping-methods"
    }
  },
  "_id" : "12829225-2ce1-49e3-ad6d-f915ae8b1674"
}

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/2a8002b1-74d8-486f-aab4-e8407342996d/shipping-methods/faef9de0-44b1-4de6-bb2a-320ff9dd0c08' -i -X DELETE -H 'Authorization: Bearer <Access token>'

Example response

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

{
  "name" : "BE-NL-LU",
  "serviceableCountries" : [ "NL", "BE", "LU" ],
  "position" : 2,
  "shippingMethods" : [ ],
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2a8002b1-74d8-486f-aab4-e8407342996d"
    },
    "shipping-methods" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/2a8002b1-74d8-486f-aab4-e8407342996d/shipping-methods"
    }
  },
  "_id" : "2a8002b1-74d8-486f-aab4-e8407342996d"
}

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/a88ef214-d7b2-4903-90f0-d490f589e5f3/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-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" : "61867327-79e9-4398-a4f8-63ff3e46453c",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/a88ef214-d7b2-4903-90f0-d490f589e5f3/shipping-methods/61867327-79e9-4398-a4f8-63ff3e46453c"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/a88ef214-d7b2-4903-90f0-d490f589e5f3/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/e68bae49-4dcd-4aeb-abbe-3d352321005f/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-Frame-Options: DENY
Content-Length: 3405

{
  "_embedded" : {
    "shipping-methods" : [ {
      "name" : "Standard Shipping 2-0",
      "description" : "Standard Shipping",
      "taxClass" : "REGULAR",
      "position" : 0,
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 2
      },
      "weightBasedPrice" : null,
      "_id" : "7fbaa807-ab3b-4c66-babb-84571b834118",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e68bae49-4dcd-4aeb-abbe-3d352321005f/shipping-methods/7fbaa807-ab3b-4c66-babb-84571b834118"
        }
      }
    }, {
      "name" : "Standard Shipping 2-4",
      "description" : "Standard Shipping",
      "taxClass" : "REGULAR",
      "position" : 1,
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 2
      },
      "weightBasedPrice" : null,
      "_id" : "d7d009d1-2942-45f8-a73a-7e7be4d57fd9",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e68bae49-4dcd-4aeb-abbe-3d352321005f/shipping-methods/d7d009d1-2942-45f8-a73a-7e7be4d57fd9"
        }
      }
    }, {
      "name" : "Standard Shipping 2-3",
      "description" : "Standard Shipping",
      "taxClass" : "REGULAR",
      "position" : 2,
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 2
      },
      "weightBasedPrice" : null,
      "_id" : "6540c362-9714-4794-b132-26641fb45750",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e68bae49-4dcd-4aeb-abbe-3d352321005f/shipping-methods/6540c362-9714-4794-b132-26641fb45750"
        }
      }
    }, {
      "name" : "Standard Shipping 2-2",
      "description" : "Standard Shipping",
      "taxClass" : "REGULAR",
      "position" : 3,
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 2
      },
      "weightBasedPrice" : null,
      "_id" : "7c6c2b09-ab01-4460-82d0-b9f1fe755ced",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e68bae49-4dcd-4aeb-abbe-3d352321005f/shipping-methods/7c6c2b09-ab01-4460-82d0-b9f1fe755ced"
        }
      }
    }, {
      "name" : "Standard Shipping 2-1",
      "description" : "Standard Shipping",
      "taxClass" : "REGULAR",
      "position" : 4,
      "freeShippingValue" : {
        "currency" : "EUR",
        "amount" : 400
      },
      "fixedPrice" : {
        "taxModel" : "GROSS",
        "currency" : "EUR",
        "amount" : 2
      },
      "weightBasedPrice" : null,
      "_id" : "054cbaab-7f75-468c-8f59-a1912ef1500b",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e68bae49-4dcd-4aeb-abbe-3d352321005f/shipping-methods/054cbaab-7f75-468c-8f59-a1912ef1500b"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shipping-zones/e68bae49-4dcd-4aeb-abbe-3d352321005f/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-Frame-Options: DENY
Content-Length: 428

{
  "_embedded" : {
    "countryCodes" : [ {
      "countryCode" : "DE"
    }, {
      "countryCode" : "BE"
    }, {
      "countryCode" : "LU"
    }, {
      "countryCode" : "NL"
    } ]
  },
  "_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

This resource represents the requests to manage the merchant’s shop address.

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-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",
  "state" : "Essence",
  "country" : "GB",
  "_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-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",
  "state" : "Essence",
  "country" : "GB",
  "_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

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-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",
  "state" : "Essence",
  "country" : "GB",
  "_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"
    }
  }
}

This resource is used to manage the attributes of a shop. Shop attributes are bound to clients. Clients receive specific scopes in advance to being able to either read or write shop attributes. What’s more, the client decides if a respective attribute should be public or private.

Example: Let’s say, the client is the Beyond Cockpit (the administration platform of a Beyond shop). This client sets the attribute value = autogenerate-sku to public = true. Only that client is allowed to write that attribute, but thus allows read-access for other clients.

Create shop attribute

A POST request is used to create a shop attribute.

Required scopes

shat:c

Request body properties

Path Type Description Constraints

name

String

The name of the shop attribute, e.g. default-sorting-products.

Length must be between 1 and 255 inclusive. Must not be null

value

String

The value of the shop attribute. Assuming the attribute name to be default-sorting-products, the value can be e.g. asc.

Length must be between 1 and 4095 inclusive. Must not be null

public

Boolean

Indicates if the attribute can be read by other clients. Can be true or false.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop/attributes' -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>' -d '{
  "name" : "second-unknown-attribute-name",
  "value" : "correct-value",
  "public" : false
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/shop/attributes/second-unknown-attribute-name
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 316

{
  "name" : "second-unknown-attribute-name",
  "value" : "correct-value",
  "public" : false,
  "readOnly" : false,
  "_links" : {
    "owner" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/attributes/second-unknown-attribute-name"
    }
  }
}

Show shop attribute details

A GET request is used to retrieve a particular shop attribute by its name.

Required scopes

shat:r

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop/attributes/second-unknown-attribute-name' -i -H 'Authorization: Bearer <Access token>'

Response body properties

Path Type Description

name

String

The name of the shop attribute, e.g. default-sorting-products.

value

String

The value of the shop attribute. Assuming the attribute name to be default-sorting-products, the value can be e.g. asc.

public

Boolean

Indicates if the attribute can be read by other clients. Can be true or false.

readOnly

Boolean

Indicates if the client interacting with the endpoint is allowed to modify the attribute. Can be true or false.

_links

Object

See Hypermedia

Example response

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

{
  "name" : "second-unknown-attribute-name",
  "value" : "correct-value",
  "public" : false,
  "readOnly" : false,
  "_links" : {
    "owner" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/attributes/second-unknown-attribute-name"
    }
  }
}

List shop attributes

A GET request is used to retrieve a list of all shop attributes.

Required scopes

shat:r

Example request

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

Response body properties

Path Type Description

_embedded.attributes

Array

A collection of shop attributes.

_embedded.attributes[*].name

String

The name of the shop attribute, e.g. default-sorting-products.

_embedded.attributes[*].value

String

The value of the shop attribute. Assuming the attribute name to be default-sorting-products, the value can be e.g. asc.

_embedded.attributes[*].public

Boolean

Indicates if the attribute can be read by other clients. Can be true or false.

_embedded.attributes[*].readOnly

Boolean

Indicates if the client interacting with the endpoint is allowed to modify the attribute. Can be true or false.

_links

Object

See Hypermedia

page

Object

See Pagination

Example response

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

{
  "_embedded" : {
    "attributes" : [ {
      "name" : "second-unknown-attribute-name",
      "value" : "correct-value",
      "public" : false,
      "readOnly" : false,
      "_links" : {
        "owner" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shop"
        },
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shop/attributes/second-unknown-attribute-name"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/attributes?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Update shop attribute

A PUT request is used to update a shop attribute. This operation is idempotent and will create a new shop attribute if required.

Required scopes

shat:u

Request body properties

Path Type Description Constraints

value

String

The value of the shop attribute. Assuming the attribute name to be default-sorting-products, the value can be e.g. asc.

Length must be between 1 and 4095 inclusive. Must not be null

public

Boolean

Indicates if the attribute can be read by other clients. Can be true or false.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop/attributes/second-unknown-attribute-name' -i -X PUT -H 'Content-Type: application/json' -H 'Authorization: Bearer <Access token>' -d '{
  "value" : "new-value",
  "public" : false
}'

Response body properties

Path Type Description

name

String

The name of the shop attribute, e.g. default-sorting-products.

value

String

The value of the shop attribute. Assuming the attribute name to be default-sorting-products, the value can be e.g. asc.

public

Boolean

Indicates if the attribute can be read by other clients. Can be true or false.

readOnly

Boolean

Indicates if the client interacting with the endpoint is allowed to modify the attribute. Can be true or false.

_links

Object

See Hypermedia

Example response

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

{
  "name" : "second-unknown-attribute-name",
  "value" : "new-value",
  "public" : false,
  "readOnly" : false,
  "_links" : {
    "owner" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop"
    },
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/attributes/second-unknown-attribute-name"
    }
  }
}

Delete shop attribute

A DELETE request is used to delete an shop attribute.

Required scopes

shat:d

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop/attributes/second-unknown-attribute-name' -i -X DELETE -H 'Authorization: Bearer <Access token>'

Example response

HTTP/1.1 204 No Content
Content-Type: application/hal+json;charset=UTF-8
X-Frame-Options: DENY
Content-Length: 4

null

This resource is used to manage the images of a shop.

List shop images

A GET request is used to retrieve the images of a shop.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop/images' -i -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_embedded

Object

List of images

_links

Object

See Hypermedia

page

Object

See Pagination

Example response

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

{
  "_embedded" : {
    "images" : [ {
      "label" : "logo",
      "_id" : "77871b4e-082f-426e-bcf3-6013539a8655",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shop/images/77871b4e-082f-426e-bcf3-6013539a8655"
        },
        "image" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shop/images/77871b4e-082f-426e-bcf3-6013539a8655"
        },
        "data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/file.png?hash=212-2323-4343{&width,height,upscale}",
          "templated" : true
        },
        "metadata" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/file.png?hash=212-2323-4343&download=no"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/images?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

Show shop image details

A GET request is used to retrieve a single shop image.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop/images/32115ae0-967c-41b7-81a0-7490d2913676' -i -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_id

String

The unique identifier of the image (cannot be changed).

_links

Object

See Hypermedia

label

String

The label of the image that is used to state the purpose of the image. The labels 'logo' and 'fav-icon' can only be assigned once, and have a special meaning. The image with label 'logo' is used as the shop logo. The image with label 'fav-icon' is used as the fav icon of the shop.

Links

Relation Description

image

The absolute URI to the image.

data

The absolute URI to retrieve the binary image.

metadata

The absolute URI to retrieve the metadata of the image.

Example response

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

{
  "label" : "logo",
  "_id" : "32115ae0-967c-41b7-81a0-7490d2913676",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/images/32115ae0-967c-41b7-81a0-7490d2913676"
    },
    "image" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/images/32115ae0-967c-41b7-81a0-7490d2913676"
    },
    "data" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/file.png?hash=212-2323-4343{&width,height,upscale}",
      "templated" : true
    },
    "metadata" : {
      "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/file.png?hash=212-2323-4343&download=no"
    }
  }
}

Create shop image

A POST request is used to create a shop image.

Required scopes

shim:c

Request body properties

Path Type Description Constraints

dataUri

String

The encoded relative URI of the image.

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

label

String

The label of the image that is used to state the purpose of the image. The labels 'logo' and 'fav-icon' can only be assigned once, and have a special meaning. The image with label 'logo' is used as the shop logo. The image with label 'fav-icon' is used as the fav icon of the shop.

Must not be empty

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop/images' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/hal+json' -H 'Authorization: Bearer <Access token>' -d '{
  "dataUri" : "file.png?hash=212-2323-4343",
  "label" : "logo"
}'

Example response

HTTP/1.1 201 Created
Location: https://api-shop.beyondshop.cloud/api/shop/images/5a98d643-7aee-4b12-8f50-232edc8ecf39
X-Frame-Options: DENY

Delete shop image

A DELETE request is used to delete a shop image.

Required scopes

shim:d

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop/images/b5c21bec-e203-4d83-a8dd-5ca1c5c22f0e' -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-Frame-Options: DENY

Find shop images by label

A GET request is issued to search for shop images by label.

Request parameters

Parameter Description

label

The label to use in order to find specific images.

Example request

$ curl 'https://api-shop.beyondshop.cloud/api/shop/images/search/find-by-label?label=logo' -i -H 'Accept: application/hal+json'

Response body properties

Path Type Description

_links

Object

See Hypermedia

page

Object

See Pagination

_embedded

Object

List of images

Example response

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

{
  "_embedded" : {
    "images" : [ {
      "label" : "logo",
      "_id" : "43d84d3f-851c-4c98-8062-336b3bdca31d",
      "_links" : {
        "self" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shop/images/43d84d3f-851c-4c98-8062-336b3bdca31d"
        },
        "image" : {
          "href" : "https://api-shop.beyondshop.cloud/api/shop/images/43d84d3f-851c-4c98-8062-336b3bdca31d"
        },
        "data" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/file.png?hash=212-2323-4343{&width,height,upscale}",
          "templated" : true
        },
        "metadata" : {
          "href" : "https://api-shop.beyondshop.cloud/api/api/core-storage/images/file.png?hash=212-2323-4343&download=no"
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/images/search/find-by-label?page=0&size=20"
    }
  },
  "page" : {
    "size" : 20,
    "totalElements" : 1,
    "totalPages" : 1,
    "number" : 0
  }
}

A GET request is used to retrieve the details of the legal resource.

Required scopes

legl:r

Example request

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

Response body properties

Path Type Description

vatId

String

The VAT identifier of the shop.

commercialRegister

String

The commercial register the merchant is registered at.

commercialRegisterNumber

String

The commercial register number of the merchant.

country

String

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

_links

Object

See Hypermedia

Links

Relation Description

legal

The link to the legal 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-Frame-Options: DENY
Content-Length: 362

{
  "commercialRegister" : "HRB",
  "commercialRegisterNumber" : "120861",
  "vatId" : "DE999999999",
  "country" : "GB",
  "_links" : {
    "self" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/legal"
    },
    "legal" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop/legal"
    },
    "owner" : {
      "href" : "https://api-shop.beyondshop.cloud/api/shop"
    }
  }
}

A PATCH request is used to update a legal resource partially with json patch content type.

Required scopes

legl:u

Example request

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

Response body properties

Path Type Description

vatId

String