Skip to content

Latest commit

History

History
352 lines (240 loc) · 9.94 KB

File metadata and controls

352 lines (240 loc) · 9.94 KB

paystack.TransferRecipient

All URIs are relative to https://api.paystack.co

MethodHTTP requestDescription
bulkPOST /transferrecipient/bulkBulk Create Transfer Recipient
createPOST /transferrecipientCreate Transfer Recipient
fetchGET /transferrecipient/{code}Fetch Transfer recipient
listGET /transferrecipientList Transfer Recipients
transferrecipient_code_deleteDELETE /transferrecipient/{code}Delete Transfer Recipient
transferrecipient_code_putPUT /transferrecipient/{code}Update Transfer recipient

bulk

Response bulk(batch)

Bulk Create Transfer Recipient

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'batch=paystack.TransferRecipientCreate() # list[TransferRecipientCreate] | A list of transfer recipient object. Each object should contain type, name, and bank_code. Any Create Transfer Recipient param can also be passed.# Bulk Create Transfer Recipientresponse=paystack.TransferRecipient.bulk(
batch,
)
pprint(response)

Parameters

NameTypeDescriptionNotes
batchlist[TransferRecipientCreate]A list of transfer recipient object. Each object should contain type, name, and bank_code. Any Create Transfer Recipient param can also be passed.

Return type

Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded, application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Request successful-
401Unauthorized operation-
0Server error-

[Back to top][Back to API list][Back to Model list][Back to README]

create

Response create(type, name, account_number, bank_code, description=description, currency=currency, authorization_code=authorization_code, metadata=metadata)

Create Transfer Recipient

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'type='type_example'# str | Recipient Type (Only nuban at this time)name='name_example'# str | Recipient's nameaccount_number='account_number_example'# str | Recipient's bank account numberbank_code='bank_code_example'# str | Recipient's bank code. You can get the list of Bank Codes by calling the List Banks endpoint# Create Transfer Recipientresponse=paystack.TransferRecipient.create(
type,
name,
account_number,
bank_code,
)
pprint(response)

Parameters

NameTypeDescriptionNotes
typestrRecipient Type (Only nuban at this time)
namestrRecipient's name
account_numberstrRecipient's bank account number
bank_codestrRecipient's bank code. You can get the list of Bank Codes by calling the List Banks endpoint
descriptionstrA description for this recipient[optional]
currencystrCurrency for the account receiving the transfer[optional]
authorization_codestrAn authorization code from a previous transaction[optional]
metadatastrStringified JSON object of custom data[optional]

Return type

Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded, application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
201Resource created-
401Unauthorized operation-
0Server error-

[Back to top][Back to API list][Back to Model list][Back to README]

fetch

Response fetch(code)

Fetch Transfer recipient

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'code='code_example'# str | Transfer recipient code# Fetch Transfer recipientresponse=paystack.TransferRecipient.fetch(
code,
)
pprint(response)

Parameters

NameTypeDescriptionNotes
codestrTransfer recipient code

Return type

Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Request successful-
401Unauthorized operation-
404Entity not found-
0Server error-

[Back to top][Back to API list][Back to Model list][Back to README]

list

Response list(per_page=per_page, page=page, _from=_from, to=to)

List Transfer Recipients

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'# List Transfer Recipientsresponse=paystack.TransferRecipient.list(
)
pprint(response)

Parameters

NameTypeDescriptionNotes
per_pageintNumber of records to fetch per page[optional]
pageintThe section to retrieve[optional]
_fromdatetimeThe start date[optional]
todatetimeThe end date[optional]

Return type

Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Request successful-
401Unauthorized operation-
404Entity not found-
0Server error-

[Back to top][Back to API list][Back to Model list][Back to README]

transferrecipient_code_delete

Response transferrecipient_code_delete(code)

Delete Transfer Recipient

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'code='code_example'# str | Transfer recipient code# Delete Transfer Recipientresponse=paystack.TransferRecipient.transferrecipient_code_delete(
code,
)
pprint(response)

Parameters

NameTypeDescriptionNotes
codestrTransfer recipient code

Return type

Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Request successful-
401Unauthorized operation-
404Entity not found-
0Server error-

[Back to top][Back to API list][Back to Model list][Back to README]

transferrecipient_code_put

Response transferrecipient_code_put(code, name=name, email=email)

Update Transfer recipient

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'code='code_example'# str | Transfer recipient code# Update Transfer recipientresponse=paystack.TransferRecipient.transferrecipient_code_put(
code,
)
pprint(response)

Parameters

NameTypeDescriptionNotes
codestrTransfer recipient code
namestrRecipient's name[optional]
emailstrRecipient's email address[optional]

Return type

Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded, application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Request successful-
401Unauthorized operation-
404Entity not found-
0Server error-

[Back to top][Back to API list][Back to Model list][Back to README]