Create Source

API Overview

This API allows you to create a new Source under an existing account in the system.

  • Request Method:POST

  • Request URL:https://openapi.elven.com/open/v3/transaction/source

Request Headers

Parameter NameTypeRequiredDescription

elven-api-key

String

Yes

The API key assigned to you

elven-api-sign

String

Yes

Request signature, used to verify the legitimacy of the request

elven-api-timestamp

String

Yes

Request timestamp, in milliseconds

View Details

Request Parameters

Body Parameters (JSON Format)

Parameter NameTypeRequiredDescription

name

String

Yes

The name of the source to be created.

entityAccountId

String

Yes

The primary key of the account under which the source will be created.

Example Request

{
    "name": "MySource",
    "entityAccountId": "abc123"
}

Response Parameters

Parameter NameTypeDescription

sourceId

String

The primary key of the newly created source.

name

String

The name of the source.

entityAccountId

String

The primary key of the account associated with the source.

Example Response

{
    "sourceId": "def456",
    "name": "MySource",
    "entityAccountId": "abc123"
}

Notes

  • The following headers are required for all requests to ensure security and validity: elven-api-key,elven-api-sign,elven-api-timestamp

  • Both name and entityAccountId are mandatory fields in the request body and cannot be left empty.

  • Upon successful creation, the system will return a unique sourceId, which can be used for subsequent operations.

Last updated