Get Money Transfer Charge #
This endpoint calculates the charge for a money transfer.
URL:
https://crm-api-test.10npay.com/api/v1/IndividualPayment/get-money-transfer-charge
Method: POST
Request #
-
Headers:
-
accept: text/plain
-
Authorization: Bearer {Token}
-
Content-Type: application/json-patch+json
-
Request Body
{
"customerAccount": "string",
"amount": 0,
"id": 0,
"paymentType": "string"
}
Example
{
"customerAccount": "BG56TEPJ40131000100196",
"amount": 1.22,
"id": 0,
"paymentType": "P2IBAN"
}
Curl Command Example
curl -X 'POST' \ 'https://crm-api-test.10npay.com/api/v1/IndividualPayment/get-money-transfer-charge' \ -H 'accept: text/plain' \ -H 'Authorization: Bearer {Token}' \ -H 'Content-Type: application/json-patch+json' \ -d '{ "customerAccount": "BG56TEPJ40131000100196", "amount": 1.22, "id": 0, "paymentType": "P2IBAN"}'
Server Response Codes #
-
201 Created
-
Description: The money transfer charge was successfully calculated.
-
Response Body:
{
"accountNo": "string",
"accountBalance": 0,
"accountCurrency": "string",
"transactionAmount": 0,
"transactionCurrency": "string",
"transactionFee": 0,
"transactionFeeCurrency": "string"
}
Example:
{
"accountNo": "00100196",
"accountBalance": 1.0,
"accountCurrency": "BGN",
"transactionAmount": 1.22,
"transactionCurrency": "BGN",
"transactionFee": 1.0,
"transactionFeeCurrency": "BGN"
}
-
400 Bad Request
-
Description: The request could not be understood or was missing required parameters.
-
Response Body:
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
Example:
{
"errors": {
"Error": [
"Invalid Account"
]
},
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "Bad Request",
"status": 400,
"traceId": "00-97cc33f14571fcfd45512cc85610b614-1de79ea3bad5df5e-01"
}
Snippet #
Withdrawal to 3rd Party IBAN API #
Endpoint
URL
https://crm-api-test.10npay.com/api/v1/IndividualPayment/{individualId}/withdrawal-to-3rd-party-iban
Method: POST
Request #
Headers
-
accept: text/plain
-
Authorization: Bearer {Token}
-
Content-Type: application/json-patch+json
Request Body
The request body should be a JSON object with the following properties:
Field |
Type |
Description |
---|---|---|
|
string |
The source customer’s account number. |
|
string |
The beneficiary customer’s account number. |
|
string |
The name of the beneficiary customer. |
|
number |
The amount of money to transfer. |
|
string |
Notes regarding the payment. |
|
number |
The fee for the transaction. (Optional) |
Example Request Body
{
"sourceCustomerAccount": "string",
"beneficiaryCustomerAccount": "string",
"beneficiaryCustomerName": "string",
"amount": 0,
"notes": "string",
"transactionFee": 0
}
Curl Example
curl -X 'POST' \
'https://crm-api-test.10npay.com/api/v1/IndividualPayment/740/withdrawal-to-3rd-party-iban' \
-H 'accept: text/plain' \
-H 'Authorization: Bearer {Token}' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"sourceCustomerAccount": "BG36TEPJ40131000500002",
"beneficiaryCustomerAccount": "BG26BPBI79421095696001",
"beneficiaryCustomerName": "Ivaylo Petkov",
"amount": 0.22,
"notes": "string"
}'
{Token}
with your actual Bearer token.Response #
200 Success #
A successful response returns a string with the transaction ID.
Example Response
TNP0007241580001
400 Bad Request #
A bad request response returns a JSON object detailing the error.
Response Body
Field |
Type |
Description |
---|---|---|
|
string |
The type of error. |
|
string |
The title of the error. |
|
number |
The HTTP status code. |
|
string |
A detailed description of the error. |
|
string |
The instance of the error. |
|
string |
Additional properties for more information. |
|
string |
Additional properties for more information. |
|
string |
Additional properties for more information. |
{
"errors": {
"Error": [
"Error Message Not Found For The Error Code ST-NBIC_M0 Please Maintain The Same"
]
},
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "Bad Request",
"status": 400,
"traceId": "00-406606f4ecf632e084db8af0d1327904-c781b567c3c202fc-01"
}
{
"errors": {
"Error": [
"Wallet account is not allowed for this operation."
]
},
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "Bad Request",
"status": 400,
"traceId": "00-8f1dee8fa939306e95f3ebba2d24e4d5-4d304ab3bf44e376-01"
}
404 Not Found #
A not found response returns a JSON object indicating that the specified resource could not be found.
Response Body
Field |
Type |
Description |
---|---|---|
|
string |
The type of error. |
|
string |
The title of the error. |
|
number |
The HTTP status code. |
|
string |
A detailed description of the error. |
|
string |
The instance of the error. |
|
string |
Additional properties for more information. |
|
string |
Additional properties for more information. |
|
string |
Additional properties for more information. |
Example Response
{
"type": "string",
"title": "string",
"status": 404,
"detail": "string",
"instance": "string",
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
500 Server Error #
A server error response returns a JSON object indicating an internal server error.
Response Body
Field |
Type |
Description |
---|---|---|
|
string |
The type of error. |
|
string |
The title of the error. |
|
number |
The HTTP status code. |
|
string |
A detailed description of the error. |
|
string |
The instance of the error. |
{
"type": "string",
"title": "Internal Server Error",
"status": 500,
"detail": "An unexpected error occurred.",
"instance": "string"
}