POST
Create a Payout

Body

application/json
payout_transaction_details
object[]
required

List of payout transaction details.

scheduled_at
string<date-time>
required

Scheduled date and time for the payout transaction. This date-time is in UTC.

Example:

"2024-01-01T10:00:00"

description
string
required

Brief description of the payout purpose.

Required string length: 5 - 140
Example:

"Monthly payout for January"

endpoint_url
string<uri>
required

URL that Hello Clever will invoke when the status of the transaction changes. The client must expose a TLS 1.2-secured endpoint with a certificate from a well-known commercial certificate authority. Self-signed or internally signed certificates are not accepted.

Example:

"https://merchant.example.com/payout_status_callback"

is_retry
boolean
default:false

Indicates if the system should retry the payout in case of insufficient funds. Default is false. If set to true, the system will continue to try until the balance is sufficient, either through top-up or new payments.

Example:

true

external_id
string

A custom identifier provided by the merchant for tracking purposes.

Example:

"custom-payout-id-123"

authorization_header
string

Authorization header value for securing the callback request to the specified endpoint.

Example:

"Bearer your_secret_token"

Callbacks

POST
{$request.body#/endpoint_url}payoutCallback

Body

application/json

PayoutObject

id
integer

A unique identifier assigned to the payout payment, used for tracking and referencing purposes within the system.

Example:

12345

uuid
string

A unique UUID assigned to the payout payment, providing a globally unique reference for the transaction.

Example:

"550e8400-e29b-41d4-a716-446655440000"

description
string

A description of the payout payment, providing context or additional information such as the purpose of the payout.

Example:

"Payout for invoice #12345"

payid
string

The PayID used for topping up the payout payment, allowing for easy routing of funds to the correct recipient.

Example:

"sample@payid.com"

total_amount
string

The total amount of all transactions included in the payout, providing the complete value being paid out.

Example:

"1000.00"

total_refund
string

The total amount that has been refunded to the payee, if applicable.

Example:

"100.00"

total_failed_transactions
string

The total number of transactions within the payout that failed to complete successfully.

Example:

"2"

scheduled_at
string<date-time>

The date and time when the payout transaction is scheduled to occur, expressed in UTC.

Example:

"2024-12-31T23:59:59Z"

status
enum<string>

The current status of the payout payment. Possible values include:

  • created: The payout has been created but not yet processed.
  • processing: The payout is currently being processed.
  • scheduled: The payout is scheduled for a future date.
  • completed: The payout has been completed successfully.
  • expired: The payout has expired.
Available options:
created,
processing,
scheduled,
completed,
expired
Example:

"processing"

export_url
string<uri>

A URL for downloading an attachment related to the payout payment, such as a receipt or transaction details.

Example:

"https://example.com/download/payout_attachment"

payout_notification
object

Details regarding the merchant callback settings for payout status updates, including the endpoint URL and authorization header.

error_code
string

An error code associated with the payout, indicating any issues that occurred during processing.

Example:

"HC_PAYOUT1"

error_message
string

A description of the error encountered during the payout process, providing context for troubleshooting.

Example:

"Insufficient funds to payout. Please top up balance in the dashboard."

is_retry
boolean

Indicates whether the payout is being retried after a previous failure.

Example:

false

external_id
string

A custom identifier for the payout, provided by the merchant for tracking and reference purposes.

Example:

"custom-payout-id-6789"

payout_transactions
object[]

A list of individual transactions that are part of the payout, including details such as payee information and transaction status.

Response

Callback received successfully

Response

Payout batch created successfully.

id
integer

A unique identifier assigned to the payout payment, used for tracking and referencing purposes within the system.

Example:

12345

uuid
string

A unique UUID assigned to the payout payment, providing a globally unique reference for the transaction.

Example:

"550e8400-e29b-41d4-a716-446655440000"

description
string

A description of the payout payment, providing context or additional information such as the purpose of the payout.

Example:

"Payout for invoice #12345"

payid
string

The PayID used for topping up the payout payment, allowing for easy routing of funds to the correct recipient.

Example:

"sample@payid.com"

total_amount
string

The total amount of all transactions included in the payout, providing the complete value being paid out.

Example:

"1000.00"

total_refund
string

The total amount that has been refunded to the payee, if applicable.

Example:

"100.00"

total_failed_transactions
string

The total number of transactions within the payout that failed to complete successfully.

Example:

"2"

scheduled_at
string<date-time>

The date and time when the payout transaction is scheduled to occur, expressed in UTC.

Example:

"2024-12-31T23:59:59Z"

status
enum<string>

The current status of the payout payment. Possible values include:

  • created: The payout has been created but not yet processed.
  • processing: The payout is currently being processed.
  • scheduled: The payout is scheduled for a future date.
  • completed: The payout has been completed successfully.
  • expired: The payout has expired.
Available options:
created,
processing,
scheduled,
completed,
expired
Example:

"processing"

export_url
string<uri>

A URL for downloading an attachment related to the payout payment, such as a receipt or transaction details.

Example:

"https://example.com/download/payout_attachment"

payout_notification
object

Details regarding the merchant callback settings for payout status updates, including the endpoint URL and authorization header.

error_code
string

An error code associated with the payout, indicating any issues that occurred during processing.

Example:

"HC_PAYOUT1"

error_message
string

A description of the error encountered during the payout process, providing context for troubleshooting.

Example:

"Insufficient funds to payout. Please top up balance in the dashboard."

is_retry
boolean

Indicates whether the payout is being retried after a previous failure.

Example:

false

external_id
string

A custom identifier for the payout, provided by the merchant for tracking and reference purposes.

Example:

"custom-payout-id-6789"

payout_transactions
object[]

A list of individual transactions that are part of the payout, including details such as payee information and transaction status.