Mutation
(OBJECT)
set of methods and entities to create and/or modify entities with this API.
link GraphQL Schema definition
- type Mutation {
- # creates a preinvoice (payment request) for an order
- #
- # Arguments
- # order_num: the order's reference number for which to create a
- # preinvoice
- # send_notification: allows customizing the default system
- # behavior or sending multiple notifications.
- (
- String!, :
- NotificationRequest!] : [
- ): Preinvoice
- # creates a final invoice for the specified preinvoice
- #
- # Arguments
- # preinvoice_num: the pre-invoice (payment request) reference
- # number.r
- # send_notification: allows customizing the default system
- # behavior or sending multiple notifications.
- (
- String!, :
- NotificationRequest!] : [
- ): Invoice
- # sets a new order status for an order
- #
- # Arguments
- # order_num: the order's reference number whose status should be
- # changed.
- # status_id: the system's internal status ID
- # send_notification: allows customizing the default system
- # behavior or sending multiple notifications.
- (
- String!, :
- Int!, :
- NotificationRequest!] : [
- ): Order
- # updates the status or quantity of a warehouse item
- #
- # Arguments
- # warehouse_item:
- # lang_id: required if multiple language versions exist in the
- # system with currencies using the same ISO code.
- # send_notification: allows customizing the default system
- # behavior or sending multiple notifications.
- (
- WarehouseItemInput!, :
- Int, :
- NotificationRequest!] : [
- ): WarehouseItem
- # creates a new order
- #
- # Arguments
- # data:
- OrderInput!): Order ( :
- # records a payment for an invoice or preinvoice and creates a receipt
- #
- # Arguments
- # payment_reference: the payment reference identifier
- # reference_type: the reference type, e.g. preinvoice number,
- # invoice number, or variable_symbol
- # payment_type: the payment type identifier
- # amount: the total amount of the payment
- # pay_date: the date when the payment was made
- (
- String!, :
- PaymentReferenceType!, :
- PaymentType!, :
- PriceInput!, :
- Date! :
- ): Receipt
- # adds packaging information for a product
- #
- # Arguments
- # product_id:
- # warehouse_number:
- # package:
- ID!, : ID, : PackageInput): Package ( :
- # delete a product package
- #
- # Arguments
- # package_id:
- ID!): Boolean ( :
- # updates product package information
- #
- # Arguments
- # package_id:
- # package:
- ID!, : PackageInput): Package ( :
- # create a new post in 'News' block
- #
- # Arguments
- # block_id:
- # post:
- ID!, : NewsPostInput): NewsPost ( :
- # deletes a post from 'News' block
- #
- # Arguments
- # post_id:
- ID!): Boolean ( :
- # udpates post data in the 'News' block
- #
- # Arguments
- # post_id:
- # post:
- ID!, : NewsPostInput): NewsPost ( :
- # adds an external shipment link and tracking number to the order history. Note:
- # Available only with a partner token
- #
- # Arguments
- # order_num:
- # shipment_number:
- # tracking_url:
- (
- String!, :
- String!, :
- Url :
- ): Boolean
- # adds custom information to the order history. Note: Available only with a
- # partner token
- #
- # Arguments
- # order_num:
- # text:
- String!, : String!): Boolean ( :
- # updates product data. Currently only title, short text and long text are
- # supported. Note: Available only with a partner token.
- #
- # Arguments
- # product_id:
- # lang_id:
- # data:
- ID!, : ID!, : ProductInput): Product ( :
- # created or udpates page content. The content will be added to the main content
- # box. If the page already exists, the main content will be deleted and replaced
- # with the new content from the 'blocks' parameter if specified. Note: Available
- # only with a partner token.
- #
- # Arguments
- # data:
- WebPageContentInput!): ID ( :
- }
link Require by
This element is not required by anyone