Recipients-Post-v6: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{PageTitle|title=Barion API: POST v6/recipients}} {{TableOfContents}} {{api_callmethod |method=POST |uri=/v6/recipients }} This is an API endpoint to create a new recipient with at most one payout method. Prerequisites before use: * Creating an account in Barion * Calling the Barion API == Authentication == Barion Wallet Authentication == Input properties == {{api_input_table_header}} |- | Idempotency-Key || GUID || * O..." |
No edit summary |
||
| Line 47: | Line 47: | ||
| payoutMethod || Object || | | payoutMethod || Object || | ||
* Optional | * Optional | ||
|| Payout method to associate with the recipient at creation time. See [[ | || Payout method to associate with the recipient at creation time. See [[PayoutMethod-Request]]. | ||
|- | |- | ||
|} | |} | ||
Revision as of 16:59, 28 May 2026
Barion API: POST v6/recipients
| POST | /v6/recipients |
|---|
This is an API endpoint to create a new recipient with at most one payout method.
Prerequisites before use:
Authentication
Input properties
| Property name | Property type | Limitations and constraints | Description |
|---|---|---|---|
| Idempotency-Key | GUID |
|
Idempotency key used to safely retry requests without duplicating operations. Passed in the request header. |
| <root> | Object |
|
|
| recipientType | String |
|
Type of the recipient. |
| companyName | String |
|
Name of the company. |
| firstName | String |
|
First name of the recipient. |
| lastName | String |
|
Last name of the recipient. |
| payoutMethod | Object |
|
Payout method to associate with the recipient at creation time. See PayoutMethod-Request. |
Output properties
HTTP status code: 201 Created
| Property name | Property type | Description |
|---|---|---|
| <root> | Object | |
| recipientId | String | Unique identifier of the newly created recipient. Format: rcp_<ordered-base64-ulid>.
|
| payoutMethodId | String | Unique identifier of the newly created payout method. Format: pout_<ordered-base64-ulid>. null if no payout method was provided in the request.
|
To find out which errors this endpoint can produce, visit the Calling the API – Handling the response page. Note that this endpoint uses camelCase field names in error responses.
Possible error messages
| Condition | ErrorCode | HTTP status code |
|---|---|---|
| Invalid input data | ModelValidationError |
400 |
| Authentication fails | 401 |