GET api/transactions
Gets transaction by partner id and reference id.
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
partnerId | required | PartnerId. Provided to you by LINK Mobility. | integer | 10295 |
referenceId | required | Reference Id | string | “some-string“ |
Response information |
---|
Name
Data Type
Example
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
400 | Bad Request | Missing required parameter referenceId. |
404 | Not Found | Transaction for partner id '{partnerId}' and reference id '{referenceId}' not found. |
GET api/transactions/search/{partnerId}
Get list of transactions.
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
Response information
Name
Description
Data Type
partnerId | required | PartnerId. Provided to you by LINK Mobility. | integer | 10295 |
fromDate | required | FromDate is bottom limit. | string | Format yyyy-MM-dd|yyyy-MM-ddTHH:mm |
Response information | ||||||
---|---|---|---|---|---|---|
Status Code | Description | Message | ||||
200 | OK | 400 | Bad Request | 404 | Not Found |
GET api/transactions/{partnerId}/{transactionId}
Gets transaction by partner id and transaction id.
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
Response information
Name
Description
Data Type
partnerId | required | PartnerId. Provided to you by LINK Mobility. | integer | 10295 |
transactionId | required | Transaction id. | GUID | “452c1d44-5a0d-4216-b5da-a4533036e010“ |
Response information | |||
---|---|---|---|
Status Code | Description | Message | |
200 | OK400 | Bad Request | |
404 | Not Found | Transaction with id '" + transactionId + "' not found. |
GET api/transactions/search/{partnerId}/{recurringPaymentId}
Get list of transactions.
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
Response information | |||
---|---|---|---|
Name | Description | Data Type | Example |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
400 | Bad Request | |
404 | Not Found |
GET api/transactions/{partnerId}/{transactionId}/psp-session
Get Payment Provider Session Details
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
Response information | |||
---|---|---|---|
Name | Description | Data Type | Example |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
400 | Bad Request | |
404 | Not Found |
POST api/transactions
Creates a new transaction. Use the 'Location' http header to learn the resulting url of the created resource.
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
Response information | |||
---|---|---|---|
Name | Description | Data Type | Example |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
400 | Bad Request | |
404 | Not Found |
POST api/transactions/{partnerId}/{transactionId}/pincode
Verifies a phone transaction with pincode and executes it.
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
Response information | |||
---|---|---|---|
Name | Description | Data Type | Example |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
400 | Bad Request | |
404 | Not Found |
PUT api/transactions/{partnerId}/{transactionId}/capture
Full capture authorized transaction, if transaction is not authorized it will fail.
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
Response information | |||
---|---|---|---|
Name | Description | Data Type | Example |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
400 | Bad Request | |
404 | Not Found |
PUT api/transactions/{partnerId}/{transactionId}/{amount}/capture
Partial capture authorized transaction. Amount should be '.' separated number (123.45) if transaction is not authorized it will fail.
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
Response information | |||
---|---|---|---|
Name | Description | Data Type | Example |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
400 | Bad Request | |
404 | Not Found |
PUT api/transactions/{partnerId}/{transactionId}/refund
Refund transaction, if money is captured it will be refunded.
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
Response information | |||
---|---|---|---|
Name | Description | Data Type | Example |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
400 | Bad Request | |
404 | Not Found |
PUT api/transactions/{partnerId}/{transactionId}/cancel
Cancel transaction, will fail if money is captured.
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
Response information | |||
---|---|---|---|
Name | Description | Data Type | Example |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
400 | Bad Request | |
404 | Not Found |