commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Payment-method → Create PaymentMethod

AI-generated

Summary

Create a new payment method resource in commercetools with specified details including key, method, payment interface, interface account, status, name, and optionally associate it with a customer or business unit.

Inputs

  • Key (required) — Unique identifier for the payment method.
  • Method (required) — The type of payment method (e.g., credit card, PayPal).
  • Payment Interface (required) — Identifier for the payment interface handling the payment method.
  • Interface Account (required) — Account identifier for the payment interface.
  • Payment Method Status (required) — Current status of the payment method (e.g., active, inactive).
  • Name (required) — Localized names of the payment method, provided as a JSON object with language keys.
  • Default (required) — Boolean flag indicating if this is the default payment method.
  • Customer › Id — ID of the customer associated with this payment method.
  • Customer › Type Id — Type ID of the customer.
  • Business Unit › Key — Key identifying the business unit associated with this payment method.
  • Business Unit › Type Id — Type ID of the business unit.
  • Token › Value — Token value related to the payment method, if applicable.

Output shape

a single record

Returns the full representation of the created payment method resource as JSON.

Links

Discussion