# Get way of payment details

`GET /api/v1.1/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.1

## Path parameters

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

## 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.outletWayOfPaymentSettings` | array<object> or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].outletId` | string (uuid) | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].outletName` | string or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].accountId` | string (uuid) or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].accountNumber` | string or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].voucherTracking` | object or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].voucherTracking.costCenter` | string or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].voucherTracking.project` | string or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].feeAccountId` | string (uuid) or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].feeAccountNumber` | string or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].payoutAccountId` | string (uuid) or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].payoutAccountNumber` | string or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].custom1` | string or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].custom2` | string or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].custom3` | string or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].custom4` | string or null | no |  |
| `wayOfPayment.outletWayOfPaymentSettings[].custom5` | 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,
    "outletWayOfPaymentSettings": [
      {
        "outletId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "outletName": "string",
        "accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "accountNumber": "string",
        "voucherTracking": {
          "costCenter": "string",
          "project": "string"
        },
        "feeAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "feeAccountNumber": "string",
        "payoutAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "payoutAccountNumber": "string",
        "custom1": "string",
        "custom2": "string",
        "custom3": "string",
        "custom4": "string",
        "custom5": "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.1/Tenants/{tenantId}/WayOfPayments/{id}" \
  -H "Access-Token: $ANCON_TOKEN"
```
