PartnerCard Prepare v2: Difference between revisions

From Barion Documentation
Jump to navigation Jump to search
(Created page with "{{PageTitle|title=Barion API: Prepare a payment card}} {{TableOfContents}} {{api_callmethod |method=POST |uri=/v2/PaymentCard/Prepare }}")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{PageTitle|title=Barion API: Prepare a payment card}}
{{PageTitle|title=Barion API: Prepare a partner card}}


{{TableOfContents}}
{{TableOfContents}}
Line 5: Line 5:
{{api_callmethod
{{api_callmethod
|method=POST
|method=POST
|uri=/v2/PaymentCard/Prepare
|uri=/v2/PartnerCard/Prepare
}}
}}
== Use cases ==
This endpoint can prepare a partner card without attaching it to a specific Barion account.
<span class="api-ver">v2</span> This API endpoint is available in '''API v2''' only.
== Input properties ==
{{api_input_table_header}}
|-
| PartnerKey || Guid ||
* Required
|| The secret API key of the partner, generated by Barion.
|-
| PAN || Guid ||
* Required
* At least 10 charachters
|| The whole cardnumber.
|-
|}
== Output properties ==
{{api_output_table_header}}
|-
| PrivateCardKey || string || The private key of the card. This should only be stored on the card itself.
|-
|}
== Possible error responses ==
{| class="wikitable api-table"
! Error code || Description
|-
| CardPreparationNotAllowed || If the card number is already registered (attached to a wallet) a new preparation is not allowed.
|-
|}

Latest revision as of 08:20, 7 June 2017

Barion API: Prepare a partner card

POST /v2/PartnerCard/Prepare

Use cases

This endpoint can prepare a partner card without attaching 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
  • Required
The secret API key of the partner, generated by Barion.
PAN Guid
  • Required
  • At least 10 charachters
The whole cardnumber.

Output properties

Property name Property type Description
PrivateCardKey string The private key of the card. This should only be stored on the card itself.

Possible error responses

Error code Description
CardPreparationNotAllowed If the card number is already registered (attached to a wallet) a new preparation is not allowed.