Check Internal Customer Account Existence #
Endpoint
URL
https://crm-api-test.10npay.com/api/v1/IndividualPayment/{iban}/is-internal-customer-account
Method: GET
Full URL Example
https://crm-api-test.10npay.com/api/v1/IndividualPayment/BG36TEPJ40131000500002/is-internal-customer-account
Request
Path Parameters
-
iban
: The International Bank Account Number (IBAN) to check for internal customer account existence.
Headers
-
accept: text/plain
-
Authorization: Bearer {token}
Curl Example
curl -X 'GET' \ 'https://crm-api-test.10npay.com/api/v1/IndividualPayment/BG36TEPJ40131000500002/is-internal-customer-account' \ -H 'accept: text/plain' \ -H 'Authorization: Bearer {Token}'
Replace {token}
with your actual Bearer token.
Response #
200 Success #
A successful response returns a string indicating whether the internal customer account exists or not.
Example Response
false
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. |
Example Response
{
"type": "string",
"title": "string",
"status": 400,
"detail": "string",
"instance": "string",
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
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. |
{
"type": "string",
"title": "string",
"status": 404,
"detail": "string",
"instance": "string",
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
Snippet #
Initiate Money Transfer to 3rd Party IBAN #
Endpoint
URL
https://crm-api-test.10npay.com/api/v1/IndividualPayment/{individualId}/money-transfer-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 BIC of the beneficiary’s bank. |
|
string |
The IBAN of the beneficiary’s account. |
|
string |
The name of the beneficiary customer. |
|
number |
The amount of money to transfer. |
|
string |
Notes regarding the payment. |
{
"sourceCustomerAccount": "BG36TEPJ40131000500002",
"beneficiaryCustomerAccount": "BG26BPBI79421095696001",
"beneficiaryCustomerName": "Ivaylo Petkov",
"amount": 0.22,
"notes": "string"
}
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"
}'
Replace {token}
with your actual Bearer token.
Response #
200 Success #
When the API is called you will need to make consent via the SCA app
A successful response returns a string with the Reference Number of the transaction.
SPR0002241830001
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": [
"UserNotFound"
]
},
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "Bad Request",
"status": 400,
"traceId": "00-534dd8fa2fc6863d0462cf097daceea1-d87e443e3aa9d6e3-01"
}