Skip to content

Manage transaction

Manage Transaction API 1.0.0

transactions-api


POST /api/transactions/manage

Input parameters

Parameter In Type Default Nullable Description
jwt header string N/A No JWT Bearer token

Request body

=== "application/json"

```json
{
    "terminal_id": "string",
    "currency": "string",
    "amount": 291,
    "reference": "string",
    "metadata": {},
    "transaction_type": "string",
    "parent_transaction_id": "string",
    "options": {}
}
```
<span class="small-note">⚠️</span>&nbsp;<em class="small-note warning">This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.</em>



??? hint "Schema of the request body"
    ```json
    {
        "required": [
            "terminal_id",
            "currency",
            "amount",
            "reference",
            "transaction_type"
        ],
        "type": "object",
        "properties": {
            "terminal_id": {
                "type": "string",
                "nullable": false
            },
            "currency": {
                "description": "Has to be same as original transaction",
                "type": "string",
                "nullable": false
            },
            "amount": {
                "format": "int64",
                "description": "Has to be less or equal to original transaction amount",
                "type": "integer",
                "nullable": false
            },
            "reference": {
                "description": "Original order reference",
                "type": "string",
                "nullable": false
            },
            "metadata": {
                "type": "object",
                "additionalProperties": {
                    "type": "string"
                },
                "nullable": false
            },
            "transaction_type": {
                "type": "string",
                "nullable": false
            },
            "parent_transaction_id": {
                "description": "If specified manage new transaction will be executed against this transaction",
                "type": "string",
                "nullable": false
            },
            "options": {
                "description": "Define possible options when managing transaction such as final_capture",
                "type": "object",
                "additionalProperties": {},
                "nullable": false
            }
        }
    }
    ```

Response 200 OK

=== "application/json"

```json
{
    "id": "string",
    "merchant_id": "string",
    "order_id": "string",
    "terminal_id": "string",
    "reference": "string",
    "description": "string",
    "currency": "string",
    "amount": 25,
    "customer": {
        "address": "string",
        "city": "string",
        "country": "string",
        "email": "string",
        "first_name": "string",
        "id": "string",
        "last_name": "string",
        "phone": "string",
        "postal_code": "string"
    },
    "processing_result": {
        "approval_code": "string",
        "payment_provider_account_id": "string",
        "payment_provider_id": "string",
        "reference_number": "string"
    },
    "approved": true,
    "pending": true,
    "channel": "string",
    "transaction_type": "string",
    "status": "CREATED",
    "payment_method": {
        "brand": "string",
        "hash": "string",
        "masked": "string",
        "method": "string",
        "token": "string",
        "type": "string"
    },
    "redirect_url": "string",
    "normalized_amount": 245,
    "errors": [
        {}
    ],
    "processing_code": "string",
    "response_message": "string",
    "data": {}
}
```
<span class="small-note">⚠️</span>&nbsp;<em class="small-note warning">This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.</em>



??? hint "Schema of the response body"
    ```json
    {
        "type": "object",
        "properties": {
            "id": {
                "type": "string"
            },
            "merchant_id": {
                "type": "string"
            },
            "order_id": {
                "type": "string"
            },
            "terminal_id": {
                "type": "string"
            },
            "reference": {
                "type": "string"
            },
            "description": {
                "type": "string"
            },
            "currency": {
                "type": "string"
            },
            "amount": {
                "format": "int64",
                "type": "integer"
            },
            "customer": {
                "$ref": "#/components/schemas/CustomerDto"
            },
            "processing_result": {
                "$ref": "#/components/schemas/ProcessingResultDto"
            },
            "approved": {
                "type": "boolean"
            },
            "pending": {
                "type": "boolean"
            },
            "channel": {
                "type": "string"
            },
            "transaction_type": {
                "type": "string"
            },
            "status": {
                "$ref": "#/components/schemas/TransactionStatus"
            },
            "payment_method": {
                "$ref": "#/components/schemas/PaymentMethodDataDto"
            },
            "redirect_url": {
                "type": "string"
            },
            "normalized_amount": {
                "format": "int64",
                "type": "integer",
                "nullable": false
            },
            "errors": {
                "type": "array",
                "items": {
                    "type": "object",
                    "additionalProperties": {}
                },
                "nullable": true
            },
            "processing_code": {
                "type": "string",
                "nullable": true
            },
            "response_message": {
                "type": "string",
                "nullable": true
            },
            "data": {
                "type": "object",
                "allOf": [
                    {
                        "$ref": "#/components/schemas/TransactionDataDto"
                    }
                ],
                "nullable": true
            }
        }
    }
    ```

Response 401 Unauthorized

Response 403 Forbidden


Schemas

CustomerDto

Name Type
address string| null
city string| null
country string| null
email string| null
first_name string| null
id string| null
last_name string| null
phone string| null
postal_code string| null

ExtendedTransactionDto

Name Type
amount integer(int64)
approved boolean
channel string
currency string
customer CustomerDto
data
description string
errors Array<>
id string
merchant_id string
normalized_amount integer(int64)
order_id string
payment_method PaymentMethodDataDto
pending boolean
processing_code string| null
processing_result ProcessingResultDto
redirect_url string
reference string
response_message string| null
status TransactionStatus
terminal_id string
transaction_type string

ManageTransactionRequestDto

Name Type
amount integer(int64)
currency string
metadata
options
parent_transaction_id string
reference string
terminal_id string
transaction_type string

PaymentMethodDataDto

Name Type
brand string
hash string
masked string
method string
token string
type string

ProcessingResultDto

Name Type
approval_code string| null
payment_provider_account_id string| null
payment_provider_id string| null
reference_number string| null

RetryOptionsDto

Name Type
data
payment_provider_account_id string
payment_provider_id string
retry_count integer(int32)
status RetryStatus

RetryStatus

Type: string

TransactionDataDto

Name Type
retry_options

TransactionStatus

Type: string

Security schemes

Name Type Scheme Description
jwt http bearer