Update an Invoice

Facades: merchant

Overview

Update an invoice with SMS or email in order to respond to a payment exception.

📘

Note

  • Updating the invoice will require EITHER an SMS or E-mail, but not both.
  • smsCode required only when verifying SMS.
  • autoVerify is only available in Sandbox environment.

Parameters

ParameterDescription
invoiceIdThe id of the invoice to updated.
buyerSmsThe buyer's cell number.
smsCodeThe buyer's received verification code.
buyerEmailThe buyer's email address.
autoVerifySkip the user verification in the test environment only.

Example

const params = {
  buyerSms: '123321312'
};

const updatedInvoice = await client.updateInvoice('someId', params)