openapi: 3.2.0 info: title: Adobe Suite Guest Carts/{cart Id}/set Payment Information API version: 2.4.6 description: 'Operations tagged guest-carts/{cartId}/set-payment-information across 2 of this provider''s published API definitions: adobe-suite-commerce-rest-customer-openapi.yaml, adobe-suite-commerce-rest-guest-openapi.yaml. Each path carries the servers of the definition it was published in.' servers: - url: https://example.com/rest/default tags: - name: guest-carts/{cartId}/set-payment-information paths: /V1/guest-carts/{cartId}/set-payment-information: post: tags: - guest-carts/{cartId}/set-payment-information description: Set payment information for a specified cart. operationId: PostV1GuestcartsCartIdSetpaymentinformation parameters: - name: cartId in: path required: true schema: type: string responses: '200': description: 200 Success. content: application/json: schema: type: integer description: Order ID. application/xml: schema: type: integer description: Order ID. '400': description: 400 Bad Request content: application/json: schema: $ref: '#/components/schemas/error-response' application/xml: schema: $ref: '#/components/schemas/error-response' default: description: Unexpected error content: application/json: schema: $ref: '#/components/schemas/error-response' application/xml: schema: $ref: '#/components/schemas/error-response' summary: guest-carts/{cartId}/set-payment-information requestBody: content: application/json: schema: required: - email - paymentMethod properties: email: type: string paymentMethod: $ref: '#/components/schemas/quote-data-payment-interface' billingAddress: $ref: '#/components/schemas/quote-data-address-interface' type: object xml: name: request application/xml: schema: required: - email - paymentMethod properties: email: type: string paymentMethod: $ref: '#/components/schemas/quote-data-payment-interface' billingAddress: $ref: '#/components/schemas/quote-data-address-interface' type: object xml: name: request servers: - url: https://example.com/rest/default components: schemas: error-errors: type: array description: Errors list items: $ref: '#/components/schemas/error-errors-item' error-errors-item: type: object description: Error details properties: message: type: string description: Error message parameters: $ref: '#/components/schemas/error-parameters' quote-data-address-interface: type: object description: Interface AddressInterface properties: id: type: integer description: Id region: type: string description: Region name region_id: type: integer description: Region id region_code: type: string description: Region code country_id: type: string description: Country id street: type: array description: Street items: type: string company: type: string description: Company telephone: type: string description: Telephone number fax: type: string description: Fax number postcode: type: string description: Postcode city: type: string description: City name firstname: type: string description: First name lastname: type: string description: Last name middlename: type: string description: Middle name prefix: type: string description: Prefix suffix: type: string description: Suffix vat_id: type: string description: Vat id customer_id: type: integer description: Customer id email: type: string description: Billing/shipping email same_as_billing: type: integer description: Same as billing flag customer_address_id: type: integer description: Customer address id save_in_address_book: type: integer description: Save in address book flag extension_attributes: $ref: '#/components/schemas/quote-data-address-extension-interface' custom_attributes: type: array description: Custom attributes values. items: $ref: '#/components/schemas/framework-attribute-interface' required: - region - region_id - region_code - country_id - street - telephone - postcode - city - firstname - lastname - email framework-attribute-interface: type: object description: Interface for custom attribute value. properties: attribute_code: type: string description: Attribute code value: type: string description: Attribute value required: - attribute_code - value error-parameters-item: type: object description: Error parameters item properties: resources: type: string description: ACL resource fieldName: type: string description: Missing or invalid field name fieldValue: type: string description: Incorrect field value error-response: type: object properties: message: type: string description: Error message errors: $ref: '#/components/schemas/error-errors' code: type: integer description: Error code parameters: $ref: '#/components/schemas/error-parameters' trace: type: string description: Stack trace required: - message sales-rule-data-rule-discount-interface: type: object description: Rule discount Interface properties: discount_data: $ref: '#/components/schemas/sales-rule-data-discount-data-interface' rule_label: type: string description: Rule Label rule_id: type: integer description: Rule ID required: - discount_data - rule_label - rule_id quote-data-payment-interface: type: object description: Interface PaymentInterface properties: po_number: type: string description: Purchase order number method: type: string description: Payment method code additional_data: type: array description: Payment additional details items: type: string extension_attributes: $ref: '#/components/schemas/quote-data-payment-extension-interface' required: - method quote-data-address-extension-interface: type: object description: ExtensionInterface class for @see \Magento\Quote\Api\Data\AddressInterface properties: discounts: type: array items: $ref: '#/components/schemas/sales-rule-data-rule-discount-interface' gift_registry_id: type: integer pickup_location_code: type: string bolt_id: type: string sales-rule-data-discount-data-interface: type: object description: Discount Data Interface properties: amount: type: number description: Amount base_amount: type: number description: Base Amount original_amount: type: number description: Original Amount base_original_amount: type: number description: Base Original Amount required: - amount - base_amount - original_amount - base_original_amount error-parameters: type: array description: Error parameters list items: $ref: '#/components/schemas/error-parameters-item' quote-data-payment-extension-interface: type: object description: ExtensionInterface class for @see \Magento\Quote\Api\Data\PaymentInterface properties: agreement_ids: type: array items: type: string securitySchemes: api_key: type: apiKey name: api_key in: header x-refined-from: - adobe-suite-commerce-rest-customer-openapi.yaml - adobe-suite-commerce-rest-guest-openapi.yaml x-original-swagger-version: '2.0'