- Guides
- API Reference
- Appendix
Create a payout
POST
https://test-api.star-saas.com/v1/payout
Request
Header Params
Content-Type
string
required
Example:
application/x-www-form-urlencoded
Body Params application/json
merchant_id
string
required
<= 7 characters
Example:
1000601
account_id
string
required
<= 10 characters
Example:
1000601001
beneficiary
object
optional
additional_info
object
optional
person_documents
array [object {3}]
optional
address
object
required
bank_details
object
required
company_name
string
optional
Example:
Complete Concrete Pty Ltd
date_of_birth
string
optional
Example:
1976-08-26
entity_type
string
required
Example:
COMPANY
first_name
string
optional
Example:
John
last_name
string
optional
Example:
Walker
beneficiary_id
string
optional
Example:
0123456789
client_data
string
optional
Example:
string
fee_paid_by
string
optional
Example:
PAYER
payer
object
optional
additional_info
object
optional
address
object
required
company_name
string
optional
Example:
Complete Concrete Pty Ltd
date_of_birth
string
optional
Example:
1976-08-26
entity_type
string
required
Example:
COMPANY
first_name
string
optional
Example:
James
last_name
string
optional
Example:
Smith
payment_amount
string
optional
Example:
10000
payment_currency
string
required
Example:
AUD
payment_date
string
optional
Example:
2017-03-24
payment_method
string
optional
Example:
SWIFT
reason
string
required
Example:
travel
reference
string
required
Example:
PMT1936398
request_id
string
required
Example:
ebe1ac96-641d-458f-a49e-bbbae9ea40c4
source_amount
string
optional
Example:
10000
source_currency
string
optional
Example:
CNY
swift_charge_option
string
optional
Example:
SHARED
fund_source
string
required
Credit
Debit
Prepaid
DepositAccount
MobileMoneyAccount
Cash
Example:
DepositAccount
notify_url
string
optional
Example:
https://www.example.com
encryption_data
string
required
encryption_data=sha256(merchant_id + account_id + request_id + payment_currency + payment_amount + sign_key);
Example
{
"merchant_id": "1000601",
"account_id": "1000601001",
"beneficiary": {
"additional_info": {
"business_area": "Travel",
"business_phone_number": "689342234",
"business_registration_number": "IT593003",
"personal_email": "john.walker@gmail.com",
"personal_id_number": "1234567890",
"personal_id_type": "CHINESE_NATIONAL_ID",
"personal_mobile_number": "+861234123412",
"personal_net_monthly_average_income": "4000",
"personal_phone_country_code": "BR",
"personal_phone_area_code": "18",
"personal_fiscal_country": "BR"
},
"address": {
"city": "Melbourne",
"country_code": "AU",
"postcode": "3000",
"state": "VIC",
"street": "Rua Barão do Rio Branco",
"number": "310",
"street_address": "15 William Street",
"complement": "Apt. 44 A"
},
"person_documents": [
{
"file_type": "application/pdf",
"file_url": "http://somedomain.com/document-x.pdf",
"labels": [
"person-cpf"
]
}
],
"bank_details": {
"account_currency": "AUD",
"account_name": "Lee Da Ming",
"owner_document_number": "0147258369",
"account_number": "12750852",
"bank_account_category": "Checking,Savings,Vista,Maestra",
"bank_branch": "Melbourne",
"bank_country_code": "AU",
"bank_code": "ccb",
"bank_name": "National Australia Bank",
"bank_street_address": "500 Bourke Street, Melbourne 3000, Australia",
"binding_mobile_number": "654897612345",
"iban": "ES8023100001180000012345",
"swift_code": "CTBAAU2S",
"transaction_reference": "4140110135"
},
"company_name": "Complete Concrete Pty Ltd",
"date_of_birth": "1976-08-26",
"entity_type": "COMPANY",
"first_name": "John",
"last_name": "Walker"
},
"beneficiary_id": "0123456789",
"client_data": "string",
"fee_paid_by": "PAYER",
"payer": {
"additional_info": {
"business_registration_number": "EU300503",
"business_registration_type": "Partnership",
"external_id": "1234567890",
"personal_email": "james.smith@google.com",
"personal_id_number": "1234567890",
"job": "housewife"
},
"address": {
"city": "Melbourne",
"country_code": "AU",
"postcode": "3000",
"state": "VIC",
"street_address": "15 William Street"
},
"company_name": "Complete Concrete Pty Ltd",
"date_of_birth": "1976-08-26",
"entity_type": "COMPANY",
"first_name": "James",
"last_name": "Smith"
},
"payment_amount": "10000",
"payment_currency": "AUD",
"payment_date": "2017-03-24",
"payment_method": "SWIFT",
"reason": "travel",
"reference": "PMT1936398",
"request_id": "ebe1ac96-641d-458f-a49e-bbbae9ea40c4",
"source_amount": "10000",
"source_currency": "CNY",
"swift_charge_option": "SHARED",
"fund_source": "DepositAccount",
"notify_url": "https://www.example.com",
"encryption_data": "fjlkr0fdsajlfdsaoiurjlewqnfdsakfhlksanfdsa;jkldsahk3yrnfdsa"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test-api.star-saas.com/v1/payout' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-raw '{
"merchant_id": "1000601",
"account_id": "1000601001",
"beneficiary": {
"additional_info": {
"business_area": "Travel",
"business_phone_number": "689342234",
"business_registration_number": "IT593003",
"personal_email": "john.walker@gmail.com",
"personal_id_number": "1234567890",
"personal_id_type": "CHINESE_NATIONAL_ID",
"personal_mobile_number": "+861234123412",
"personal_net_monthly_average_income": "4000",
"personal_phone_country_code": "BR",
"personal_phone_area_code": "18",
"personal_fiscal_country": "BR"
},
"address": {
"city": "Melbourne",
"country_code": "AU",
"postcode": "3000",
"state": "VIC",
"street": "Rua Barão do Rio Branco",
"number": "310",
"street_address": "15 William Street",
"complement": "Apt. 44 A"
},
"person_documents": [
{
"file_type": "application/pdf",
"file_url": "http://somedomain.com/document-x.pdf",
"labels": [
"person-cpf"
]
}
],
"bank_details": {
"account_currency": "AUD",
"account_name": "Lee Da Ming",
"owner_document_number": "0147258369",
"account_number": "12750852",
"bank_account_category": "Checking,Savings,Vista,Maestra",
"bank_branch": "Melbourne",
"bank_country_code": "AU",
"bank_code": "ccb",
"bank_name": "National Australia Bank",
"bank_street_address": "500 Bourke Street, Melbourne 3000, Australia",
"binding_mobile_number": "654897612345",
"iban": "ES8023100001180000012345",
"swift_code": "CTBAAU2S",
"transaction_reference": "4140110135"
},
"company_name": "Complete Concrete Pty Ltd",
"date_of_birth": "1976-08-26",
"entity_type": "COMPANY",
"first_name": "John",
"last_name": "Walker"
},
"beneficiary_id": "0123456789",
"client_data": "string",
"fee_paid_by": "PAYER",
"payer": {
"additional_info": {
"business_registration_number": "EU300503",
"business_registration_type": "Partnership",
"external_id": "1234567890",
"personal_email": "james.smith@google.com",
"personal_id_number": "1234567890",
"job": "housewife"
},
"address": {
"city": "Melbourne",
"country_code": "AU",
"postcode": "3000",
"state": "VIC",
"street_address": "15 William Street"
},
"company_name": "Complete Concrete Pty Ltd",
"date_of_birth": "1976-08-26",
"entity_type": "COMPANY",
"first_name": "James",
"last_name": "Smith"
},
"payment_amount": "10000",
"payment_currency": "AUD",
"payment_date": "2017-03-24",
"payment_method": "SWIFT",
"reason": "travel",
"reference": "PMT1936398",
"request_id": "ebe1ac96-641d-458f-a49e-bbbae9ea40c4",
"source_amount": "10000",
"source_currency": "CNY",
"swift_charge_option": "SHARED",
"fund_source": "DepositAccount",
"notify_url": "https://www.example.com",
"encryption_data": "fjlkr0fdsajlfdsaoiurjlewqnfdsakfhlksanfdsa;jkldsahk3yrnfdsa"
}'
Responses
🟢200Success
application/json
Body
merchant_id
string
required
account_id
string
required
amount_beneficiary_receives
integer
required
amount_payer_pays
integer
required
beneficiary
object
required
additional_info
object
required
person_documents
array [object {3}]
required
address
object
required
bank_details
object
required
company_name
string
required
date_of_birth
string
required
entity_type
string
required
first_name
string
required
last_name
string
required
beneficiary_id
string
required
created_at
string
required
failure_reason
string
required
failure_type
string
required
fee_amount
integer
required
fee_currency
string
required
last_updated_at
string
required
client_data
string
required
fee_paid_by
string
required
payer
object
required
additional_info
object
required
address
object
required
company_name
string
required
date_of_birth
string
required
entity_type
string
required
first_name
string
required
last_name
string
required
payer_id
string
required
payment_amount
string
required
payment_currency
string
required
payment_date
string
required
payment_method
string
required
reason
string
required
reference
string
required
request_id
string
required
transaction_id
string
required
short_reference_id
string
required
source_amount
string
required
source_currency
string
required
status
string
required
swift_charge_option
string
required
fund_source
string
required
encryption_data
string
required
Example
{
"merchant_id": "1000601",
"account_id": "1000601001",
"amount_beneficiary_receives": 99996,
"amount_payer_pays": 10004,
"beneficiary": {
"additional_info": {
"business_area": "Travel",
"business_phone_number": "689342234",
"business_registration_number": "IT593003",
"personal_email": "john.walker@gmail.com",
"personal_id_number": "1234567890",
"personal_id_type": "CHINESE_NATIONAL_ID",
"personal_mobile_number": "+861234123412",
"personal_net_monthly_average_income": "4000",
"personal_phone_country_code": "BR",
"personal_phone_area_code": "18",
"personal_fiscal_country": "BR"
},
"person_documents": [
{
"file_type": "application/pdf",
"file_url": "http://somedomain.com/document-x.pdf",
"labels": [
"person-cpf"
]
}
],
"address": {
"city": "Melbourne",
"country_code": "AU",
"postcode": "3000",
"state": "VIC",
"street": "Rua Barão do Rio Branco",
"number": "310",
"street_address": "15 William Street",
"complement": "Apt. 44 A"
},
"bank_details": {
"account_currency": "AUD",
"account_name": "Lee Da Ming",
"owner_document_number": "0147258369",
"account_number": "12750852",
"bank_account_category": "Checking,Savings,Vista,Maestra",
"bank_branch": "Melbourne",
"bank_country_code": "AU",
"bank_name": "National Australia Bank",
"bank_street_address": "500 Bourke Street, Melbourne 3000, Australia",
"binding_mobile_number": "654897612345",
"iban": "ES8023100001180000012345",
"local_clearing_system": "ACH",
"swift_code": "CTBAAU2S",
"transaction_reference": "4140110135"
},
"company_name": "Complete Concrete Pty Ltd",
"date_of_birth": "1976-08-26",
"entity_type": "COMPANY",
"first_name": "John",
"last_name": "Walker"
},
"beneficiary_id": "0123456789",
"created_at": "2017-03-22T16:08:02+1100",
"failure_reason": "Insufficient funds",
"failure_type": "UNKNOWN",
"fee_amount": 4,
"fee_currency": "AUD",
"last_updated_at": "2017-03-24T18:00:02+1100",
"client_data": "string",
"fee_paid_by": "PAYER",
"payer": {
"additional_info": {
"business_registration_number": "EU300503",
"business_registration_type": "Partnership",
"external_id": "1234567890",
"personal_email": "james.smith@google.com",
"personal_id_number": "1234567890",
"job": "housewife"
},
"address": {
"city": "Melbourne",
"country_code": "AU",
"postcode": "3000",
"state": "VIC",
"street_address": "15 William Street"
},
"company_name": "Complete Concrete Pty Ltd",
"date_of_birth": "1976-08-26",
"entity_type": "COMPANY",
"first_name": "James",
"last_name": "Smith"
},
"payer_id": "string",
"payment_amount": "10000",
"payment_currency": "AUD",
"payment_date": "2017-03-24",
"payment_method": "SWIFT",
"reason": "travel",
"reference": "PMT1936398",
"request_id": "ebe1ac96-641d-458f-a49e-bbbae9ea40c4",
"transaction_id": "137493443214324327987432",
"short_reference_id": "20170322-9F6ML2",
"source_amount": "10000",
"source_currency": "CNY",
"status": "COMPLETED",
"swift_charge_option": "SHARED",
"fund_source": "DepositAccount",
"encryption_data": "agatetsshry4534fs52435345345"
}