PaymentService
General for almost all requests is that an invoice number (InvoiceNumber) is needed to handle the request. The invoice number is generated by Walley in the AddInvoice method and returned in the response. This invoice number needs to be stored (together with your order) for further request of that invoice, for example when handling returns.
Address​
| Parameter | Required | Type | Max | Description |
|---|---|---|---|---|
| Firstname | string | 50 | ||
| Lastname | string | 50 | ||
| CompanyName | string | 200 | ||
| Address1 | x* | string | 50 | *Required in all countries but Norway |
| Address2 | string | 50 | ||
| COAddress | string | 50 | ||
| PostalCode | string | 50 | ||
| City | string | 50 | ||
| CountryCode | string | 2 | ||
| string | 260 | The customer's email address. | ||
| PhoneNumber | string | 20 | The customer's phone number. Should always contain country code (eg. +46 xxx xxx xxx). | |
| MobilePhone | string | 20 | The customer's mobile phone number. Should always contain country code (eg. +46 xxx xxx xxx). |
InvoiceAddress​
Which parameters are required depends on several factors. For instance in case:
- *The partner is configured to handle private person customers.
- **The partner is configured to only handle company customers.
- ***There are country specific rules.
- ****The invoice is prepaid and validation is ignored.
| Parameter | Required | Type | Max | Description |
|---|---|---|---|---|
| Firstname | x* -** | string | 50 | *Required for private persons. **Forbidden for companies. |
| Lastname | x* -** | string | 50 | *Required for private persons. **Forbidden for companies. |
| CompanyName | -* x** | string | 200 | *Forbidden for private persons. **Required for companies. |
| Address1 | x* x*** | string | 50 | *Required for private persons. ***Required in all countries but Norway. |
| Address2 | string | 50 | ||
| COAddress | string | 50 | ||
| PostalCode | x | string | 50 | |
| City | x | string | 50 | |
| CountryCode | string | 2 | ||
| x**** | string | 260 | The customer's email address. ****Either email or mobile phone number is required, unless validation ignored. | |
| PhoneNumber | string | 20 | The customer's phone number. Should always contain country code (eg. +46 xxx xxx xxx). | |
| MobilePhone | x**** | string | 20 | The customer's mobile phone number. Should always contain country code (eg. +46 xxx xxx xxx). ****Either email or phone number is required, unless validation ignored. |
InvoiceRow​
| Parameter | Required | Type | Max | Description |
|---|---|---|---|---|
| ArticleId | x | string | 50 | The ArticleId of the product. |
| Description | x | string | 50 | The description of the product. |
| Quantity | x | int | 8 | The quantity of the product. 1-99999999 (0 not allowed) |
| UnitPrice | x | decimal | 6,2 | Price per unit incl. VAT. |
| VAT | x | decimal | 6,2 | VAT in per cent |
ArticleList​
| Parameter | Required | Type | Max | Description |
|---|---|---|---|---|
| ArticleId | x | string | 50 | The ArticleId of the product |
| Description | string | 50 | The Description of the product | |
| Quantity | x | string | 8 | The quantity of the product |
| UnitPrice | x | decimal | 6,2 | Price per unit incl. VAT. |