Skip to main content

Send Invoice

Resends the invoice to the end customer. If invoice rows have been changed, SendInvoice also automatically creates a new updated invoice with remaining articles and send the new invoice to the customer.

Parameters​

Fieldmin OccursnillableMaxTypeDescription
Username1false50stringThe username used to authorize the request.
Password1false50stringThe password used to authorize the request.
ClientIpAddress1false50stringThe IP address of the customer performing the purchase at the partner's web shop.
CorrelationId1false50stringCorrelationID is sent back in the response.
CountryCode1false2stringThe country code (ISO 3166-1 alpha-2) for the country.
InvoiceNumber1false50stringThe invoice number previously returned in AddInvoice.
InvoiceDeliveryMethod1false4intThe way to notify the end customer. 1 = regular post (may result in fees to partner) 2 = e-mail
Email1false260stringThe email address to the end customer.
StoreId1false-intThe StoreId used for identification of store.

Response​

Fieldmin OccursnillableMaxTypeDescription
AvailableReservationAmount1true6,2decimalThe current available reservation amount. If fixed credit reservation is not used, 0 will be returned.
CorrelationId1true50stringCorrelationID from the request if any.
DueDate1true-datetimeThe due date of the invoice. Only returned if the invoice is auto activated.
InvoiceUrl1true200stringThe url to invoice in pdf format.
LowestAmountToPay1true6,2decimalThe lowest amount to pay on the invoice. Only returned if the invoice is auto activated.
NewInvoiceNumber1true50stringThe invoice number of the notification if it differs from the invoice number posted in the request, otherwise null.
PaymentReference1true50stringThe payment identification number. This is the id the customer must use when they do a payment of an invoice. Only returned if the invoice is auto activated.
TotalAmount1true6,2decimalThe total amount to pay for the invoice. Only returned if the invoice is auto activated.

Example Requests​

 Value
Environment:UAT
Service:PaymentService
URL:https://ecommercetest.collector.se/v3.0/PaymentServiceV10.svc?wsdl
Function:SendInvoice
Description:The operation resends an invoice based on invoice number.
Notes:N/A

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pay="http://schemas.ecommerce.collector.se/v30/PaymentService">
<soapenv:Header>
<pay:Username>USERNAME</pay:Username>
<pay:Password>PASSWORD</pay:Password>
</soapenv:Header>
<soapenv:Body>
<pay:SendInvoiceRequest>
<pay:CorrelationId>123</pay:CorrelationId>
<pay:CountryCode>SE</pay:CountryCode>
<pay:Email>merchant@walley.se</pay:Email>
<pay:InvoiceDeliveryMethod>2</pay:InvoiceDeliveryMethod>
<pay:InvoiceNo>63062459</pay:InvoiceNo>
<pay:StoreId>1234</pay:StoreId>
</pay:SendInvoiceRequest>
</soapenv:Body>
</soapenv:Envelope>

Error codes​

Fault CodeDescription
INVOICE_NOT_FOUNDWhen the specified Invoice number can’t be found.