Create – Account/IBAN

This document provides technical details for the API endpoint used to automatically create an account and IBAN for an individual. The endpoint is part of the CRM API and requires authentication via a Bearer token.

End-point Overview #

Endpoint: https://crm-api-test.10npay.com/api/v1/IndividualWallet/create-wallet
Method: POST

Authentication

Type: Bearer Token
Header: Authorization: Bearer {Token}

Headers #

accept: */*
Authorization: Bearer {Token}
Content-Type: application/json-patch+json

Request Body #

Content-Type: application/json-patch+json
Parameters:
id: The ID of the individual in the merchant portal.
currency: The currency for the wallet (e.g., “USD”).

Example Request Body

{
	"id": 590,
	"currency": "USD"
}

Example cURL Request #

curl -X 'POST' \ 'https://crm-api-test.10npay.com/api/v1/IndividualWallet/create-wallet' \ -H 'accept: */*' \ -H 'Authorization: Bearer {Token}' \ -H 'Content-Type: application/json-patch+json' \ -d '{ "id": 590, "currency": "USD" }'

Responses #

Success (200) #

Description: Wallet created successfully.

Bad Request (400) #

Description: The wallet could not be created due to invalid input.

Example Responses:

{
	"errors": {
		"Error": [
			"Merchant currency must be valid."
		]
	},
	"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
	"title": "Bad Request",
	"status": 400,
	"traceId": "00-b8233a8255e5257000aa9f40ebabdd22-54334e6ac25203a3-01"
}

{
	"errors": {
		"Error": [
			"Currency should be three upper characters"
		]
	},
	"title": "Bad Request",
	"status": 400
}

Not Found (404) #

Description: The request property mismatched or not found.

Response:

{
	"type": "string",
	"title": "string",
	"status": 404,
	"detail": "Not Found",
	"instance": "string",
	"additionalProp1": "string",
	"additionalProp2": "string",
	"additionalProp3": "string"
}

Internal Server Error (500) #

Description: An internal error occurred.

 

Snippet #

API Properties
Header parameters
Result of the call

Powered by BetterDocs