get: operationId: GetCustomersCustomer summary: Get a Customer description: >- Retrieves a Customer - the Customer must be logged in to retrieve their details. x-authenticated: true x-codeSamples: - lang: JavaScript label: JS Client source: $ref: ../code_samples/JavaScript/customers_me/getundefined - lang: Shell label: cURL source: $ref: ../code_samples/Shell/customers_me/getundefined security: - cookie_auth: [] tags: - Customer responses: '200': description: OK content: application/json: schema: type: object properties: customer: $ref: ../components/schemas/Customer.yaml '400': $ref: ../components/responses/400_error.yaml '401': $ref: ../components/responses/unauthorized.yaml '404': $ref: ../components/responses/not_found_error.yaml '409': $ref: ../components/responses/invalid_state_error.yaml '422': $ref: ../components/responses/invalid_request_error.yaml '500': $ref: ../components/responses/500_error.yaml post: operationId: PostCustomersCustomer summary: Update Customer description: Updates a Customer's saved details. x-authenticated: true requestBody: content: application/json: schema: $ref: ../components/schemas/StorePostCustomersCustomerReq.yaml x-codeSamples: - lang: JavaScript label: JS Client source: $ref: ../code_samples/JavaScript/customers_me/postundefined - lang: Shell label: cURL source: $ref: ../code_samples/Shell/customers_me/postundefined security: - cookie_auth: [] tags: - Customer responses: '200': description: OK content: application/json: schema: type: object properties: customer: $ref: ../components/schemas/Customer.yaml '400': $ref: ../components/responses/400_error.yaml '401': $ref: ../components/responses/unauthorized.yaml '404': $ref: ../components/responses/not_found_error.yaml '409': $ref: ../components/responses/invalid_state_error.yaml '422': $ref: ../components/responses/invalid_request_error.yaml '500': $ref: ../components/responses/500_error.yaml