Skip to main content

payment_transactions

Creates, updates, deletes, gets or lists a payment_transactions resource.

Overview​

Namepayment_transactions
TypeResource
Idovh.me.payment_transactions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
payment_method_idintegerAssociated payment method ID (wire: paymentMethodId)
transaction_idintegerTransaction ID (wire: transactionId)
amountobjectTransaction amount
creation_datestring (date-time)Creation date (wire: creationDate)
last_updatestring (date-time)Last update date (wire: lastUpdate)
statusstringTransaction status (CANCELED, CANCELING, CONFIRMING, ERROR, EXPIRED, FAILED, READY, SUCCESS)
typestringTransaction type (CREDIT, DEBIT)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecttransaction_idRetrieve a transaction
listselectpayment_method_id, status, x_pagination_modeRetrieve payment transaction list

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
transaction_idintegerTransaction ID (wire: transactionId)
payment_method_idintegerPayment method ID (wire: paymentMethodId)
statusstringStatus
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Retrieve a transaction

SELECT
payment_method_id,
transaction_id,
amount,
creation_date,
last_update,
status,
type
FROM ovh.me.payment_transactions
WHERE transaction_id = '{{ transaction_id }}' -- required
;