# 2. RESTful API methods **Production URL:** `https://api.axepta.pl`
**Sandbox URL:** `https://api.sandbox.axepta.pl` | Endpoint | Purpose | Method | |----------|---------|--------| | `/{merchantId}/transaction` | Creates a new transaction | `POST` | | `/{merchantId}/transaction/{transactionId}` | Retrieves transaction data | `GET` | | `/{merchantId}/payment-link` | Creates a new payment link | `POST` | | `/{merchantId}/payment/{paymentId}/refund` | Performs a payment refund | `POST` | | `/{merchantId}/payment/{paymentId}` | Retrieves payment data | `GET` | | `/{merchantId}/transaction/profile` | Charges an existing card profile | `POST` | | `/{merchantId}/profile/cid/{cid}` | Retrieves profiles for the given `cid` | `GET` | | `/{merchantId}/profile/id/{paymentProfileId}` | Retrieves profile by `id` | `GET` | | `/{merchantId}/profile/deactivate` | Deactivates the profile with the identifier from the request| `POST` | | `/{merchantId}/profile/id/{paymentProfileId}` | Deactivates the profile with the given `paymentProfileId` | `DELETE` | | `/{merchantId}/payment/cancel` | Cancels a payment link | `POST` | where: - `merchantId` - client identifier, - `serviceId` - store identifier for which specific transaction methods are available (UUID v4), - `cid` - customer/payer identifier assigned by the merchant, - `transactionId` - unique transaction identifier (UUID v4), - `paymentProfileId` - card profile identifier, - `paymentId` - unique payment link identifier (UUID v4).