Check the status of an existing transaction
GET /transactions/:transactionId
Returns a single transaction
Path Parameters
- transactionId int64 required
ID of the transaction to return
- 200
- 400
- 404
successful operation
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- paymentType string
Possible values: [
sms
]The payment method used by the merchant's customer to buy the virtual good or service.
- transactionId string
Id of the transaction that has been created.
- customerIpAddress string
IP address of merchant’s customer.
- customerMsisdn string
Phone number of the merchant's customer that will be used to make the payment. Depending on the payment method, this is the phone number that the customer will use to send the SMS message(s).
- customerMccmnc string
The mobile network of the customer identified by the MCC and MNC values.
- customerCountryCode string
The origin country of the customer.
- merchantId integer
Merchant identifier in relario PAY system.
- customerId string
Unique token used by the merchant to identify its customer.
- productId string
Unique identifier of the virtual good or service that the merchant is selling.
- productName string
Title of the virtual good or service that the merchant is selling.
- smsCount integer
Number of SMS messages that the customer’s merchant needs to send in order to buy the virtual goods or service.
- smsBody string
The body of the SMS message(s) that the merchant’s customer has to send in order to make the payment.
- iosClickToSmsUrl string
The URL to be put in the HTML link to compose the SMS draft, for iOS devices.
- androidClickToSmsUrl string
The URL to be put in the HTML link to compose the SMS draft, for Android devices.
- clickToCallUrl string
The URL to be put in the HTML link to initiate the phone call.
- phoneNumbersList string[]
The list of phone numbers that the merchant’s customer has to send SMS message(s) to in order to make the payment.
- phoneNumber string
The phone number that the merchant’s customer has to call in order to make the payment.
- status string
Status of the transaction.
payments object[]
The list of phone numbers that the merchant’s customer has to send SMS message(s) to in order to make the payment.
Array [id integerUnique identifier for the payment.
transactionId stringId of the transaction.
cli MSISDNPhone number of the customer that will send the SMS messages.
ddi MSISDNThe phone number that the customer called or sent SMS to, in order to make the payment.
smsBody stringThe body of the SMS message(s) that the merchant’s customer has to send in order to make the payment.
initiatedAt numberThe phone number that the customer called or sent SMS to, in order to make the payment.
billable booleanIf this transaction is considered as billable.
]- createdAt int64
The timestamp when the resource was created.
- updatedAt int64
The timestamp when the resource was last updated.
{
"paymentType": "sms",
"transactionId": 3795827,
"customerIpAddress": "79.25.254.4",
"customerMsisdn": "",
"customerMccmnc": "",
"customerCountryCode": "IT",
"merchantId": 0,
"customerId": "my-customer-id",
"productId": "my-product-id",
"productName": "Product Name",
"smsCount": "",
"smsBody": "",
"iosClickToSmsUrl": "sms://open?addresses=+123456,+123457;?&body=some-payload",
"androidClickToSmsUrl": "sms://+123456,+123457;?&body=some-payload",
"clickToCallUrl": "tel:+123456",
"phoneNumbersList": [
"6745594739",
"6745594798",
"6745591627",
"6745594705",
"6745591555"
],
"phoneNumber": "",
"status": "ok",
"payments": "",
"createdAt": 1607081103605,
"updatedAt": 1607081105033
}
- Schema
- Example (from schema)
Schema
- paymentType string
Possible values: [
sms
]The payment method used by the merchant's customer to buy the virtual good or service.
- transactionId string
Id of the transaction that has been created.
- customerIpAddress string
IP address of merchant’s customer.
- customerMsisdn string
Phone number of the merchant's customer that will be used to make the payment. Depending on the payment method, this is the phone number that the customer will use to send the SMS message(s).
- customerMccmnc string
The mobile network of the customer identified by the MCC and MNC values.
- customerCountryCode string
The origin country of the customer.
- merchantId integer
Merchant identifier in relario PAY system.
- customerId string
Unique token used by the merchant to identify its customer.
- productId string
Unique identifier of the virtual good or service that the merchant is selling.
- productName string
Title of the virtual good or service that the merchant is selling.
- smsCount integer
Number of SMS messages that the customer’s merchant needs to send in order to buy the virtual goods or service.
- smsBody string
The body of the SMS message(s) that the merchant’s customer has to send in order to make the payment.
- iosClickToSmsUrl string
The URL to be put in the HTML link to compose the SMS draft, for iOS devices.
- androidClickToSmsUrl string
The URL to be put in the HTML link to compose the SMS draft, for Android devices.
- clickToCallUrl string
The URL to be put in the HTML link to initiate the phone call.
- phoneNumbersList string[]
The list of phone numbers that the merchant’s customer has to send SMS message(s) to in order to make the payment.
- phoneNumber string
The phone number that the merchant’s customer has to call in order to make the payment.
- status string
Status of the transaction.
payments object[]
The list of phone numbers that the merchant’s customer has to send SMS message(s) to in order to make the payment.
Array [id integerUnique identifier for the payment.
transactionId stringId of the transaction.
cli MSISDNPhone number of the customer that will send the SMS messages.
ddi MSISDNThe phone number that the customer called or sent SMS to, in order to make the payment.
smsBody stringThe body of the SMS message(s) that the merchant’s customer has to send in order to make the payment.
initiatedAt numberThe phone number that the customer called or sent SMS to, in order to make the payment.
billable booleanIf this transaction is considered as billable.
]- createdAt int64
The timestamp when the resource was created.
- updatedAt int64
The timestamp when the resource was last updated.
<root>
<paymentType>sms</paymentType>
<transactionId>3795827</transactionId>
<customerIpAddress>79.25.254.4</customerIpAddress>
<customerMsisdn></customerMsisdn>
<customerMccmnc></customerMccmnc>
<customerCountryCode>IT</customerCountryCode>
<merchantId>0</merchantId>
<customerId>my-customer-id</customerId>
<productId>my-product-id</productId>
<productName>Product Name</productName>
<smsCount></smsCount>
<smsBody></smsBody>
<iosClickToSmsUrl>sms://open?addresses=+123456,+123457;?&body=some-payload</iosClickToSmsUrl>
<androidClickToSmsUrl>sms://+123456,+123457;?&body=some-payload</androidClickToSmsUrl>
<clickToCallUrl>tel:+123456</clickToCallUrl>
<phoneNumbersList>6745594739</phoneNumbersList>
<phoneNumbersList>6745594798</phoneNumbersList>
<phoneNumbersList>6745591627</phoneNumbersList>
<phoneNumbersList>6745594705</phoneNumbersList>
<phoneNumbersList>6745591555</phoneNumbersList>
<phoneNumber></phoneNumber>
<status>ok</status>
<payments></payments>
<createdAt>1607081103605</createdAt>
<updatedAt>1607081105033</updatedAt>
</root>
Invalid ID supplied
Transaction not found