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​
| Field | min Occurs | nillable | Max | Type | Description |
|---|---|---|---|---|---|
| Username | 1 | false | 50 | string | The username used to authorize the request. |
| Password | 1 | false | 50 | string | The password used to authorize the request. |
| ClientIpAddress | 1 | false | 50 | string | The IP address of the customer performing the purchase at the partner's web shop. |
| CorrelationId | 1 | false | 50 | string | CorrelationID is sent back in the response. |
| CountryCode | 1 | false | 2 | string | The country code (ISO 3166-1 alpha-2) for the country. |
| InvoiceNumber | 1 | false | 50 | string | The invoice number previously returned in AddInvoice. |
| InvoiceDeliveryMethod | 1 | false | 4 | int | The way to notify the end customer. 1 = regular post (may result in fees to partner) 2 = e-mail |
| 1 | false | 260 | string | The email address to the end customer. | |
| StoreId | 1 | false | - | int | The StoreId used for identification of store. |
Response​
| Field | min Occurs | nillable | Max | Type | Description |
|---|---|---|---|---|---|
| AvailableReservationAmount | 1 | true | 6,2 | decimal | The current available reservation amount. If fixed credit reservation is not used, 0 will be returned. |
| CorrelationId | 1 | true | 50 | string | CorrelationID from the request if any. |
| DueDate | 1 | true | - | datetime | The due date of the invoice. Only returned if the invoice is auto activated. |
| InvoiceUrl | 1 | true | 200 | string | The url to invoice in pdf format. |
| LowestAmountToPay | 1 | true | 6,2 | decimal | The lowest amount to pay on the invoice. Only returned if the invoice is auto activated. |
| NewInvoiceNumber | 1 | true | 50 | string | The invoice number of the notification if it differs from the invoice number posted in the request, otherwise null. |
| PaymentReference | 1 | true | 50 | string | The 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. |
| TotalAmount | 1 | true | 6,2 | decimal | The 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 |
- B2C Request
- B2C Response
<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>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<SendInvoiceResponse xmlns="http://schemas.ecommerce.collector.se/v30/PaymentService">
<AvailableReservationAmount>0</AvailableReservationAmount>
<CorrelationId>123</CorrelationId>
<DueDate>2020-05-10T23:59:59</DueDate>
<InvoiceUrl>https://minasidor-ci.tmtf.se/invoice?id=7eUheaZelqAOQ53UuivAUbm8cMwrkC2PRd9GA_bVGYfzNRyxWeFPa55-A9KBeFfN4DacrNbVpv6cVVNXk3m12tElU8taLLnDAdzMN7j4d56Kj-nT5ajm4OCWb7Qj-rIN&language=sv-SE</InvoiceUrl>
<LowestAmountToPay>3510.00</LowestAmountToPay>
<NewInvoiceNo i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
<PaymentReference>100002403531655</PaymentReference>
<TotalAmount>3510.00</TotalAmount>
</SendInvoiceResponse>
</s:Body>
</s:Envelope>
Error codes​
| Fault Code | Description |
|---|---|
| INVOICE_NOT_FOUND | When the specified Invoice number can’t be found. |