Create Payout Request

Create payout request

Allows a merchant to invite clients to sign up for a BitPay personal account.

POST /payouts

Facades PAYOUT

HTTP Request

An example code of the create payout request

var ledgerCurrency = Currency.ETH;
var currency = Currency.USD;
var payout = new Payout(5.0, currency, ledgerCurrency);
var recipients = bitpay.GetPayoutRecipients("active", 1);
payout.RecipientId = recipients.First().Id;
payout.NotificationUrl = "";
var createPayout = bitpay.SubmitPayout(payout);

The BitPay server shall return an HTTP 200 OK response, and the body of the response shall be the payout object.

The following table gives a description of the Payout object and all the fields returned by the BitPay server when merchants create or retrieve a payout request. The following subsections will use this table as a reference for the body of the server response.

facadeThis indicates the facade used to create the payout request. When the payout facade is used to create a payout request, the BitPay server returns the payout object as seen from the payout facade, that is "payout/payout".string
dataPayout data object.object
→ idPayout request id.string
→ recipientIdBitPay recipient id, assigned by BitPay for a given recipient email during the onboarding process (see Recipients resource).string
→ shopperIdThis is the unique id assigned by BitPay if the shopper used his personal BitPay account to authenticate and pay an invoice. For customers signing up for a brand new BitPay personal account, this id will only be created as part of the payout onboarding. The same field would also be available on paid invoices for customers who signed in with their BitPay personal accounts before completing the payment. This can allow merchants to monitor the activity of a customer (deposits & payouts).string
→ amountThe amount to be sent to the recipient in the indicated currency. The minimum amount per instruction is $5 USD equivalent.number
→ currencyCurrency code set for the batch amount (ISO 4217 3-character currency code).string
→ ledgerCurrencyLedger currency code set for the payout request (ISO 4217 3-character currency code), it indicates on which ledger the payout request will be recorded. If not provided in the request, this parameter will be set by default to the active ledger currency on your account, e.g. your settlement currency. Supported ledger currency codes for payout requests are EUR, USD, GBP, CAD, NZD, AUD, ZAR, JPY, BTC, BCH, GUSD, USDC, PAX, XRP, BUSD, DOGE, ETH, WBTC, DAI.string
→ exchangeRatesExchange rates keyed by source and target currencies.array
→ emailEmail address of an active recipient. Note: In the future, BitPay may allow recipients to update the email address tied to their personal account. BitPay encourages the use of recipientId or shopperId when programatically creating payouts requests.string
→ referencePresent only if specified by the merchant in the request. Merchants can pass their own unique identifier in this field for reconciliation purposes. Maximum string length is 100 characters.string
→ labelFor merchant use, pass through - can be the customer name or unique merchant reference assigned by the merchant to the recipient.string
→ notificationURLURL to which BitPay sends webhook notifications. HTTPS is mandatorystring
→ notificationEmailMerchant email address for notification of payout status change.string
→ effectiveDateDescrEffective date and time (UTC) for the batch. ISO-8601 format yyyy-mm-ddThh:mm:ssZ - Note that the time of day will automatically be set to 09:00:00.000 UTC time for the given day.iptionstring
→ requestDateDate and time (UTC) when BitPay received the batch. ISO-8601 format yyyy-mm-ddThh:mm:ssZ.string
→ statusPayout request status, the possible values are: ● new - initial status when the payout batch is created ● funded - if there are enough funds available on the merchant account, the payout batches are set to funded. This happens at the daily cutoff time for payout processing, e.g. 2pm and 9pm UTC ● processing - the payout batches switch to this status whenever the corresponding cryptocurrency transactions are broadcasted by BitPay ● complete - the payout batches are marked as complete when the cryptocurrency transaction has reached the typical target confirmation for the corresponding asset. For instance, 6 confirmations for a bitcoin transaction. ● cancelled - when the merchant cancels a payout batch (only possible for requests in the status newstring
→ transactionsContains the cryptocurrency transaction details for the executed payout request.string
→ → txidCryptocurrency transaction hash for the executed payout.string
→ → amountAmount of cryptocurrency sent to the requested address.number
→ → dateDate and time (UTC) when the cryptocurrency transaction is broadcasted. ISO-8601 format yyyy-mm-ddThh:mm:ssZ.string
→ tokenResource token - this token is actually derived from the API token used to submit the payout request and is tied to the specific payout resource id created.string
statusSet to success in case of successful request and to error if the request failed, a description of the error will then be indicated in the message field.string
messageIn case of error, this field will contain a description message. Set to null if the request is successful.string

HTTP Response

        "email":"[email protected]",
        "label":"John Doe",
        "notificationEmail":"[email protected]",