View Categories

Deposit with Payment method – Card

1. Get Money Transfer Charge #

Endpoint #

https://crm-api-test.10npay.com/api/v1/IndividualPayment/get-money-transfer-charge

Method: POST

Request #

{
	"customerAccount": "string",
	"amount": 0,
	"id": 0,
	"paymentType": "string"
}

Field

Type

Description

Required

customerAccount

string

The customer’s account number.

Yes

amount

number

The amount to be transferred.

Yes

id

integer

An identifier for the transaction.

Yes

paymentType

string

Type of the payment (e.g., DepositFromVisaCard).

Yes

Response #

201 Created #

{
	"accountNo": "string",
	"accountBalance": 0,
	"accountCurrency": "string",
	"transactionAmount": 0,
	"transactionCurrency": "string",
	"transactionFee": 0,
	"transactionFeeCurrency": "string"
}

Field

Type

Description

accountNo

string

Account number related to the transaction.

accountBalance

number

Current balance of the account.

accountCurrency

string

Currency of the account balance.

transactionAmount

number

Amount of the transaction.

transactionCurrency

string

Currency of the transaction amount.

transactionFee

number

Fee charged for the transaction.

transactionFeeCurrency

string

Currency of the transaction fee.

400 Bad Request #

{
	"errors": {
		"Error": [
			"UserNotFound"
		]
	},
	"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
	"title": "Bad Request",
	"status": 400,
	"traceId": "string"
}

Field

Type

Description

type

string

Error type link.

title

string

Title of the error message.

status

integer

HTTP status code.

detail

string

Detailed error message.

instance

string

Trace instance for debugging.

Curl Example

curl -X 'POST' \ 'https://crm-api-test.10npay.com/api/v1/IndividualPayment/get-money-transfer-charge' \ -H 'accept: text/plain' \ -H 'Authorization: Bearer your_token_here' \ -H 'Content-Type: application/json-patch+json' \ -d '{ "customerAccount": "BG56TEPJ40131000100196", "amount": 1, "id": 0, "paymentType": "DepositFromVisaCard"}'

Snippet #

API Properties
Header parameters
Result of the call


2. Deposit Money from Existing Card Payment Method #

https://crm-api-test.10npay.com/api/v1/IndividualPayment/{individualId}/deposit-money-from-existing-card-payment-method

Method: POST

Request #

URL Parameters #

  • individualId (integer): The ID of the registered customer.

Request Body #

{
	"accountNumber": "string",
	"transactionAmount": 0,
	"transactionCurrency": "string",
	"transactionCharge": 0,
	"paymentMethodId": "string"
}

Field

Type

Description

Required

accountNumber

string

Account number related to the transaction.

Yes

transactionAmount

number

Amount of the transaction.

Yes

transactionCurrency

string

Currency of the transaction amount.

Yes

transactionCharge

number

Charge for the transaction.

Yes

paymentMethodId

string

ID of the payment method used.

Yes

Response #

200 Success #

Empty response indicating success.

400 Bad Request #

{
	"errors": {
		"Error": [
			"UserNotFound"
		]
	},
	"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
	"title": "Bad Request",
	"status": 400,
	"traceId": "string"
}

Field

Type

Description

type

string

Error type link.

title

string

Title of the error message.

status

integer

HTTP status code.

detail

string

Detailed error message.

instance

string

Trace instance for debugging.

404 Not Found #

{
	"type": "string",
	"title": "string",
	"status": 404,
	"detail": "string",
	"instance": "string"
}

Field

Type

Description

type

string

Error type link.

title

string

Title of the error message.

status

integer

HTTP status code.

detail

string

Detailed error message.

instance

string

Trace instance for debugging.


This API documentation covers the necessary endpoints and methods required to create a payment method with a card and make a deposit via the card payment method. Each endpoint provides the required request and response details along with example requests to facilitate the integration.

Deposit money snippet #

Powered by BetterDocs