# API specifications

> Review common Embedded Finance API request headers, response structure, currency, and response codes.

Read the common rules on this page before integrating Embedded Finance APIs.

### Request headers

| Header | Type | Required | Description |
| --- | --- | --- | --- |
| `Content-Type` | String | Yes | Follow the endpoint requirement: use `application/json` for JSON requests and `multipart/form-data` for file uploads. |
| `apiKey` | String | Yes | Merchant identity credential assigned by Onerway for Embedded Finance API access. |

### Response structure

| Field | Type | Description |
| --- | --- | --- |
| `respCode` | String | Response code. `20000` means the request was processed successfully. |
| `respMsg` | String | Response message. |
| `data` | Object / Array | Business data. |

### Currency

Currency values use the ISO 4217 international standard.

### Response codes

| Code | Description |
| --- | --- |
| `20000` | Success. |
| `40000` | Parameter error. |
