Shops > Payment Methods > paymentMethodsCreate
Commerce APIShopsPayment MethodspaymentMethodsCreate
paymentMethodsCreate
POST:payment_methods.json

Description

Create one or multiple payment methods.

Permission bit: "shop_payment_method.create"

Topic: Payment Methods

Arguments

data: [PaymentMethodCreate!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

token: String

Stripe payment method token

Example: "tok_123"

Valid when: token is not empty


Result

[PaymentMethod!]

Preview (typescript)

Loading module