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 |
---|
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 |
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 |
---|
List of TransactionResponseV2 |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK |
GET api/transactions/{partnerId}/{transactionId}
Gets transaction by partner id and transaction id.
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
partnerId | required | PartnerId. Provided to you by LINK Mobility. | integer | 10295 |
transactionId | required | Transaction id. | GUID | “452c1d44-5a0d-4216-b5da-a4533036e010“ |
Response information |
---|
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
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
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
partnerId | required | PartnerId. Provided to you by LINK Mobility. | integer | 10295 |
recurringPaymentId | required | integer | 100 |
Response information |
---|
List of TransactionResponseV2 |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK |
GET api/transactions/{partnerId}/{transactionId}/psp-session
Get Payment Provider Session Details
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
partnerId | required | PartnerId. Provided to you by LINK Mobility. | int | 10295 |
transactionId | required | Transaction Id | GUID | “452c1d44-5a0d-4216-b5da-a4533036e010“ |
Response information | ||||
---|---|---|---|---|
Name | Description | Data Type | Example | |
Status | Transaction status | string | “some string“ | |
"Reference | Transaction reference | string | “some string“ | |
PaymentType | payment provider | string | “some string“ | |
CustomProviderData | Custom data from the provider | object |
POST api/transactions
Creates a new transaction. Use the 'Location' http header to learn the resulting url of the created resource.
Expand | ||
---|---|---|
| ||
|
Request information (from body) | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
PartnerId | optional | PartnerId provided by LINK Mobility AS | integer | 10295 |
Currency | required | Currency code (ISO-4217). | string | USD |
Amount | optional | Matching regular expression pattern: ^\d+(.\d{1,2})?$ Range: inclusive between 0 and 999999.99 | decimal | 10.23 |
ReturnUrl | optional | Return url/landing page after transaction is completed. | string | some url |
StatusCallbackUrl | optional | Transaction status callback url. | string | some url |
ReferenceId | optional | Client reference id (must be unique for per client transaction if used). | string | “some-string“ |
PaymentProvider | required | Defines which Payment provider (that should be) used | string | “some-string“ |
PaymentEntity | optional | Payment entity used | string | “some-string“ |
Description | optional | General description of transaction. | string | “some-string“ |
OCR | optional | Ocr Note: | string | “some-string“ |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
409 | Conflict | Reference id '{transactionRequest.ReferenceId}' already exists. |
POST api/transactions/{partnerId}/{transactionId}/pincode
Verifies a phone transaction with pincode and executes it.
Expand | ||
---|---|---|
| ||
|
Get Payment Provider Session Details
Expand | ||
---|---|---|
| ||
|
Request information | ||||
---|---|---|---|---|
Name | Value |
Description
Data Type
Example
Response information
Description | Data |
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 | ||
---|---|---|
| ||
|
Type | Example | |||
partnerId | required | PartnerId provided by LINK Mobility AS | integer | 10295 |
transactionId | required | Transaction Id | GUID | “452c1d44-5a0d-4216-b5da-a4533036e010“ |
Request information (from body) | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
pinCode |
Name
Description
Data Type
required | Pincode to verify transaction | string | “some string“ |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
400 | Bad Request | Wrong pincode. Exception message. |
404 | Not Found |
Transaction with id '" + transactionId + "' not found. |
PUT api/transactions/{partnerId}/{transactionId}/
pincodeVerifies a phone transaction with pincode and executes itcapture
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
partnerId | required | PartnerId provided by LINK Mobility AS | integer | 10295 |
transactionId | required | Transaction Id | GUID | “452c1d44-5a0d-4216-b5da-a4533036e010“ |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK |
400
403 | Forbidden | Capture failed for transaction id: 'transactionId': Message. |
404 | Not Found | Transaction with id '" + transactionId + "' not found. |
500 | Internal Server Error | Capture failed for transaction id: 'transactionId': Message. |
PUT api/transactions/{partnerId}/{transactionId}
/captureFull capture authorized transaction,/{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
partnerId | required | PartnerId provided by LINK Mobility AS | integer | 10295 |
transactionId | required | Transaction Id | GUID | “452c1d44-5a0d-4216-b5da-a4533036e010“ |
amount | required | Transaction amount | decimal | 10.25 |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK |
400
Bad Request
404
403 | Forbidden | Capture failed for transaction id: 'transactionId': Message. |
404 | Not Found | Transaction with id '" + transactionId + "' not found. |
500 | Internal Server Error | Capture failed for transaction id: 'transactionId': Message. |
PUT api/transactions/{partnerId}/{transactionId}/
{amount}/capturePartial capture authorized transaction. Amount should be '.' separated number (123.45) if transaction is not authorized it will failrefund
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
partnerId | required | PartnerId provided by LINK Mobility AS | integer | 10295 |
transactionId | required | Transaction Id | GUID | “452c1d44-5a0d-4216-b5da-a4533036e010“ |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
400 | Bad Request |
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
Refund failed for transaction id 'transactionId': Message. | ||
403 | Forbidden | Refund failed for transaction id 'transactionId': Message. |
404 | Not Found | Transaction with id '" + transactionId + "' not found. |
500 | Internal Server Error | Refund failed for transaction id 'transactionId': Message. |
200
OK
400
Bad Request
404
PUT api/transactions/{partnerId}/{transactionId}/cancel
Cancel transaction, will fail if money is captured.
Expand | ||
---|---|---|
| ||
|
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
|
Request information | ||||
---|---|---|---|---|
Name | Value | Description | Data Type | Example |
partnerId | required | PartnerId provided by LINK Mobility AS | integer | 10295 |
transactionId | required | Transaction Id | GUID | “452c1d44-5a0d-4216-b5da-a4533036e010“ |
Response information | ||
---|---|---|
Status Code | Description | Message |
200 | OK | |
403 | Forbidden | Transaction id 'transactionId' is completed and can not be cancelled. |
404 | Not Found | Transaction with id '" + transactionId + "' not found. |
500 | Internal Server Error | Cancel failed for transaction id 'transactionId': Message. |