POST {Type}/transactions?api-version=2.0
Creates a new transaction. Use the 'Location' http header to learn the resulting url of the created resource.
Request Information
URI Parameters
| Name | Description | Type | Required | Additional information |
|---|---|---|---|---|
| Type | string |
None. |
Body Parameters
Transaction request.
TransactionRequestV2| Name | Description | Type | Required | Additional information |
|---|---|---|---|---|
| PartnerId |
PartnerId provided by LINK Mobility AS |
integer |
Range: inclusive between 1 and 2147483647 |
|
| Currency |
Currency code (ISO-4217). |
string |
Required String length: inclusive between 0 and 3 |
|
| Amount |
Amount (with support for 2 decimals) |
decimal number |
Matching regular expression pattern: ^\d+(.\d{1,2})?$ Range: inclusive between 0 and 999999.99 |
|
| ReturnUrl |
Return url/landing page after transaction is completed. Example: https://somedomain.net/returnToMeApp/{{referenceId}}/{{status}} |
string |
String length: inclusive between 0 and 2000 |
|
| StatusCallbackUrl |
Transaction status callback url. |
string |
String length: inclusive between 0 and 2000 |
|
| ReferenceId |
Client reference id (must be unique for per client transaction if used). Note: Not to be used for personal information. |
string |
String length: inclusive between 0 and 50 |
|
| PaymentProvider |
Defines which Payment provider (that should be) used |
string |
Required |
|
| PaymentEntity |
Payment entity used (phone number for PaymentProvider Phone or Card PAN hash for Nets). |
string |
String length: inclusive between 0 and 30 |
|
| Description |
General description of transaction. |
string |
String length: inclusive between 0 and 500 |
|
| Ocr |
Ocr Note: Not to be used for personal information. |
string |
String length: inclusive between 0 and 32 |
Request Formats
application/json, text/json
{
"partnerId": 1,
"currency": "NOK",
"amount": 10.0,
"returnUrl": "http://myshop.no/purchase/return",
"referenceId": "123456789",
"paymentProvider": "Nets",
"description": "Billett"
}
Response Information
Resource Description
None.