Currently there is no way to write directly to the Invoice# field in Authorize.net. I have written an enhancement request. You can track it as “PYMT-3821 Enhancement- Payments need way to write invoice number in Authorize.net.”
A possible workaround: You can write the Invoice# into the description field, using customMetaData and customMetadataRequired as follows.
JSON:
"paymentDetails": {
"allowedPaymentMethods": [
"CreditCard",
"BankAccount"
],
"currencyCode": "USD",
"customMetadata": "Invoice# 12345",
"customMetadataRequired": true,
"gatewayAccountId": "11d6dc32-73e3-xxxxxxxxxx",
"gatewayDisplayName": "Authorize.Net",
"gatewayName": "AuthorizeDotNet",
"lineItems": [
{
"amountReference": "NumberTab_1",
"description": "description",
"name": "Harmonica"
}
],
"status": "new"
},
CLICK HERE to find out more related problems solutions.