Creates a payment for one payee in a batch. The payment starts as DRAFT; nothing is paid until you submit it.
Requires the Write permission.
Payee. Identify the payee with payeeEmail, payeeReferenceId, or both. Payment Labs finds the payee or creates one:
| You send | Result |
|---|---|
payeeReferenceId only | The payee with that reference ID. 400 REFERENCE_ID_NOT_FOUND if there is none. |
payeeEmail only | The payee with that email, or a new payee whose reference ID is the email. |
| Both, reference ID known | That payee. If the email differs, the payee's email is changed to the one you sent. 400 EMAIL_ALREADY_IN_USE if another payee already uses that email. |
| Both, only the email known | That payee. Its reference ID is changed to the one you sent. |
| Both, neither known | A new payee with that email and reference ID. |
See /docs/payee-reference-ids before you send both.
Defaults. paymentCategory, taxJurisdiction and payeeMemo default to the batch's category, jurisdiction and name.
ledgerAccount can be omitted when you have a single active ledger account. The payment's currency is the ledger account's currency.
Side effects. The payee receives an email: an invitation to sign up if they are new, otherwise a notice of the payment.
The payment-created webhook fires. A service fee is charged for the payment shortly after creation and shows in
chargedServiceFee; it is refunded if you cancel within the grace period.
Duplicates. This operation is not idempotent and referenceId is not unique. A retried request creates a second payment
and emails the payee again. If a request times out, search for your referenceId with Search Payments before retrying.
Errors
400 VALIDATION_ERRORwithdetails.ledgerAccount[0].code=MORE_THAN_ONE_LEDGER_ACCOUNT: you have several ledger accounts; sendledgerAccount.constraints.validAccountslists their aliases.400 VALIDATION_ERRORwithdetails.ledgerAccount[0].code=INVALID_LEDGER_ACCOUNT: no active ledger account has that ID or alias.400 VALIDATION_ERRORontags: tags are not enabled on your account, or a tag breaks your limits.400 REQUIRED_VALUES_MISSING: sendpayeeEmail,payeeReferenceId, or both.400 REFERENCE_ID_NOT_FOUND: no payee has that reference ID; addpayeeEmailto create one.400 EMAIL_ALREADY_IN_USE: the email belongs to a different payee than the reference ID.404 NOT_FOUND: the batch does not exist.423 NOT_EDITABLE: the batch is archived or does not accept payments.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
