Insert payment method for company (v2)

Inserts a PaymentMethod for the specified Company. Version 2 of this method which also takes a invoiceCaptureSettingsCode

Request
query Parameters
methodId
required
integer <int32>

The internal id of the PaymentMethod to insert.

companyId
required
integer <int32>

The internal id of the Company for which the PaymentMethod gets inserted.

createdBy
string

Account internal id of current user.

invoiceCaptureSettingsCode
string

Specifies the invoice capture settings code that should be used by the company payment method.

cultureCode
string

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

Responses
200

Success

400

Bad Request

Key: CompanyMissing. Gets raised if the company does not exist.

500

Internal Server Error

post/CustomerService.svc/rest/InsertCompanyPaymentMethod2
Response samples
{
  • "Id": 0,
  • "Key": "string",
  • "Code": "string",
  • "Name": "string",
  • "OrgNo": "string",
  • "Phone": "string",
  • "ReferId": 0,
  • "ReferUrl": "string",
  • "DeliveryAddresses": [
    ],
  • "InvoiceAddress": {
    },
  • "UseInvoiceAddressAsDeliveryAddress": true,
  • "Info": [
    ],
  • "PricelistIds": [
    ],
  • "ParentId": 0,
  • "DeliveryMethodIds": [
    ],
  • "PaymentMethodIds": [
    ],
  • "Email": "string",
  • "Flags": [
    ],
  • "VatNo": "string"
}