# Get way of payment details

`GET /api/v1.2/Tenants/{tenantId}/WayOfPayments/{id}`

Core API · WayOfPayments · base URL `https://core-api.ancon.io` · auth: `Access-Token` header · docs: https://ancon.dev/api/core/way-of-payments/get-way-of-payment-details-v1.2

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `tenantId` | string (uuid) | yes |  |
| `id` | string (uuid) | yes |  |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Extent.Outlets` | boolean | no |  |
| `Extent.Accounts` | boolean | no |  |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `correlationId` | string | no | Correlation Id for the request |

## Responses

| Status | Description |
| --- | --- |
| 200 | OK |
| 401 | Unauthorized |
| 404 | Not Found |

### 200 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `wayOfPayment` | object or null | no |  |
| `wayOfPayment.id` | string (uuid) | no |  |
| `wayOfPayment.tenantId` | string (uuid) | no |  |
| `wayOfPayment.name` | string or null | no |  |
| `wayOfPayment.type` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `13`, `14`, `15`, `16`, `17`, `18`, `19`, `20`, `21`, `22`, `23`. |
| `wayOfPayment.printSignatureReceipt` | boolean | no |  |
| `wayOfPayment.isDeleted` | boolean | no |  |
| `wayOfPayment.outletSettings` | array<object> or null | no |  |
| `wayOfPayment.outletSettings[].outletId` | string (uuid) | no |  |
| `wayOfPayment.outletSettings[].accountId` | string (uuid) or null | no |  |
| `wayOfPayment.outletSettings[].voucherTracking` | object or null | no |  |
| `wayOfPayment.outletSettings[].voucherTracking.costCenter` | string or null | no |  |
| `wayOfPayment.outletSettings[].voucherTracking.project` | string or null | no |  |
| `wayOfPayment.outletSettings[].feeAccountId` | string (uuid) or null | no |  |
| `wayOfPayment.outletSettings[].payoutAccountId` | string (uuid) or null | no |  |
| `wayOfPayment.outletSettings[].custom1` | string or null | no |  |
| `wayOfPayment.outletSettings[].custom2` | string or null | no |  |
| `wayOfPayment.outletSettings[].custom3` | string or null | no |  |
| `wayOfPayment.outletSettings[].custom4` | string or null | no |  |
| `wayOfPayment.outletSettings[].custom5` | string or null | no |  |
| `wayOfPayment.subWayOfPayments` | array<object> or null | no |  |
| `wayOfPayment.subWayOfPayments[].id` | string (uuid) | no |  |
| `wayOfPayment.subWayOfPayments[].name` | string or null | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings` | array<object> or null | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings[].outletId` | string (uuid) | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings[].accountId` | string (uuid) or null | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings[].voucherTracking` | object or null | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings[].voucherTracking.costCenter` | string or null | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings[].voucherTracking.project` | string or null | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings[].feeAccountId` | string (uuid) or null | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings[].payoutAccountId` | string (uuid) or null | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings[].custom1` | string or null | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings[].custom2` | string or null | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings[].custom3` | string or null | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings[].custom4` | string or null | no |  |
| `wayOfPayment.subWayOfPayments[].outletSettings[].custom5` | string or null | no |  |
| `outlets` | array<object> or null | no |  |
| `outlets[].id` | string (uuid) | no |  |
| `outlets[].name` | string or null | no |  |
| `accounts` | array<object> or null | no |  |
| `accounts[].id` | string (uuid) | no |  |
| `accounts[].number` | string or null | no |  |

#### Example (from schema)

```json
{
  "wayOfPayment": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "tenantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "string",
    "type": 0,
    "printSignatureReceipt": true,
    "isDeleted": true,
    "outletSettings": [
      {
        "outletId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "voucherTracking": {
          "costCenter": "string",
          "project": "string"
        },
        "feeAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "payoutAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "custom1": "string",
        "custom2": "string",
        "custom3": "string",
        "custom4": "string",
        "custom5": "string"
      }
    ],
    "subWayOfPayments": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "string",
        "outletSettings": [
          {
            "outletId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "voucherTracking": {},
            "feeAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "payoutAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "custom1": "string",
            "custom2": "string",
            "custom3": "string",
            "custom4": "string",
            "custom5": "string"
          }
        ]
      }
    ]
  },
  "outlets": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "string"
    }
  ],
  "accounts": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "number": "string"
    }
  ]
}
```

### 401 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string or null | no |  |

#### Example (from schema)

```json
{
  "message": "string"
}
```

### 404 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string or null | no |  |
| `errorCode` | string (uuid) | no |  |

#### Example (from schema)

```json
{
  "message": "string",
  "errorCode": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
```

## Example request

```bash
curl -X GET "https://core-api.ancon.io/api/v1.2/Tenants/{tenantId}/WayOfPayments/{id}" \
  -H "Access-Token: $ANCON_TOKEN"
```
