Topup-FromWalletWithPartnerCard-v2: Difference between revisions
Jump to navigation
Jump to search
Line 45: | Line 45: | ||
|| The currency of the transaction | || The currency of the transaction | ||
|- | |- | ||
| Agent || [[ | | Agent || [[TopUpPerson]] || - || The agent that processes the topup | ||
|- | |||
| Client || [[TopUpPerson]] || - || The card holder who is present when the topup occures. The one who brings the money. | |||
|- | |- | ||
|} | |} |
Revision as of 11:55, 30 June 2017
Barion API: Topup from wallet with partner card
POST | /v2/TopUp/FromWalletWithPartnerCard |
---|
Use cases
This endpoint can transfer e-money from one wallet to another (identified by the card). Read more about it here
v2 This API endpoint is available in API v2 only.
Input properties
Property name | Property type | Limitations and constraints | Description |
---|---|---|---|
PartnerKey | Guid |
|
The secret API key of the partner, generated by Barion. |
SourceWalletLoginName | string |
|
The Barion login name (e-mail address) of the facilitator. This is the source wallet for the transfer. The specified amount will be transferred from here to the wallet identified by the card. If topup fees are applicable for the transaction they will be charged here as well. |
PrivateCardKey | string | - | The private key of the card. |
CardPin | string |
|
The PIN code associated with the card. |
Amount | decimal | - | The amount that should be topped up to the wallet. |
Currency | decimal |
|
The currency of the transaction |
Agent | TopUpPerson | - | The agent that processes the topup |
Client | TopUpPerson | - | The card holder who is present when the topup occures. The one who brings the money. |
Output properties
Property name | Property type | Description |
---|---|---|
WasTopUpSuccessful | bool | True, if the process was successful. |
TopUpTransactionId | string | The Id of the topup |
Possible error responses
Error code | Description |
---|---|
InvalidCardKey | The card key provided either doesn't belong to a card or the card is already issued. |
UserCantMakeOutgoingTransaction | The source of the transfer, the facilitator user is not allowed to make outgoing transactions. Probably suspended. |
InvalidUser | Something is seriously broken with an account in the transaction. |
TopUpFailed | The topup process failed because of a system error. |