Create Purchase Transaction

Beta
Creates a new purchase payment transaction.

Request

This endpoint expects an object.
order_idstringRequiredformat: "^[1-9]\d*$"
ID of the order for this transaction. Must be a numeric string representing a positive integer greater than 0.
payment_method_idstringRequired>=1 character

Gateway and method key in format {provider}.{method}.

provider_transaction_idstringRequired>=1 character
Transaction ID from the payment provider
resultenumRequired
Outcome of the provider operation for a purchase transaction.
Allowed values:
avs_resultobjectOptional

Address Verification System (AVS) result returned by the payment provider.

cvv_resultobjectOptional

Card Verification Value (CVV) result returned by the payment provider.

is_testbooleanOptionalDefaults to false
Whether this is a test transaction
payment_instrumentobjectOptional
Details of the payment instrument used.
provider_datamap from strings to stringsOptional
Additional data from the payment provider. Accepted keys vary by provider.
statusenumOptional

Operational state of the transaction record. Currently only COMPLETE is supported for creating transactions. Additional statuses will be supported in future releases.

Allowed values:

Response

Purchase transaction created successfully
idstringformat: "uuid"
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