PartnerCard Issue v2: Difference between revisions
Jump to navigation
Jump to search
| Line 50: | Line 50: | ||
{| class="wikitable api-table" | {| class="wikitable api-table" | ||
! Error code || Description | ! Error code || Description | ||
|- | |||
| AuthenticationFailed || The user name and password of the card owner was incorrect. | |||
|- | |- | ||
| InvalidCardKey|| The card key provided either doesn't belong to a card or the card is already issued. | | InvalidCardKey|| The card key provided either doesn't belong to a card or the card is already issued. | ||
Latest revision as of 10:39, 26 June 2017
Barion API: Issue a partner card
| POST | /v2/PartnerCard/Issue |
|---|
Use cases
This endpoint can issue an already prepared partner card. It can attach it to a specific Barion account.
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. |
| PrivateCardKey | string |
|
The private key that was received in the reponse of PaymentCard/Prepare
|
| OwnerLoginName | string |
|
The login name (e-mail address) of the user who the card belongs to. |
| OwnerPassword | string |
|
The password of the user who the card belongs to. |
Output properties
| Property name | Property type | Description |
|---|---|---|
| PrivateCardKey | string | The private key of the card. |
| CardIssueWasSuccessful | bool | True, if the process was successful. |
Possible error responses
| Error code | Description |
|---|---|
| AuthenticationFailed | The user name and password of the card owner was incorrect. |
| InvalidCardKey | The card key provided either doesn't belong to a card or the card is already issued. |
| InvalidCardOwner | The owner specified is not a registered Barion user or the user is not available for card registration. |