paymentCreate
Create a new payment record in the system.
Establishes a new payment entry with transaction details, payment method information, and processing status. The payment will be available for order processing and financial tracking immediately. Optionally creates an associated transaction record for atomic payment and transaction creation.
Possible errors:
- CREATE_PAYMENT_ERROR: Failed to create the payment due to system error
- PAYMENT_ALREADY_EXISTS_ERROR: Payment with the same identifier already exists
- CREATE_TRANSACTION_ERROR: Failed to create associated transaction when provided
- TRANSACTION_ALREADY_EXISTS_ERROR: Associated transaction with same identifier already exists
- FORBIDDEN: Insufficient permissions to create payments
AUTH: Role=[order.OWNER]
paymentCreate(
input: CreatePaymentInput!
): Payment!
Arguments
paymentCreate.input
● CreatePaymentInput!
non-null input
Payment creation data including transaction details and payment method information.
Contains all necessary information to create a payment record including amounts, payment method, and optional transaction data.
Type
Payment
object
Payment record representing a financial transaction for order processing.
Manages payment lifecycle from creation through completion, including amount tracking, currency handling, and payment method processing. Supports multiple payment states and transaction history for comprehensive financial management.