openapi: 3.0.3 info: title: Bold Commerce Checkout Customers API description: Bold Commerce provides modular e-commerce APIs for subscriptions, headless checkout, and pricing, plus supporting Products, Customers, and Shops APIs. All requests are made against https://api.boldcommerce.com and authenticated with a Bearer token - either an OAuth 2.0 access token (public integrations, obtained through the Developer Dashboard authorization-code flow) or a scoped API access token (private integrations, generated in the Bold Account Center). Most paths are scoped to a shop_identifier GUID that is retrieved from the Shops API. Versioned endpoints accept a Bold-API-Version-Date header. Endpoints below are modeled from Bold's public developer documentation; request and response schemas are representative. version: '1.0' contact: name: Bold Commerce url: https://developer.boldcommerce.com servers: - url: https://api.boldcommerce.com description: Bold Commerce API security: - bearerAuth: [] tags: - name: Customers description: Customer records tied to a shop. paths: /customers/v2/shops/{shop_identifier}/customers: get: operationId: listCustomers tags: - Customers summary: List customers parameters: - $ref: '#/components/parameters/ShopIdentifier' responses: '200': description: A list of customers. content: application/json: schema: type: object properties: customers: type: array items: $ref: '#/components/schemas/Customer' post: operationId: createCustomer tags: - Customers summary: Create a customer parameters: - $ref: '#/components/parameters/ShopIdentifier' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/Customer' responses: '201': description: The created customer. components: schemas: Customer: type: object properties: id: type: integer email: type: string first_name: type: string last_name: type: string parameters: ShopIdentifier: name: shop_identifier in: path required: true description: The unique shop GUID, retrieved from the Shops API. schema: type: string securitySchemes: bearerAuth: type: http scheme: bearer description: 'OAuth 2.0 access token (public integrations) or scoped API access token (private integrations), passed as Authorization: Bearer {token}.'