1. Products & Combinations
Example be.open API
  • be.open API
    • be.open API
    • Samples
    • Auth
      • Get api auth token
    • Attributes & Options
      • attributes
        • get country options of a product
      • get all available attributes
      • create or update an attribute
      • get a single attribute by id
      • adds or updates an option
      • list attribute categories
      • returns options for an attribute type of a service provider
    • Basket
      • get Basket
    • Price
      • get Price list
    • Categories
      • get product categories
      • Returns the products of a category.
    • Products & Combinations
      • get product configuration
        POST
      • get option configuration
        POST
      • get product attributes
        GET
      • get product independent attributes
        GET
      • Returns the products.
        GET
      • adds or updates a product with attributes, options and combinations.
        POST
      • Returns the single product.
        GET
      • adds or updates attributes, options and combinations of a product. Used to import combinations in parts
        POST
      • delete combinations.
        DELETE
      • get country attribute with options
        GET
    • Serviceprovider
      • change attribute settings just for this service provider
      • change option settings just for this service provider
      • change attribute category setting just for this service provider
      • list orders for a service provider
      • get an order for a service provider
      • update order status from service provider
    • Order
      • create an order
      • get order
    • change attribute category setting just for this service provider
      PATCH
    • change attribute category setting just for this service provider
      PATCH
    • Schemas
      • Schemas
        • Attribute
        • AttributeCategory
        • CategoryModel
        • Product
        • BasicOrder
        • Order
        • Option
        • ProductMetaInformation
        • Client
        • OrderDetail
        • OrderCustomField
        • OrderFile
        • OrderUpload
        • File
        • PartialDelivery
        • OrderDetailFile
        • ProductCombination
        • Address
        • OrderDetailPrice
        • OrderDetailCombination
        • Address2
        • PriceConfiguration
        • Currency
        • ConfigurationOption
        • Price
        • ConfigurationOptionSize
      • Improved Schemas
        • ExampleAttributesCollection
        • Attribute
        • AttributeMetaData
        • Category
      • Responses
      • Custom Schemas
        • UpdateServiceproviderOrderResponse
      • AttributeOption
      • CreateProduct
      • QuantityShipping
      • QuantityDelivery
      • DeleteQuantityShipping
      • placedOrder
      • DeleteQuantityDelivery
      • Authentication
      • AuthenticationResponse
      • CreateAttribute
      • CreateOption
      • CreateProductCombination
      • DeleteProductCombination
      • ProductTypeData
      • DependableAttribute
      • ProductVariant
      • DeleteProductVariant
      • ServiceproviderOrderDetail
      • DependableOption
      • ProductQuantity
      • ProductAttribute
      • DeleteProductQuantity
      • OrderDetailPage
      • OptionOfAttribute
      • ProductResponse
      • LooseLeafData
      • AttributeResponse
      • OrderResponse
      • OrderDetailResponse
      • OrderAttributeOption
      • BasketPrice
      • OrderAddressResponse
      • CreateOrderAddress
      • CreateOrder
      • PatchServiceProviderOrder
      • JsonApi
      • PaginationMeta
      • PaginationLinks
      • AttributesListResponse
      • AttributeSingleResponse
      • OptionSingleResponse
      • AttributeResource
      • OptionIdentifier
      • AttributeCategoryEmbedded
      • AttributeCategoryResource
      • OptionResource
  • Druckshop API
    • Cart
      • getByJobNumber
    • Tracking
      • getByJobNumber
      • addTrackingId
    • Order
      • getOrder
      • getOrders
      • getOrderByReference
      • getOrderCart
    • FreeOrder
      • addFreeOrder
    • Schemas
      • FreeOrder
      • FreeOrderResponse
      • ApiAddress
      • FreeOrderPrice
      • FreeOrderCart
      • FreeOrderArticle
      • FreeOrderDataKeyValuePrice
  • be.print Dashboard API
    • PlacedOrder
      • Store a newly created placedOrder
      • Update an existing placedOrder
    • PlacedOrderCart
      • Store a newly created placedOrderCart
      • Update an existing placedOrderCart
    • Sso
      • sso.getTokenCheck
      • sso.setUserMapping
    • ValidateCustomerApi
      • validateCustomerApi.whoAmI
      • validateCustomerApi.postExternalClient
    • Dashboard API (MOVE TO ANOTHER PROJECT)!
      • Customer
        • whoAmI
        • addExternalClient
      • Orders
        • create order
        • update order
        • update order cart
    • Schemas
      • Schemas
        • AddExternalClientRequest
        • PlacedOrderCartRequest
        • PlacedOrderRequest
        • SsoExternalLinkRequest
        • SsoExternalUserMapping
      • Response
        • AuthenticationException
        • ValidationException
        • AuthorizationException
        • ModelNotFoundException
      • placedOrder
  1. Products & Combinations

get country attribute with options

GET
/api/products/{productId}/country/options
Returns the country attribute and only the country options that are configured for this product ($product->getCountryOptions()). Note: if the product has no country attribute, the response contains an empty/placeholder Attribute resource.

Request

Path Params

Header Params

Responses

🟢200Returns the attribute.
application/json
Bodyapplication/json

Example
{
    "jsonapi": {
        "version": "1.0"
    },
    "data": {
        "type": "attributes",
        "id": "1015b954-9038-4866-b11b-dd235314fb99",
        "attributes": {
            "name": "Land",
            "original_name": "Land",
            "sort": 0,
            "description": null,
            "key": "country",
            "category": "none",
            "attribute_category": {
                "type": "attribute_categories",
                "id": "5117a596-fd4f-4fba-a27e-5affde564b2c",
                "attributes": {
                    "name": "none",
                    "sort": 0,
                    "key": "none"
                }
            },
            "sort_type": 0,
            "field_type": "single",
            "attribute_style": "normal",
            "attribute_type": "other",
            "base_url": ""
        },
        "relationships": {
            "options": {
                "data": [
                    {
                        "type": "options",
                        "id": "3a97f423-2b85-4663-8dcb-bb37ef71db96"
                    },
                    {
                        "type": "options",
                        "id": "3dbc7989-5678-4b80-9b48-ae56560ae405"
                    }
                ]
            }
        }
    },
    "included": [
        {
            "type": "options",
            "id": "3a97f423-2b85-4663-8dcb-bb37ef71db96",
            "attributes": {
                "name": "Niederlande",
                "original_name": "Niederlande",
                "key": "nl",
                "description": null,
                "sort": 0,
                "icon_name": "",
                "is_highlight": false,
                "meta": []
            }
        },
        {
            "type": "options",
            "id": "3dbc7989-5678-4b80-9b48-ae56560ae405",
            "attributes": {
                "name": "Deutschland",
                "original_name": "Deutschland",
                "key": "de",
                "description": null,
                "sort": 0,
                "icon_name": "",
                "is_highlight": false,
                "meta": []
            }
        }
    ]
}
🟠401Unauthorized request
🟠404Attribute not found
Modified at 2026-05-29 10:44:16
Previous
delete combinations.
Next
change attribute settings just for this service provider
Built with