Create Purchase Transaction
Creates a new purchase payment transaction.
Request
This endpoint expects an object.
order_id
ID of the order for this transaction. Must be a numeric string representing a positive integer greater than 0.
payment_method_id
Gateway and method key in format {provider}.{method}.
provider_transaction_id
Transaction ID from the payment provider
result
Outcome of the provider operation for a purchase transaction.
Allowed values:
is_test
Whether this is a test transaction
status
Operational state of the transaction record. Currently only COMPLETE is supported for creating transactions. Additional statuses will be supported in future releases.
Allowed values:
provider_data
Additional data from the payment provider. Accepted keys vary by provider.
payment_instrument
Details of the payment instrument used.
avs_result
Address Verification System (AVS) result returned by the payment provider.
cvv_result
Card Verification Value (CVV) result returned by the payment provider.
Response
Purchase transaction created successfully
id
Unique identifier for the created transaction
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
412
Precondition Failed Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error