Reply
New Member
Posts: 1
Registered: ‎09-26-2019

How to send invoice number while charging customer profile?

We are using following api to charge customer profile.

https://developer.authorize.net/api/reference/#payment-transactions-charge-a-customer-profile  

We are unable to find "invoice number" parameter in request. We want to charge customer profile for the invoice.

Can you please let me know, how can I can add the "invoice number" when I request for the charge customer profile?

 

Highlighted
Authorize.Net Wizard
Posts: 104
Registered: ‎11-29-2017

Re: How to send invoice number while charging customer profile?

The reference guide seems to have an issue, the json format does not have the order element, but the api certainly accepts it. The XML version shows it.

 

It would be like this, place the order element after the profile:

 

<profile>

<customerProfileId>27388924</customerProfileId>

<paymentProfile>

<paymentProfileId>25000332</paymentProfileId>

</paymentProfile>

</profile>

<order>

<invoiceNumber>INV-12345</invoiceNumber>

<description>Product Description</description>

</order>